/* Order Form Container */
.order-container {
    max-width: 1100px;
    margin: 8px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

body {
    padding-top: 0px; /* Add padding to body to account for fixed header */
}
.logo-image-order {
    width: 42px;
    height: 42px;
    align-items: left;
    margin-right: 20px;
}
/* Order Header */
.order-header {
    background-color: #ffffff;
    padding: 10px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.order-header h1 {
    color: #347c3b;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.order-header p {
    text-align: center;
    color: #555;
    font-size: 16px;
    margin: 0;
}

/* Security badges */
.security-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    gap: 15px;
    flex-wrap: nowrap;
    padding: 0 20px;
}

.security-badge-group {
    display: flex;
    gap: 18px;
    align-items: center;
}

.security-divider {
    width: 1px;
    height: 40px;
    background-color: #ddd;
    margin: 0 5px;
}

.buyOnAmazon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #FDA723;
    font-size: 12px;
    border-radius: 8px;
    max-width: 260px;
    color: #000;
    padding: 6px 6px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    font-family: Yantramanav, sans-serif;
    margin: 20px auto 20px;
    font-weight: bold;
    height: 40px;
}

.element.style {
    width: 105px;
    height: 43px;
    display: inline-block;
    background-image: url(https://cdn.ywxi.net/meter/saybyebugs.com/202.svg?ts=1740700863994&l=en);
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    cursor: pointer;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

.security-badge i {
    color: #347c3b;
    font-size: 18px;
}

/* Order Columns */
.order-columns {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}

.order-col {
    padding: 25px;
}

.order-col-left {
    flex: 1;
    min-width: 300px;
    border-right: 1px solid #e0e0e0;
}

.order-col-right {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
}

/* Section Headings */
.section-heading {
    font-size: 20px;
    color: #347c3b;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.section-heading i {
    font-size: 18px;
}

/* Form Styling - Condensed */
.form-row {
    margin-bottom: 3px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group.half {
    flex: 0.5;
    min-width: 120px;
}

.form-group.third {
    flex: 0.33;
    min-width: 100px;
}

/* City-state-zip row with more space */
.city-state-zip {
    gap: 15px;
}

/* Name row to ensure it stays on one line */
.name-row {
    flex-wrap: nowrap;
}

.name-row .form-group {
    min-width: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
    line-height: 1.3;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.4;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #347c3b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 124, 59, 0.1);
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;

}

.payment-option {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-option:hover {
    border-color: #347c3b;
}

.payment-option.selected {
    border-color: #347c3b;
    border-left: 3px solid #347c3b;
}

.payment-option span {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #333;
    margin-right: 10px;
}

.payment-option span i {
    margin-right: 8px;
    color: #555;
}

.payment-option img {
    height: 25px;
    margin-right: 8px;
}

.payment-option-check {
    margin-left: auto;
    color: #347c3b;
}

.payment-option .payment-option-check i {
    font-size: 18px;
}

.payment-option.selected .payment-option-check i:before {
    content: "\f058"; /* FontAwesome check-circle icon */
}

.payment-option:not(.selected) .payment-option-check i:before {
    content: "\f111"; /* FontAwesome circle icon */
    color: #ccc;
}

/* Custom FontAwesome Checkbox Styling */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 8px 0;
    margin-left: 5px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
    color: #333;
    font-weight: normal;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-left: 28px;
    position: relative;
    line-height: 1.4;
}

.checkbox-group label:before {
    content: "\f0c8"; /* FontAwesome square icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 18px;
}

.checkbox-group input[type="checkbox"]:checked + label:before {
    content: "\f14a"; /* FontAwesome check-square icon */
    font-weight: 900;
    color: #347c3b;
}

.checkbox-group:hover label:before {
    color: #347c3b;
}

/* Additional styles for responsive design */
@media (max-width: 768px) {
    .checkbox-group label {
        font-size: 13px;
        padding-left: 24px;
    }
    
    .checkbox-group label:before {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .checkbox-group label {
        font-size: 12px;
        padding-left: 22px;
    }
    
    .checkbox-group label:before {
        font-size: 15px;
    }
}

.paypal-logo {
    height: 25px !important;
}

/* Payment Method Content Transitions */
.payment-method-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 0 15px;
    margin: 0;
    border-left: 1px solid transparent;
}

.payment-method-content.active {
    max-height: 1000px;
    opacity: 1;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 15px;
    padding-bottom: 5px;
    margin: 0px 0;
    border-left: 3px solid #347c3b;
}

/* PayPal specific styling */
.paypal-content {
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 15px;
}

.paypal-message {
    font-size: 14px;
    color: #333;
}

.paypal-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #555;
    font-size: 13px;
}

.paypal-icon i {
    color: #347c3b;
}

/* Submit Button Variations */
.submit-btn {
    background-color: #347c3b;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 20px;
    text-align: center;
    line-height: 1.2;
}

.submit-btn:hover {
    background-color: #2a6430;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 124, 59, 0.2);
}

.submit-btn.paypal-btn {
    background-color: #0070ba;
}

.submit-btn.paypal-btn:hover {
    background-color: #005ea6;
}

/* Credit Card Styling */
.card-icons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.card-icons img {
    height: 25px;
}

.card-info {
    position: relative;
}

.card-info i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Order Summary */
.order-summary {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.order-summary h3 {
    font-size: 18px;
    color: #347c3b;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.summary-product {
    display: flex;
    margin-bottom: 15px;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
    align-items: center;
}

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

.product-image2 {
    width: 80px;
    height: 80px;
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.product-image img {
    max-width: 90%;
    max-height: 90%;
}

.product-details {
    flex: 1;
}

.product-details h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 5px 0;
}

.product-details p {
    font-size: 14px;
    color: #666;
    margin: 0 0 5px 0;
}

.product-price {
    font-weight: 600;
    color: #347c3b;
}

/* Price Breakdown */
.price-breakdown {
    margin-top: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}

.price-row2 {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
}

.price-row2.total {
    font-size: 18px;
    font-weight: 600;
    color: #347c3b;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.discount {
    color: #d9534f;
}

/* Price animation styles */
.price-value {
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.price-value.updating {
    color: #347c3b;
    font-weight: bold;
}

@keyframes priceUpdate {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    25% {
        transform: translateY(-8px);
        opacity: 0;
    }
    75% {
        transform: translateY(8px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.price-animate {
    animation: priceUpdate 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Highlight animation for total */
@keyframes highlight {
    0% {
        background-color: transparent;
    }
    40% {
        background-color: rgba(52, 124, 59, 0.15);
    }
    100% {
        background-color: transparent;
    }
}

.price-row.total.highlight {
    animation: highlight 1.2s ease;
}

/* Guarantee Badge */
.guarantee-badge2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.guarantee-badge2 i {
    color: #347c3b;
    font-size: 24px;
}

.guarantee-badge2 p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .order-container {
        margin: 15px;
        border-radius: 8px;
    }
    
    .order-header {
        padding: 15px;
    }
    
    .order-header h1 {
        font-size: 24px;
    }
    
    .order-col {
        padding: 15px;
    }
    
    .order-col-left {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .form-row {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .form-group.half, 
    .form-group.third {
        min-width: 0;
    }
    
    .section-heading {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    /* Keep certain rows in columns on mobile */
    .form-row.stack-mobile {
        flex-direction: column;
    }
    
    /* Responsive text for shipping options */
    .shipping-option {
        padding: 10px 12px;
    }
    
    .shipping-option-name {
        font-size: 14px;
    }
    
    .shipping-option-delivery {
        font-size: 12px;
    }
    
    .shipping-option-price {
        font-size: 14px;
    }
    
    /* Responsive text for price breakdown */
    .price-row {
        font-size: 14px;
    }
    
    .price-row.total {
        font-size: 16px;
    }
    
    /* Responsive product details */
    .product-details h4 {
        font-size: 15px;
    }
    
    .product-details p {
        font-size: 13px;
    }
    
    .product-price {
        font-size: 14px;
    }
    
    /* Smaller security badges */
    .security-badge span {
        font-size: 13px;
    }
    
    .security-badge i {
        font-size: 16px;
    }
    
    /* Trust badges responsive */
    .trust-badges-container {
        gap: 15px !important;
        margin-top: 12px !important;
    }
    
    .guarantee-badge {
        padding: 12px;
    }
    
    .guarantee-badge p {
        font-size: 13px;
    }
    
    .guarantee-badge i {
        font-size: 20px;
    }
    
    .buyOnAmazon {
        width: 130px !important;
        height: 40px !important;
    }
    
    .buyOnAmazon svg {
        width: 18px !important;
    }
    
    /* Payment options responsive */
    .payment-options {
        gap: 10px;
    }
    
    .payment-option {
        padding: 10px 8px;
        min-width: 100px;
    }
    
    .payment-option span {
        font-size: 13px;
    }
    
    .payment-option i {
        font-size: 1.5em !important;
    }
    
    .card-icons {
        gap: 8px;
    }
    
    .card-icons img {
        height: 22px;
    }
    
    /* Payment section */
    .payment-section {
        padding: 15px;
    }
    
    .payment-method-content.active {
        max-height: 1000px;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 10px;
    }
    
    .security-divider {
        width: 80%;
        height: 1px;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .order-col {
        padding: 12px;
    }
    
    .section-heading {
        font-size: 16px;
    }
    
    .shipping-option-name {
        font-size: 13px;
    }
    
    .shipping-option-delivery {
        font-size: 11px;
    }
    
    .shipping-option-price {
        font-size: 13px;
    }
    
    .price-row {
        font-size: 13px;
    }
    
    .price-row.total {
        font-size: 15px;
    }
    
    /* Trust badges extra small */
    .trust-badges-container {
        gap: 10px !important;

    }
    
    .guarantee-badge p {
        font-size: 12px;
    }
    
    .guarantee-badge i {
        font-size: 18px;
    }
    
    .trustedsite-trustmark[data-type="202"] {
        transform: scale(0.9);
    }
    
    .buyOnAmazon {
        width: 120px !important;
        font-size: 11px !important;
        margin: 4px;
    }
    
    .form-group input,
    .form-group select {
        font-size: 13px;
        padding: 8px;
    }
    
    .submit-btn {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    /* Payment options extra small */
    .payment-option {
        padding: 8px 5px;
        min-width: 90px;
    }
    
    .payment-option span {
        font-size: 12px;
    }
    
    .payment-option i {
        font-size: 1.3em !important;
        margin-bottom: 3px;
    }
    
    .card-icons img {
        height: 20px;
    }
    
    .payment-section {
        padding: 12px;
    }
}

/* Added Security Elements */
.secure-checkout-badge {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.secure-checkout-badge i {
    color: #347c3b;
    font-size: 20px;
}

.secure-checkout-badge p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* Form Field Validation Styling - Only show on validation */
.form-group input:invalid,
.form-group select:invalid {
    border-color: #ddd; /* Default border color */
}

.form-group input:focus:invalid,
.form-group select:focus:invalid {
    box-shadow: 0 0 0 3px rgba(52, 124, 59, 0.1); /* Same as valid focus */
}

/* Add this class when form validation fails */
.form-group.error input,
.form-group.error select {
    border-color: #dc3545;
}

.form-group.error input:focus,
.form-group.error select:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Add custom tooltip styles */
.cvv-tooltip {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cvv-tooltip.show {
    display: flex;
    opacity: 1;
}

.cvv-tooltip-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 90%;
    max-width: 350px;
    position: relative;
    border: 1px solid #ddd;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cvv-tooltip.show .cvv-tooltip-content {
    opacity: 1;
    transform: translateY(0);
}

.cvv-tooltip-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #999;
    font-size: 18px;
}

.cvv-tooltip h4 {
    color: #347c3b;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.cvv-tooltip p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

.cvv-tooltip img {
    width: 100%;
    border-radius: 4px;
    margin-top: 10px;
    max-width: 100%;
    height: auto;
}

/* Payment Section */
.payment-section {
    background-color: #f0f7f1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
}

/* Shipping Options */
#shipping-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shipping-option:hover {
    border-color: #347c3b;
    background-color: #f0f7f1;
}

.shipping-option.selected {
    border-color: #347c3b;
    background-color: #f0f7f1;
    border-left: 3px solid #347c3b;
}

.shipping-option::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(52, 124, 59, 0.1);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
    pointer-events: none;
}

.shipping-option:active::after {
    opacity: 1;
    transform: scale(1);
}

.shipping-option.selected::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #347c3b;
    transform-origin: left;
    transition: transform 0.25s ease;
}

.shipping-option-details {
    flex: 1;
}

.shipping-option-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    font-size: 15px;
    line-height: 1.3;
}

.shipping-option-delivery {
    font-size: 13px;
    color: #666;
    line-height: 1.2;
}

.shipping-option-price {
    font-weight: 600;
    color: #347c3b;
    font-size: 15px;
    padding-left: 8px;
}

@keyframes option-flash {
    0% { background-color: #fff; }
    50% { background-color: rgba(52, 124, 59, 0.15); }
    100% { background-color: #f0f7f1; }
}

.shipping-option.flash-animation {
    animation: option-flash 0.6s ease forwards;
}

/* Trust badges container */
.trust-badges-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Card input with lock icon */
.card-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.card-input-wrapper input {
    padding-right: 35px;
    width: 100%;
}

.card-input-wrapper .fa-lock {
    position: absolute;
    right: 10px;
    color: #347c3b;
    font-size: 16px;
}

/* Review Widget */
.review-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 15px 0;
    overflow: hidden;
    height: 290px;
    position: relative;
}

.review-carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: calc(100% - 40px);
}

.review-slide {
    min-width: 100%;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

.review-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Review Controls */
.review-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid #eee;
}

.review-control {
    background: none;
    border: none;
    color: #347c3b;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    z-index: 5;
}

.review-control:hover {
    color: #2a6430;
    transform: scale(1.1);
}

.review-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.review-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot.active {
    background: #347c3b;
    transform: scale(1.2);
}

.review-dot:hover {
    background: #347c3b;
}

.review-badge {
    color: #347c3b;
    font-size: 12px;
    font-weight: 500;
}

.review-stars {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 2px;
}

.review-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.review-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.review-author {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: auto;
}

@media (max-width: 768px) {
    .review-widget {
        height: 290px;
    }
    
    .review-text {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }
}

/* Page transition effect */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.page-transition.active {
    transform: translateX(0);
}

.page-transition.reverse {
    transform: translateX(0);
    animation: slideOut 0.8s forwards;
}

@keyframes slideOut {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* Order Summary Collapsible on Mobile */
.order-summary-wrapper {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.order-summary-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.order-summary-header h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    color: #347c3b;
    border-bottom: none;
    padding-bottom: 0;
}

.order-total-preview {
    font-weight: 600;
    color: #347c3b;
    margin-right: 15px;
    font-size: 16px;
}

.order-summary-toggle {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    display: none;
}

.order-summary-toggle:hover {
    color: #347c3b;
}

.order-summary-content {
    padding: 0 20px 20px;
}

.order-summary {
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    background-color: transparent;
}

.order-summary h3 {
    display: none;
}

/* Mobile Order Summary styles */
@media (max-width: 768px) {
    /* Create a mobile order summary container that sits at the top */
    .mobile-order-summary-container {
        display: none; /* Hidden by default, will be shown via JS */
        width: 100%;
        position: relative;
        order: -1; /* Places it first in flex order */

    }
    
    .mobile-order-summary-container.active {
        display: block;
    }
    
    .order-summary-header {
        border-bottom: 1px solid #e0e0e0;
        background-color: #f0f7f1;
        transition: background-color 0.3s ease, border-radius 0.3s ease;
    }
    
    .order-summary-toggle {
        display: block;
    }
    
    .order-summary-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.215, 0.61, 0.355, 1), 
                    padding 0.4s cubic-bezier(0.215, 0.61, 0.355, 1),
                    opacity 0.3s ease;
        padding: 0;
        opacity: 0;
        transform-origin: top;
        background-color: #f0f7f1;
    }
    
    .order-summary-content.expanded {
        max-height: 1000px;
        padding: 20px;
        background-color: #f0f7f1;
        opacity: 1;
    }
    
    .order-summary-wrapper {
        border-radius: 0px;
        overflow: hidden;
        transition: box-shadow 0.3s ease;
        margin-bottom: 0px;
    }
    
    .order-summary-wrapper.collapsed .order-summary-toggle i {
        transform: rotate(180deg);
    }
    
    .order-summary-wrapper.collapsed {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .order-summary-content.expanded ~ .order-summary-header {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .order-summary-toggle i {
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }
    
    /* Animation enhancement classes */
    .order-summary-wrapper.animating {
        pointer-events: none; /* Prevent clicks during animation */
    }
    
    .order-summary-wrapper.animating .order-summary-toggle i {
        animation: pulse 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }
    
    /* Make the order columns a flex container on mobile with column direction */
    .order-columns {
        display: flex;
        flex-direction: column;
    }
    
    /* Ensure product images have transparent background in mobile order summary */
    .order-summary-content .product-image2 {
        background-color: transparent;
    }
} 