/* Custom Styles to augment Tailwind */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F8F9FA;
}

/* Coupon Card Styling */
.pdp-coupon-card {
    flex: 0 0 auto;
    width: 100%;
    min-width: 240px;
    max-width: 360px;
    min-height: 110px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f3f3f3;
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}

.offer-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #e0f7fa; /* Sea green background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #26a69a; /* Sea green icon */
    margin-right: 0.5rem;
}

.offer-title {
    font-size: 1.15rem;
    font-weight: 800; /* Bold heading */
    color: #26a69a;  /* Sea green text */
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.offer-condition {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.offer-code-display {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #26a69a 0%, #80cbc4 100%);
    border-radius: 6px;
    padding: 4px 12px;
    display: inline-block;
    margin-top: 0.3rem;
    letter-spacing: 1px;
    box-shadow: 0 1px 4px rgba(38,166,154,0.08);
}

.coupon-instructions {
    font-size: 0.95rem;
    color: #444;
    margin-top: 0.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 0.5rem;
    display: block;
}
.coupon-instructions-hidden {
    display: none;
}
/* Hero Slider Transitions */
.slide {
    transition: opacity 1s ease-in-out;
}

/* Cart Drawer Transitions */
.cart-drawer {
    transition: transform 0.4s ease-in-out;
}

/* Accordion transition */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Marquee Animation */
.marquee-content {
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Modal Transitions */
.modal-container {
    transition: opacity 0.3s ease-in-out;
}

.modal-box {
    transition: transform 0.3s ease-in-out;
}

.product-card iframe {
    pointer-events: none;
}

/* Horizontal Scrollbar Hide */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* ======================================================= */
/* === COUPON & OFFERS STYLES (REVISED DESIGN) === */
/* ======================================================= */
.offers-section-cart {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

.view-all-offers-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
}

.view-all-offers-btn:hover {
    background-color: #f9fafb;
}

.coupon-apply-form {
    padding: 0 1rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.coupon-input {
    flex-grow: 1;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.875rem;
    text-transform: uppercase;
}
.coupon-input:focus {
    outline: none;
    border-color: #facc15;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.5);
}

.apply-coupon-btn {
    background-color: #212529;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.apply-coupon-btn:hover {
    background-color: #495057;
}

.applied-coupon-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #f0fdf4;
    border-top: 1px solid #e5e7eb;
}

.applied-coupon-info .coupon-code {
    font-weight: 700;
    color: #166534;
    padding: 0.2rem 0.5rem;
    background-color: #dcfce7;
    border-radius: 0.375rem;
    margin-right: 0.5rem;
}

.remove-coupon-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-weight: 600;
    cursor: pointer;
}

.coupon-message {
    padding: 0 1rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.coupon-message.error {
    color: #dc2626;
}
.coupon-message.success {
    color: #16a34a;
}

.offers-modal-content {
    background-color: #f1f5f9;
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.offer-card-new {
    background-color: #fff;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    padding: 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
}
/* This pseudo-element creates the ticket cut-out effect */
.offer-card-new::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: #f1f5f9; /* Match the modal background */
    border-radius: 50%;
}

.offer-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.offer-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fefce8; /* light yellow */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ca8a04; /* amber-600 */
    font-size: 1.25rem;
    border: 1px solid #fde68a; /* amber-200 */
}

.offer-details {
    flex-grow: 1;
}

.offer-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #111827;
}

.offer-condition {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.25rem;
}

.offer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e5e7eb;
}

