/* =========================================================
   MODERN MODALS AND CART
========================================================= */

.site-loading {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 34, 59, .42);
    backdrop-filter: blur(4px);
}

.site-loading__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    min-width: 150px;
    padding: 24px;
    color: #18223b;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(24, 34, 59, .2);
    font-size: 13px;
    font-weight: 700;
}

.site-loading .spinner-border,
.modern-modal__spinner {
    width: 2rem;
    height: 2rem;
    color: #18223b;
}

/* Base modal */

.modern-modal .modal-content {
    overflow: hidden;
    background: #ffffff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 52px rgba(24, 34, 59, .18);
}

.modern-modal__header {
    align-items: flex-start;
    padding: 21px 24px;
    border-bottom: 1px solid #e6eaf0;
}

.modern-modal__header .btn-close,
.modern-cart-modal__header .btn-close {
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    background-color: #f5f7f9;
    border-radius: 10px;
    opacity: 1;
}

.modern-modal__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #a57b65;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.modern-modal .modal-title {
    color: #18223b;
    font-size: 20px;
    font-weight: 750;
}

.modern-modal__content {
    padding: 24px;
}

.modern-modal__footer {
    gap: 9px;
    padding: 15px 24px;
    background: #fafbfc;
    border-top: 1px solid #e6eaf0;
}

.modern-modal__intro {
    margin-bottom: 23px;
    color: #687388;
    font-size: 14px;
    line-height: 1.6;
}

/* Buttons */

.modern-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.modern-button:hover {
    transform: translateY(-1px);
}

.modern-button--primary {
    color: #ffffff;
    background: #18223b;
    border: 1px solid #18223b;
}

.modern-button--primary:hover {
    color: #ffffff;
    background: #303c55;
    border-color: #303c55;
}

.modern-button--outline {
    color: #27334b;
    background: #ffffff;
    border: 1px solid #dce2ea;
}

.modern-button--outline:hover {
    color: #18223b;
    background: #f5f7f9;
    border-color: #cdd5df;
}

.modern-button--danger {
    color: #b44545;
    background: #fff5f5;
    border: 1px solid #f0d7d7;
}

.modern-button--danger:hover {
    color: #ffffff;
    background: #b44545;
    border-color: #b44545;
}

/* Small confirmation modals */

.modern-modal__body {
    padding: 33px 26px;
}

.modern-modal__body h5 {
    margin: 17px 0 8px;
    color: #18223b;
    font-size: 20px;
    font-weight: 750;
}

.modern-modal__body p {
    margin: 0;
    color: #697489;
    font-size: 13px;
    line-height: 1.6;
}

.modern-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #18223b;
    background: #edf0f5;
    border-radius: 50%;
    font-size: 20px;
}

.modern-modal__icon--navy {
    color: #ffffff;
    background: #18223b;
}

.modern-modal__icon--beige {
    color: #18223b;
    background: #f2e2d7;
}

.modern-modal__icon--danger {
    color: #b44545;
    background: #fff0f0;
}

.modern-modal__confirmation-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 24px;
}

/* Notes */

.modern-note-field + .modern-note-field {
    margin-top: 17px;
}

.modern-note-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: #26324a;
    font-size: 12px;
    font-weight: 700;
}

.modern-note-field label span {
    color: #8a93a1;
    font-size: 10px;
    font-weight: 600;
}

.modern-note-field .form-control {
    min-height: 43px;
    color: #18223b;
    background: #f7f8fa;
    border: 1px solid #e1e6ed;
    border-radius: 10px;
    box-shadow: none;
    font-size: 13px;
}

.modern-note-field .form-control:focus {
    background: #ffffff;
    border-color: #d8b7a3;
    box-shadow: 0 0 0 3px rgba(216, 183, 163, .18);
}

/* Main cart */

.modern-cart-modal .modal-content {
    border-radius: 0;
}

.modern-cart-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 28px;
    background: #ffffff;
    border-bottom: 1px solid #e5e9ef;
}

.modern-cart-modal__title-wrap {
    display: flex;
    align-items: center;
    gap: 13px;
}

.modern-cart-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    color: #18223b;
    background: #f3e5dc;
    border-radius: 11px;
    font-size: 17px;
}

.modern-cart-modal__title-wrap .modal-title {
    margin: 0;
    color: #18223b;
    font-size: 21px;
    font-weight: 750;
}

.modern-cart-modal__body {
    padding: 31px 0 45px;
    background: #f7f8fa;
}

.modern-cart-modal__toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.modern-cart-modal__toolbar h6 {
    margin: 0 0 5px;
    color: #18223b;
    font-size: 17px;
    font-weight: 750;
}

.modern-cart-modal__toolbar p {
    margin: 0;
    color: #7c8493;
    font-size: 13px;
}

.modern-cart-modal__search {
    position: relative;
    flex: 0 1 280px;
}

.modern-cart-modal__search i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: #8a93a1;
    font-size: 12px;
    pointer-events: none;
    transform: translateY(-50%);
}

.modern-cart-modal__search .form-control {
    min-height: 43px;
    padding-left: 38px;
    color: #18223b;
    background: #ffffff;
    border: 1px solid #e1e6ed;
    border-radius: 10px;
    box-shadow: none;
    font-size: 12px;
}

.modern-cart-modal__search .form-control:focus {
    border-color: #d8b7a3;
    box-shadow: 0 0 0 3px rgba(216, 183, 163, .18);
}

.modern-cart-modal__items {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e7ed;
    border-radius: 14px;
}

.modern-cart-modal__summary {
    width: min(100%, 350px);
    margin-top: 22px;
    margin-left: auto;
    padding: 19px;
    background: #ffffff;
    border: 1px solid #e2e7ed;
    border-radius: 13px;
}

.modern-cart-modal__summary-label {
    display: block;
    margin-bottom: 13px;
    color: #18223b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.modern-cart-modal__footer {
    padding: 17px 0;
    background: #ffffff;
    border-top: 1px solid #e5e9ef;
}

.modern-cart-modal__delivery-label {
    display: block;
    margin-bottom: 6px;
    color: #657086;
    font-size: 11px;
    font-weight: 700;
}

.modern-cart-modal__footer .form-select {
    min-height: 43px;
    background-color: #f7f8fa;
    border: 1px solid #dfe5ec;
    border-radius: 10px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 650;
}

.modern-cart-modal__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

/* Responsive */

@media (max-width: 767.98px) {
    .modern-modal .modal-content {
        border-radius: 15px;
    }

    .modern-modal__header,
    .modern-modal__content,
    .modern-modal__footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .modern-cart-modal__header {
        padding: 14px 18px;
    }

    .modern-cart-modal__body {
        padding: 23px 0 35px;
    }

    .modern-cart-modal__toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .modern-cart-modal__search {
        flex: 0 0 auto;
        width: 100%;
    }

    .modern-cart-modal__footer {
        padding: 14px 0;
    }

    .modern-cart-modal__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }

    .modern-cart-modal__actions .modern-button--outline {
        grid-column: 1 / -1;
    }

    .modern-cart-modal__actions .modern-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .modern-modal__confirmation-actions {
        grid-template-columns: 1fr;
    }

    .modern-note-field label {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .modern-cart-modal__title-wrap .modal-title {
        font-size: 18px;
    }
}