/* Universal Cart Styles for AniMedCare */

/* Cart Button Styles */
.universal-cart-button {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8ad29, #e09413);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1060;
    box-shadow: 0 4px 20px rgba(248, 173, 41, 0.4);
    transition: all 0.3s ease;
    animation: pulse-shadow 2s infinite;
}

    .universal-cart-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(248, 173, 41, 0.6);
        background: linear-gradient(135deg, #e09413, #c17e02);
    }

    .universal-cart-button:active {
        transform: scale(0.95);
    }

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    animation: bounce 0.5s ease;
}

@keyframes pulse-shadow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(248, 173, 41, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(248, 173, 41, 0.7);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: scale(1);
    }

    40%, 43% {
        transform: scale(1.2);
    }

    70% {
        transform: scale(1.1);
    }
}

/* Cart Sidebar Styles */
.universal-cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1055;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    border-left: 3px solid #f8ad29;
}

    .universal-cart-sidebar.open {
        right: 0;
    }

/* Cart Header */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 25px;
    background: linear-gradient(135deg, #f8ad29, #e09413);
    color: white;
    border-bottom: 1px solid #e9ecef;
}

    .cart-header h4 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
    }

.cart-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-fullscreen-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

    .cart-fullscreen-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }

    .cart-fullscreen-btn i {
        font-size: 16px;
    }

.cart-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
}

    .cart-close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }

/* Fullscreen Mode */
.universal-cart-sidebar.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1070;
    border-left: none;
    box-shadow: none;
    background: white;
}

    .universal-cart-sidebar.fullscreen .cart-content {
        background: white;
        padding: 20px 40px; /* Increase left/right padding */
        max-width: 100%;
        box-sizing: border-box;
    }

    .universal-cart-sidebar.fullscreen .cart-header {
        padding: 15px 40px; /* Match content padding */
    }

        .universal-cart-sidebar.fullscreen .cart-header h4 {
            font-size: 24px;
        }

    .universal-cart-sidebar.fullscreen .cart-summary {
        max-height: 50vh; /* Increase max height in fullscreen for better visibility */
        padding: 0 40px; /* Add horizontal padding to match content */
        box-sizing: border-box;
    }

    .universal-cart-sidebar.fullscreen .cart-footer {
        padding: 20px 40px; /* Match content padding */
    }

    /* Fullscreen Text Scaling */
    .universal-cart-sidebar.fullscreen .cart-item h6 {
        font-size: 16px !important; /* Increase from ~14px */
    }

    .universal-cart-sidebar.fullscreen .cart-item p,
    .universal-cart-sidebar.fullscreen .cart-item small {
        font-size: 14px !important; /* Increase from ~12px */
    }

    .universal-cart-sidebar.fullscreen .cart-item .item-price,
    .universal-cart-sidebar.fullscreen .cart-item .item-total {
        font-size: 16px !important; /* Increase from ~14px */
    }

/* Highlight for pet select when user must choose a Paw */
.uc-pet-highlight {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220,53,69,.25) !important;
}

    .universal-cart-sidebar.fullscreen .summary-header h6 {
        font-size: 14px !important; /* Increase from ~10px */
    }

    .universal-cart-sidebar.fullscreen .summary-row {
        font-size: 13px !important; /* Increase from ~9px */
    }

    .universal-cart-sidebar.fullscreen .summary-label {
        font-size: 13px !important; /* Increase from ~9px */
    }

    .universal-cart-sidebar.fullscreen .summary-value {
        font-size: 14px !important; /* Increase from ~10px */
    }

    .universal-cart-sidebar.fullscreen .total-row {
        font-size: 16px !important; /* Increase from ~14px */
    }

    .universal-cart-sidebar.fullscreen .total-row.grand-total {
        font-size: 18px !important; /* Increase from ~16px */
    }

    .universal-cart-sidebar.fullscreen input,
    .universal-cart-sidebar.fullscreen select {
        font-size: 12px !important; /* Increase from ~10px */
    }

    .universal-cart-sidebar.fullscreen .cart-action-btn {
        font-size: 16px !important; /* Increase button text */
        padding: 12px 24px !important; /* Increase button padding */
    }

    /* Section totals scaling in fullscreen */
    .universal-cart-sidebar.fullscreen .section-total-row {
        font-size: 14px !important; /* Increase from ~9px */
    }

    .universal-cart-sidebar.fullscreen .section-total-row span:first-child {
        font-size: 14px !important; /* Increase "Subtotal:", "Total:" labels from ~9px */
    }

    .universal-cart-sidebar.fullscreen .section-total-row span:last-child {
        font-size: 15px !important; /* Increase values from ~10px */
    }

    .universal-cart-sidebar.fullscreen .section-total-row.section-final-total span {
        font-size: 16px !important; /* Increase final total from ~10px */
    }