.offer-code-display {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.offer-apply-btn {
    background: none;
    border: none;
    color: #ca8a04; /* amber-600 */
    font-weight: 700;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.offer-apply-btn:hover {
    color: #a16207; /* amber-700 */
}


/* ======================================================= */
/* === FOMO/URGENCY WIDGETS === */
/* ======================================================= */
.fomo-block {
    background-color: white;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

@keyframes fomo-pulse {
    50% {
        opacity: .5;
    }
}

.fomo-live-indicator {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #ef4444; /* red-500 */
    border-radius: 9999px;
    animation: fomo-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.stock-bar-container {
    background-color: #e5e7eb; /* gray-200 */
    border-radius: 9999px;
    height: 0.5rem;
    width: 100%;
    overflow: hidden;
}

.stock-bar-inner {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease-in-out;
    background-color: #f59e0b; /* amber-500 */
}

.stock-bar-inner.low-stock {
    background-color: #ef4444; /* red-500 */
}


/* ======================================================= */
/* === BRANDS WE OFFER SECTION === */
/* ======================================================= */
.brands-lane {
    display: flex;
    overflow-x: auto;
    padding: 1rem 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.brands-lane::-webkit-scrollbar {
    display: none;
}

.brand-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 160px;
    background-color: white;
    margin: 0 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.2s ease-in-out;
}

.brand-logo-item:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.brand-logo-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .brand-logo-item {
        height: 60px;
        width: 120px;
        margin: 0 0.5rem;
        padding: 0.5rem;
    }
    
    #brands-lane-1, #brands-lane-2 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ======================================================= */
/* === PDP "BUY NOW" BUTTON === */
/* ======================================================= */
.pdp-buy-now-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background-color: #212529;
    color: #fff;
    padding: 0.9rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease-in-out;
    font-family: 'Inter', sans-serif;
}

.pdp-buy-now-btn:hover {
    background-color: #495057;
}

.pdp-buy-now-text {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.05em;
}

.pdp-buy-now-icons {
    display: flex;
    align-items: center;
}

.pdp-buy-now-icons img {
    width: 28px;
    height: 28px;
    background-color: #fff;
    border-radius: 50%;
    padding: 4px;
    border: 1px solid #dee2e6;
    margin-left: -10px;
}

.pdp-buy-now-icons img:first-child {
    margin-left: 0;
}

.pdp-buy-now-arrow {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s ease-in-out;
}

.pdp-buy-now-btn:hover .pdp-buy-now-arrow {
    transform: translateX(5px);
}

@media (max-width: 480px) {
    .pdp-buy-now-btn {
        padding: 0.8rem 1rem;
        gap: 1rem;
    }
    .pdp-buy-now-text {
        font-size: 1rem;
    }
    .pdp-buy-now-icons img {
        width: 26px;
        height: 26px;
    }
    .pdp-buy-now-arrow {
        font-size: 1.25rem;
    }
}

/* ======================================================= */
/* === PAYMENT PAGE STYLES === */
/* ======================================================= */
.payment-page-container {
    background-color: #f1f5f9;
    padding: 1rem;
    min-height: 100vh;
}

.payment-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 450px;
    margin: 1rem auto;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    text-align: center;
    position: relative; /* Added for back button positioning */
}

.payment-back-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4b5563; /* gray-600 */
    cursor: pointer;
    padding: 0.5rem;
}
.payment-back-btn:hover {
    color: #000;
}


.payment-header .trusted-badge {
    display: inline-flex;
    align-items: center;
    background-color: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.payment-amount {
    margin: 1.5rem 0;
}

.countdown-timer {
    background-color: #fee2e2; /* red-100 */
    color: #991b1b; /* red-800 */
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 1.5rem auto 1.5rem;
    font-weight: 600;
    font-size: 0.875rem; /* text-sm */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #fecaca; /* red-200 */
}

.qr-code-container {
    /* MODIFIED: Changed border color and width, added box-sizing */
    border: 2px solid #facc15;
    padding: 0.5rem;
    border-radius: 1rem;
    display: block;
    margin: 0 auto;
    width: 256px; /* Increased for better quality */
    height: 256px; /* Increased for better quality */
    box-sizing: content-box; /* To ensure padding adds to total size */
}
.qr-code-container img,
.qr-code-container canvas {
    /* MODIFIED: Adjusted for higher resolution */
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}

.qr-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.qr-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #374151;
    text-decoration: none;
}

.qr-action-btn:hover {
    background-color: #fde047;
    border-color: #facc15;
    color: #1f2937;
}

.upi-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.upi-app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
}

.upi-app-btn:hover {
    border-color: #1f2937;
    background-color: #f9fafb;
}

.upi-app-btn img {
    height: 1.5rem;
}

