/*
 * WP Stripe Forms — Frontend Styles v4.0.0
 */

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.wpsf-form-wrap {
    max-width: 560px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: #1a1a1a;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
.wpsf-custom-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}
.wpsf-field-full    { width: 100%; }
.wpsf-field-half    { width: calc( 50% - 7px ); }
.wpsf-field-third   { width: calc( 33.333% - 10px ); }
.wpsf-field-quarter { width: calc( 25% - 11px ); }
.wpsf-field-wrap    { display: flex; flex-direction: column; gap: 5px; transition: opacity .2s ease; }

/* Row group: flex container for side-by-side fields */
.wpsf-field-row-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    width: 100%;
}
.wpsf-field-row-group .wpsf-field-wrap { flex: 1; min-width: 0; width: auto !important; }

/* Conditional logic: hidden fields */
.wpsf-field-hidden { display: none !important; }

/* ── Sections ────────────────────────────────────────────────────────────── */
/* A section groups the fields that follow it into a subtle bordered container. */
.wpsf-form-section {
    width: 100%;
    border: 1px solid #e6e7eb;
    border-radius: 10px;
    background: #fafafe;
    padding: 18px;
}
.wpsf-form-section-head { margin-bottom: 14px; }
.wpsf-form-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}
/* Subtle accent bar to the left of the heading. */
.wpsf-form-section-title::before {
    content: "";
    flex: 0 0 auto;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: #635bff;
}
.wpsf-form-section-desc {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
}
/* The body mirrors .wpsf-custom-fields so fields/row-groups lay out the same. */
.wpsf-form-section-body {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ── Group availability panel (top of form) ──────────────────────────────── */
.wpsf-group-availability {
    border: 1px solid #e6e7eb;
    border-radius: 10px;
    background: #fafafe;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.wpsf-group-availability-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #4b5563;
    margin-bottom: 10px;
}
.wpsf-group-availability-title::before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #635bff;
}

