[hidden] {
    display: none !important;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    overflow: auto;
}

.modal.show {
    display: block;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: #000;
    opacity: 0.5;
}

#cart {
    z-index: 10051;
}

#pay-modal {
    z-index: 10060;
}

#cart.modal.show {
    overflow: hidden;
}

#cart .modal-dialog,
#cart .modal-content,
#cart .cart-wrapper,
#cart .swiper {
    height: 100%;
    max-height: 100%;
}

#cart .swiper-wrapper {
    display: block;
    height: 100% !important;
    transform: none !important;
}

#cart .swiper-slide:not([hidden]) {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}

#cart .swiper-slide:not([hidden])::-webkit-scrollbar {
    display: block;
    width: 8px;
}

#pay-modal .swiper-wrapper {
    display: block;
    height: auto !important;
    transform: none !important;
}

#pay-modal.modal.show {
    overflow-y: auto;
}

#pay-modal .modal-dialog {
    max-height: calc(100% - 48px);
    margin: 24px auto;
}

#pay-modal .modal-content {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

#cart .swiper-slide[hidden],
#pay-modal .swiper-slide[hidden] {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
}

.pay-button {
    padding-left: 8px;
}

.product-description {
    white-space: pre-line;
}

.form-error {
    color: #f21919;
    margin-top: 12px;
    margin-bottom: 0;
}

.same-product-sm {
    cursor: pointer;
}

.navbar-dropdown-menu-wrapper.collapse:not(.show) {
    display: none;
}

#view-instruction > .section-md {
    padding-top: 150px;
}
