/* ==========================================
   FC NYP – Frontend Form Styles
   Uses FluentCart CSS variables with fallbacks
   ========================================== */

.fc-nyp-form-wrap {
    width: 100%;
    margin: 16px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    color: var(--fct-primary-text-color, #2f3448);
}

.fc-nyp-form-wrap *,
.fc-nyp-form-wrap *::before,
.fc-nyp-form-wrap *::after {
    box-sizing: border-box;
}

/* Section label */
.fc-nyp-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--fct-secondary-text-color, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

/* ── Amount input row ─────────────────────────── */

.fc-nyp-input-row {
    display: flex;
    align-items: center;
    border: 1px solid var(--fct-border-color, #d6dae1);
    border-radius: 8px;
    overflow: hidden;
    background: var(--fct-input-bg-color, #ffffff);
    margin-bottom: 12px;
    transition: border-color .15s, box-shadow .15s;
}

.fc-nyp-input-row:focus-within {
    border-color: var(--fct-active-border-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.fc-nyp-currency {
    padding: 0 14px;
    font-size: 18px;
    font-weight: 600;
    color: var(--fct-input-placeholder-text-color, #9ca3af);
    background: var(--fct-input-prefix-bg, #f9fafb);
    border-right: 1px solid var(--fct-border-color, #e5e7eb);
    height: 52px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    user-select: none;
}

.fc-nyp-amount-input {
    flex: 1;
    padding: 0 16px;
    height: 52px;
    border: none;
    outline: none;
    font-size: 26px;
    font-weight: 700;
    color: var(--fct-primary-text-color, #111827);
    background: transparent;
    -moz-appearance: textfield;
    width: 100%;
}

.fc-nyp-amount-input::-webkit-inner-spin-button,
.fc-nyp-amount-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.fc-nyp-amount-input::placeholder {
    color: var(--fct-input-placeholder-text-color, #d1d5db);
    font-weight: 400;
}

/* ── Preset buttons ───────────────────────────── */

.fc-nyp-presets {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    grid-template-columns: repeat(3, 1fr);
}

.fc-nyp-presets[data-cols="1"] { grid-template-columns: 1fr; }
.fc-nyp-presets[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.fc-nyp-presets[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }

.fc-nyp-preset-btn {
    padding: 10px 6px;
    border: 1.5px solid var(--fct-border-color, #e5e7eb);
    border-radius: 8px;
    background: var(--fct-input-bg-color, #f9fafb);
    font-size: 14px;
    font-weight: 600;
    color: var(--fct-primary-text-color, #374151);
    cursor: pointer;
    text-align: center;
    transition: border-color .12s, background .12s, color .12s;
    line-height: 1.2;
}

.fc-nyp-preset-btn:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #2563eb;
}

.fc-nyp-preset-btn.active {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1d4ed8;
}

.fc-nyp-preset-btn.custom-btn {
    border-style: dashed;
    font-weight: 500;
    font-size: 13px;
}

/* ── Pay button ───────────────────────────────── */

.fc-nyp-pay-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--fct-btn-primary-bg, #111827);
    color: var(--fct-btn-primary-text, #ffffff);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background .15s, transform .1s;
    margin-top: 4px;
    min-height: 50px;
}

.fc-nyp-pay-btn:hover {
    background: var(--fct-btn-primary-hover-bg, #1f2937);
}

.fc-nyp-pay-btn:active {
    transform: scale(0.99);
}

/* ── Error ────────────────────────────────────── */

.fc-nyp-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
    font-weight: 500;
}

/* ── Shop card link ────────────────────────────── */

.fc-nyp-shop-link {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: var(--fct-btn-primary-bg, #111827);
    color: #fff !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    transition: background .15s;
    cursor: pointer;
    margin-top: 4px;
}

.fc-nyp-shop-link:hover {
    background: var(--fct-btn-primary-hover-bg, #374151);
}

/* ── Quantity row ─────────────────────────────────────────── */
.fc-nyp-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.fc-nyp-qty-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.fc-nyp-qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.fc-nyp-qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: #f9fafb;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .12s;
    flex-shrink: 0;
    line-height: 1;
}

.fc-nyp-qty-btn:hover { background: #e5e7eb; }

.fc-nyp-qty-input {
    width: 52px;
    height: 38px;
    border: none;
    border-left: 1.5px solid #e5e7eb;
    border-right: 1.5px solid #e5e7eb;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    outline: none;
    -moz-appearance: textfield;
    background: #fff;
}

.fc-nyp-qty-input::-webkit-inner-spin-button,
.fc-nyp-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
