.omp-overlay .omp-overlay--backdrop,
.omp-modal .omp-modal--backdrop {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.omp-overlay .omp-overlay--backdrop {
    z-index: 9000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-out 0s;
}

.omp-overlay .omp-overlay--backdrop.active {
    visibility: visible;
    opacity: 1;
}

.omp-modal .omp-modal--backdrop {
    display: none;
    z-index: 10000;
}

.omp-modal .omp-modal--backdrop.active {
    display: block;
}

.omp-overlay.omp-select-deal-sock-overlay .omp-overlay--backdrop {
    z-index: 8900;
}

.omp-overlay .omp-overlay--content {
    position: fixed;
    max-width: var(--omp-body-max-width);
    z-index: 9001;
    background: #ffffff;
    transition: all 0.3s ease-out 0s;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 90%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transform: translateY(100%);
    overflow: hidden;
    touch-action: auto;
}

.omp-overlay.omp-select-deal-sock-overlay .omp-overlay--content {
    z-index: 8901;
}

.omp-overlay .omp-overlay--content.active {
    transform: none;
}

.omp-modal .omp-modal--content {
    position: fixed;
    top: 0;
    max-width: var(--omp-body-max-width);
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: -1;
    opacity: 0;
    transition: background-color 220ms ease-out, opacity 220ms ease-out;
}

.omp-modal .omp-modal--content.active {
    z-index: 10002;
    opacity: 1;
    background-color: transparent;
}

.omp-modal.preview-image-modal .modal-header {
    border-bottom: none;
}

.omp-modal.omp-confirm-modal .omp-modal--backdrop,
.omp-modal.preview-image-modal .omp-modal--backdrop {
    z-index: 10001;
}

.omp-modal.preview-image-modal .omp-modal--backdrop {
    background-color: rgba(0, 0, 0, 0.65);
}

.omp-modal.omp-confirm-modal .omp-modal--content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.omp-modal:not(.omp-confirm-modal) .omp-modal--content.active {
    background: rgba(0, 0, 0, 0.9);
}

.omp-modal:not(.omp-confirm-modal) .omp-modal--content .modal-wrapper {
    width: 100%;
    height: 100%;
}

.omp-modal.omp-confirm-modal .omp-modal--content .modal-wrapper {
    max-width: 100%;
}

.omp-modal--content .modal-wrapper {
    display: flex;
    display: -webkit-flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    transform: scale3d(0, 0, 0);
    transition: scale3d 220ms ease-out;
}

.omp-modal--content.active .modal-wrapper {
    transform: scale3d(1, 1, 1);
}


@media (min-width: 576px) {
    .omp-overlay .omp-overlay--content {
        left: 50%;
        transform: translate(-50%, 100%);
    }

    .omp-overlay .omp-overlay--content.active {
        transform: translate(-50%, 0);
    }
}

.omp-overlay--content .overlay-wrapper {
    width: 100%;
    height: calc(var(--app-height) * 0.9);
}

.overlay-wrapper .overlay-header {
    padding: var(--omp-space-x3);
}

.overlay-header {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--omp-silver);
}

.overlay-header span:first-child {
    width: 13px;
    height: 13px;
}

.overlay-header p {
    margin-bottom: 0 !important;
}

.overlay-header h5 {
    font-weight: normal !important;
}

.omp-overlay .overlay-body {
    height: calc(var(--app-height) * 0.9);
    padding: 0.75rem;
}

.overlay-body .omp-container {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 calc(var(--omp-space) * 3);
}

.modal-wrapper .modal-header {
    height: 3rem;
    width: 100%;
    color: #ffffff;
    display: flex;
    display: -webkit-flex;
    align-items: center;
}

.modal-wrapper .modal-header p {
    margin-bottom: 0 !important;
}

.modal-wrapper .modal-body {
    width: 100%;
    height: calc(100% - 8.8rem);
}

.modal-wrapper .modal-body.modal-snap {
    display: flex;
    display: -webkit-flex;
    align-items: center;
    overflow-y: auto;
    scroll-snap-type: x mandatory;
}

.modal-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.modal-body .review-image {
    height: 100%;
    scroll-snap-align: center;
}

