/* Order Page Styles */
.closure-notice {
    background-color: rgba(220, 53, 69, 0.15);
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}

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

.closure-notice-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.closure-notice-content i {
    color: #dc3545;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.closure-notice-text {
    color: var(--white);
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1rem;
}

.closure-notice-text strong {
    color: #dc3545;
    font-weight: 600;
}

/* Busy warning: orders piling up (info banner, does not block ordering) */
.order-busy-warning {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 193, 7, 0.15);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    animation: slideDown 0.3s ease-out;
}
.order-busy-warning i {
    color: #ffc107;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.order-busy-warning span {
    color: var(--white);
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1rem;
}
.order-busy-warning strong {
    color: #ffc107;
    font-weight: 600;
}

/* Category jump nav – horizontal list, sticky below navbar */
.category-jump-nav {
    position: sticky;
    top: 80px;
    z-index: 999;
    margin-top: 1rem;
    margin-bottom: 0;
    background-color: var(--dark-gray);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.category-jump-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    overflow-x: visible;
}


.category-jump-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.category-jump-link:hover {
    background-color: rgba(255, 215, 0, 0.15);
    color: var(--yellow);
}

.category-jump-link:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

.category-jump-link.is-active {
    background-color: rgba(255, 215, 0, 0.2);
    color: var(--yellow);
    font-weight: 600;
}

.order-page-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 1.5rem;
}

.order-page-layout[data-closed="true"] .add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(220, 53, 69, 0.3);
    color: rgba(255, 255, 255, 0.6);
}

.order-page-layout[data-closed="true"] .add-to-cart-btn:disabled:hover {
    transform: none;
    box-shadow: none;
    background-color: rgba(220, 53, 69, 0.3);
}

.products-section {
    min-width: 0; /* Prevents grid overflow */
}

.product-category-section {
    margin-bottom: 3rem;
    scroll-margin-top: 140px; /* offset for sticky navbar + category jump nav */
}

.category-title {
    font-size: 2rem;
    color: var(--yellow);
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.category-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    min-height: 70px;
}

.product-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-image-container {
    width: 100px;
    min-width: 100px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-name-price {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    font-family: 'Funnel Display', sans-serif;
    white-space: nowrap;
}

.product-diet-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.product-icon-vegan,
.product-icon-vegetarian {
    font-size: 0.9rem;
    opacity: 0.95;
}

.product-icon-vegan {
    color: #22c55e;
}

.product-icon-vegetarian {
    color: #84cc16;
}

.product-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    display: block;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.product-action-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--yellow);
    font-family: 'Funnel Display', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-invulvelden {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.invulveld-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.invulveld-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.invulveld-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.invulveld-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.invulveld-option input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--yellow);
}

.option-label {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.option-price {
    color: var(--yellow);
    font-weight: 600;
    margin-left: 0.25rem;
    font-size: 0.8rem;
}

.add-to-cart-btn {
    padding: 0.4rem 0.8rem;
    background-color: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Funnel Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
    flex-shrink: 0;
    height: fit-content;
}

.add-to-cart-btn i {
    font-size: 0.75rem;
}

.add-to-cart-btn:hover {
    background-color: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* Cart Section - sticky on desktop */
.cart-section {
    position: sticky;
    top: 150px; /* below navbar (80px) + category jump nav (~64px) */
    align-self: start;
    height: fit-content;
    max-height: calc(100vh - 170px);
}

.cart-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.cart-title {
    font-size: 1.5rem;
    color: var(--yellow);
    margin: 0;
}

.cart-close-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
    line-height: 1;
}

.cart-close-btn:hover {
    color: var(--white);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    min-height: 100px;
    max-height: 400px;
}

.cart-empty {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem 1rem;
    font-style: italic;
}

.cart-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item.cart-item-added {
    animation: cartItemSlideIn 0.4s ease-out;
}

@keyframes cartItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.cart-item.cart-item-removing {
    animation: cartItemSlideOut 0.4s ease-out;
}

@keyframes cartItemSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
        max-height: 500px;
        margin-bottom: 0.75rem;
        padding: 1rem;
    }
    to {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
        max-height: 0;
        margin-bottom: 0;
        padding: 0 1rem;
    }
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.cart-item-name {
    font-weight: 600;
    color: var(--white);
    flex: 1;
    margin-right: 0.5rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.cart-item-remove:hover {
    color: #dc3545;
}

.cart-item-options {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.cart-item-option {
    margin-bottom: 0.25rem;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--yellow);
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--white);
}

