/**
 * 440 Artist Payment Form Styles
 */

/* Container */
.aap-payment-container {
  width: 816px;
  max-width: 100%;
  gap: 10px;
  border-radius: 20px;
  border: 1px solid #DDE2E5;
  box-sizing: border-box;
  margin: 0 auto;
  background: rgb(17, 16, 56);
}

/* Plan Info Box */

/* Form */
.aap-form-row {
    margin-bottom: 16px;
}

.aap-form-row:last-child {
    margin-bottom: 0;
}

.aap-form-label {
    display: block;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: -0.15px;
    font-weight: 400;
    color: #878787;
    margin-bottom: 8px;
}
@media (min-width: 320px) and (max-width: 767px) {
  .aap-form-label {
    font-size: 14px;
  }
}
/* Card Element Container */
#aap-card-element {
    border-radius: 8px;
    padding: 16px;
    background: #2b2555;
    margin-bottom: 16px;
}

#aap-card-element:focus-within {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Card Errors */
#aap-card-errors {
    color: #f2344e;
    display: none;
    margin-bottom: 16px;
}

#aap-card-errors.visible {
    display: block;
}

/* Submit Button */
button.aap-submit-btn {
    min-width: 448px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 20px;
    background: #00e387;
    color: #070038;
    border: none;
    border-radius: 20px;
    font-size: 20px;
    line-height: 32px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s;
}

@media (min-width: 320px) and (max-width: 767px) {
  button.aap-submit-btn {
    min-width: 100%;
    font-size: 18px;
  }
}

button.aap-submit-btn:disabled {
    opacity: .25;
    cursor: not-allowed;
    background: #00e387;
    color: #070038;
}

/* Button Spinner */
.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Message Container */
.aap-message {
    display: none;
}
@media (min-width: 320px) and (max-width: 767px) {
  .aap-message,
  #aap-card-errors {
    font-size: 14px;
    line-height: 1.4;
  }
}
.aap-message-error {
  color: #f2344e;
}

.aap-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.aap-message-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Success & error Container */
.aap-success-container,
.aap-error-container {
    display: none;
    text-align: center;
    margin: -5px 0 -3px;
}

@media (min-width: 320px) and (max-width: 767px) {
  .aap-success-container,
  .aap-error-container {
    margin: 9px 0 4px;
  }
}

/* Consent Checkboxes */
.aap-consent-row {
    padding: 16px;
    background: #2b2555;
    border-radius: 8px;
    color: #878787;
}

.aap-consent-row + .aap-consent-row {
    margin-top: 12px;
}

.aap-consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 18px;
    line-height: 20px;
}

@media (min-width: 320px) and (max-width: 767px) {
  .aap-consent-label {
    font-size: 14px;
  }
}

.aap-consent-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00e387;
}

.aap-consent-text {
    color: #878787;
}

.aap-consent-text a {
    color: inherit;
    text-decoration: underline;
}

/* Hidden inputs */
.aap-hidden {
    display: none;
}

/* Loading State */
.aap-payment-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Decision Buttons */
.aap-decision-buttons {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
}

.aap-decision-btn {
    text-align: center;
    text-decoration: none;
    display: block;
}

.aap-decision-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.aap-decision-yes {
    background: #0066cc;
}

.aap-decision-no {
    background: #6c757d;
}

.aap-payment-show-message .hide-after-submit{
  display: none !important;
}

/* Standalone error container (rendered by shortcode, not the inline form error) */
.aap-error-container:not(:empty) {
    display: block;
}

/* Countdown */
.aap-error-countdown {
    margin-top: 12px;
    font-size: 14px;
    color: #856404;
}

.aap-error-countdown #aap-countdown {
    font-weight: 700;
    font-size: 16px;
}

/* Retry button */
button.aap-retry-btn {
    display: inline-block;
    padding: 10px 28px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

/* ═══════════════════════════════════════════════════════════════════
   Skeleton loader  (matches Figma node 54557:7283 exactly)
   ═══════════════════════════════════════════════════════════════════ */

@keyframes aap-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ── Shared shimmer base ── */
.aap-skel-bar,
.aap-skel-btn {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 4px;
    /* left-lighter → right-darker gradient (matches Figma assets) */
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(8, 6, 50, 0.45)      100%
    );
}
.aap-skel-bar::after,
.aap-skel-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent                  0%,
        rgba(255, 255, 255, 0.11)   50%,
        transparent                 100%
    );
    animation: aap-shimmer 2s ease-in-out infinite;
}