.modal-body .review-image .image {
    width: 100vw !important;
    max-width: var(--omp-body-max-width) !important;
    height: 100%;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
}

.modal-body .review-image .image img,
.modal-body .review-image .image video {
    max-width: 100vw;
    max-height: 100%;
}

@media (min-width: 567px) {
    .modal-body .review-image .image img,
    .modal-body .review-image .image video {
        max-width: var(--omp-body-max-width);
    }
}

.modal-wrapper .modal-footer {
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
    height: 5.8rem;
    width: 100%;
}

.omp-pointer {
    cursor: pointer;
}

.omp-confirm-modal {
    --omp-v-modal-small-width: 315px;

    width: var(--omp-v-modal-small-width) !important;
}

@media (min-width: 568px) {
    #omp_wrapper .omp-confirm-modal {
        --omp-v-modal-small-width: 400px;
    }
}

.omp-confirm-modal .modal-wrapper {
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.11);
}

.omp-confirm-modal .modal-body {
    padding: 0 !important;
    align-items: center;
    justify-content: center;
}

.omp-confirm-modal-content {
    padding: calc(var(--omp-space-x3) * 2);
}

.omp-confirm-modal-button {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f1f1f1;
}

.omp-confirm-modal-button .omp-pointer {
    width: 100%;
    text-align: center;
    padding: var(--omp-space-x3);
}

.omp-confirm-modal-button.has-cancel-button .omp-pointer {
    width: 50%;
}

.omp-confirm-modal-button .omp-pointer.cancel-text {
    border-right: 1px solid #f1f1f1;
}


/* -------------------------------------- START SELECT VARIANT OVERLAY - MODAL -------------------------------------- */
.product-detail-select-variant.omp-modal .omp-modal--content.active {
    background-color: #ffffff !important;
}

.product-detail-select-variant .overlay-body {
    height: max-content;
    padding: var(--omp-space-x3);
    transition: height 200ms ease-out;
}

.product-detail-select-variant .overlay-wrapper {
    height: max-content !important;
    max-height: calc(var(--app-height) * 0.9) !important;
}

.product-detail-select-variant .omp-select-variant {
    transition: all 200ms ease-out;
    width: 100%;
}

.product-detail-select-variant .omp-select-variant .sv-product {
    display: grid;
    grid-template-columns: 3.8rem calc(100% - 3.8rem - 0.75rem);
    grid-template-areas: "sv-product-image sv-product-information";
    grid-column-gap: 0.75rem;
}

.product-detail-select-variant .sv-product .sv-product-image {
    grid-area: sv-product-image;
    width: 3.8rem;
    height: 3.8rem;
}

.product-detail-select-variant .sv-product .sv-product-information {
    grid-area: sv-product-information;
}

.product-detail-select-variant .sv-product .sv-product-information .p-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-detail-select-variant .sv-variant {
    height: 100%;
    overflow: auto;
}

.sv-variant::-webkit-scrollbar {
    width: 3px;
    height: 10px;
    display: block !important;
}

.sv-variant::-webkit-scrollbar-thumb {
    border-radius: 8px;
}

@media (min-width: 900px) {
    .sv-variant::-webkit-scrollbar {
        width: 8px;
    }
}

.product-detail-select-variant .sv-variant .single-variant .single-variant-title {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    margin: 0 0 var(--omp-space-x3) 0;
}

.product-detail-select-variant .single-variant-title span:first-child {
    font-weight: 600;
}

.product-detail-select-variant .single-variant-title span:last-child {
    color: #ffffff;
    transition: color 200ms ease-out;
}

.product-detail-select-variant .sv-variant .single-variant .single-variant-option {
    display: flex;
    display: -webkit-flex;
    flex-wrap: wrap;
}

.product-detail-select-variant .single-variant-option .variant-option {
    padding: 8px 16px;
    margin-right: var(--omp-space-x3);
    margin-bottom: var(--omp-space-x3);
    background: var(--omp-silver);
    border-radius: 3px;
}

@media (max-width: 320px) {
    .product-detail-select-variant .single-variant-option .variant-option {
        max-width: 100% !important;
    }
}

@media (min-width: 321px) and (max-width: 575px) {
    .product-detail-select-variant .single-variant-option .variant-option {
        max-width: 160px !important;
    }
}