.cart-item-price {
    font-weight: 600;
    color: var(--yellow);
    font-size: 1.1rem;
}

.cart-footer {
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.delivery-option-section {
    margin-bottom: 1.5rem;
}

.delivery-option-label {
    display: block;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delivery-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delivery-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

.delivery-option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--yellow);
}

.delivery-option .option-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.delivery-option .option-price {
    color: var(--yellow);
    font-weight: 600;
    font-size: 0.95rem;
}

.delivery-option input[type="radio"]:checked + .option-text {
    color: var(--white);
    font-weight: 600;
}

.delivery-option-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.delivery-option-disabled .option-text {
    color: rgba(255, 255, 255, 0.5);
}
.delivery-option-disabled:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.time-selector-section {
    margin-bottom: 1.5rem;
}

.time-selector-label {
    display: block;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.time-selector {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--white);
    font-size: 1rem;
    font-family: 'Funnel Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-selector:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 215, 0, 0.3);
}

.time-selector:focus {
    outline: none;
    border-color: var(--yellow);
    background-color: rgba(255, 255, 255, 0.1);
}

.time-selector option {
    background-color: var(--black);
    color: var(--white);
    padding: 0.5rem;
}

.cart-summary {
    margin-bottom: 1rem;
}

.minimum-order-warning-text {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin: 0.75rem 0;
    padding: 0.5rem;
    font-family: 'Funnel Sans', sans-serif;
    line-height: 1.4;
}

.minimum-order-warning-text strong {
    color: var(--yellow);
    font-weight: 700;
}