/* ── Group availability cards ────────────────────────────────────────────── */
.wpsf-age-capacity {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 230px, 1fr ) );
    gap: 10px;
}
.wpsf-group-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e6e7eb;
    border-radius: 10px;
    background: #fff;
}
.wpsf-group-card-info { min-width: 0; }
.wpsf-group-card-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    color: #1a1a1a;
}
.wpsf-group-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}
.wpsf-group-card-tag {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.5;
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 5px;
    padding: 2px 7px;
}
/* Count circle */
.wpsf-group-card-count {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1.5px solid transparent;
}
.wpsf-group-card-count-num {
    font-size: 17px;
    font-weight: 800;
}
.wpsf-group-card-count-label {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: .85;
}
/* States */
.wpsf-group-card--open    .wpsf-group-card-count { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.wpsf-group-card--over    .wpsf-group-card-count { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.wpsf-group-card--soldout .wpsf-group-card-count { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.wpsf-group-card--over    { border-color: #fde68a; }
.wpsf-group-card--soldout { background: #fef7f7; }
.wpsf-group-card--soldout .wpsf-group-card-name {
    text-decoration: line-through;
    text-decoration-color: #fca5a5;
    color: #6b7280;
}

/* Highlight a repeater row flagged by group-limit validation. */
.wpsf-repeater-instance--error {
    border-radius: 8px;
    box-shadow: 0 0 0 2px #fca5a5;
    background: #fef2f2;
    transition: box-shadow .2s ease, background .2s ease;
}

/* ── Camp Full / Partial pricing ─────────────────────────────────────────── */
.wpsf-camp-type-wrap { margin-bottom: 16px; }
.wpsf-camp-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.wpsf-camp-type-option {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e2e3e9;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.wpsf-camp-type-option:has(input:checked) { border-color: #635bff; background: #f5f4ff; }
.wpsf-camp-type-option input { accent-color: #635bff; width: 16px; height: 16px; }

.wpsf-camp-weeks-wrap { margin-bottom: 16px; }
.wpsf-camp-weeks-hint { font-size: 13px; color: #6b7280; margin: 4px 0 10px; }
.wpsf-camp-weeks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wpsf-camp-week-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e3e9;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.wpsf-camp-week-option:has(input:checked) { border-color: #635bff; background: #f5f4ff; }
.wpsf-camp-week-option input { accent-color: #635bff; width: 16px; height: 16px; flex-shrink: 0; }
.wpsf-camp-week-option input:disabled { cursor: not-allowed; }
.wpsf-camp-week-option:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.wpsf-camp-total {
    margin-top: 12px;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    font-weight: 700;
    color: #047857;
    font-size: 14px;
}

/* Responsive: collapse columns on small screens */
@media ( max-width: 480px ) {
    .wpsf-field-row-group { flex-wrap: wrap; }
    .wpsf-field-row-group .wpsf-field-wrap { width: 100% !important; }
    .wpsf-field-half, .wpsf-field-third, .wpsf-field-quarter { width: 100%; }
}

.wpsf-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}
.wpsf-field-label-required::after,
.wpsf-required-star { content: " *"; color: #e53935; }

.wpsf-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
.wpsf-input:focus {
    outline: none;
    border-color: #635bff;
    box-shadow: 0 0 0 3px rgba(99,91,255,.15);
}
.wpsf-input::placeholder { color: #aaa; }

.wpsf-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.wpsf-checkbox-wrap input { width: 16px; height: 16px; accent-color: #635bff; cursor: pointer; }

/* ── Terms & Conditions field ────────────────────────────────────────────── */
.wpsf-terms-field-wrap { gap: 10px !important; }
.wpsf-terms-scroll-box {
    max-height: 160px;
    overflow-y: auto;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.65;
    color: #4b5563;
    white-space: pre-wrap;
    word-break: break-word;
}
.wpsf-terms-scroll-box::-webkit-scrollbar { width: 4px; }
.wpsf-terms-scroll-box::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.wpsf-terms-scroll-box::-webkit-scrollbar-thumb { background: #c4c4c4; border-radius: 4px; }
.wpsf-terms-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.wpsf-terms-checkbox-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #635bff;
    cursor: pointer;
}
.wpsf-terms-agree-text { font-size: 14px; color: #374151; line-height: 1.4; }

/* ── Product selector ────────────────────────────────────────────────────── */
.wpsf-product-selector-wrap { margin-bottom: 20px; }
.wpsf-product-selector-wrap > .wpsf-field-label { margin-bottom: 8px; display: block; }

/* Radio style */
.wpsf-product-radios { display: flex; flex-direction: column; gap: 8px; }
.wpsf-product-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.wpsf-product-radio-label:hover { border-color: #635bff; background: #fafafe; }
.wpsf-product-radio-label input[type="radio"] { accent-color: #635bff; width: 16px; height: 16px; flex-shrink: 0; }
.wpsf-product-radio-label:has(input:checked) { border-color: #635bff; background: #f5f4ff; }
.wpsf-product-radio-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}
.wpsf-product-radio-name  { font-weight: 500; }
.wpsf-product-radio-nick  { font-size: 13px; color: #888; margin-left: 6px; }
.wpsf-product-radio-price { font-weight: 700; color: #635bff; white-space: nowrap; }
.wpsf-product-radio-interval { font-weight: 400; font-size: 13px; color: #888; }

/* Card style */
.wpsf-product-cards { display: grid; grid-template-columns: repeat( auto-fill, minmax(160px, 1fr) ); gap: 10px; }
.wpsf-product-card { display: block; cursor: pointer; }
.wpsf-product-card input[type="radio"] { display: none; }
.wpsf-product-card-inner {
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    transition: border-color .15s, background .15s, transform .1s;
}
.wpsf-product-card:hover .wpsf-product-card-inner { border-color: #635bff; background: #fafafe; }
.wpsf-product-card:has(input:checked) .wpsf-product-card-inner {
    border-color: #635bff;
    background: #f5f4ff;
    transform: scale(1.02);
}
.wpsf-product-card-name  { font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.wpsf-product-card-nick  { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
.wpsf-product-card-price { font-size: 20px; font-weight: 800; color: #635bff; }
.wpsf-product-card-interval { font-size: 12px; font-weight: 400; color: #888; }

/* Dropdown style */
.wpsf-product-select { max-width: 100%; }

/* ── Open amount input ───────────────────────────────────────────────────── */
.wpsf-open-amount-wrap {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wpsf-open-amount-desc {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}
.wpsf-open-amount-input-row {
    display: flex;
    align-items: stretch;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}
.wpsf-open-amount-input-row:focus-within {
    border-color: #635bff;
    box-shadow: 0 0 0 3px rgba(99,91,255,.15);
}
.wpsf-currency-symbol {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #f9fafb;
    border-right: 1px solid #d0d5dd;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}
.wpsf-open-amount-input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
    min-width: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    padding: 12px 14px;
    background: transparent;
    -moz-appearance: textfield;
}
.wpsf-open-amount-input::-webkit-outer-spin-button,
.wpsf-open-amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wpsf-open-amount-hint {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
}

/* ── Subscription info ───────────────────────────────────────────────────── */
.wpsf-subscription-info {
    padding: 10px 14px;
    background: #f0efff;
    border: 1px solid #d4d1ff;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #4a4270;
    animation: wpsf-fade-in .2s ease;
}

/* ── Coupon code field ───────────────────────────────────────────────────── */
.wpsf-coupon-wrap {
    margin-bottom: 20px;
}
.wpsf-coupon-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.wpsf-coupon-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #1f2937;
    background: #fff;
    letter-spacing: 0.04em;
    transition: border-color .15s;
}
.wpsf-coupon-input:focus {
    outline: none;
    border-color: #635bff;
    box-shadow: 0 0 0 3px rgba(99, 91, 255, .15);
}
.wpsf-coupon-input:disabled {
    background: #f9fafb;
    color: #6b7280;
}
.wpsf-coupon-apply-btn {
    padding: 10px 18px;
    background: #635bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, opacity .15s;
}
.wpsf-coupon-apply-btn:hover:not(:disabled) { background: #4f46e5; }
.wpsf-coupon-apply-btn:disabled {
    opacity: .6;
    cursor: default;
}
.wpsf-coupon-feedback {
    /* Visibility is controlled exclusively via inline style by JS (display:block / display:none).
       Do NOT set display:none here — it would override the inline style in some browsers. */
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 6px;
    padding: 10px 14px;
}
.wpsf-coupon-feedback--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}
.wpsf-coupon-feedback--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #c62828;
}
.wpsf-coupon-original-price {
    text-decoration: line-through;
    opacity: .65;
    margin-right: 4px;
}
.wpsf-coupon-new-price {
    font-weight: 700;
    font-size: 15px;
}
.wpsf-coupon-free-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 1px 8px;
    letter-spacing: 0.03em;
}

/* ── Fee summary ─────────────────────────────────────────────────────────── */
.wpsf-fee-summary {
    margin: 0 0 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    background: #f9fafb;
    font-size: 14px;
}
.wpsf-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    color: #6b7280;
}
.wpsf-fee-row + .wpsf-fee-row {
    border-top: 1px dashed #e5e7eb;
}
.wpsf-fee-rate {
    font-size: 11px;
    opacity: .7;
    margin-left: 2px;
}
.wpsf-fee-total-row {
    border-top: 1px solid #d1d5db !important;
    margin-top: 4px;
    padding-top: 10px !important;
    font-weight: 600;
    color: #111827;
    font-size: 15px;
}

/* ── Payment Element ─────────────────────────────────────────────────────── */
.wpsf-payment-element-wrap {
    margin-bottom: 20px;
}
.wpsf-payment-element {
    padding: 2px;
    min-height: 80px;
}
@keyframes wpsf-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Error box ───────────────────────────────────────────────────────────── */
.wpsf-form-error {
    padding: 12px 16px;
    background: #fce8e6;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    color: #c62828;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ── Submit button ───────────────────────────────────────────────────────── */
.wpsf-submit-wrap { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.wpsf-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: #635bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    min-height: 52px;
}
.wpsf-submit-btn:hover:not(:disabled) { background: #5046e5; box-shadow: 0 4px 14px rgba(99,91,255,.35); }
.wpsf-submit-btn:active:not(:disabled) { transform: scale(.98); }
.wpsf-submit-btn:disabled { opacity: .65; cursor: not-allowed; }

.wpsf-btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wpsf-spin .7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}
@keyframes wpsf-spin { to { transform: rotate(360deg); } }

.wpsf-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    color: #aaa;
    margin: 0;
}

/* ── Success state ───────────────────────────────────────────────────────── */
.wpsf-success {
    text-align: center;
    padding: 40px 20px;
    animation: wpsf-fade-in .3s ease;
}
.wpsf-success-icon {
    width: 60px;
    height: 60px;
    background: #e6f4ea;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}
.wpsf-success-message { font-size: 16px; color: #444; line-height: 1.6; }

/* ── Repeater field ──────────────────────────────────────────────────────── */
.wpsf-repeater-wrap {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.wpsf-repeater-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.wpsf-repeater-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.wpsf-repeater-label-required::after { content: " *"; color: #e53935; }

.wpsf-repeater-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: #635bff;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
    margin-left: 4px;
}

.wpsf-repeater-instances {
    display: flex;
    flex-direction: column;
}

.wpsf-repeater-instance {
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: wpsf-fade-in .15s ease;
}

.wpsf-repeater-instance:last-child {
    border-bottom: none;
}

.wpsf-repeater-instance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.wpsf-repeater-instance-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.wpsf-repeater-wrap .wpsf-repeater-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #aaa;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: none;
    text-decoration: none;
}

.wpsf-repeater-wrap .wpsf-repeater-remove-btn:hover:not(:disabled) {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fff5f5;
}

.wpsf-repeater-wrap .wpsf-repeater-remove-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.wpsf-repeater-instance-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wpsf-repeater-instance-fields .wpsf-field-wrap {
    flex: 1;
    min-width: 140px;
}

.wpsf-repeater-add-wrap {
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.wpsf-repeater-wrap .wpsf-repeater-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #fff;
    border: 1px dashed #635bff;
    border-radius: 6px;
    color: #635bff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-style .15s;
    width: 100%;
    justify-content: center;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: none;
    outline: none;
}

.wpsf-repeater-wrap .wpsf-repeater-add-btn:hover:not(:disabled) {
    background: #f5f4ff;
    border-style: solid;
}

.wpsf-repeater-wrap .wpsf-repeater-add-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.wpsf-repeater-wrap .wpsf-repeater-add-btn.wpsf-input-error {
    border-color: #e53e3e;
    border-style: solid;
    color: #e53e3e;
    animation: wpsf-shake 0.4s ease;
}

@keyframes wpsf-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-5px); }
    40%       { transform: translateX(5px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* ── Generic error ───────────────────────────────────────────────────────── */
.wpsf-error { color: #c62828; font-style: italic; }

/* ── Radio Buttons ───────────────────────────────────────────────────────── */
.wpsf-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 8px;
    font-weight: normal;
}

.wpsf-radio-label input[type="radio"] {
    cursor: pointer;
    margin: 0;
    accent-color: #635bff;
}

.wpsf-radio-label span {
    user-select: none;
}

/* ── Select Dropdown ─────────────────────────────────────────────────────── */
select.wpsf-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a1a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media ( max-width: 480px ) {
    .wpsf-field-half { width: 100%; }
    .wpsf-product-cards { grid-template-columns: 1fr 1fr; }
}
