/* ============================================
   WC Landing Checkout - Premium Styles v3
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&family=Cairo:wght@400;500;700;800&display=swap');

:root {
    --wclc-primary: #e94560;
    --wclc-primary-dark: #c81e45;
    --wclc-bg-light: #f8f9fa;
    --wclc-text-dark: #1a1a2e;
    --wclc-text-muted: #6c757d;
    --wclc-border: #e0e0e0;
    --wclc-success: #28a745;
    --wclc-error: #dc3545;
    --wclc-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --wclc-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --wclc-radius: 16px;
    --wclc-radius-sm: 10px;
    --wclc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Wrapper === */
.wclc-landing-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

/* === Editor Notice === */
.wclc-editor-notice {
    padding: 20px;
    background: #fff3cd;
    border: 2px dashed #ffc107;
    border-radius: var(--wclc-radius-sm);
    text-align: center;
    font-size: 16px;
    color: #856404;
    margin: 10px 0;
}

/* === Product Info === */
.wclc-product-info {
    background: #fff;
    border-radius: var(--wclc-radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--wclc-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--wclc-transition);
    overflow: hidden;
}

.wclc-product-info:hover {
    box-shadow: var(--wclc-shadow-lg);
}

.wclc-product-image {
    text-align: center;
    margin-bottom: 20px;
}

.wclc-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--wclc-radius-sm);
    object-fit: cover;
}

.wclc-product-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--wclc-text-dark);
    margin: 0 0 12px;
    line-height: 1.3;
}

.wclc-product-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--wclc-primary);
    margin-bottom: 12px;
}

.wclc-product-price del {
    font-size: 18px;
    color: var(--wclc-text-muted);
    font-weight: 400;
    margin: 0 8px;
}

.wclc-product-price ins {
    text-decoration: none;
}

.wclc-product-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--wclc-text-muted);
}

/* === Cart Section === */
.wclc-cart-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf4 100%);
    border-radius: var(--wclc-radius-sm);
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.wclc-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wclc-cart-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
}

.wclc-cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wclc-cart-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wclc-cart-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--wclc-text-dark);
}

.wclc-cart-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--wclc-primary);
}

/* === Checkout Form Wrapper === */
.wclc-checkout-form-wrapper {
    background: #fff;
    border-radius: var(--wclc-radius);
    padding: 32px;
    box-shadow: var(--wclc-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.wclc-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--wclc-text-dark);
    text-align: center;
    margin: 0 0 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--wclc-bg-light);
}

/* === Form Groups === */
.wclc-form-row {
    margin-bottom: 18px;
}

.wclc-form-group {
    width: 100%;
}

.wclc-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--wclc-text-dark);
    margin-bottom: 8px;
}

.wclc-icon {
    margin: 0 4px;
}

.wclc-required {
    color: var(--wclc-primary);
}

.wclc-form-group input[type="text"],
.wclc-form-group input[type="tel"],
.wclc-form-group input[type="email"],
.wclc-form-group select {
    width: 100%;
    padding: 0px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--wclc-border);
    border-radius: var(--wclc-radius-sm);
    background: var(--wclc-bg-light);
    color: var(--wclc-text-dark);
    transition: var(--wclc-transition);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    height: 52px;
}

.wclc-form-group input:focus,
.wclc-form-group select:focus {
    border-color: var(--wclc-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

.wclc-form-group input.wclc-error,
.wclc-form-group select.wclc-error {
    border-color: var(--wclc-error);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* === City Select Fix === */
.wclc-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.wclc-select-wrapper select {
    width: 100%;
    height: 52px;
    cursor: pointer;
    background-image: none !important;
    font-size: 15px;
    color: var(--wclc-text-dark);
    background-color: var(--wclc-bg-light);
    border: 2px solid var(--wclc-border);
    border-radius: var(--wclc-radius-sm);
}

.wclc-select-wrapper select:focus {
    border-color: var(--wclc-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

.wclc-select-wrapper select option {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--wclc-text-dark);
    background: #fff;
}

/* === Quantity === */
.wclc-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 180px;
}

.wclc-qty-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--wclc-border);
    background: var(--wclc-bg-light);
    font-size: 20px;
    font-weight: 700;
    color: var(--wclc-text-dark);
    cursor: pointer;
    transition: var(--wclc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.wclc-qty-minus {
    border-radius: 0 var(--wclc-radius-sm) var(--wclc-radius-sm) 0;
    border-left: none;
}

.wclc-qty-plus {
    border-radius: var(--wclc-radius-sm) 0 0 var(--wclc-radius-sm);
    border-right: none;
}

[dir="ltr"] .wclc-qty-minus {
    border-radius: var(--wclc-radius-sm) 0 0 var(--wclc-radius-sm);
    border-right: none;
    border-left: 2px solid var(--wclc-border);
}

[dir="ltr"] .wclc-qty-plus {
    border-radius: 0 var(--wclc-radius-sm) var(--wclc-radius-sm) 0;
    border-left: none;
    border-right: 2px solid var(--wclc-border);
}

.wclc-qty-btn:hover {
    background: var(--wclc-primary);
    color: #fff;
    border-color: var(--wclc-primary);
}

.wclc-qty-wrapper input[type="number"] {
    width: 60px;
    height: 48px;
    text-align: center;
    border: 2px solid var(--wclc-border);
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    -moz-appearance: textfield;
    background: #fff;
    padding: 0;
    box-sizing: border-box;
}

.wclc-qty-wrapper input[type="number"]::-webkit-outer-spin-button,
.wclc-qty-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==============================
   QUANTITY BREAKS / OFFERS
   ============================== */
.wclc-offers-section {
    margin-bottom: 24px;
}

.wclc-offers-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--wclc-text-dark);
    margin: 0 0 14px;
    text-align: center;
}

.wclc-offers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wclc-offer-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--wclc-border);
    border-radius: var(--wclc-radius-sm);
    cursor: pointer;
    transition: var(--wclc-transition);
    background: #fff;
}