.cart-subtotal,
.cart-service-cost,
.cart-platform-fee {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.cart-service-cost {
    flex-direction: column;
    align-items: stretch;
}

.cart-service-cost-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-service-cost .service-cost-distance-note {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.subtotal-label,
.service-label,
.platform-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.subtotal-amount,
.service-amount,
.platform-amount {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.25rem;
}

.total-label {
    font-weight: 600;
    color: var(--white);
}

.total-amount {
    font-weight: 700;
    color: var(--yellow);
    font-size: 1.5rem;
    font-family: 'Funnel Display', sans-serif;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Funnel Sans', sans-serif;
}

.checkout-btn:hover:not(:disabled) {
    background-color: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-products {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Scrollbar styling for cart */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Disable background scroll when any modal is open */
html.modal-open,
body.modal-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Order modals: fit dynamic viewport; header/footer fixed, body scrolls */
.checkout-modal.active,
.product-options-modal.active,
.address-modal.active,
.customer-info-modal.active,
.error-modal.active {
    padding: max(0.5rem, env(safe-area-inset-top, 0px))
        max(0.75rem, env(safe-area-inset-right, 0px))
        max(0.5rem, env(safe-area-inset-bottom, 0px))
        max(0.75rem, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

/* Checkout Modal */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.checkout-modal.active {
    display: flex;
}

.checkout-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.checkout-modal-content {
    position: relative;
    background-color: var(--black);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1.5rem));
    overflow: hidden;
    overflow-x: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
    box-sizing: border-box;
    min-height: 0;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.checkout-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.checkout-modal-header h2 {
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.75rem;
    color: var(--yellow);
    margin: 0;
}

.checkout-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
    line-height: 1;
}

.checkout-modal-close:hover {
    color: var(--white);
}

.checkout-modal-body {
    padding: 1.5rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.checkout-modal-body .delivery-option-section {
    margin-bottom: 1.5rem;
}

.address-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    animation: slideDown 0.3s ease-out;
}

.address-label {
    display: block;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.address-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.address-field label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.address-input {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--white);
    font-size: 1rem;
    font-family: 'Funnel Sans', sans-serif;
    transition: all 0.2s ease;
}

.address-input[readonly] {
    background-color: rgba(255, 255, 255, 0.03);
    cursor: not-allowed;
}

select.address-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
    cursor: pointer;
    color: var(--white);
}

select.address-input option {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    padding: 0.5rem;
}

select.address-input option:hover {
    background-color: rgba(255, 215, 0, 0.3) !important;
    color: #ffffff !important;
}

select.address-input option:checked,
select.address-input option:focus {
    background-color: rgba(255, 215, 0, 0.4) !important;
    color: #ffffff !important;
}

.address-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.address-input:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.address-input:focus {
    outline: none;
    border-color: var(--yellow);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.address-field-group {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .address-field-group {
        grid-template-columns: 1fr;
    }
}

.checkout-modal-body .time-selector-section {
    margin-bottom: 1.5rem;
}

.checkout-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-subtotal,
.checkout-service-cost,
.checkout-platform-fee {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.checkout-service-cost {
    flex-direction: column;
    align-items: stretch;
}

.checkout-service-cost-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-service-cost .service-cost-distance-note {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.checkout-discount-code {
    margin-bottom: 0.75rem;
}

.discount-code-input-wrapper {
    margin-bottom: 0.5rem;
}

.discount-code-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.discount-code-field {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.discount-code-input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--white);
    font-size: 0.9rem;
    font-family: 'Funnel Sans', sans-serif;
    transition: all 0.3s ease;
}

.discount-code-input:focus {
    outline: none;
    border-color: var(--yellow);
    background-color: rgba(255, 255, 255, 0.15);
}

.discount-code-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.discount-code-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.apply-discount-btn {
    padding: 0.6rem 1rem;
    background-color: var(--yellow);
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Funnel Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.apply-discount-btn:hover:not(:disabled) {
    background-color: #f5c842;
    transform: translateY(-1px);
}

.apply-discount-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.discount-code-message {
    margin-top: 0.4rem;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: none;
}

.discount-code-message.checking {
    display: block;
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.discount-code-message.success {
    display: block;
    background-color: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.discount-code-message.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.checkout-discount-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: rgba(34, 197, 94, 0.9);
    font-weight: 500;
}

.checkout-discount-amount .discount-label {
    color: rgba(34, 197, 94, 0.9);
}

.checkout-discount-amount .discount-amount {
    color: rgba(34, 197, 94, 0.9);
    font-weight: 600;
}

.checkout-loyalty-reward {
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.checkout-loyalty-reward .loyalty-reward-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkout-loyalty-reward .loyalty-reward-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
}

.checkout-klantenkaart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background-color: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 6px;
    min-height: 50px;
    gap: 1rem;
}

.klantenkaart-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'Funnel Sans', sans-serif;
    color: var(--white);
    font-size: 0.95rem;
    user-select: none;
    flex: 1;
}

.klantenkaart-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--yellow);
    flex-shrink: 0;
}

.klantenkaart-text {
    display: flex;
    align-items: center;
}

.klantenkaart-checkbox:checked + .klantenkaart-text {
    color: var(--yellow);
    font-weight: 600;
}

.klantenkaart-discount {
    font-family: 'Funnel Sans', sans-serif;
    color: var(--yellow);
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    font-size: 1.5rem;
}

.checkout-total .total-label {
    font-weight: 600;
    color: var(--white);
}

.checkout-total .total-amount {
    font-weight: 700;
    color: var(--yellow);
    font-size: 2rem;
    font-family: 'Funnel Display', sans-serif;
}

.checkout-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
}

.checkout-cancel-btn,
.checkout-confirm-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Funnel Sans', sans-serif;
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-cancel-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.checkout-cancel-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.checkout-confirm-btn {
    background-color: var(--yellow);
    color: var(--black);
}

.checkout-confirm-btn:hover {
    background-color: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

/* Product Options Modal */
.product-options-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.product-options-modal.active {
    display: flex;
}

.product-options-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.product-options-modal-content {
    position: relative;
    background-color: var(--black);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1.5rem));
    overflow: hidden;
    overflow-x: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
    box-sizing: border-box;
    min-height: 0;
}

.product-options-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.product-options-modal-header h2 {
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.75rem;
    color: var(--yellow);
    margin: 0;
}

.product-options-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
    line-height: 1;
}

.product-options-modal-close:hover {
    color: var(--white);
}