.product-detail-select-variant .single-variant-option .variant-option.selected {
    background: var(--omp-color-primary);
    color: #ffffff;
}

.product-detail-select-variant .single-variant-option .variant-option.disabled {
    cursor: not-allowed !important;
    opacity: 0.5;
}

.product-detail-select-variant .sv-error-message {
    height: var(--omp-space-x3);
    color: #ffffff;
    font-size: 12px;
}

.product-detail-select-variant .sv-error-message.show {
    color: var(--omp-red);
    height: 2rem;
}

.product-detail-select-variant .sv-select-quantity {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: center;
}

.product-detail-select-variant .sv-select-quantity .omp-form-input-group {
    width: 8rem;
}

.product-detail-select-variant .sv-button .omp-btn-primary {
    width: 100%;
}

.sv-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: transparent;
    transition: opacity 0.2s ease-out;
}

.sv-loading.loading {
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.sv-loading .sv-loading--effect {
    width: 22px;
    height: 22px;
    position: relative;
}

.sv-loading-spinner {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
}

.sv-loading-spinner div {
    transform-origin: 10px 10px !important;
    animation: omp-spinner 0.8s linear infinite;
}

.sv-loading-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    left: 9px;
    width: 2px;
    height: 6px;
    border-radius: 2px;
    background: #ffffff;
}

.sv-loading-spinner div:nth-child(1) {
    transform: rotate(0deg) !important;
    animation-delay: 0s !important;
}

.sv-loading-spinner div:nth-child(2) {
    transform: rotate(45deg) !important;
    animation-delay: 0.1s !important;
}

.sv-loading-spinner div:nth-child(3) {
    transform: rotate(90deg) !important;
    animation-delay: 0.2s !important;
}

.sv-loading-spinner div:nth-child(4) {
    transform: rotate(135deg) !important;
    animation-delay: 0.3s !important;
}

.sv-loading-spinner div:nth-child(5) {
    transform: rotate(180deg) !important;
    animation-delay: 0.4s !important;
}

.sv-loading-spinner div:nth-child(6) {
    transform: rotate(225deg) !important;
    animation-delay: 0.5s !important;
}

.sv-loading-spinner div:nth-child(7) {
    transform: rotate(270deg) !important;
    animation-delay: 0.6s !important;
}

.sv-loading-spinner div:nth-child(8) {
    transform: rotate(315deg) !important;
    animation-delay: 0.7s !important;
}

.product-detail-select-variant .omp-form-control {
    height: calc(1.5rem + 1.5rem + 2px);
    padding: 0.75rem 0.75rem;
    line-height: 1.5;
}

.omp-form-input-group {
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
}

.omp-form-input-group .omp-form-control {
    border-radius: 0 !important;
    padding: 0.15rem 10px !important;
    height: 2rem;
}

.omp-form-input-group .prefix-button,
.omp-form-input-group .suffix-button {
    width: 30px;
    height: 2rem;
    border: 1px solid #c3c3c3;
    padding: 0.15rem 10px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
}

.omp-form-input-group .prefix-button {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    margin-right: -1px;
}

.omp-form-input-group .suffix-button {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
    margin-left: -1px;
}

.omp-btn {
    font-size: 0.88rem;
    border-radius: 6px;
    height: 3rem;
}

.omp-add-success {
    height: max-content;
    max-height: 100%;
}

.omp-add-success .as-product {
    display: grid;
    grid-template-columns: 5rem calc(100% - 5rem - 0.75rem);
    grid-template-areas: "as-product-image as-product-information";
    grid-column-gap: 0.75rem;
}

.as-product .as-product-image {
    grid-area: as-product-image;
    width: 5rem;
    height: 5rem;
}

.as-product .as-product-information {
    grid-area: as-product-information;
}

.as-product-information .p-metadata {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--omp-space) 0;
}

.omp-add-success .as-button .omp-btn-primary {
    width: 100%;
    margin-top: var(--omp-space-x3);
}

.omp-add-success .text-success {
    color: var(--omp-green) !important;
    display: flex;
    display: -webkit-flex;
    align-items: center;
}

.omp-add-success .as-upsell .target-line {
    width: 100%;
    height: 4px;
    background-color: #f6f6f6;
    border-radius: 8px;
    position: relative;
}

