/* ScaleWoo PWYW - Premium Checkout Experience */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.swoo-pwyw-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
}

.swoo-pwyw-card {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(165deg, #151515 0%, #0d0d0d 100%);
    border: 1px solid rgba(200, 255, 0, 0.08);
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(200, 255, 0, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(200, 255, 0, 0.03);
}

.swoo-pwyw-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(200, 255, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Header */
.swoo-pwyw-header {
    text-align: center;
    margin-bottom: 36px;
}

.swoo-pwyw-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.swoo-pwyw-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.swoo-pwyw-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}

/* Preset Buttons */
.swoo-pwyw-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.swoo-pwyw-preset {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.swoo-pwyw-preset:hover {
    background: rgba(200, 255, 0, 0.06);
    border-color: rgba(200, 255, 0, 0.2);
    color: #c8ff00;
    transform: translateY(-1px);
}

.swoo-pwyw-preset.active {
    background: rgba(200, 255, 0, 0.1);
    border-color: rgba(200, 255, 0, 0.4);
    color: #c8ff00;
    box-shadow: 0 0 20px rgba(200, 255, 0, 0.08);
}

.swoo-pwyw-preset.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(200, 255, 0, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

/* Custom Amount Input */
.swoo-pwyw-custom {
    margin-bottom: 32px;
}

.swoo-pwyw-custom label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.swoo-pwyw-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.swoo-pwyw-currency {
    position: absolute;
    left: 20px;
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 1;
}

.swoo-pwyw-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 20px 18px 44px;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    outline: none;
    transition: all 0.25s ease;
    -moz-appearance: textfield;
}

.swoo-pwyw-input::-webkit-outer-spin-button,
.swoo-pwyw-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.swoo-pwyw-input:focus {
    border-color: rgba(200, 255, 0, 0.3);
    background: rgba(200, 255, 0, 0.02);
    box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.06);
}

.swoo-pwyw-min-note {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 8px;
    padding-left: 4px;
}

/* Submit Button */
.swoo-pwyw-submit {
    width: 100%;
    background: linear-gradient(135deg, #c8ff00 0%, #a8e600 100%);
    border: none;
    border-radius: 14px;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.swoo-pwyw-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 255, 0, 0.25);
}

.swoo-pwyw-submit:active {
    transform: translateY(0);
}

.swoo-pwyw-submit.loading {
    opacity: 0.8;
    pointer-events: none;
}

.swoo-pwyw-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.swoo-pwyw-submit:hover::before {
    left: 100%;
}

/* Footer / Trust */
.swoo-pwyw-footer {
    margin-top: 20px;
    text-align: center;
}

.swoo-pwyw-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.swoo-pwyw-trust svg {
    stroke: rgba(255, 255, 255, 0.3);
}

/* Error State */
.swoo-pwyw-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #ff6b6b;
    display: none;
    text-align: center;
}

.swoo-pwyw-error.visible {
    display: block;
    animation: shakeError 0.4s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Responsive */
@media (max-width: 520px) {
    .swoo-pwyw-card {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .swoo-pwyw-title {
        font-size: 24px;
    }

    .swoo-pwyw-presets {
        grid-template-columns: repeat(2, 1fr);
    }

    .swoo-pwyw-input {
        font-size: 20px;
    }
}

/* Page-level overrides — hide WP header/footer chrome for clean look */
body.page-template-default.scalewoo-pwyw-page .site-header,
body.page-template-default.scalewoo-pwyw-page .site-footer {
    /* Keep them visible but subtle */
}
