/* Custom CSS for Bootstrap Modal Checkout */

/* Custom Gradient Button Classes */
.btn-gradient {
    background: linear-gradient(135deg, #ee7855 0%, #ef3f09 50%, #ee7855 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(238, 120, 85, 0.3);
}

.btn-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 120, 85, 0.4);
    color: white;
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-gradient:active {
    transform: translateY(0);
    box-shadow: 0 3px 12px rgba(238, 120, 85, 0.3);
}

.btn-gradient:focus {
    box-shadow: 0 0 0 3px rgba(238, 120, 85, 0.25);
    color: white;
    outline: none;
}

.btn-gradient:disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 50%, #ccc 100%);
    transform: none;
    box-shadow: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid #ef3f09;
    color: #ef3f09;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ee7855 0%, #ef3f09 50%, #ee7855 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline-gradient:hover {
    color: white;
    border-color: #ef3f09;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(238, 120, 85, 0.3);
}

.btn-outline-gradient:hover::before {
    left: 0;
}

.btn-outline-gradient:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(238, 120, 85, 0.2);
}

.btn-outline-gradient:focus {
    box-shadow: 0 0 0 3px rgba(238, 120, 85, 0.25);
    outline: none;
}

.btn-outline-gradient:disabled {
    border-color: #ccc;
    color: #999;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline-gradient:disabled::before {
    display: none;
}

/* Resend Timer Styles */
#resendOtp:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#resendTimer {
    color: #6c757d;
    font-weight: 500;
}

#timerCount {
    color: #ef3f09;
    font-weight: 600;
}

/* Change Phone Number Button */
#changePhoneNumber {
    color: #ef3f09;
    text-decoration: none;
    transition: color 0.2s ease;
}

#changePhoneNumber:hover {
    color: #ee7855;
    text-decoration: underline;
}

/* Forgot Password Link Styling */
#forgotPasswordBtn {
    color: #6c757d;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

#forgotPasswordBtn:hover {
    color: #ef3f09;
    text-decoration: none;
}

/* Forgot Password Form Styling */
#forgotPasswordForm {
    animation: slideIn 0.3s ease-in-out;
}

#backToEmailLogin {
    color: #6c757d;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

#backToEmailLogin:hover {
    color: #ef3f09;
    text-decoration: none;
}

#backToEmailLogin i {
    font-size: 0.75rem;
}

/* Address Management Styling */
.address-selection-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.address-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    /* padding: 1rem; */
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.address-card:hover {
    border-color: #ef3f09;
    box-shadow: 0 4px 12px rgba(238, 120, 85, 0.1);
}

.address-card.selected {
    border-color: #ef3f09;
    background-color: rgba(238, 120, 85, 0.05);
}

.address-label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.address-content {
    flex: 1;
}

.address-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.address-details {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.address-phone {
    color: #888;
    font-size: 0.85rem;
}

.address-actions {
    margin-left: 1rem;
}

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

/* Address Form Styling */
#addressForm .section-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

#addressForm .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

#addressForm .form-control,
#addressForm .form-select {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

#addressForm .form-control:focus {
    border-color: #ef3f09;
    box-shadow: 0 0 0 3px rgba(238, 120, 85, 0.1);
}

#addressForm textarea.form-control {
    resize: vertical;
    min-height: 80px;
}
#checkoutModal .modal-dialog {
    margin-top: 1px;
}

/* Login Tabs Styling */
.nav-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #ef3f09;
    background-color: rgba(238, 120, 85, 0.1);
}

.nav-tabs .nav-link:focus {
    border: none !important;
    color: #ef3f09 !important;
    background-color: rgba(238, 120, 85, 0.1) !important;
}

.nav-tabs .nav-link.active {
    border: none;
    color: #ef3f09;
    background-color: white;
    border-bottom: 3px solid #ef3f09;
    font-weight: 600;
}
.me-2 {
    margin-right: 0.5rem !important;
}

.tab-content {
    /* padding-top: 20px; */
}

.nav-fill .nav-item .nav-link,
.nav-justified .nav-item .nav-link {
    width: 100%;
}

/* Password Toggle Button */
#togglePassword {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#togglePassword:hover {
    background-color: #f8f9fa;
}

/* Divider Styling */
.position-relative hr {
    border-color: #e9ecef;
}

.position-absolute.bg-white {
    background-color: white !important;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Checkout Steps */
.checkout-step {
    display: none;
    animation: slideIn 0.3s ease-in-out;
}

.checkout-step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Cards */
.section-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.section-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.section-header h5 {
    margin: 0;
    color: #212529;
    font-weight: 600;
}

/* Address Cards */
.address-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.address-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.address-card:has(input:checked) {
    border-color: #0d6efd;
    background-color: #f8f9ff;
}

.address-label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    margin: 0;
    cursor: pointer;
    width: 100%;
}