.omp-add-success .as-upsell .target-line .result-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--omp-green);
    border-radius: inherit;
}

.omp-add-success .as-upsell .target-line .result-dot {
    width: 100%;
    height: 100%;
    position: relative;
}

.check-dot-value svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.omp-add-success .as-upsell .target-line .check-dot {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 1px solid var(--omp-green);
    background-color: #ffffff;
    border-radius: 50%;
}

.check-dot .check-dot-value {
    width: 100%;
    height: 100%;
    position: relative;
    color: var(--omp-green);
}

.check-dot .check-dot-value span,
.target-line .init-value {
    position: absolute;
    top: 8px;
    left: 0;
    font-size: 12px;
}

.check-dot .check-dot-value span {
    top: 12px !important;
    left: 50%;
    transform: translateX(-50%);
}

.omp-select-deal-sock-overlay {
    position: relative;
}

.omp-select-deal-sock-overlay .deal-sock-product {
    display: flex;
    display: -webkit-flex;
    align-items: center;
    padding: var(--omp-space-x3);
}

.omp-select-deal-sock-overlay .deal-sock-product:not(:first-child),
.omp-select-deal-sock-overlay .deal-sock-product:not(:last-child) {
    border-bottom: 1px solid #f8f8f8;
}

.omp-select-deal-sock-overlay .deal-sock-product .omp-checkbox {
    margin-right: var(--omp-space-x3);
}

.omp-select-deal-sock-overlay .deal-sock-product img {
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 5px;
}

.omp-select-deal-sock-overlay .deal-sock-product .product-info {
    width: calc(100% - 3.8rem - 18px - var(--omp-space-x3));
    padding: 0 var(--omp-space-x3);
}