@media (max-width: 480px) {
    .payment-page-container {
        padding: 0.5rem;
    }
    .payment-card {
        padding: 1.25rem;
        padding-top: 3rem; /* Make space for back button */
        margin-top: 0.5rem;
    }
    .payment-header h2 {
        font-size: 1.25rem;
    }
    .payment-amount {
        margin: 1rem 0;
    }
    .payment-amount p:last-child {
        font-size: 2.25rem;
    }
    .countdown-timer {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        width: 100%;
        justify-content: center;
    }
    .qr-code-container {
        width: 75vw;
        height: 75vw;
        max-width: 260px;
        max-height: 260px;
    }
    .qr-actions {
        margin-top: 1rem;
        gap: 0.75rem;
    }
    .qr-action-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    .upi-app-grid {
        margin-top: 1rem;
        gap: 0.75rem;
    }
    .upi-app-btn {
        padding: 0.6rem;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    .upi-app-btn img {
        height: 1.2rem;
    }
}

/* ======================================================= */
/* === CHECKOUT PAYMENT SELECTOR (NEW) === */
/* ======================================================= */
.payment-method-selector {
    border: 2px solid #e5e7eb; /* gray-200 */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
}

.payment-method-selector:hover {
    border-color: #facc15; /* yellow-400 */
    background-color: #fefce8; /* yellow-50 */
}

.payment-method-selector.selected {
    border-color: #212529; /* dark gray */
    background-color: #f8f9fa; /* gray-50 */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.payment-method-selector .icon-wrapper {
    font-size: 1.5rem;
    color: #4b5563; /* gray-600 */
    margin-right: 1rem;
}

.payment-method-selector.selected .icon-wrapper {
    color: #111827; /* gray-900 */
}

.payment-method-selector .title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937; /* gray-800 */
}

.payment-method-selector .description {
    font-size: 0.875rem;
    color: #6b7280; /* gray-500 */
}

.payment-method-selector .recommended-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background-color: #22c55e; /* green-500 */
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

.cod-warning {
    background-color: #fffbeb; /* amber-50 */
    border: 1px solid #fde68a; /* amber-200 */
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #b45309; /* amber-700 */
}

/* ======================================================= */
/* === BRAND KIT UPSELL STYLES === */
/* ======================================================= */
.brand-kit-upsell {
    background-color: #f0fdf4; /* green-50 */
    border: 2px dashed #86efac; /* green-300 */
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.add-kit-btn {
    background-color: #22c55e; /* green-500 */
    color: white;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}
.add-kit-btn:hover {
    background-color: #16a34a; /* green-600 */
}
.add-kit-btn:disabled {
    background-color: #4ade80; /* green-400 */
    cursor: not-allowed;
}

/* ======================================================= */
/* === PARTY CRACKER ANIMATION === */
/* ======================================================= */
.particle {
    position: absolute;
    width: 8px;
    height: 16px;
    border-radius: 4px;
    opacity: 0;
    animation: burst 0.8s ease-out forwards;
}

@keyframes burst {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) rotate(360deg);
        opacity: 0;
    }
}

/* ======================================================= */
/* === ORDER RESCUE MODAL === */
/* ======================================================= */
.order-rescue-modal-content {
    background-color: #fff;
    border-radius: 1.5rem; /* rounded-3xl */
    max-width: 400px;
    width: 100%;
    text-align: center;
    /* Adjusted padding-top to make more space for the image */
    padding: 6rem 1.5rem 1.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (min-width: 640px) { /* sm breakpoint */
    @keyframes slideUp {
        from {
            transform: translateY(30px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}


.rescue-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    background-color: #f3f4f6; /* gray-200 */
    color: #6b7280; /* gray-500 */
    border: none;
    border-radius: 9999px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

/* This container helps position the image correctly */
.rescue-image-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%); /* Center the image perfectly */
    width: 130px; /* Set a specific width */
    height: 130px; /* Set a specific height */
}

.rescue-box-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.15));
    /* Animation timing: popIn runs once, zoomInOut runs infinitely */
    animation: popIn 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) backwards, zoomInOut 3s 1s ease-in-out infinite;
}