.product-options-modal-body {
    padding: 1.5rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.product-options-modal-body .invulveld-group {
    margin-bottom: 0;
    margin-top: 0;
    padding: 0 0 1.5rem 0;
    background-color: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: move;
    transition: all 0.2s ease;
    user-select: none;
}

.product-options-modal-body .invulveld-group:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.product-options-modal-body .invulveld-group.dragging {
    opacity: 0.5;
    background-color: rgba(255, 215, 0, 0.1);
}

.product-options-modal-body .invulveld-group.drag-over {
    border-top: 2px solid var(--yellow);
    padding-top: 0.5rem;
}

.product-options-modal-body .drag-handle-icon {
    display: inline-flex;
    align-items: center;
    cursor: grab;
}

.product-options-modal-body .drag-handle-icon:active {
    cursor: grabbing;
}

.product-options-modal-body .invulveld-group:not(:first-child) {
    margin-top: 1.5rem;
}

.product-options-modal-body .invulveld-name-label {
    display: block;
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.1rem;
    color: var(--yellow);
    font-weight: 600;
    margin-bottom: 0.5rem;
    order: -1;
    width: 100%;
    user-select: none;
}

.product-options-modal-body .invulveld-group {
    cursor: default;
    user-select: none;
}

.product-options-modal-body .invulveld-group input,
.product-options-modal-body .invulveld-group select,
.product-options-modal-body .invulveld-group .invulveld-option {
    cursor: pointer;
    user-select: auto;
}

.product-options-modal-body .invulveld-content {
    margin-top: 0;
    width: 100%;
    align-self: flex-start;
}

.product-options-modal-body .invulveld-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-options-modal-body .invulveld-options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Multiple choice: one option per row, same card style as single choice */
.product-options-modal-body .invulveld-options-multiple {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.product-options-modal-body .invulveld-options-multiple .invulveld-option {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.product-options-modal-body .invulveld-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.625rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 140px;
    max-width: 100%;
    justify-content: flex-start;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-options-modal-body .invulveld-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

.product-options-modal-body .invulveld-option input[type="radio"],
.product-options-modal-body .invulveld-option input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--yellow);
    flex-shrink: 0;
}

.product-options-modal-body .invulveld-option .option-label {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-width: 0;
}

.product-options-modal-body .invulveld-option input[type="radio"]:checked + .option-label,
.product-options-modal-body .invulveld-option input[type="checkbox"]:checked + .option-label {
    color: var(--yellow);
    font-weight: 600;
}

.product-options-modal-body .invulveld-option:has(input[type="radio"]:checked),
.product-options-modal-body .invulveld-option:has(input[type="checkbox"]:checked) {
    border-color: var(--yellow);
    background-color: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.product-options-modal-body .invulveld-option .option-price {
    color: var(--yellow);
    font-weight: 600;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.product-options-modal-body .invulveld-select {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--white);
    font-size: 0.95rem;
    font-family: 'Funnel Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-options-modal-body .invulveld-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
}

.product-options-modal-body .invulveld-select:focus {
    outline: none;
    border-color: var(--yellow);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.product-options-modal-body .invulveld-select option {
    background-color: var(--black);
    color: var(--white);
    padding: 0.5rem;
}

.product-options-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
}

.product-options-cancel-btn,
.product-options-confirm-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Funnel Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    min-width: 0;
}

.product-options-cancel-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-options-cancel-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.product-options-confirm-btn {
    background-color: var(--yellow);
    color: var(--black);
}

.product-options-confirm-btn:hover {
    background-color: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

/* Mobile Cart Toggle Button */
.mobile-cart-toggle-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: none; /* Hidden on desktop */
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    max-width: calc(100vw - 40px);
}

.mobile-cart-toggle {
    width: auto;
    min-width: 70px;
    height: 70px;
    padding: 0 12px;
    background-color: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 35px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    font-family: 'Funnel Sans', sans-serif;
    display: flex;
}

.mobile-cart-toggle:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.mobile-cart-toggle:active {
    transform: translateY(0);
}

.mobile-cart-toggle i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.mobile-cart-toggle .cart-price {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.mobile-cart-toggle .cart-item-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: var(--white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Funnel Sans', sans-serif;
}

.mobile-cart-toggle .cart-item-count:empty {
    display: none;
}

.mobile-cart-toggle .minimum-warning-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: #e74c3c;
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    border: 2px solid var(--yellow);
    animation: pulse-warning 2s infinite;
}

.mobile-cart-warning-text {
    background-color: rgba(231, 76, 60, 0.95);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: left;
    font-family: 'Funnel Sans', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 200px;
    line-height: 1.4;
    white-space: normal;
    animation: slideDown 0.3s ease-out;
    margin: 0;
    flex-shrink: 1;
}

.mobile-cart-warning-text strong {
    color: var(--yellow);
    font-weight: 700;
}

@keyframes pulse-warning {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.mobile-cart-toggle.cart-button-pulse {
    animation: cartButtonPulse 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes cartButtonPulse {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        background-color: var(--yellow);
    }
    15% {
        transform: scale(1.3) rotate(-5deg);
        box-shadow: 0 8px 30px rgba(255, 215, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.6);
        background-color: #ffed4e;
    }
    30% {
        transform: scale(1.2) rotate(5deg);
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.8), 0 0 15px rgba(255, 215, 0, 0.5);
        background-color: var(--yellow);
    }
    45% {
        transform: scale(1.25) rotate(-3deg);
        box-shadow: 0 7px 28px rgba(255, 215, 0, 0.85), 0 0 18px rgba(255, 215, 0, 0.55);
        background-color: #ffed4e;
    }
    60% {
        transform: scale(1.15) rotate(2deg);
        box-shadow: 0 6px 22px rgba(255, 215, 0, 0.75), 0 0 12px rgba(255, 215, 0, 0.4);
        background-color: var(--yellow);
    }
    75% {
        transform: scale(1.05) rotate(-1deg);
        box-shadow: 0 5px 18px rgba(255, 215, 0, 0.6), 0 0 8px rgba(255, 215, 0, 0.3);
        background-color: #ffed4e;
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        background-color: var(--yellow);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .order-page-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-section {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        height: auto;
        max-height: 85vh;
        z-index: 10000;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
        background-color: var(--black);
        border-top: 2px solid rgba(255, 215, 0, 0.3);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .cart-section.cart-open {
        transform: translateY(0);
    }
    
    .cart-container {
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        border: none;
        border-top: 2px solid rgba(255, 215, 0, 0.3);
    }
    
    .cart-close-btn {
        display: block;
    }
    
    .cart-items {
        max-height: calc(85vh - 300px);
    }
    
    .mobile-cart-toggle-wrapper {
        display: flex;
    }
    
    /* Overlay when cart is open */
    .cart-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        backdrop-filter: blur(2px);
    }
    
    .cart-overlay.active {
        display: block;
    }

    /* Disable background scroll when cart drawer is open (mobile) */
    html.mobile-cart-drawer-open,
    body.mobile-cart-drawer-open {
        overflow: hidden !important;
        touch-action: none;
    }

    /* Category jump nav: horizontal scroll on tablet/mobile */
    .category-jump-list {
        padding: 0.5rem 0;
        gap: 0.35rem;
    }

    .category-jump-link {
        padding: 0.4rem 0.85rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .category-jump-list {
        padding: 0.4rem 0;
        gap: 0.25rem;
    }

    .category-jump-link {
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
    }

    .product-category-section {
        scroll-margin-top: 130px;
    }

    .mobile-cart-toggle-wrapper {
        bottom: 15px;
        right: 15px;
    }
    
    .mobile-cart-toggle {
        width: auto;
        min-width: 65px;
        height: 65px;
        padding: 0 10px;
    }
    
    .mobile-cart-toggle i {
        font-size: 1.1rem;
    }
    
    .mobile-cart-toggle .cart-price {
        font-size: 0.7rem;
    }
    
    .mobile-cart-toggle .cart-item-count {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
    
    .mobile-cart-toggle .minimum-warning-badge {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    
    .category-title {
        font-size: 1.75rem;
    }
    
    .product-card {
        display: flex;
        flex-direction: row;
        padding: 0.5rem 0.75rem;
        min-height: 60px;
        align-items: flex-start;
        gap: 0.75rem;
        position: relative;
    }
    
    .product-image-container {
        width: 60px;
        min-width: 60px;
        height: 50px;
        flex-shrink: 0;
    }
    
    .product-content-wrapper {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
    
    .product-info {
        width: 100%;
    }
    
    .product-name-price {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .product-name {
        font-size: 1rem;
        white-space: normal;
        margin: 0;
        flex: 0 1 auto;
        min-width: 0;
    }
    
    .product-price {
        font-size: 0.95rem;
        flex-shrink: 0;
        margin-left: 0;
    }
    
    .product-action-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .add-to-cart-btn {
        padding: 0;
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 50%;
        position: relative;
        justify-content: center;
        align-items: center;
        font-size: 0;
        margin-top: 0.3125rem; /* 5px */
    }
    
    .add-to-cart-btn i {
        font-size: 1.1rem;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .invulveld-options {
        flex-direction: column;
    }
}

/* Payment redirect loading overlay */
.payment-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.payment-loading-overlay.active {
    display: flex;
}

.payment-loading-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.payment-loading-overlay-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--gold, #ffd700);
    border-radius: 50%;
    animation: payment-loading-spin 0.9s linear infinite;
}

@keyframes payment-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.payment-loading-overlay-text {
    margin: 0;
    color: var(--white);
    font-size: 1.1rem;
    font-family: 'Funnel Sans', sans-serif;
}

/* Error Modal Styles */
.error-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.error-modal.active {
    display: flex;
}

.error-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.error-modal-content {
    position: relative;
    background-color: var(--black);
    border: 1px solid rgba(220, 53, 69, 0.5);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1.5rem));
    overflow: hidden;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    box-sizing: border-box;
    min-height: 0;
    z-index: 10001;
}

.error-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(220, 53, 69, 0.3);
    background-color: rgba(220, 53, 69, 0.1);
    flex-shrink: 0;
}

.error-modal-header h2 {
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.5rem;
    color: #dc3545;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-modal-header h2 i {
    font-size: 1.5rem;
}

.error-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.error-modal-close:hover {
    color: var(--white);
}

.error-modal-body {
    padding: 2rem 1.5rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.error-modal-body p {
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.6;
    margin: 0;
}

.error-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
}

.error-modal-ok-btn {
    background-color: #dc3545;
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
}

.error-modal-ok-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.error-modal-ok-btn:active {
    transform: translateY(0);
}

/* Payment Modal Styles */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.payment-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(0.75rem, env(safe-area-inset-top, 0px))
        max(0.75rem, env(safe-area-inset-right, 0px))
        max(0.75rem, env(safe-area-inset-bottom, 0px))
        max(0.75rem, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    overflow: hidden;
    min-height: 0;
}

.payment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.payment-modal-content {
    position: relative;
    background-color: var(--black);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1.5rem));
    overflow: hidden;
    overflow-x: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
    box-sizing: border-box;
    min-height: 0;
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.payment-modal-header h2 {
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.75rem;
    color: var(--yellow);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-modal-header h2 i {
    color: var(--yellow);
}

.payment-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.payment-modal-close:hover {
    color: var(--white);
}

.payment-modal-body {
    padding: 1.5rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.payment-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-summary p {
    margin: 0.5rem 0;
    color: var(--white);
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1rem;
}

.payment-summary strong {
    color: var(--yellow);
    font-weight: 600;
}

.payment-element-wrapper {
    margin: 1.5rem 0;
    position: relative;
    min-height: 200px;
}

#payment-element-container {
    min-height: 200px;
    background-color: #ffffff !important;
    border-radius: 8px;
    padding: 1rem;
}

.payment-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    z-index: 10;
    padding: 2rem;
}

.payment-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-top-color: var(--yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.payment-loading-text {
    color: var(--white);
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1rem;
    margin: 0;
    text-align: center;
}

/* Stripe Elements iframe styling - white background */
#payment-element-container iframe {
    background-color: #ffffff !important;
}

#payment-element-container > div {
    background-color: #ffffff !important;
}

/* Stripe Elements styling for white background */
#payment-element-container .Input,
#payment-element-container input {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #1a1a1a !important;
    font-family: 'Funnel Sans', sans-serif !important;
}

#payment-element-container .Input:focus,
#payment-element-container input:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
    outline: none !important;
}

