/* Reddit Discount Banner */
.discount-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 50%, #ffa8a8 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    animation: slideInDown 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discount-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
}

.discount-percentage {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.discount-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-weight: 500;
}

.discount-details {
    flex: 1;
}

.discount-message {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.savings-info {
    font-size: 14px;
    margin: 0;
    opacity: 0.85;
    font-weight: 400;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Discount Summary in Order */
.discount-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.price-line:last-child {
    margin-bottom: 0;
}

.original-price-strikethrough {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 14px;
}

.discount-line {
    color: #28a745;
    font-weight: 600;
}

.discount-amount {
    color: #28a745;
    font-weight: bold;
}

/* Container for Results Cards */
.results-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Style for Result Cards */
.result-card {
    position: relative;
    border: 1px solid var(--colors-border, #e0e0e0);
    border-radius: var(--borders-radius, 8px);
    padding: 15px;
    width: 300px;
    max-width: calc(100vw - 40px); /* Prevent overflow on small mobiles */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Slightly reduce hover lift for unavailable cards */
.result-card-unavailable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

/* Modern meta chips for Records / Availability */
.result-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Prevent header/meta content from sliding under the logo thumbnail */
.result-card h4,
.result-meta {
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(47, 57, 66, 0.05);
    border: 1px solid rgba(47, 57, 66, 0.08);
    font-size: 12px;
    line-height: 1;
    color: rgba(47, 57, 66, 0.88);
}

.meta-chip .meta-label {
    font-weight: 500;
    opacity: 0.75;
}

.meta-chip .meta-value {
    font-weight: 600;
}

.meta-chip-availability.meta-chip-available {
    background: rgba(40, 167, 69, 0.10);
    border-color: rgba(40, 167, 69, 0.22);
    color: rgba(25, 135, 84, 1);
}

.meta-chip-availability.meta-chip-unavailable {
    background: rgba(220, 53, 69, 0.10);
    border-color: rgba(220, 53, 69, 0.22);
    color: rgba(220, 53, 69, 1);
}

/* Helpfulness rating under the button */
.result-card-rating {
    margin-top: 10px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-height: 18px;
}

.result-card-rating .rating-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0;
    min-height: 13px;
}

.result-card-rating .star {
    display: inline-block;
}

.result-card-rating .star-full {
    color: #ffcc00;
    text-shadow: 0 0 0 rgba(0, 0, 0, 0.08);
}

.result-card-rating .star-half {
    color: #ffcc00;
    opacity: 0.55;
}

.result-card-rating .star-empty,
.result-card-rating .rating-none {
    color: rgba(47, 57, 66, 0.22);
}

.result-card-rating .rating-caption {
    font-size: 12px;
    color: rgba(47, 57, 66, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Slightly muted in disabled cards */
.result-card-unavailable .result-card-rating .rating-caption {
    color: rgba(136, 136, 136, 0.75);
}

/* Button Styling */
.price-button,
.add-to-cart-button {
    background: var(--colors-primary, #ffcc00);
    color: var(--colors-textonprimary, #2f3942);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: var(--borders-radius, 5px);
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: center;
}

/* Hover effects for buttons */
.price-button:hover,
.add-to-cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* Recommended badge style - Hidden as we move to header */
.recommended-badge, .best-value-badge {
    display: none !important;
}

.remove-report-link {
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.remove-report-link:hover {
    color: #dc3545 !important;
    text-decoration: underline;
}

/* Tooltip for "Why so cheap?" */
.why-cheap-link {
    font-size: 11px;
    color: #6c757d;
    text-decoration: underline;
    cursor: help;
    margin-left: 8px;
    display: inline-block;
}

.why-cheap-tooltip {
    font-size: 12px;
    background: #343a40;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 250px;
    line-height: 1.4;
    z-index: 1000;
}

/* Remove button style for "Remove from Cart" */
.add-to-cart-button.remove-from-cart {
    background: var(--colors-danger, #d32f2f);
    color:#f9f9f9;
}

/* Skeleton Loader */
.skeleton {
    background-color: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading-wave 1.5s infinite;
}

@keyframes loading-wave {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Skeleton text and title styles */
.skeleton-title {
    height: 20px;
    margin-bottom: 10px;
    width: 60%;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 80%;
}

/* Result Thumbnail Styling */
.result-thumbnail {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 50px;
    height: 50px; /* Square */
    object-fit: cover; /* Professional crop */
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
    border: 1px solid #eee;
    background: #fff;
}

.result-card h4,
.result-meta {
    padding-right: 60px; /* Consistently avoid thumbnail area */
}

.report-button-wrapper {
    padding-right: 0; /* Wider buttons as requested */
}

/* Mobile: Compact card styling */
@media (max-width: 768px) {
    .vin-context-header {
        margin-top: 0 !important; /* Reset to 0 to fix overlap */
        padding: 0.25rem 0 !important;
        background: #fff;
        border-bottom: 2px solid #ffcc00;
        margin-bottom: 0.75rem !important; /* Small gap to separate from first card */
    }

    .result-card {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .result-thumbnail {
        width: 40px;
        top: 10px;
        right: 10px;
        border-radius: 6px;
    }

    .result-card h4,
    .result-meta {
        padding-right: 50px;
    }

    .report-button-wrapper {
        padding-right: 0; /* Full width on mobile */
    }
    
    .result-card h4 {
        font-size: 15px;
        margin-bottom: 4px;
        padding-right: 60px;
        font-weight: 700;
    }
    
    .result-meta {
        gap: 4px;
        margin-top: 2px;
        padding-right: 60px;
    }
    
    .meta-chip {
        padding: 2px 6px;
        font-size: 10px;
        gap: 3px;
        border-radius: 4px;
    }
    
    .result-card-rating {
        margin-top: 4px;
        min-height: 14px;
        gap: 6px;
    }
    
    .result-card-rating .rating-stars {
        font-size: 11px;
    }
    
    .result-card-rating .rating-caption {
        font-size: 10px;
    }
    
    .add-to-cart-button {
        padding: 6px 12px;
        font-size: 13px;
        margin-top: 6px;
        min-height: 40px !important;
    }
    
    .best-value-badge {
        top: -12px;
        padding: 2px 10px;
        font-size: 0.65rem;
    }
}

/* Style for Unavailable Result Cards */
.result-card-unavailable {
    background-color: #f0f0f0;
    color: #888;
}

/* Sticky Checkout on Desktop */
@media (min-width: 992px) {
    .sticky-desktop {
        position: sticky;
        top: 20px;
        z-index: 100;
    }
}

/* Trust Badges in Checkout */
.trust-badges-checkout {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin-bottom: 15px;
}

.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    flex: 1;
}

.trust-badge-item i {
    font-size: 1.2rem;
}

.trust-badge-item span {
    font-size: 0.65rem;
    font-weight: 600;
    color: #495057;
    line-height: 1.2;
}

/* Payment Trust Footer */
.payment-trust-footer {
    border-top: 1px dashed #dee2e6;
    padding-top: 20px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.payment-method-icon {
    height: 24px;
    width: auto;
    filter: grayscale(0.2);
    opacity: 0.8;
    transition: all 0.2s;
}

.payment-method-icon:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile Sticky Pay Bar */
.mobile-pay-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1050;
    border-top: 2px solid #ffcc00;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.mobile-pay-bar.show {
    transform: translateY(0);
}

.mobile-pay-info {
    display: flex;
    flex-direction: column;
}

.mobile-pay-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0a2540;
    line-height: 1.1;
}

.mobile-pay-items {
    font-size: 0.75rem;
    color: #6c757d;
}

#mobile-checkout-btn {
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

/* Enhanced Form Controls with Floating Labels */
.form-floating > .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    height: calc(3.5rem + 2px);
    font-weight: 500;
}

.form-floating > label {
    padding: 1rem 0.75rem;
    color: #6c757d;
    font-weight: 600;
}

.form-floating > .form-control:focus {
    border-color: #ffcc00;
    box-shadow: 0 0 0 0.25rem rgba(255, 204, 0, 0.15);
}

/* Report Card Professional Polishing */
.result-card {
    border: 1px solid #e9ecef;
    background: #fff;
    transition: all 0.25s ease;
    overflow: visible;
}

.result-card.selected {
    border-color: #28a745;
    background: #f8fff9;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.08);
}

.result-card.selected::before {
    content: "";
    position: absolute;
    left: -1px;
    top: -1px;
    bottom: -1px;
    width: 4px;
    background: #28a745;
    border-radius: 8px 0 0 8px;
    z-index: 2;
}

.added-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    vertical-align: middle;
    margin-left: 8px;
}

.not-available-label {
    color: #6c757d;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

/* Mobile Adjustments for Better Contrast */
@media (max-width: 768px) {
    .order-summary {
        margin-top: 10px;
        border-radius: 16px;
    }
    
    .result-card h4 {
        font-weight: 800;
        font-size: 1.1rem;
    }
    
    .meta-chip {
        border-radius: 8px;
    }
}

/* Payment Icons Grid */
.payment-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 200px;
    margin: 0 auto;
}

.payment-method-icon {
    height: 20px;
    width: auto;
    margin: 0 auto;
}

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

@keyframes cta-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Delivery Guarantee Banner */
.delivery-guarantee {
    background: #e7f3ff;
    color: #00529b;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.submit-button {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.submit-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.highlight-pulse {
    animation: highlight-pulse-animation 2s infinite;
}

@keyframes highlight-pulse-animation {
    0% { border-color: #ffcc00; box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4); }
    70% { border-color: #ffcc00; box-shadow: 0 0 0 10px rgba(255, 204, 0, 0); }
    100% { border-color: #ffcc00; box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}

/* Sticky VIN Context Header for Mobile */
.vin-context-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1020;
    border-bottom: 1px solid #e9ecef;
    margin: 0 calc(var(--bs-gutter-x, 0.75rem) * -0.5) 1rem;
    padding: 0.5rem 0;
}

/* Payment Element Skeleton */
#payment-element:empty {
    min-height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-wave 1.5s infinite;
    border-radius: 12px;
}

/* Bounce Animation for Cart Updates */
.cart-bounce {
    animation: cart-bounce-animation 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cart-bounce-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Professional Card Gradients */
.result-card-available {
    background: linear-gradient(to bottom right, #ffffff, #fcfcfc);
}

/* Better accessibility for touch targets */
@media (max-width: 768px) {
    .btn, .add-to-cart-button, .submit-button {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent any horizontal overflow on mobile */
    body, .main-content-wrapper {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
}

@media (min-width: 768px) {
    .results-container {
        padding-bottom: 0;
    }
}

.order-summary-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.order-summary-list {
    list-style-type: none;
    padding: 0;
    font-size: 15px;
    margin-bottom: 15px;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.order-summary-price {
    font-size: 22px;
    font-weight: 800;
    color: #0a2540;
    background: linear-gradient(90deg, #fff2b2 0%, #ffe066 100%);
    padding: 8px 14px;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(10, 37, 64, 0.15);
}

.bundle-confetti {
    position: fixed;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    z-index: 9999;
    animation: confetti-pop 3s ease-out forwards;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95) 0%, rgba(25, 135, 84, 0.95) 100%);
    border-radius: 16px;
    padding: 20px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    max-width: 90%;
    text-align: center;
}

.bundle-confetti-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bundle-confetti-emoji {
    font-size: 32px;
    line-height: 1;
}

.bundle-confetti-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bundle-confetti-discount {
    color: #ffcc00;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes confetti-pop {
    0% { opacity: 0; transform: translate(-50%, -20px) scale(0.6); }
    20% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -60px) scale(1.1); }
}

.remove-button {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 13px;
    margin-left: 10px;
    text-decoration: underline;
    transition: color 0.2s;
}

.remove-button:hover {
    color: #dc3545;
}

/* Payment Selection Styles */
.payment-selection {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid var(--colors-border, #e0e0e0);
    border-radius: var(--borders-radius, 8px);
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.payment-selection h4 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

/* Payment Option Styling */
.payment-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.3);
    cursor: pointer;
}

.payment-label {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
}

/* Updated Payment Icon Styling */
.payment-icon {
    margin-left: 5px; /* Reduced margin to bring card icons closer */
    margin-right: 5px; /* Reduced margin to bring card icons closer */
    height: 24px; /* Set consistent height for all payment icons */
    width: auto; /* Keep the width proportional */
    object-fit: contain;
   
    
}

/* Specific Styling for PayPal and Google Pay Icons */
.payment-option img[alt="paypal"]
{
    height: 22px; /* Ensure PayPal and Google Pay icons have the same height */
    width: auto;
    object-fit: contain;
    margin-left: 10px; /* Adds a bit of space between radio button and icon */
}

.payment-option img[alt="google-pay"] {
    height: 50px; /* Ensure PayPal and Google Pay icons have the same height */
    width: auto;
    object-fit: contain;
    margin-left: 0px; /* Adds a bit of space between radio button and icon */
}

#payment-form{
margin-top: 1vw;
}

/* General form styles */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: Arial, sans-serif;
    width: 100%; /* Ensure the form takes full width of the parent */
}

/* Input field styles */
.form-group {
    width: 100%; /* Ensure the form-group takes full width */
}

.form-input {
    width: 100%; /* Make the input field take the full width of its parent */
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: #6772e5; /* Stripe blue */
    box-shadow: 0 0 0 2px rgba(103, 114, 229, 0.3); /* Stripe blue shadow */
    outline: none;
}

/* Error message styles */
.error-message {
    color: #e63946;
    font-size: 12px;
    margin-top: -10px;
}

/* Reddit Discount Summary Styling */
.discount-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.price-section {
    margin-bottom: 15px;
}

.price-section.market-comparison {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.price-section.reddit-discount {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
}

.market-price-strikethrough {
    text-decoration: line-through;
    color: #6c757d;
    font-weight: 600;
}

.savings-line {
    color: #28a745;
    font-weight: 600;
}

.savings-amount {
    color: #28a745;
    font-weight: 700;
    font-size: 16px;
}

.discount-line {
    color: #28a745;
    font-weight: 600;
}

.discount-amount {
    color: #28a745;
    font-weight: 700;
    font-size: 16px;
}

.vininfohub-price {
    font-weight: 600;
    color: #495057;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
    margin: 15px 0;
}

.total-savings-highlight {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid #dee2e6;
}

.savings-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #495057;
}

.savings-label {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 0.3px;
}

.total-savings-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .discount-banner {
        padding: 16px 20px;
        gap: 16px;
    }
    
    .discount-percentage {
        font-size: 20px;
    }
    
    .discount-message {
        font-size: 16px;
    }
    
    .savings-info {
        font-size: 13px;
    }
    
    .discount-summary {
        padding: 15px;
    }
    
    .price-line {
        font-size: 14px;
    }
    
    .savings-label {
        font-size: 13px;
    }
    
    .total-savings-amount {
        font-size: 16px;
    }
}

/* Multi-Report Discount Styles */
.original-price-strikethrough {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
    margin-right: 8px;
}

.discounted-price {
    color: #28a745;
    font-weight: 600;
    font-size: 1em;
}

.discounted-price-final {
    color: #28a745;
    font-weight: 600;
    font-size: 1.1em;
}

.discount-badge-small {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

.discount-badge-next {
    background-color: #0d6efd;
}

/* Compact discount badge for inline display */
.discount-badge-compact {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: 700;
    margin-left: 4px;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
}

.discount-badge-compact.discount-badge-next {
    background-color: #0d6efd;
}

.original-price-strikethrough-compact {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.85em;
    margin-left: 6px;
    opacity: 0.7;
}

/* Mobile: make discount badges even more compact */
@media (max-width: 768px) {
    .discount-badge-compact {
        padding: 1px 4px;
        font-size: 0.65em;
        margin-left: 3px;
    }
    
    .original-price-strikethrough-compact {
        font-size: 0.8em;
        margin-left: 4px;
    }
    
    .discounted-price {
        font-size: 0.95em;
    }
}

/* Bundle hint card (Order Summary) */
.bundle-discount-hint {
    margin: 10px 0 12px 0;
}

.bundle-hint-card {
    background: linear-gradient(135deg, rgba(99, 91, 255, 0.08) 0%, rgba(40, 167, 69, 0.06) 100%);
    border: 1px solid rgba(99, 91, 255, 0.15);
    border-radius: 12px;
    padding: 12px 12px;
}

.bundle-hint-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.bundle-hint-title {
    font-weight: 800;
    color: #0a2540;
    letter-spacing: -0.2px;
}

.bundle-hint-sub {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.bundle-hint-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bundle-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    color: #374151;
    white-space: nowrap;
}

/* Mobile: prevent long localized pills from overflowing/overlapping */
@media (max-width: 520px) {
    .bundle-hint-top {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .bundle-hint-title {
        flex: 1 1 100%;
    }

    .bundle-hint-badges {
        width: 100%;
        justify-content: flex-start;
    }

    .bundle-pill {
        max-width: 100%;
        white-space: normal; /* allow wrap for long translations */
        line-height: 1.2;
        text-align: center;
    }
}

.bundle-pill-active {
    background: rgba(40, 167, 69, 0.12);
    color: #1e7e34;
}

.bundle-pill-next {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.bundle-progress {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.06);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bundle-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd 0%, #28a745 100%);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.bundle-hint-cta {
    font-size: 13px;
    font-weight: 700;
    color: #0a2540;
}

.order-summary-item {
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.order-summary-item:last-child {
    border-bottom: none;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.order-item-row:last-child {
    margin-bottom: 0;
}

.order-item-name {
    font-weight: 600;
    color: #2f3942;
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.order-item-price-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.order-item-savings {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
    text-align: right;
}

.order-item-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
    background: #f5f6f8;
    padding: 2px;
}

.discount-summary-item {
    padding: 12px 0;
    border-top: 2px solid #e9ecef;
    border-bottom: none;
    margin-top: 8px;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
}

.discount-line {
    color: #28a745;
    font-weight: 600;
}

.discount-amount {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1em;
}

/* Button price display styles */
.add-to-cart-button .original-price-strikethrough {
    font-size: 0.85em;
    opacity: 0.7;
}

.add-to-cart-button .discounted-price {
    font-size: 1em;
    font-weight: 700;
}

/* Smooth transitions for price updates */
.order-summary-item,
.discount-summary-item,
.add-to-cart-button {
    transition: all 0.3s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .order-item-price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .discount-badge-small {
        font-size: 0.7em;
        padding: 2px 6px;
    }
    
    .original-price-strikethrough,
    .discounted-price {
        font-size: 0.9em;
    }
}