@keyframes popIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.rescue-timer-banner {
    background-color: #111827; /* gray-900 */
    color: #fff;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.rescue-claim-btn {
    background-color: #ef4444; /* red-500 */
    color: white;
    font-weight: 700;
    font-size: 1.125rem; /* text-lg */
    padding: 0.75rem;
    border-radius: 0.75rem;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.rescue-claim-btn:hover {
    background-color: #dc2626; /* red-600 */
}

/* ======================================================= */
/* === PDP WHATSAPP BUTTON === */
/* ======================================================= */
.pdp-whatsapp-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0.75rem; /* space-x-3 */
    background-color: #FEFDE8; /* Light cream/yellow background */
    color: #1f2937; /* gray-800 */
    padding: 0.9rem 1.5rem;
    margin-top: 0.75rem; /* mt-3 */
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #FBBF24; /* amber-400 */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: 'Inter', sans-serif;
    font-weight: 600; /* font-semibold */
    text-decoration: none;
}

.pdp-whatsapp-btn:hover {
    background-color: #FDF9C8;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}

.pdp-whatsapp-btn .fab.fa-whatsapp {
    color: #25D366;
    font-size: 1.5rem; /* text-2xl */
}

@media (max-width: 480px) {
    .pdp-whatsapp-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    .pdp-whatsapp-btn .fab.fa-whatsapp {
        font-size: 1.25rem;
    }
}

/* ======================================================= */
/* ======================================================= */
/* === PDP COUPON DISPLAY (FINAL UPDATE) === */
/* ======================================================= */
.pdp-offers-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #FFFBEF;
    border-radius: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #FBEFCC;
}

.pdp-offers-header {
    margin-bottom: 0.5rem;
}

.pdp-offers-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.pdp-coupon-slider {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}

/* MODIFIED: Increased height and adjusted alignment */
.pdp-coupon-card {
    flex: 0 0 240px; /* Base width for mobile */
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    min-height: 100px; /* Set a minimum height for consistency */
}

/* MODIFIED: Added a top margin for better vertical alignment */
.pdp-coupon-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #E0F7FA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00838F;
    font-size: 1rem;
    margin-top: 4px; /* Align icon nicely with the text */
}

/* MODIFIED: Removed properties that hide overflow */
.pdp-coupon-details {
    flex-grow: 1;
}

/* MODIFIED: Enabled text wrapping */
.pdp-coupon-title {
    font-weight: 600;
    color: #004D40;
    font-size: 0.8rem;
    white-space: normal; /* Allow text to wrap */
}

/* MODIFIED: Enabled text wrapping and improved line height */
.pdp-coupon-condition {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 2px;
    white-space: normal; /* Allow text to wrap */
    line-height: 1.4;  /* Improve readability for wrapped text */
}

/* MODIFIED: Pushed button to the right and centered it */
.pdp-apply-coupon-btn {
    background: none;
    border: none;
    color: #00838F;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.2s;
    padding: 4px;
    margin-left: auto; /* Push button to the far right */
    align-self: center; /* Center button vertically */
}

.pdp-apply-coupon-btn:hover {
    color: #006064;
}

.pdp-apply-coupon-btn:disabled {
    color: #16a34a;
    cursor: not-allowed;
    font-weight: 700;
}

#pdp-price-container .final-price {
    color: #111827;
    transition: color 0.3s ease;
}

#pdp-price-container.price-updated .final-price {
    color: #16a34a;
    animation: price-pop 0.3s ease-out;
}

@keyframes price-pop {
    50% {
        transform: scale(1.05);
    }
}

.pdp-coupon-message {
    font-size: 0.8rem;
    font-weight: 500;
    color: #16a34a;
    margin-top: 0.25rem;
    padding-left: 0.25rem;
    height: 18px;
    transition: opacity 0.3s;
}

/* NEW: Added media query for better desktop view */
@media (min-width: 768px) {
    .pdp-coupon-card {
        flex-basis: 260px; /* Use a slightly larger width on desktop */
    }
}

/* ======================================================= */
/* === PAYMENT PAGE MARQUEE (NEW) === */
/* ======================================================= */
.payment-marquee-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
}

.payment-marquee-container::before,
.payment-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.payment-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, white, rgba(255, 255, 255, 0));
}

.payment-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, white, rgba(255, 255, 255, 0));
}

.payment-marquee {
    display: flex;
    align-items: center;
    width: fit-content;
    animation: marquee-payment 12s linear infinite;
}

.payment-marquee img {
    height: 32px; /* Adjusted for a compact look */
    margin: 0 1.25rem;
    object-fit: contain;
}

@keyframes marquee-payment {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}