#payment-element-container .Label,
#payment-element-container label {
    color: #1a1a1a !important;
    font-family: 'Funnel Sans', sans-serif !important;
    font-weight: 500 !important;
}

#payment-element-container .Tab {
    background-color: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    color: #1a1a1a !important;
}

#payment-element-container .Tab:hover {
    background-color: #e8e8e8 !important;
}

#payment-element-container .Tab--selected {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #ffffff !important;
}

#payment-element-container .TabIcon {
    color: #1a1a1a !important;
}

#payment-element-container .TabIcon--selected {
    color: #ffffff !important;
}

#payment-element-container .Error {
    color: #dc3545 !important;
    font-family: 'Funnel Sans', sans-serif !important;
}

#payment-element-container .Input--invalid {
    border-color: #dc3545 !important;
}

/* Ensure text in Stripe Elements is readable on white background */
#payment-element-container .Text {
    color: #1a1a1a !important;
}

#payment-element-container .Text--colorSecondary {
    color: #666666 !important;
}

.payment-error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: #dc3545;
    font-family: 'Funnel Sans', sans-serif;
    font-size: 0.9rem;
}

.payment-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
}

.payment-cancel-btn,
.payment-submit-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Funnel Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    min-width: 0;
}

.payment-cancel-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-cancel-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.payment-submit-btn {
    background-color: var(--yellow);
    color: var(--black);
}

