/* 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;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 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);
}

/* 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: 10px;
    right: 10px;
    width: 90px;
    height: auto;
    border-radius: 21px;
}

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

/* Order Summary Styling */
.order-summary {
    background-color: #f9f9f9;
    border-radius: var(--borders-radius, 8px);
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.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: 16px;
    color: #000;
}

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

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

/* 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 #ff4500;
}

.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: #ff4500;
    font-weight: 600;
}

.discount-amount {
    color: #ff4500;
    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;
    }
}