.address-content {
    flex: 1;
    margin-left: 8px;
}

.address-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.address-details {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 4px;
}

.address-phone {
    color: #6c757d;
    font-size: 0.875rem;
}

.address-actions {
    margin-left: 12px;
}

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

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.payment-option:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
}

.payment-option:has(input:checked) {
    border-color: #0d6efd;
    background-color: #f8f9ff;
}

.payment-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 0;
    cursor: pointer;
    width: 100%;
}

.payment-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.5rem;
    color: #0d6efd;
    transition: all 0.2s ease;
}

.payment-option:has(input:checked) .payment-icon {
    background-color: #0d6efd;
    color: white;
}

.payment-content {
    flex: 1;
    margin-left: 8px;
}

.payment-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 2px;
}

.payment-desc {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Button Loading States */
.btn-spinner {
    width: 1rem;
    height: 1rem;
    border-width: 0.125em;
}

/* Discount Messages */
.discount-message {
    font-size: 0.875rem;
    /* min-height: 1.2rem; */
}

.discount-success {
    color: #198754;
}

.discount-error {
    color: #dc3545;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Modal Customizations */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
}

.modal-body {
    padding: 12px;
}

.modal-footer {
    padding: 0 1.5rem 1.5rem;
}

/* Ensure modal displays properly when shown manually */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .section-card {
        padding: 1rem;
    }

    .address-label,
    .payment-label {
        padding: 0.75rem;
    }

    .payment-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .address-actions {
        margin-left: 8px;
    }
}

@media (max-width: 576px) {
    .modal-body {
        padding: 0.75rem 1rem;
    }

    .section-card {
        padding: 0.75rem;
    }

    .address-details {
        font-size: 0.825rem;
    }

    .payment-desc {
        font-size: 0.8rem;
    }
}

/* Input Focus States */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Custom Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-success {
    background-color: #d1eddb;
    color: #0a3622;
}

/* PIN Input Styling */
.pin-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pin-input-wrapper {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 8px;
}