.payment-submit-btn:hover:not(:disabled) {
    background-color: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.payment-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .payment-modal.active {
        align-items: center;
        overflow: hidden;
    }

    .payment-modal-content {
        width: 95%;
        max-width: 95vw;
        margin: 0.5rem auto;
    }

    .payment-modal-header,
    .payment-modal-body {
        padding: 1.25rem 1rem;
    }

    .payment-modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .payment-modal-header h2 {
        font-size: 1.5rem;
    }

    .payment-cancel-btn,
    .payment-submit-btn {
        flex: none;
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .payment-name-section,
    .payment-email-section {
        margin-bottom: 1rem;
    }

    .payment-name-input,
    .payment-email-input {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }

    .payment-element-wrapper {
        margin: 1rem 0;
        min-height: 180px;
    }

    #payment-element-container {
        padding: 0.75rem;
        min-height: 180px;
    }

    .payment-loading {
        padding: 1.5rem;
    }

    .payment-loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .payment-loading-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .payment-modal.active {
        align-items: stretch;
        justify-content: stretch;
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .payment-modal-content {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        border-radius: 0;
        margin: 0;
    }

    .payment-modal-header,
    .payment-modal-body {
        padding: 1rem 0.75rem;
    }

    .payment-modal-footer {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .payment-modal-header h2 {
        font-size: 1.25rem;
    }

    .payment-cancel-btn,
    .payment-submit-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Address Modal Styles - Match checkout modal */
.address-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.address-modal.active {
    display: flex;
}

.address-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.address-modal-content {
    position: relative;
    background-color: var(--black);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1.5rem));
    overflow: hidden;
    overflow-x: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    box-sizing: border-box;
    animation: modalSlideIn 0.3s ease-out;
    min-height: 0;
}

.address-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.address-modal-header h2 {
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.75rem;
    color: var(--yellow);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.address-modal-header h2 i {
    color: var(--yellow);
}

.address-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
    line-height: 1;
}

.address-modal-close:hover {
    color: var(--white);
}

.address-modal-body {
    padding: 1.5rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.address-modal-body .address-field {
    margin-bottom: 1.5rem;
}

.address-modal-body .address-field label {
    display: block;
    color: var(--white);
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.address-modal-body .address-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.address-modal-body .address-input:focus {
    outline: none;
    border-color: var(--yellow);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.address-modal-body .address-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.address-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
}

.address-cancel-btn,
.address-confirm-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Funnel Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    min-width: 0;
}

.address-cancel-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.address-cancel-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.address-confirm-btn {
    background-color: var(--yellow);
    color: var(--black);
}

.address-confirm-btn:hover:not(:disabled) {
    background-color: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.address-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Customer Info Modal */
.customer-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.customer-info-modal.active {
    display: flex;
}

.customer-info-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.customer-info-modal-content {
    position: relative;
    background-color: var(--black);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
    max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1.5rem));
    overflow: hidden;
    overflow-x: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    box-sizing: border-box;
    animation: modalSlideIn 0.3s ease-out;
    min-height: 0;
}

.customer-info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.customer-info-modal-header h2 {
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.75rem;
    color: var(--yellow);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-info-modal-header h2 i {
    color: var(--yellow);
}

.customer-info-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
    line-height: 1;
}

.customer-info-modal-close:hover {
    color: var(--white);
}

.customer-info-modal-body {
    padding: 1.5rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.customer-info-modal-body .customer-info-field {
    margin-bottom: 1.5rem;
}

.customer-info-modal-body .customer-info-field:last-child {
    margin-bottom: 0;
}

.customer-info-modal-body .customer-info-field label {
    display: block;
    color: var(--white);
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.customer-info-modal-body .customer-info-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.customer-info-modal-body .customer-info-input:focus {
    outline: none;
    border-color: var(--yellow);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.customer-info-modal-body .customer-info-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.customer-info-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    box-sizing: border-box;
    width: 100%;
    flex-shrink: 0;
}

.customer-info-cancel-btn,
.customer-info-confirm-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Funnel Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    min-width: 0;
}

.customer-info-cancel-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.customer-info-cancel-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.customer-info-confirm-btn {
    background-color: var(--yellow);
    color: var(--black);
}

.customer-info-confirm-btn:hover {
    background-color: #ffed4e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

/* Checkout Options */
.checkout-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkout-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
}

.checkout-option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--yellow);
}