.wclc-offer-item:hover {
    border-color: var(--wclc-primary);
    background: #fff5f6;
}

.wclc-offer-item.wclc-offer-active {
    border-color: var(--wclc-primary);
    background: #fff5f6;
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.wclc-offer-item input[type="radio"] {
    display: none;
}

.wclc-offer-radio {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--wclc-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--wclc-transition);
}

.wclc-offer-item.wclc-offer-active .wclc-offer-radio {
    border-color: var(--wclc-primary);
}

.wclc-offer-item.wclc-offer-active .wclc-offer-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--wclc-primary);
}

.wclc-offer-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.wclc-offer-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--wclc-text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wclc-offer-desc {
    font-size: 13px;
    color: var(--wclc-text-muted);
}

.wclc-offer-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--wclc-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wclc-offer-old-price {
    font-size: 13px;
    color: var(--wclc-text-muted);
    font-weight: 400;
    text-decoration: line-through;
}

.wclc-offer-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--wclc-primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

[dir="ltr"] .wclc-offer-badge {
    right: auto;
    left: 12px;
}

/* --- Style 2: Grid Cards --- */
.wclc-offers-style-2 .wclc-offers-list {
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.wclc-offers-style-2 .wclc-offer-item {
    flex-direction: column;
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 24px 12px 16px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid var(--wclc-border);
}

.wclc-offers-style-2 .wclc-offer-radio {
    display: none;
    /* Hide radio in card design */
}

.wclc-offers-style-2 .wclc-offer-item.wclc-offer-active {
    background: #fff;
    border-color: var(--wclc-text-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wclc-offers-style-2 .wclc-offer-content {
    align-items: center;
    gap: 6px;
}

.wclc-offers-style-2 .wclc-offer-label {
    flex-direction: column;
    justify-content: center;
    font-size: 16px;
    white-space: pre-wrap;
}

.wclc-offers-style-2 .wclc-offer-price {
    font-size: 15px;
    color: var(--wclc-text-dark);
    font-weight: 700;
    justify-content: center;
    flex-direction: column-reverse;
    gap: 2px;
}

.wclc-offers-style-2 .wclc-offer-old-price {
    font-size: 12px;
    display: block;
}

.wclc-offers-style-2 .wclc-offer-badge {
    bottom: -10px;
    top: auto;
    right: 50%;
    transform: translateX(50%);
    background: var(--wclc-text-dark);
}

.wclc-offers-style-2 .wclc-offer-icon {
    font-size: 32px;
    color: var(--wclc-text-muted);
    margin-bottom: 8px;
    font-weight: 300;
    display: block;
}

/* --- Style 3: Neon Stacked --- */
.wclc-offers-style-3 .wclc-offer-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.wclc-offers-style-3 .wclc-offer-item:hover,
.wclc-offers-style-3 .wclc-offer-item.wclc-offer-active {
    border-color: #f72585;
    /* Neon Pink */
    background: #fdf5f9;
}

.wclc-offers-style-3 .wclc-offer-active .wclc-offer-radio {
    border-color: #f72585;
}

.wclc-offers-style-3 .wclc-offer-active .wclc-offer-radio::after {
    background: #f72585;
}

.wclc-offers-style-3 .wclc-offer-badge {
    background: #f72585;
    border-radius: 4px;
    border-bottom-right-radius: 0;
    left: auto;
    right: 20px;
    top: -14px;
}

.wclc-offers-style-3 .wclc-offer-price-container {
    text-align: right;
    margin-left: auto;
}

[dir="rtl"] .wclc-offers-style-3 .wclc-offer-price-container {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.wclc-offers-style-3 .wclc-offer-price {
    font-size: 20px;
    color: #111;
    float: right;
    padding-bottom: 4px;
}

[dir="rtl"] .wclc-offers-style-3 .wclc-offer-price {
    float: left;
}

.wclc-offers-style-3 .wclc-offer-old-price {
    float: right;
    clear: both;
    font-size: 14px;
}

[dir="rtl"] .wclc-offers-style-3 .wclc-offer-old-price {
    float: left;
}

/* --- Style 4: Minimal Pills --- */
.wclc-offers-style-4 .wclc-offers-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.wclc-offers-style-4 .wclc-offer-item {
    flex: 1;
    min-width: 120px;
    flex-direction: column;
    border-radius: 50px;
    padding: 10px 16px;
    border: 2px solid var(--wclc-bg-light);
    background: var(--wclc-bg-light);
    text-align: center;
    gap: 4px;
}

.wclc-offers-style-4 .wclc-offer-radio {
    display: none;
}

.wclc-offers-style-4 .wclc-offer-item.wclc-offer-active {
    background: var(--wclc-primary);
    border-color: var(--wclc-primary);
}

.wclc-offers-style-4 .wclc-offer-label {
    font-size: 15px;
    color: var(--wclc-text-muted);
    justify-content: center;
    font-weight: 700;
}

.wclc-offers-style-4 .wclc-offer-active .wclc-offer-label {
    color: #fff;
}

.wclc-offers-style-4 .wclc-offer-price {
    justify-content: center;
    color: var(--wclc-text-dark);
    font-size: 15px;
}

.wclc-offers-style-4 .wclc-offer-active .wclc-offer-price {
    color: #fff;
}

.wclc-offers-style-4 .wclc-offer-badge {
    display: none;
}


/* === Order Summary === */
.wclc-order-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--wclc-radius-sm);
    padding: 20px;
    margin: 24px 0;
    border: 1px solid var(--wclc-border);
}

.wclc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--wclc-text-muted);
}