.omp-select-deal-sock-overlay .deal-sock-product .product-info p:first-child {
    font-weight: 500;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.omp-select-deal-sock-overlay .select-related-product-title {
    padding: var(--omp-space-x2) var(--omp-space-x3);
    background-color: rgba(var(--omp-color-primary-rgb), 0.08);
    border-top: 1px solid var(--omp-color-primary);
    border-bottom: 1px solid var(--omp-color-primary);
    margin-top: 1rem !important;
}

/* -------------------------------------- END SELECT VARIANT OVERLAY - MODAL -------------------------------------- */


/* -------------------------------------- SELECT MULTI VARIANT OVERLAY -------------------------------------- */
.select-multi-variant-overlay .product-items-wrapper {
    height: calc(100% - 115px);
    overflow: auto;
}

.omp-overlay .main-product-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    white-space: normal;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-product-name.line-clamp-2 {
    -webkit-line-clamp: 2 !important;
}

.select-multi-variant-overlay .smv-productItem {
    --quantity-button-size: 26px;
    --product-image-size: 40px;
    width: 100%;
    background-color: #ffffff;
    transition: background-color 0.2s ease-out;
    padding: var(--omp-space-x2) var(--omp-space-x3);
    position: relative;
}

.select-multi-variant-overlay .smv-productItem .item-outOfStock {
    position: absolute;
    width: calc(100% - var(--omp-space-x3) * 2);
    height: 100%;
    background-color: rgba(255, 255, 255, 0.65);
}

.select-multi-variant-overlay .smv-productItem.new-productItem {
    background-color: #f1fff4;
}

.select-multi-variant-overlay .smv-productItem.item-error {
    background-color: #fff1f1;
}

.select-multi-variant-overlay .smv-productItem img {
    border-radius: 3px;
}

.smv-productItem .smv-productItem_info {
    width: calc(100% - var(--product-image-size) - 0.75rem);
}

.smv-productItem .smv-productItem_info .smv-productItem_v-name {
    color: #4f4f4f;
    transition: color 0.2s ease-out;
    width: 100%;
}

.smv-productItem.new-productItem .smv-productItem_v-name {
    color: var(--omp-green);
}

.smv-productItem.item-error .smv-productItem_v-name {
    color: var(--omp-red);
}

.smv-productItem .quantity-groupButton {
    width: calc(var(--quantity-button-size) * 4 + 1rem);
    height: calc(var(--quantity-button-size));
}

.quantity-groupButton .button-minusQuantity,
.quantity-groupButton .button-plusQuantity {
    width: var(--quantity-button-size);
    height: var(--quantity-button-size);
    border-radius: 50%;
    color: #ffffff;
}

.quantity-groupButton .button-plusQuantity {
    background-color: var(--omp-color-primary);
}

.quantity-groupButton .button-minusQuantity {
    background-color: #a2a2a2;
}

.quantity-groupButton .input-quantity {
    width: calc(var(--quantity-button-size) * 2);
    height: var(--quantity-button-size);
}

.quantity-groupButton .input-quantity .omp-form-control {
    text-align: center;
    border-radius: 3px;
    height: 100%;
}

/* -------------------------------------- OVERLAY HAS FOOTER, HEADER -------------------------------------- */
.omp-overlay.overlay-with-header:not(.overlay-with-footer):not(.max-content-overlay) .overlay-body {
    height: calc(var(--app-height) * 0.9 - 48px);
}

.omp-overlay.overlay-with-header.overlay-with-footer:not(.max-content-overlay) .overlay-body {
    height: calc(var(--app-height) * 0.9 - 48px - 72px);
}

.omp-overlay.overlay-with-footer:not(.overlay-with-header):not(.max-content-overlay) .overlay-body {
    max-height: calc(var(--app-height) * 0.9 - 72px) !important;
}

.omp-overlay.overlay-with-footer.overlay-with-header:not(.max-content-overlay) .overlay-body {
    max-height: calc(var(--app-height) * 0.9 - 72px - 48px) !important;
}

.omp-overlay.overlay-with-footer.overlay-with-header--noTitle:not(.max-content-overlay) .overlay-body {
    max-height: calc(var(--app-height) * 0.9 - 72px - 36px) !important;
}

.omp-overlay.overlay-with-header .overlay-header {
    height: 48px !important;
    background-color: #fafafa;
}

.omp-overlay.overlay-with-header--noTitle .overlay-header {
    position: relative;
    background-color: #fafafa;
    height: 36px !important;
}

.overlay-with-header--noTitle .overlay-header .header-touchLine {
    width: 80px;
    height: 6px;
    position: absolute;
    top: 10px;
    left: calc(50% - 40px);
    background-color: #e4e4e4;
    cursor: pointer;
    border-radius: 3px;
}

.omp-overlay.overlay-with-footer .overlay-footer {
    width: 100%;
    padding: var(--omp-space-x3);
    height: 72px !important;
}

.omp-overlay.overlay-with-footer .overlay-footer .omp-btn-primary {
    width: 100%;
    height: 3rem;
}


/* -------------------------------------- OVERLAY MAX CONTENT -------------------------------------- */
.omp-overlay.max-content-overlay .overlay-wrapper {
    height: max-content !important;
}

.omp-overlay.max-content-overlay .overlay-body {
    height: max-content !important;
    max-height: calc(var(--app-height) * 0.9);
    overflow: auto;
}

.omp-overlay.max-content-overlay.overlay-with-header:not(.overlay-with-footer) .overlay-body {
    max-height: calc(var(--app-height) * 0.9 - 48px) !important;
}

.omp-overlay.max-content-overlay.overlay-with-header--noTitle:not(.overlay-with-footer) .overlay-body {
    max-height: calc(var(--app-height) * 0.9 - 36px) !important;
}

.omp-overlay.max-content-overlay.overlay-with-footer:not(.overlay-with-header) .overlay-body {
    max-height: calc(var(--app-height) * 0.9 - 72px) !important;
}

.omp-overlay.max-content-overlay.overlay-with-header.overlay-with-footer .overlay-body {
    max-height: calc(var(--app-height) * 0.9 - 48px - 72px) !important;
}

.omp-overlay.max-content-overlay.overlay-with-footer.overlay-with-header--noTitle .overlay-body {
    max-height: calc(var(--app-height) * 0.9 - 36px - 72px) !important;
}

/* -------------------------------------- CONFIRM ADD CART SUCCESS OVERLAY -------------------------------------- */
.confirm-add-cart-success-overlay .added-success-notify {
    background-color: #e9f7ef;
    color: var(--omp-green);
    padding-top: 4px;
    padding-bottom: 2px;
    border-radius: 3px;
}