.checkout-option:has(input[type="radio"]:checked) {
    border-color: var(--yellow);
    background-color: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.checkout-option .option-text {
    color: var(--white);
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

.checkout-option:has(input[type="radio"]:checked) .option-text {
    color: var(--yellow);
    font-weight: 600;
}

/* Email Check Status */
.email-check-status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-family: 'Funnel Sans', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-check-status.checking {
    color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.05);
}

.email-check-status.exists {
    color: #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
}

.email-check-status.not-exists {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.email-check-status i {
    font-size: 0.85rem;
}

/* Payment name and email sections */
.payment-name-section,
.payment-email-section {
    margin-bottom: 1.5rem;
}

.payment-name-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-name-section label,
.payment-email-section label {
    display: block;
    color: var(--white);
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.payment-name-input,
.payment-email-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: 'Funnel Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.payment-name-input:focus,
.payment-email-input:focus {
    outline: none;
    border-color: var(--yellow);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.payment-name-input::placeholder,
.payment-email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile styles for all modals */
@media (max-width: 768px) {
    /* Checkout Modal */
    .checkout-modal-content {
        width: 95%;
        max-width: 95vw;
        margin: 0 auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .checkout-modal-header,
    .checkout-modal-body {
        padding: 1.25rem 1rem;
    }

    .checkout-modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .checkout-cancel-btn,
    .checkout-confirm-btn {
        flex: none;
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    /* Product Options Modal */
    .product-options-modal-content {
        width: 95%;
        max-width: 95vw;
        margin: 0 auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .product-options-modal-header,
    .product-options-modal-body {
        padding: 1.25rem 1rem;
    }

    .product-options-modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .product-options-cancel-btn,
    .product-options-confirm-btn {
        flex: none;
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    /* Error Modal */
    .error-modal-content {
        width: 95%;
        max-width: 95vw;
        margin: 0 auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .error-modal-header,
    .error-modal-body {
        padding: 1.25rem 1rem;
    }

    .error-modal-footer {
        padding: 1rem;
        flex-direction: column;
        justify-content: center;
        gap: 0.75rem;
    }

    .error-modal-ok-btn {
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    /* Address Modal */
    .address-modal-content {
        width: 95%;
        max-width: 95vw;
        margin: 0 auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .address-modal-header,
    .address-modal-body {
        padding: 1.25rem 1rem;
    }

    .address-modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .address-modal-header h2 {
        font-size: 1.5rem;
    }

    .address-cancel-btn,
    .address-confirm-btn {
        flex: none;
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    /* Customer Info Modal */
    .customer-info-modal-content {
        width: 95%;
        max-width: 95vw;
        margin: 0 auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .customer-info-modal-header,
    .customer-info-modal-body {
        padding: 1.25rem 1rem;
    }

    .customer-info-modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .customer-info-modal-header h2 {
        font-size: 1.5rem;
    }

    .customer-info-cancel-btn,
    .customer-info-confirm-btn {
        flex: none;
        width: 100%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .checkout-modal.active,
    .product-options-modal.active,
    .address-modal.active,
    .customer-info-modal.active,
    .error-modal.active {
        padding-left: 0;
        padding-right: 0;
        align-items: stretch;
        justify-content: stretch;
        flex-direction: column;
    }

    /* Checkout Modal */
    .checkout-modal-content {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        border-radius: 0;
        margin: 0;
    }

    .checkout-modal-header,
    .checkout-modal-body {
        padding: 1rem 0.75rem;
    }

    .checkout-modal-footer {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .checkout-cancel-btn,
    .checkout-confirm-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Product Options Modal */
    .product-options-modal-content {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        border-radius: 0;
        margin: 0;
    }

    .product-options-modal-header,
    .product-options-modal-body {
        padding: 1rem 0.75rem;
    }

    .product-options-modal-footer {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .product-options-cancel-btn,
    .product-options-confirm-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Error Modal */
    .error-modal-content {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        border-radius: 0;
        margin: 0;
    }

    .error-modal-header,
    .error-modal-body {
        padding: 1rem 0.75rem;
    }

    .error-modal-footer {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .error-modal-ok-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Address Modal */
    .address-modal-content {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        border-radius: 0;
        margin: 0;
    }

    .address-modal-header,
    .address-modal-body {
        padding: 1rem 0.75rem;
    }

    .address-modal-footer {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .address-modal-header h2 {
        font-size: 1.25rem;
    }

    .address-cancel-btn,
    .address-confirm-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Customer Info Modal */
    .customer-info-modal-content {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        border-radius: 0;
        margin: 0;
    }

    .customer-info-modal-header,
    .customer-info-modal-body {
        padding: 1rem 0.75rem;
    }

    .customer-info-modal-footer {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .customer-info-modal-header h2 {
        font-size: 1.25rem;
    }

    .customer-info-cancel-btn,
    .customer-info-confirm-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
