/**
 * Woo Popup Checkout - Frontend Styles
 */

/* CSS Variables - Releaseit Style */
:root {
    --wpc-primary: #ff6b35;
    /* Vibrant coral/orange */
    --wpc-primary-hover: #ff5722;
    /* Darker on hover */
    --wpc-success: #10b981;
    /* Modern green */
    --wpc-border: #e5e7eb;
    /* Light gray border */
    --wpc-text: #1f2937;
    /* Dark gray text */
    --wpc-text-light: #6b7280;
    /* Medium gray */
    --wpc-bg: #f9fafb;
    /* Very light gray bg */
    --wpc-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --wpc-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --wpc-radius: 12px;
    /* Modern border radius */
}

/* Buy Now Button - Releaseit Style */
.wpc-buy-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    text-transform: none;
    letter-spacing: 0.3px;
    border-radius: var(--wpc-radius);
    box-shadow: var(--wpc-shadow);
}

.wpc-buy-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--wpc-shadow-lg);
}

.wpc-buy-now-btn:active {
    transform: translateY(-1px);
}

/* Popup Overlay */
.wpc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* Popup Container - ALWAYS LIGHT MODE - Releaseit Style */
.wpc-popup-container {
    background: #fff !important;
    color: #333 !important;
    width: 100%;
    max-width: 520px;
    /* Releaseit-style max width */
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: var(--wpc-shadow-lg);
    animation: wpcSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color-scheme: light !important;
    border-radius: var(--wpc-radius);
}

.wpc-popup-container *,
.wpc-popup-container *::before,
.wpc-popup-container *::after {
    color-scheme: light !important;
}

.wpc-popup-container input:not(.wpc-quantity-input),
.wpc-popup-container select,
.wpc-popup-container textarea,
.wpc-popup-container button:not(.wpc-place-order-btn):not(.wpc-apply-coupon-btn):not(.wpc-qty-btn) {
    background-color: #fff !important;
    color: #333 !important;
    border-color: #e1e5e9 !important;
}

.wpc-popup-container .wpc-quantity-controls {
    background: #eee !important;
}

.wpc-popup-container .wpc-qty-btn {
    background: transparent !important;
    color: #333 !important;
}

@keyframes wpcSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Popup Header - Uses Dashboard Settings */
.wpc-popup-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    /* background-color is set by PHP inline style */
}

.wpc-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--wpc-popup-header-text, #ffffff) !important;
    letter-spacing: 0.3px;
}

.wpc-popup-close {
    background: transparent !important;
    border: none !important;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wpc-popup-header-text, #ffffff) !important;
    border-radius: 8px;
}

.wpc-popup-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1);
}

/* Popup Content */
.wpc-popup-content {
    padding: 0;
    background: #fff !important;
}

/* Loading State */
.wpc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #fff !important;
}

.wpc-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--wpc-border);
    border-top-color: var(--wpc-primary);
    border-radius: 50%;
    animation: wpcSpin 0.8s linear infinite;
}

@keyframes wpcSpin {
    to {
        transform: rotate(360deg);
    }
}

.wpc-loading p {
    margin-top: 15px;
    color: var(--wpc-text-light);
    font-size: 14px;
}

/* Checkout Form */
.wpc-checkout-form {
    padding: 0;
    background: #fff !important;
}

/* Section Styles - Releaseit Modern */
.wpc-section {
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
    background: #fff !important;
}

.wpc-section:last-of-type {
    border-bottom: none;
}

.wpc-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--wpc-text);
    margin: 0 0 16px 0;
    padding-bottom: 0;
    border-bottom: none;
}

.wpc-section-icon {
    font-size: 18px;
    color: var(--wpc-primary);
}

/* ========================================
   URGENCY COUNTDOWN TIMER - PROFESSIONAL DESIGN
   Supports: minimal, blocks, glassmorphism styles
   ======================================== */
.wpc-urgency-timer {
    --timer-font-size: 24px;
    margin: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Pulse Animation */
.wpc-urgency-timer.wpc-timer-pulse {
    animation: wpcTimerGlow 2s ease-in-out infinite;
}

@keyframes wpcTimerGlow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 4px 30px rgba(255, 107, 53, 0.5), 0 0 20px rgba(255, 107, 53, 0.3);
    }
}

