/* Checkout Page Styles */

/* Toast Notifications */
.toast-container {
    z-index: 9999 !important;
}

.toast {
    min-width: 300px;
    margin-bottom: 0.5rem;
}

.toast-body {
    font-size: 0.9rem;
}

/* Loading Overlays */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.ajax-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.loading-spinner-large {
    width: 3rem;
    height: 3rem;
}

.loading-spinner-medium {
    width: 2.5rem;
    height: 2.5rem;
}

/* Cart Sidebar */
.checkout-sidebar-card {
    position: sticky;
    top: 20px;
    z-index: 1030;
}

.checkout-cart-content {
    max-height: 400px;
    overflow-y: auto;
}

.sticky-top {
    z-index: 1020;
}

.time-slot-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.time-slot-radio:checked + label .time-slot-card {
    border-color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
}

#card-container {
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: white;
}

.alert {
    border-radius: 0.5rem;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.btn {
    border-radius: 0.375rem;
}

.form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.card.bg-light {
    border: 1px solid #dee2e6;
}

.card.bg-light .card-body {
    padding: 1rem;
}

.form-check {
    padding-left: 1.5rem;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Glass container pricing styles */
.glass-pricing-breakdown {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.glass-pricing-breakdown .text-success {
    font-weight: 500;
}

.subscription-savings {
    background-color: #d1edff;
    border-left: 3px solid #0d6efd;
    padding: 0.3rem 0.5rem;
    border-radius: 0.25rem;
}

.first-delivery-breakdown {
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 0.3rem 0.5rem;
    border-radius: 0.25rem;
}

/* Keg deposit specific styles */
.keg-deposit-breakdown {
    background-color: #f0f8f0;
    border-left: 3px solid #198754;
    padding: 0.3rem 0.5rem;
    border-radius: 0.25rem;
}

.keg-savings {
    background-color: #d4edda;
    border-left: 3px solid #198754;
    padding: 0.3rem 0.5rem;
    border-radius: 0.25rem;
}

/* Step Management */
.card-header[type="button"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-header[type="button"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.card-body.collapse {
    transition: height 0.3s ease;
}

.card-header .fas.float-end {
    transition: transform 0.3s ease;
}

.card-header .fa-chevron-down {
    transform: rotate(0deg);
}

.card-header .fa-chevron-up {
    transform: rotate(180deg);
}

/* Step Progress Animation */
.card.mb-4 {
    transition: all 0.4s ease;
    transform: translateY(0);
}

.card.mb-4.d-none {
    transform: translateY(-20px);
    opacity: 0;
}

/* Step Validation States */
.card-header.step-completed {
    opacity: 0.8;
}

.card-header.step-active {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}