/* Cart Content */
.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    background: #f8f9fa;
    min-height: 0; /* Allow flex child to shrink */
    /* Remove fixed max-height to allow dynamic resizing */
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

    .empty-cart i {
        font-size: 48px;
        margin-bottom: 16px;
        opacity: 0.5;
    }

    .empty-cart p {
        font-size: 18px;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .empty-cart small {
        font-size: 14px;
        opacity: 0.7;
    }

/* Cart Section */
.cart-section {
    margin-bottom: 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cart-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f1f3f4;
    border-bottom: 1px solid #e9ecef;
}

    .cart-section-header h6 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #495057;
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1;
    }

.section-toggle-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 12px;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 20px;
    height: 20px;
}

    .section-toggle-btn:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #495057;
    }

.section-count {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

/* Category Discount / Delivery / Discount Type Section */
.cart-section-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 6px 10px;
    background: #fff3cd;
    border-bottom: 1px solid #e9ecef;
    gap: 6px;
    box-sizing: border-box;
}

.cart-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 0;
    min-width: 60px;
}

    .cart-field.cart-field-wide {
        flex: 1 1 100%;
    }

    .cart-field label {
        margin: 0;
        font-size: 9px;
        font-weight: 500;
        color: #212529;
        white-space: nowrap;
    }

    .cart-field input {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        padding: 4px 6px;
        border: 1px solid #ffeaa7;
        border-radius: 3px;
        font-size: 9px;
        height: 22px;
    }

        .cart-field input:focus {
            outline: none;
            border-color: #f8ad29;
            box-shadow: 0 0 0 1px rgba(248, 173, 41, 0.2);
        }

.cart-section-items {
    padding: 2px;
    transition: all 0.3s ease;
}

/* Cart Section Totals */
.cart-section-totals {
    padding: 3px 8px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.section-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    font-size: 9px;
    line-height: 1.3;
}

    .section-total-row span:first-child {
        font-weight: 500;
        color: #6c757d;
        font-size: 9px;
    }

    .section-total-row span:last-child {
        font-weight: 600;
        color: #495057;
        font-size: 10px;
    }

    .section-total-row.section-final-total {
        border-top: 1px solid #dee2e6;
        margin-top: 2px;
        padding-top: 2px;
        font-weight: 700;
    }

        .section-total-row.section-final-total span {
            color: #007bff;
        }

/* Collapsed Cart Section Styles */
.cart-section.collapsed .cart-section-fields {
    display: none;
}

.cart-section.collapsed .cart-section-items {
    display: none;
}

.cart-section.collapsed .cart-section-totals {
    display: none;
}

.cart-section.collapsed {
    margin-bottom: 8px; /* Reduced margin when collapsed */
}

    .cart-section.collapsed .cart-section-header {
        padding: 10px 15px; /* Smaller padding when collapsed */
        border-bottom: none; /* Remove border when collapsed */
    }

/* Cart Items */
.cart-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 4px;
    margin-bottom: 2px;
    transition: box-shadow 0.2s;
}

    .cart-item:hover {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .cart-item:last-child {
        margin-bottom: 0;
    }

.cart-item-info {
    margin-bottom: 3px;
}

.cart-item-name {
    font-weight: 600;
    color: #212529;
    font-size: 10px;
    margin-bottom: 1px;
    line-height: 1.2;
}

.cart-item-category {
    font-size: 9px;
    color: #6c757d;
    font-style: italic;
    line-height: 1.1;
}

/* Cart Item Controls */
.cart-item-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.quantity-control,
.price-control,
.discount-control,
.total-control {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    width: 100%;
}

    .quantity-control label,
    .price-control label,
    .discount-control label,
    .total-control label {
        font-size: 7px;
        font-weight: 600;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.1px;
        line-height: 1;
        text-align: center;
        margin-bottom: 2px;
    }

/* Quantity Input Group */
.qty-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 3px;
    overflow: hidden;
    background: white;
    height: 20px;
    width: 100%;
    max-width: 90px;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #495057;
    font-weight: bold;
    transition: background-color 0.2s;
    font-size: 8px;
    line-height: 1;
}

    .qty-btn:hover {
        background: #e9ecef;
    }

.qty-input {
    border: none;
    width: 32px;
    height: 20px;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    background: white;
    line-height: 1;
}

    .qty-input:focus {
        outline: none;
        background: #f8f9fa;
    }

/* Other Input Controls */
.discount-input {
    width: 50px;
    height: 18px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 9px;
    text-align: right;
    line-height: 1;
}

    .discount-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.25);
    }