.wpc-timer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 24px;
}

/* Timer Icon */
.wpc-timer-icon {
    font-size: 28px;
    animation: wpcIconBounce 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes wpcIconBounce {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(-5deg);
    }

    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Timer Message */
.wpc-timer-message {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Timer Countdown Container */
.wpc-timer-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Time Block Design */
.wpc-time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 14px;
    min-width: 54px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.wpc-time-value {
    font-size: var(--timer-font-size);
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'SF Mono', 'Courier New', monospace;
}

.wpc-time-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    margin-top: 4px;
}

/* Timer Separator */
.wpc-timer-separator {
    font-size: calc(var(--timer-font-size) * 0.9);
    font-weight: 800;
    animation: wpcBlink 1s step-end infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes wpcBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Progress Bar */
.wpc-timer-progress {
    height: 4px;
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.wpc-timer-progress-bar {
    height: 100%;
    transition: width 1s linear;
    width: 100%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: relative;
}

.wpc-timer-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: wpcShimmer 2s infinite;
}

@keyframes wpcShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   TIMER STYLE: MINIMAL
   ======================================== */
.wpc-timer-style-minimal .wpc-time-block {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 8px;
    min-width: auto;
    backdrop-filter: none;
}

.wpc-timer-style-minimal .wpc-timer-countdown {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 18px;
    border-radius: 30px;
}

.wpc-timer-style-minimal .wpc-time-value {
    font-size: calc(var(--timer-font-size) * 0.85);
}

/* ========================================
   TIMER STYLE: BLOCKS (Default - Premium)
   ======================================== */
.wpc-timer-style-blocks .wpc-time-block {
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    min-width: 60px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wpc-timer-style-blocks .wpc-time-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ========================================
   TIMER STYLE: GLASSMORPHISM
   ======================================== */
.wpc-timer-style-glassmorphism {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wpc-timer-style-glassmorphism .wpc-time-block {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.wpc-timer-style-glassmorphism .wpc-timer-progress {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   SHADOW INTENSITY LEVELS
   ======================================== */
/* No shadow when disabled */
.wpc-urgency-timer:not(.wpc-timer-shadow) {
    box-shadow: none;
}

/* Light shadow */
.wpc-urgency-timer.wpc-shadow-light {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wpc-urgency-timer.wpc-shadow-light.wpc-timer-pulse {
    animation: wpcTimerGlowLight 2s ease-in-out infinite;
}

@keyframes wpcTimerGlowLight {

    0%,
    100% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
}

/* Medium shadow (default) */
.wpc-urgency-timer.wpc-shadow-medium {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.wpc-urgency-timer.wpc-shadow-medium.wpc-timer-pulse {
    animation: wpcTimerGlow 2s ease-in-out infinite;
}

/* Strong shadow */
.wpc-urgency-timer.wpc-shadow-strong {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.35);
}

.wpc-urgency-timer.wpc-shadow-strong.wpc-timer-pulse {
    animation: wpcTimerGlowStrong 2s ease-in-out infinite;
}

@keyframes wpcTimerGlowStrong {

    0%,
    100% {
        box-shadow: 0 8px 35px rgba(0, 0, 0, 0.35);
    }

    50% {
        box-shadow: 0 10px 50px rgba(255, 107, 53, 0.6), 0 0 30px rgba(255, 107, 53, 0.4);
    }
}

/* ========================================
   ANIMATION TOGGLE CLASSES
   ======================================== */
/* Disable icon animation */
.wpc-urgency-timer.wpc-no-icon-animation .wpc-timer-icon {
    animation: none;
}

/* Disable shimmer effect on progress bar */
.wpc-urgency-timer.wpc-no-shimmer .wpc-timer-progress-bar::after {
    display: none;
}

/* Disable blink animation on separator */
.wpc-urgency-timer.wpc-no-blink .wpc-timer-separator {
    animation: none;
    opacity: 1;
}

/* ========================================
   TIME BLOCK SHADOW LEVELS
   ======================================== */
/* No block shadow */
.wpc-urgency-timer:not(.wpc-block-shadow) .wpc-time-block {
    box-shadow: none;
}

/* Block shadow - None */
.wpc-urgency-timer.wpc-block-shadow-none .wpc-time-block {
    box-shadow: none;
}

/* Block shadow - Light */
.wpc-urgency-timer.wpc-block-shadow-light .wpc-time-block {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Block shadow - Medium */
.wpc-urgency-timer.wpc-block-shadow-medium .wpc-time-block {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Block shadow - Strong */
.wpc-urgency-timer.wpc-block-shadow-strong .wpc-time-block {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ========================================
   TIMER EXPIRED STATE
   ======================================== */
.wpc-urgency-timer.wpc-timer-expired {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    animation: wpcExpiredPulse 0.5s ease, wpcExpiredFlash 1s infinite;
}

@keyframes wpcExpiredPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes wpcExpiredFlash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }
}

.wpc-timer-expired .wpc-timer-message {
    font-size: 16px;
    font-weight: 800;
    animation: wpcTextPulse 1s infinite;
}

@keyframes wpcTextPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.wpc-timer-expired .wpc-timer-countdown {
    display: none;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .wpc-urgency-timer {
        margin: 12px;
        --timer-font-size: 20px;
    }

    .wpc-timer-content {
        padding: 14px 18px;
        gap: 10px;
    }

    .wpc-timer-icon {
        font-size: 22px;
    }

    .wpc-timer-message {
        font-size: 13px;
        text-align: center;
        width: 100%;
    }

    .wpc-time-block {
        padding: 6px 10px;
        min-width: 46px;
    }

    .wpc-time-label {
        font-size: 9px;
    }

    .wpc-timer-style-minimal .wpc-timer-countdown {
        padding: 8px 14px;
    }
}

/* ========================================
   PRODUCT SUMMARY - RELEASEIT STYLE CARD
   ======================================== */
.wpc-product-summary {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fafbfc !important;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #f0f1f3;
}

.wpc-product-image {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
}

.wpc-product-image img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--wpc-border);
    background: #fff;
    display: block;
}

.wpc-product-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpc-product-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--wpc-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpc-variation-attributes {
    margin: 0;
}

.wpc-variation-attr {
    display: inline-block;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 4px;
    color: #555;
}

/* Variable Options */
.wpc-variable-options {
    margin: 6px 0 0;
}

.wpc-attribute-row {
    margin-bottom: 10px;
}

.wpc-attribute-row label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--wpc-text);
}

.wpc-attribute-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--wpc-border) !important;
    border-radius: 8px;
    font-size: 14px;
    background: #fff !important;
}

/* ========================================
   QUANTITY + PRICE ROW - COMPACT DESIGN
   ======================================== */
.wpc-price-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

/* Quantity Controls - COMPACT PILL */
.wpc-quantity-controls {
    display: inline-flex;
    align-items: center;
    background: #eef0f2 !important;
    border-radius: 6px;
    overflow: hidden;
    height: 28px;
    border: 1px solid #ddd !important;
}

.wpc-qty-btn {
    width: 28px;
    height: 28px;
    border: none !important;
    background: transparent !important;
    color: #333 !important;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.wpc-qty-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
}

.wpc-qty-btn:active {
    background: rgba(0, 0, 0, 0.12) !important;
}

.wpc-quantity-input {
    width: 32px;
    height: 28px;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #333 !important;
    background: #fff !important;
    padding: 0;
    -moz-appearance: textfield;
    appearance: textfield;
    border-radius: 0 !important;
}

.wpc-quantity-input::-webkit-outer-spin-button,
.wpc-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Product Price - Bold & Prominent */
.wpc-product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--wpc-success);
    margin: 0;
    white-space: nowrap;
}