/* ── Wrapper ── */
.aap-skel-wrap { padding: 0; }

/* ── Title  (Inter SemiBold 18px, #00e387, uppercase) ── */
.aap-skel-title {
    color: #00e387;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.44px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ── Inner sections wrapper (gap 32px) ── */
.aap-skel-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Description block: 8 bars × 14.4px, gap 7.2px, border-bottom ── */
.aap-skel-desc {
    display: flex;
    flex-direction: column;
    gap: 7.2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 16px;
}
.aap-skel-desc .aap-skel-bar {
    width: 100%;
    height: 14.4px;
}

/* ── Heading row ── */
.aap-skel-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.aap-skel-h-title {
    width: 292px;
    height: 35px;
}
.aap-skel-amount-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.aap-skel-h-amount { width: 65px;  height: 22px; }
.aap-skel-h-plan   { width: 72px;  height: 9.6px; }

/* ── Card-required note ── */
.aap-skel-note {
    width: 100%;
    height: 13px;
}

/* ── Card form box ── */
.aap-skel-card-box {
    border: 1px solid rgba(228, 228, 228, 0.1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Card inner (Stripe header + fields), gap 16px ── */
.aap-skel-card-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Stripe card tab header */
.aap-skel-card-hdr {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.aap-skel-card-tab  { width: 36px;  height: 12.8px; }
.aap-skel-card-link { width: 260px; height: 14.4px; }

/* Fields wrapper, gap 16px */
.aap-skel-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual field: label + input, gap 8px */
.aap-skel-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Field label bar */
.aap-skel-lbl { height: 14.4px; }

/* Field input container */
.aap-skel-input {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    height: 50px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
/* Bar inside the input (value placeholder) */
.aap-skel-val { height: 14.4px; }

/* Two-column grid (expiry+CVC, country+ZIP) */
.aap-skel-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Actions: button + security note, centred ── */
.aap-skel-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.aap-skel-btn {
    width: 448px;
    height: 46px;
    border-radius: 10px;
}
.aap-skel-security {
    width: 448px;
    height: 10px;
}

/* ═══════════════════════════════════════════════════════════════════
   Invalid Access / Error Card  (Figma node 54640:3886)
   ═══════════════════════════════════════════════════════════════════ */

.aap-invalid-access {
    background: rgba(255, 255, 255, 0.05);
}

.aap-ia-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.aap-ia-heading {
    font-size: clamp(28px, 5vw, 50px);
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin: 0;
}

.aap-ia-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 120px;
    font-size: 18px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
}

.aap-ia-body p {
    margin: 0;
}

.aap-ia-body a.color-green {
    color: #00e387;
    text-decoration: none;
}

.aap-ia-body a.color-green:hover {
    text-decoration: underline;
}

/* Tablet */
@media (min-width: 600px) and (max-width: 900px) {
    .aap-ia-body {
        padding: 0 32px;
    }
}

/* Mobile */
@media (min-width: 320px) and (max-width: 599px) {

    .aap-ia-heading {
        text-align: center;
    }
    .aap-all-set-icon {
        justify-content: center;
    }
    .aap-ia-body {
        font-size: 15px;
        padding: 0;
    }
    .aap-payment-container {
        padding: 20px;
    }
}

/* Check icon (You're All Set card) */
.aap-all-set-icon {
    display: flex;
    justify-content: center;
}

/* Continue / Retry button (Almost There card) */
.aap-continue-wrap {
    display: flex;
    justify-content: center;
}

button.aap-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    height: 46px;
    background: #00e387;
    color: #070038;
    border: none;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

button.aap-continue-btn:hover {
    opacity: 0.9;
}

/* ── Error fallback ── */
.aap-plan-loader-error {
    color: #f2344e;
    font-size: 14px;
    margin: 0 0 16px;
    text-align: center;
}


/* ═══════════════════════════════════════════════════════════════════
   Plan Benefits Module
   ═══════════════════════════════════════════════════════════════════ */

.aap-plan-benefits {
    border-bottom: 1px solid #2a2d4a;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.aap-plan-benefits-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.aap-plan-title {
    font-family: 'Mango Grotesque', sans-serif;
    font-size: clamp(28px, 5vw, 50px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #00e387;
    margin: 0;
}

.aap-plan-price {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    padding-bottom: 4px;
}

.aap-price-amount {
    font-family: 'Mango Grotesque', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 0.85;
    text-transform: uppercase;
    color: #ffffff;
}

.aap-price-period {
    font-size: 16px;
    line-height: 1.4;
    color: #9eb5ff;
}

.aap-plan-features {
    margin: 0;
}

/* WYSIWYG <ul> — kill all inherited theme styles */
.aap-plan-features ul,
.aap-payment-container .aap-plan-features ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Each <li> as a flex row with a custom checkmark badge */
.aap-plan-features ul li,
.aap-payment-container .aap-plan-features ul li {
    list-style: none !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: -0.15px;
    color: #c8cad4;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove any ::marker added by themes */
.aap-plan-features ul li::marker {
    display: none;
    content: '';
}

/* Custom checkmark badge */
.aap-plan-features ul li::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6.5L4.5 9L10 3' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-size: 12px 12px;
    background-repeat: no-repeat;
}

@media (min-width: 320px) and (max-width: 767px) {
    .aap-plan-benefits-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .aap-plan-features ul li,
    .aap-payment-container .aap-plan-features ul li {
        font-size: 14px;
    }
    .aap-price-amount {
        font-size: 24px;
    }
    .aap-price-period {
        font-size: 13px;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   Submission & Payment Header
   ═══════════════════════════════════════════════════════════════════ */

.aap-submission-header {
    margin-bottom: 20px;
}

.aap-submission-title {
    font-family: 'Mango Grotesque', sans-serif;
    font-size: clamp(22px, 4vw, 50px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #00e387;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2d4a;
}

.aap-submission-description {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #c8cad4;
    margin: 0;
}

.aap-submission-description em {
    color: #00e387;
    font-style: normal;
    font-weight: 700;
}

@media (min-width: 320px) and (max-width: 767px) {
    .aap-submission-description {
        font-size: 14px;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   Payment Method Tabs
   ═══════════════════════════════════════════════════════════════════ */

.aap-payment-methods-wrap {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    margin-bottom: 0;
}

.aap-payment-methods-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.25px;
    text-transform: uppercase;
    color: #00dc82;
    margin: 0 0 12px;
    line-height: 20px;
}

.aap-payment-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.aap-tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    min-width: 80px;
    background: rgba(26, 29, 53, 0.6);
    border: 1.6px solid #2a2d4a;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.aap-tab-btn:hover {
    border-color: rgba(0, 220, 130, 0.4);
    background: rgba(26, 29, 53, 0.8);
}

/* Active tab — green border + checkmark badge */
.aap-tab-btn.aap-tab-active {
    background: rgba(12, 14, 31, 0.6);
    border-color: #00dc82;
}

.aap-tab-btn.aap-tab-active::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #00dc82
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l2.5 3L10 3' stroke='%23070038' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / 12px no-repeat;
    border-radius: 50%;
}

/* Tab panel */
.aap-tab-panel {
    background: #0e1028;
    border: 1px solid #2a2d4a;
    border-radius: 8px;
    padding: 16px;
}

/* Hidden panel — keeps Stripe elements rendered so they can measure/init,
   but visually hidden and out of flow */
.aap-panel-hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    box-sizing: border-box;
}

/* Wallet unavailable message */
.aap-wallet-unavailable {
    font-size: 14px;
    color: #9eb5ff;
    text-align: center;
    margin: 8px 0 0;
    padding: 12px;
}

@media (min-width: 320px) and (max-width: 767px) {
    .aap-tab-btn {
        height: 40px;
        min-width: 64px;
        padding: 0 12px;
        border-radius: 10px;
    }
    .aap-payment-tabs {
        gap: 6px;
    }
    .aap-payment-methods-wrap {
        padding: 12px;
        margin-top: 16px;
    }
}