/* Price and Total Display */
.price-display,
.total-display {
    font-weight: 600;
    color: #28a745;
    font-size: 10px;
    padding: 3px 4px;
    background: #f8f9fa;
    border-radius: 3px;
    text-align: center;
    line-height: 1.1;
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 70px;
}

.total-display {
    color: #007bff;
    background: #e7f3ff;
}

/* Remove Button */
.remove-btn {
    background: #dc3545;
    border: none;
    color: white;
    padding: 2px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 8px;
    transition: background-color 0.2s;
    line-height: 1;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .remove-btn:hover {
        background: #c82333;
    }

/* Cart Footer */
.cart-footer {
    padding: 20px 25px;
    background: white;
    border-top: 1px solid #e9ecef;
}

/* Cart Total */
.cart-total {
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

    .total-row.grand-total {
        border-top: 2px solid #007bff;
        margin-top: 10px;
        padding-top: 15px;
        font-weight: 700;
        font-size: 16px;
        color: #007bff;
    }

/* Cart Actions */
.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Cart Global Summary */
.cart-summary {
    border-top: 2px solid #e9ecef;
    background: white;
    margin: 0;
    max-height: 40vh; /* Limit maximum height to 40% of viewport */
    overflow-y: auto; /* Allow scrolling if content exceeds max height */
    flex-shrink: 1; /* Allow shrinking if needed */
    transition: all 0.3s ease; /* Smooth transition when collapsing */
}

    .cart-summary.collapsed {
        /* When collapsed, reduce the summary to minimal height */
        flex-shrink: 1;
    }

.cart-global-summary {
    padding: 3px 8px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
    max-height: inherit; /* Inherit max height from parent */
}

.summary-header {
    margin-bottom: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1px 0;
    border-bottom: 1px solid #e9ecef;
}

    .summary-header:hover {
        background: rgba(248, 173, 41, 0.05);
        margin: 0 -8px;
        padding: 2px 8px;
        border-radius: 3px;
    }

.summary-toggle-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 9px;
    cursor: pointer;
    padding: 1px;
    border-radius: 2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .summary-toggle-btn:hover {
        background: rgba(0, 0, 0, 0.05);
        color: #495057;
    }

.summary-header h6 {
    margin: 0;
    font-size: 10px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 2px;
    line-height: 1.1;
}

.summary-content {
    transition: all 0.3s ease;
    overflow: visible;
    width: 100%;
}

.summary-essential {
    border-top: 1px solid #e9ecef;
    padding-top: 1px;
    margin-top: 1px;
}

/* Smooth transitions for collapsible summary */
.cart-summary.collapsed .cart-global-summary {
    padding-bottom: 2px; /* Reduce bottom padding when collapsed */
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 0;
    font-size: 9px;
    border-bottom: 1px solid #f8f9fa;
    line-height: 1.3;
    min-height: 16px;
    width: 100%;
    box-sizing: border-box;
}

    .summary-row:last-child {
        border-bottom: none;
    }

.summary-label {
    font-weight: 500;
    color: #495057;
    min-width: 60px;
    font-size: 9px;
    white-space: nowrap;
    overflow: visible;
}

.summary-value {
    font-weight: 600;
    color: #495057;
    font-size: 10px;
    text-align: right;
    white-space: nowrap;
    overflow: visible;
    flex-shrink: 0;
}

.summary-input-group {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow: visible;
    flex-shrink: 0;
}

.summary-discount-input,
.summary-delivery-input,
.summary-paid-input {
    width: 75px;
    padding: 2px 6px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 10px;
    text-align: right;
    line-height: 1.2;
    height: 18px;
    box-sizing: border-box;
    overflow: visible;
    flex-shrink: 0;
}
.summary-wallet-input {
    width: 75px;
    padding: 2px 6px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 10px;
    text-align: right;
    line-height: 1.2;
    height: 18px;
    box-sizing: border-box;
    overflow: visible;
    flex-shrink: 0;
}

.summary-discount-input:focus,
.summary-delivery-input:focus,
.summary-paid-input:focus {
    outline: none;
    border-color: #f8ad29;
    box-shadow: 0 0 0 1px rgba(248, 173, 41, 0.2);
}

.summary-method-select {
    width: 110px;
    padding: 2px 4px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 10px;
    background: white;
    line-height: 1.2;
    height: 20px;
    box-sizing: border-box;
    overflow: visible;
}

.summary-method-select:focus {
    outline: none;
    border-color: #f8ad29;
    box-shadow: 0 0 0 1px rgba(248, 173, 41, 0.2);
}

.summary-wallet-input,
.summary-transaction-input,
.summary-card-number-input {
    width: 75px;
    padding: 2px 4px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 10px;
    line-height: 1.2;
    height: 18px;
    box-sizing: border-box;
    overflow: visible;
}

.summary-wallet-input:focus,
.summary-transaction-input:focus,
.summary-card-number-input:focus {
    outline: none;
    border-color: #f8ad29;
    box-shadow: 0 0 0 1px rgba(248, 173, 41, 0.2);
}

.summary-card-type-select {
    width: 110px;
    padding: 2px 4px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 10px;
    background: white;
    line-height: 1.2;
    height: 20px;
    box-sizing: border-box;
    overflow: visible;
}

.summary-card-type-select:focus {
    outline: none;
    border-color: #f8ad29;
    box-shadow: 0 0 0 1px rgba(248, 173, 41, 0.2);
}

.mobile-banking-field,
.card-field {
    background-color: #f8f9fa;
    border-left: 2px solid #f8ad29;
    padding-left: 6px;
    margin: 1px 0;
}

.mobile-banking-field .summary-label,
.card-field .summary-label {
    color: #856404;
    font-weight: 500;
}

.summary-total {
    border-top: 1px solid #007bff !important;
    border-bottom: 1px solid #007bff !important;
    margin: 2px 0;
    padding: 2px 0 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
}
.summary-total-paid {
/*    border-top: 1px solid #007bff !important;*/
    border-bottom: 1px solid #007bff !important;
    margin: 2px 0;
    padding: 2px 0 !important;
    font-weight: 700 !important;
    font-size: 11px !important;
}

.summary-total .summary-label,
.summary-total .summary-value {
    color: #007bff !important;
    font-weight: 700;
}

.summary-total-paid .summary-label,
.summary-total-paid .summary-value {
    color: #28a745 !important;
    font-weight: 700;
}

.summary-due {
    font-weight: 600;
    font-size: 10px;
}

.summary-due .summary-label,
.summary-due .summary-value {
    color: #dc3545;
    font-weight: 600;
}

.summary-overpaid .summary-label,
.summary-overpaid .summary-value {
    color: #28a745 !important;
}

/* Cart Actions */
.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px 0;
}

.cart-action-btn {
    padding: 6px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 10px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.2;
    min-height: 24px;
}

.cart-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Notification Styles */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #007bff;
    z-index: 1070;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 300px;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification-success {
    border-left-color: #28a745;
}

.cart-notification-error {
    border-left-color: #dc3545;
}

.cart-notification-warning {
    border-left-color: #ffc107;
}

.cart-notification-info {
    border-left-color: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #495057;
}

.notification-content i {
    font-size: 16px;
}

.cart-notification-success .notification-content i {
    color: #28a745;
}

.cart-notification-error .notification-content i {
    color: #dc3545;
}

.cart-notification-warning .notification-content i {
    color: #ffc107;
}

.cart-notification-info .notification-content i {
    color: #17a2b8;
}

/* Body scroll lock when cart is open - REMOVED to allow page scrolling */
/* body.cart-open {
    overflow: hidden;
} */

/* Responsive Design */
@media (max-width: 768px) {
    .universal-cart-sidebar {
        width: 100vw;
        right: -100vw;
    }

    .universal-cart-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }

    .cart-item-controls {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .remove-btn {
        grid-column: span 1;
        justify-self: stretch;
    }

    .cart-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cart-header,
    .cart-content,
    .cart-footer {
        padding: 15px 20px;
    }

    .cart-item {
        padding: 12px;
    }

    .cart-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }

        .cart-notification.show {
            transform: translateY(0);
        }
}

/* Custom Scrollbar for Cart Content */
.cart-content::-webkit-scrollbar {
    width: 6px;
}

.cart-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.cart-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .cart-content::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Cart Summary Scrollbar - Only show in regular (non-fullscreen) mode */
.universal-cart-sidebar:not(.fullscreen) .cart-summary::-webkit-scrollbar {
    width: 6px;
}

.universal-cart-sidebar:not(.fullscreen) .cart-summary::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.universal-cart-sidebar:not(.fullscreen) .cart-summary::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .universal-cart-sidebar:not(.fullscreen) .cart-summary::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Hide custom scrollbar in fullscreen mode */
.universal-cart-sidebar.fullscreen .cart-summary::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.universal-cart-sidebar.fullscreen .cart-summary {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Animation for cart items */
.cart-item {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for cart actions */
.cart-action-btn.loading {
    position: relative;
    color: transparent;
}

    .cart-action-btn.loading::after {
        content: '';
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.alignWithText {
    margin-top: 0.17em !important;
}