.wpc-product-price del {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    margin-right: 6px;
}

.wpc-product-price ins {
    text-decoration: none;
}

/* Billing Fields - Modern Clean Design */

/* ========================================
   FIELD ICON - INSIDE INPUT (PROFESSIONAL)
   ======================================== */
.wpc-icon-field-wrap {
    position: relative;
}

.wpc-icon-field-wrap .wpc-field-icon {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px 0 0 10px;
    font-size: 14px;
    z-index: 2;
    pointer-events: none;
    transition: background 0.3s ease;
}

/* When focused, slightly darken the icon bg */
.wpc-icon-field-wrap:focus-within .wpc-field-icon {
    background: rgba(0, 0, 0, 0.12);
}

.wpc-icon-field-wrap .form-row input,
.wpc-icon-field-wrap .form-row textarea {
    padding-left: 52px !important;
    height: 44px;
}

.wpc-icon-field-wrap .form-row select {
    padding-left: 52px !important;
    height: 44px;
}

.wpc-icon-field-wrap .form-row .select2-container .select2-selection--single {
    height: 44px;
    padding-left: 40px;
    border-radius: 10px;
}

.wpc-icon-field-wrap .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 12px !important;
}

.wpc-icon-field-wrap .form-row .select2-container .select2-selection--single .select2-selection__arrow {
    height: 42px;
}