.wclc-summary-row+.wclc-summary-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wclc-summary-total {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid var(--wclc-primary) !important;
}

.wclc-summary-total .wclc-summary-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--wclc-text-dark);
}

.wclc-summary-total .wclc-summary-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--wclc-primary);
}

.wclc-payment-method {
    justify-content: center;
    padding-top: 12px;
}

.wclc-cod-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

/* === Submit Button === */
.wclc-submit-btn {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: var(--wclc-radius-sm);
    background: var(--wclc-primary);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--wclc-transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.wclc-submit-btn:hover {
    transform: translateY(-2px);
}

.wclc-submit-btn:active {
    transform: translateY(0);
}

.wclc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* === Spinner === */
.wclc-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wclc-spin 0.8s linear infinite;
    vertical-align: middle;
    margin: 0 8px;
}

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

/* === Messages === */
.wclc-form-message {
    padding: 14px 20px;
    border-radius: var(--wclc-radius-sm);
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    animation: wclc-fadeIn 0.3s ease;
}

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

.wclc-form-message.wclc-msg-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes wclc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Trust Badges === */
.wclc-trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--wclc-border);
}

.wclc-trust-badges span {
    font-size: 12px;
    color: var(--wclc-text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* ==============================
   CTA BUTTON WIDGET
   ============================== */
.wclc-cta-wrapper {
    padding: 10px 0;
}

.wclc-cta-btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    transition: var(--wclc-transition);
    letter-spacing: 0.5px;
}

.wclc-cta-small {
    padding: 12px 28px;
    font-size: 15px;
}

.wclc-cta-medium {
    padding: 16px 40px;
    font-size: 17px;
}

.wclc-cta-large {
    padding: 20px 52px;
    font-size: 20px;
}

.wclc-cta-full {
    width: 100%;
    padding: 20px;
    font-size: 20px;
}

.wclc-cta-btn:hover {
    transform: translateY(-2px);
}

.wclc-cta-btn:active {
    transform: translateY(0);
}

/* CTA Pulse Animation */
.wclc-cta-pulse {
    animation: wclc-cta-pulse-anim 2s infinite;
}

@keyframes wclc-cta-pulse-anim {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

.wclc-cta-pulse:hover {
    animation: none;
    transform: translateY(-2px);
}

/* === Responsive === */
@media (max-width: 768px) {
    .wclc-landing-wrapper {
        padding: 0 12px;
    }

    .wclc-product-info,
    .wclc-checkout-form-wrapper {
        padding: 20px;
        border-radius: 12px;
    }

    .wclc-product-title {
        font-size: 20px;
    }

    .wclc-product-price {
        font-size: 24px;
    }

    .wclc-submit-btn {
        padding: 25px;
        font-size: 16px;
    }

    .wclc-trust-badges {
        align-items: center;
        gap: 8px;
    }

    .wclc-offer-item {
        padding: 12px;
    }
}

/* === Animations === */
@keyframes wclc-shake {

    0%,
    100% {
        transform: translateX(0)
    }

    25% {
        transform: translateX(-8px)
    }

    50% {
        transform: translateX(8px)
    }

    75% {
        transform: translateX(-4px)
    }
}

.wclc-shake {
    animation: wclc-shake 0.4s ease;
}

@keyframes wclc-pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.02)
    }

    100% {
        transform: scale(1)
    }
}

.wclc-pulse {
    animation: wclc-pulse 0.6s ease;
}