.pin-input {
    width: 60px;
    height: 60px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    background-color: #fff;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pin-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}

.pin-input.filled {
    border-color: #198754;
    background-color: #f8fff9;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.15);
}

.pin-input.error {
    border-color: #dc3545;
    background-color: #fff8f8;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.pin-input:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* PIN Input Animation */
@keyframes pinPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pin-input:focus {
    animation: pinPulse 0.3s ease;
}

/* Responsive PIN Input */
@media (max-width: 576px) {
    .pin-input-wrapper {
        gap: 8px;
    }

    .pin-input {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 400px) {
    .pin-input {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
}

/* Button Hover Effects */
.btn {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* Success Modal Styling */
#successModal .modal-content {
    border-radius: 20px;
}

/* Loading overlay for better UX */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
}

/* Cart Styles */
.cart-items {
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

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

.cart-item:hover {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.cart-item-image {
    flex-shrink: 0;
    margin-right: 1rem;
}

.cart-item-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #e9ecef;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
    margin-right: 1rem;
}

.cart-item-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.cart-item-specs {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.cart-item-price {
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-quantity {
    flex-shrink: 0;
    margin-right: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: scale(1.05);
}

.quantity-display {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: #212529;
}

.cart-item-total {
    flex-shrink: 0;
    font-weight: 700;
    color: #212529;
    font-size: 1rem;
    min-width: 80px;
    text-align: right;
}

/* Cart Summary */
.cart-summary {
    border-top: 2px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.summary-row:not(.total-row) {
    color: #6c757d;
}

.total-row {
    border-top: 1px solid #e9ecef;
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #212529;
}

.discount-row {
    color: #198754 !important;
}

.discount-amount {
    color: #198754;
    font-weight: 600;
}

.total-amount {
    color: #0d6efd;
    font-size: 1.2rem;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cart-item-quantity {
        order: 3;
        margin-right: 0;
    }

    .cart-item-total {
        order: 4;
        text-align: left;
        min-width: auto;
    }

    .quantity-controls {
        gap: 6px;
    }

    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .cart-item-image img {
        width: 50px;
        height: 50px;
    }

    .cart-item-name {
        font-size: 0.9rem;
    }

    .cart-item-specs {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .cart-item {
        padding: 0.75rem 0;
    }

    .cart-item-image {
        margin-right: 0.75rem;
    }

    .cart-item-details {
        margin-right: 0.75rem;
    }

    .cart-item-image img {
        width: 45px;
        height: 45px;
    }

    .summary-row {
        font-size: 0.9rem;
    }

    .total-amount {
        font-size: 1.1rem;
    }
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Step 2 Redesign Styles */
.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left .btn-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 1.2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 150px;
    object-fit: contain;
}

.brand-name {
    font-weight: 600;
    color: #212529;
    font-size: 1.1rem;
}

.header-right {
    text-align: right;
}

.item-count {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.current-price {
    font-weight: 700;
    color: #212529;
    font-size: 14px;
}

.price-info .bi-chevron-down {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Discount Banner */
.discount-banner {
    background-color: #000;
    color: white;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Delivery Information */
.delivery-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.delivery-icon {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.delivery-content {
    flex: 1;
}

.delivery-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.delivery-address {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.delivery-contact {
    color: #6c757d;
    font-size: 0.875rem;
}

.delivery-action {
    flex-shrink: 0;
}

/* Delivery Option */
.delivery-option {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.delivery-option-icon {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.delivery-option-content {
    flex: 1;
}

.delivery-option-title {
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.delivery-option-desc {
    color: #212529;
    font-size: 12px;
}

.delivery-option-badge {
    flex-shrink: 0;
}

/* Coupon Input */
.coupon-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coupon-icon {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.coupon-input {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.coupon-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Payment Section Header */
.payment-section-header {
    margin-bottom: 1rem;
}

.payment-section-header h5 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #212529;
}

.payment-discount-banner {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* New Payment Options */
.payment-options-new {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.4rem;
    background-color: #fff5f5;
    border: 1px solid #ffe0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.payment-option-new:hover {
    background-color: #fff0f0;
    border-color: #ffcccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-option-new.selected {
    background-color: #fff0f0;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.payment-option-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-option-icon-new {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 1.2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.payment-option-text {
    font-weight: 600;
    color: #212529;
    font-size: 1rem;
}

.payment-option-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
}

.payment-discount-tag {
    background-color: #212529;
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    position: absolute;
    top: -0.5rem;
    right: 40%;
}

.payment-price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.payment-original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.875rem;
}

.payment-discounted-price {
    font-weight: 700;
    color: #212529;
    font-size: 1rem;
}

.payment-option-right .bi-chevron-right {
    color: #6c757d;
    font-size: 1rem;
}

/* Responsive Design for Step 2 */
@media (max-width: 768px) {
    .checkout-header {
        padding: 0.75rem 0;
    }

    .brand-name {
        font-size: 1rem;
    }

    .logo-img {
        width: 170px;
    }

    .current-price {
        font-size: 1rem;
    }

    .delivery-info,
    .delivery-option {
        gap: 0.75rem;
    }

    .delivery-icon,
    .delivery-option-icon,
    .coupon-icon,
    .payment-option-icon-new {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .payment-option-new {
        padding: 0.2rem 0.4rem;
    }

    .payment-option-right {
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .checkout-header {
        padding: 0.5rem 0;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .logo-img {
        width: 130px;
    }

    .item-count {
        font-size: 0.8rem;
    }

    .current-price {
        font-size: 0.9rem;
    }

    .discount-banner {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .delivery-info,
    .delivery-option {
        gap: 0.5rem;
    }

    .delivery-icon,
    .delivery-option-icon,
    .coupon-icon,
    .payment-option-icon-new {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .delivery-title {
        font-size: 0.9rem;
    }

    .delivery-address {
        font-size: 0.85rem;
    }

    .delivery-contact {
        font-size: 0.8rem;
    }

    .payment-option-new {
        padding: 0.2rem 0.4rem;
    }

    .payment-option-text {
        font-size: 14px;
    }

    .payment-discount-tag {
        top: -0.5rem;
        right: 35%;
    }

    .payment-original-price {
        font-size: 0.8rem;
    }

    .payment-discounted-price {
        font-size: 0.9rem;
    }

    .payment-discount-tag {
        font-size: 10px;
        padding: 0.2rem 0.4rem;
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Cart Details Section */
.cart-details-section {
    animation: slideDown 0.3s ease-out;
}

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

.cart-product-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cart-product-image {
    flex-shrink: 0;
}

.cart-product-image img {
    width: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-product-info {
    flex: 1;
    min-width: 0;
}

.cart-product-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    font-size: 12px;
    line-height: 1.4;
}
.payment-option-text-line {
    font-size: 10px;
}

.cart-product-qty {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.cart-product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.price-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-left .original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.875rem;
}

.price-left .current-price {
    color: #212529;
    font-size: 12px;
}

.quantity-right {
    text-align: right;
}

.quantity-text {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Price Breakdown */
.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #6c757d;
}

.breakdown-row.total-row {
    border-top: 1px solid #e9ecef;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 700;
    font-size: 14px;
    color: #212529;
}

.breakdown-row.total-row .total-amount {
    color: #0d6efd;
    font-size: 14px;
}

/* Cart Toggle Button */
.cart-toggle {
    color: #6c757d;
    transition: transform 0.2s ease;
}

.cart-toggle:hover {
    color: #212529;
}

.cart-toggle.expanded {
    transform: rotate(180deg);
}

/* Responsive Design for Cart Details */
@media (max-width: 768px) {
    .cart-product-image img {
        width: 70px;
        height: 70px;
    }

    .cart-product-name {
        font-size: 0.9rem;
    }

    .breakdown-row {
        font-size: 0.9rem;
    }

    .breakdown-row.total-row {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .cart-product-image img {
        width: 60px;
        height: 60px;
    }

    .cart-product-name {
        font-size: 0.85rem;
    }

    .cart-product-qty {
        font-size: 0.8rem;
    }

    .breakdown-row {
        font-size: 0.85rem;
    }

    .breakdown-row.total-row {
        font-size: 0.95rem;
    }
}

/* Awesome Discount Section */
.discount-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    color: #212529;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.discount-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.02) 0%,
        rgba(118, 75, 162, 0.02) 100%
    );
    pointer-events: none;
}

.discount-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.discount-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discount-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

/* Discount Input Group */
.discount-input-group {
    position: relative;
    z-index: 1;
}

.discount-input-wrapper {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.discount-input-wrapper:focus-within {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.discount-icon {
    width: 40px;
    height: 40px;
    background: #667eea;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: white;
    font-size: 1.1rem;
    padding: 0px 8px;
}

.discount-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #212529;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    padding: 0.5rem 0;
}

.discount-input::placeholder {
    color: #6c757d;
}

.discount-apply-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.discount-apply-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.discount-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.discount-apply-btn:hover::before {
    left: 100%;
}

.discount-apply-btn:active {
    transform: translateY(0);
}

.discount-message {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    min-height: 1.2rem;
    transition: all 0.3s ease;
}

.discount-message.success {
    color: #198754;
    background: #d1eddb;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #badbcc;
}

.discount-message.error {
    color: #dc3545;
    background: #f8d7da;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #f5c2c7;
}

/* Popular Coupons */
.popular-coupons {
    /* margin-top: 1.5rem; */
    position: relative;
    z-index: 1;
}

.coupons-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: #6c757d;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.coupon-chip {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.coupon-chip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coupon-chip:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.coupon-chip:hover::before {
    opacity: 1;
}

.coupon-chip:active {
    transform: translateY(0);
}

.coupon-content {
    position: relative;
    z-index: 1;
}

.coupon-code {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.coupon-desc {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}

.coupon-icon-chip {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
}

/* Applied Discount Display */
.applied-discount {
    margin-top: 1rem;
    background: #d1eddb;
    border: 1px solid #badbcc;
    border-radius: 12px;
    padding: 1rem;
    animation: slideInUp 0.4s ease-out;
}

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

.applied-discount-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.applied-discount-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.applied-discount-icon {
    width: 32px;
    height: 32px;
    background: #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.applied-discount-details {
    color: #212529;
}

.applied-discount-code {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.applied-discount-amount {
    font-size: 0.8rem;
    opacity: 0.9;
}

.remove-discount-btn {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #dc3545;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.remove-discount-btn:hover {
    background: #f1aeb5;
    border-color: #ea868f;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .discount-section {
        padding: 1.25rem;
    }

    .discount-title {
        font-size: 1.1rem;
    }

    .coupons-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .coupon-chip {
        padding: 0.6rem;
    }

    .coupon-code {
        font-size: 0.75rem;
    }

    .coupon-desc {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .discount-section {
        padding: 1rem;
    }

    .discount-input-wrapper {
        /* flex-direction: column; */
        gap: 0.75rem;
    }

    .discount-icon {
        margin-right: 0;
    }

    .discount-apply-btn {
        width: 100%;
    }

    .coupons-grid {
        grid-template-columns: 1fr;
    }
    .discount-apply-btn {
        padding: 10px 18px;
    }
}
.skeleton {
    background-color: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 12px;
}

.skeleton-box {
    height: 60px;
    margin-bottom: 16px;
}

.skeleton-btn {
    height: 45px;
    border-radius: 6px;
}