.wpc-billing-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.wpc-billing-fields .form-row {
    margin: 0;
    width: 100%;
    min-width: 0;
}

/* Icon-wrapped fields should respect grid */
.wpc-billing-fields .wpc-icon-field-wrap {
    min-width: 0;
}

.wpc-billing-fields .form-row-wide,
.wpc-billing-fields .form-row-first,
.wpc-billing-fields .form-row-last {
    width: 100%;
}

.wpc-billing-fields .form-row label {
    display: block;
    font-size: var(--wpc-label-size, 12px);
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wpc-billing-fields .form-row label .required {
    color: #e74c3c;
    font-weight: 700;
}

.wpc-billing-fields .form-row label .optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 11px;
    text-transform: none;
}

.wpc-billing-fields .form-row input,
.wpc-billing-fields .form-row select,
.wpc-billing-fields .form-row textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box !important;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.25s ease;
    background: #fff !important;
    color: #333 !important;
}

.wpc-billing-fields .form-row input:focus,
.wpc-billing-fields .form-row select:focus,
.wpc-billing-fields .form-row textarea:focus {
    outline: none;
    border-color: var(--wpc-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.wpc-billing-fields .form-row.woocommerce-invalid input,
.wpc-billing-fields .form-row.woocommerce-invalid select {
    border-color: #ef4444 !important;
}

/* Full width fields */
.wpc-billing-fields .form-row-wide {
    grid-column: 1 / -1;
}

/* Select2 Overrides */
.wpc-billing-fields .select2-container {
    width: 100% !important;
}

.wpc-billing-fields .select2-container .select2-selection--single {
    height: 44px;
    border: 1px solid var(--wpc-border) !important;
    border-radius: 6px;
    background: #fff !important;
}

.wpc-billing-fields .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 14px;
    color: #333 !important;
}

.wpc-billing-fields .select2-container .select2-selection--single .select2-selection__arrow {
    height: 42px;
}

/* Shipping Methods - Modern Cards */
.wpc-shipping-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpc-shipping-item {
    margin-bottom: 12px;
}

.wpc-shipping-item label {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff !important;
}

.wpc-shipping-item label:hover {
    border-color: var(--wpc-primary);
    background: #fff8f6 !important;
}

.wpc-shipping-item input:checked+.wpc-shipping-label {
    color: var(--wpc-primary);
    font-weight: 700;
}

.wpc-shipping-item input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.wpc-shipping-label {
    flex: 1;
    font-size: 14px;
}

.wpc-shipping-cost {
    font-weight: 700;
    color: var(--wpc-text);
}

.wpc-no-shipping {
    padding: 16px;
    background: #fef3c7 !important;
    border-radius: 10px;
    color: #92400e !important;
    font-size: 14px;
}

/* Payment Methods - Clean Modern Cards */
.wpc-payment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpc-payment-item {
    margin-bottom: 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    background: #fff !important;
}

.wpc-payment-item:hover,
.wpc-payment-item.wpc-payment-selected {
    border-color: var(--wpc-primary);
    background: #fff8f6 !important;
}

.wpc-payment-label {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
}

.wpc-payment-label input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}

.wpc-payment-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.wpc-payment-icon {
    margin-left: 10px;
}

.wpc-payment-icon img {
    max-height: 28px;
    width: auto;
}

.wpc-payment-fields {
    padding: 16px;
    background: #fafbfc !important;
    border-top: 1px solid #f0f1f3;
}

.wpc-payment-desc {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--wpc-text-light);
}

.wpc-payment-fields input,
.wpc-payment-fields select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 12px;
    background: #fff !important;
    color: #333 !important;
}

.wpc-no-payment {
    padding: 16px;
    background: #fee2e2 !important;
    border-radius: 10px;
    color: #991b1b !important;
    font-size: 14px;
}

/* Order Summary Container - Clean Design */
.wpc-order-totals {
    background: transparent;
    border: none;
    padding: 0;
}

.wpc-totals-section {
    border: none !important;
}

/* Order Totals */
.wpc-totals-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.wpc-totals-table tr {
    border: none;
    border-bottom: 1px solid #f0f1f3;
}

.wpc-totals-table tr:last-child {
    border-bottom: 2px solid #e5e7eb;
}

.wpc-totals-table th,
.wpc-totals-table td {
    padding: 14px 0;
    font-size: 14px;
    border: none;
}

.wpc-totals-table th {
    text-align: left;
    font-weight: 500;
    color: var(--wpc-text-light);
}

.wpc-totals-table td {
    text-align: right;
    font-weight: 500;
}

.wpc-order-total th,
.wpc-order-total td {
    font-size: 18px;
    font-weight: 700;
    color: var(--wpc-text);
    padding-top: 15px;
}

.wpc-coupon-row td a {
    color: #e74c3c;
    text-decoration: none;
    margin-left: 8px;
    font-weight: 700;
}

/* Coupon Form */
.wpc-coupon-form {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping on mobile */
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--wpc-border);
}

.wpc-coupon-input {
    flex: 1;
    min-width: 0;
    /* Allow input to shrink on mobile */
    padding: 12px 14px;
    border: 1px solid var(--wpc-border) !important;
    border-radius: 6px;
    font-size: 14px;
    background: #fff !important;
    color: #333 !important;
}

.wpc-apply-coupon-btn {
    flex-shrink: 0;
    /* Prevent button from shrinking */
    padding: 12px 20px;
    background: var(--wpc-place-color) !important;
    color: var(--wpc-place-text-color) !important;
    border: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
    /* Keep button text on one line */
}

.wpc-apply-coupon-btn:hover {
    background: var(--wpc-place-hover-color) !important;
}

/* Popup Footer */
.wpc-popup-footer {
    padding: 20px 24px;
    background: #fff !important;
    border-top: 2px solid var(--wpc-border);
}

.wpc-error-messages {
    margin-bottom: 15px;
}

.wpc-error-messages:empty {
    display: none;
}

.wpc-error-messages p,
.wpc-error-messages li {
    background: #f8d7da !important;
    color: #721c24 !important;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
    list-style: none;
}

.wpc-place-order-btn {
    width: 100%;
    padding: 18px 28px;
    /* background and color set by PHP inline style */
    border: none !important;
    border-radius: var(--wpc-radius);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: var(--wpc-shadow);
}

.wpc-place-order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.wpc-place-order-btn:disabled {
    background: #d1d5db !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wpc-place-order-btn .wpc-btn-total {
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.wpc-secure-notice {
    text-align: center;
    margin: 12px 0 0 0;
    font-size: 12px;
    color: var(--wpc-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.wpc-secure-notice .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Success Message */
.wpc-success-message {
    text-align: center;
    padding: 60px 30px;
    background: #fff !important;
}

.wpc-success-icon {
    width: 80px;
    height: 80px;
    background: var(--wpc-success) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: wpcSuccessPop 0.5s ease;
}

@keyframes wpcSuccessPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.wpc-success-icon svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.wpc-success-message h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: var(--wpc-text);
}

.wpc-success-message p {
    font-size: 16px;
    color: var(--wpc-text-light);
    margin: 0 0 25px 0;
}

.wpc-success-message .wpc-order-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--wpc-primary);
    margin-bottom: 25px;
}

.wpc-success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.wpc-success-actions a {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.wpc-success-actions .wpc-btn-primary {
    background: var(--wpc-primary) !important;
    color: #fff !important;
}

.wpc-success-actions .wpc-btn-secondary {
    background: var(--wpc-bg) !important;
    color: var(--wpc-text) !important;
    border: 2px solid var(--wpc-border);
}

/* ========================================
   MOBILE RESPONSIVE - SAME DESIGN
   ======================================== */
@media (max-width: 768px) {
    .wpc-popup-overlay {
        padding: 15px;
        /* Show background page */
        align-items: flex-start;
    }

    .wpc-popup-container {
        max-height: calc(100vh - 30px);
        /* Account for 15px top + bottom padding */
    }

    .wpc-popup-header h3 {
        font-size: 18px;
    }

    .wpc-section {
        padding: 14px 16px;
    }

    /* Mobile Product Summary - Same compact row */
    .wpc-product-summary {
        gap: 12px;
        padding: 14px 16px;
    }

    .wpc-product-image {
        width: 50px;
        height: 50px;
    }

    .wpc-product-image img {
        width: 50px;
        height: 50px;
        border-radius: 6px;
    }

    .wpc-product-title {
        font-size: 13px;
    }

    .wpc-product-price {
        font-size: 14px;
    }

    /* Quantity - slightly smaller on mobile */
    .wpc-quantity-controls {
        height: 26px;
    }

    .wpc-qty-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .wpc-quantity-input {
        width: 28px;
        height: 26px;
        font-size: 12px;
    }

    .wpc-billing-fields {
        grid-template-columns: 1fr;
    }

    .wpc-popup-footer {
        padding: 14px 16px;
    }

    .wpc-place-order-btn {
        font-size: 16px;
        padding: 14px 18px;
    }

    .wpc-success-actions {
        flex-direction: column;
    }

    .wpc-success-actions a {
        width: 100%;
        text-align: center;
    }
}

/* RTL Support */
[dir="rtl"] .wpc-product-summary {
    flex-direction: row-reverse;
}

[dir="rtl"] .wpc-billing-fields .form-row label {
    text-align: right;
}

[dir="rtl"] .wpc-totals-table th {
    text-align: right;
}

[dir="rtl"] .wpc-totals-table td {
    text-align: left;
}

/* Accessibility */
.wpc-buy-now-btn:focus,
.wpc-place-order-btn:focus,
.wpc-popup-close:focus {
    outline: 2px solid var(--wpc-primary);
    outline-offset: 2px;
}

.wpc-billing-fields .form-row input:focus,
.wpc-billing-fields .form-row select:focus {
    outline: none;
}

/* Print Styles */
@media print {
    .wpc-popup-overlay {
        display: none !important;
    }

}

/* Order Bump */
/* Order Bump - Logic like Product Summary */
/* Order Bump - Premium Card Design */
/* Order Bump - Blue Box Design (Screenshot Match) */
/* Order Bump - Blue Box Design (Screenshot Match) */
.wpc-order-bump-box {
    margin: 15px 0;
    padding: 15px;
    background-color: #e1f5fe;
    /* Light Blue */
    border: none;
    /* Border removed as requested */
    border-radius: 0;
    /* Square edges as requested */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    transition: all 0.2s ease;
}

.wpc-order-bump-box:hover {
    box-shadow: 0 2px 8px rgba(3, 155, 229, 0.15);
}

.wpc-order-bump-box.wpc-processing {
    opacity: 0.6;
    pointer-events: none;
}

/* 1. Checkbox Column */
.wpc-bump-checkbox-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix: Use native checkbox for reliability, styled with accent-color */
.wpc-order-bump-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    accent-color: #039be5;
    /* Match blue border */
}

/* 2. Content Column */
.wpc-bump-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.wpc-bump-title {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
    margin: 0;
}

.wpc-bump-title strong {
    font-weight: 700;
    color: #000;
}

.wpc-bump-old-price {
    text-decoration: line-through;
    color: #78909c;
    font-size: 13px;
    margin-right: 5px;
}

.wpc-bump-new-price {
    color: #d32f2f;
    /* Red for Sale Price */
    font-weight: 700;
    font-size: 15px;
}

.wpc-bump-desc {
    font-size: 13px;
    color: #546e7a;
    margin: 0;
    line-height: 1.4;
}

/* 3. Image Column */
.wpc-bump-image-col {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
}

.wpc-bump-image-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    /* Square edges for image too */
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}