.oreyne-academy-discount-widget {
    --oreyne-academy-discount-bottom: 16px;
    position: fixed;
    z-index: 1040;
    left: 22px;
    bottom: var(--oreyne-academy-discount-bottom);
    width: 100px;
    height: 100px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.oreyne-academy-discount-widget.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.oreyne-academy-discount-widget.is-dismissed {
    display: none !important;
}

.oreyne-academy-discount-widget__open {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    background: #080808;
    color: #fff;
    box-shadow: 0 5px 24px rgba(0, 0, 0, .18);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: .01em;
    text-align: center;
    cursor: pointer;
}

.oreyne-academy-discount-widget__open strong {
    font-weight: 600;
}

.oreyne-academy-discount-widget__open:hover,
.oreyne-academy-discount-widget__open:focus {
    background: #080808;
    color: #fff;
}

.oreyne-academy-discount-widget__close {
    position: absolute;
    top: 1px;
    right: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #080808;
    color: #fff;
    font: 18px/1 Arial, sans-serif;
    cursor: pointer;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .oreyne-academy-discount-widget {
        left: 14px;
        width: 88px;
        height: 88px;
    }

    .oreyne-academy-discount-widget__open {
        width: 76px;
        height: 76px;
        font-size: 13px;
    }
}

@media (min-width: 1025px) {
    .oreyne-academy-discount-widget {
        bottom: max(138px, var(--oreyne-academy-discount-bottom));
    }
}

@media (max-width: 767px) {
    .oreyne-academy-discount-widget {
        left: max(8px, env(safe-area-inset-left));
        width: 70px;
        height: 70px;
    }

    .oreyne-academy-discount-widget__open {
        width: 60px;
        height: 60px;
        padding: 6px;
        font-size: 11px;
    }

    .oreyne-academy-discount-widget__close {
        top: 0;
        right: 0;
        width: 18px;
        height: 18px;
        font-size: 15px;
    }
}

/* Match the OREYNE split-image popup while preserving Academy's own form copy. */
#umino-modal-newsletter .modal-dialog {
    --bs-modal-width: min(980px, calc(100vw - 32px)) !important;
    max-width: min(980px, calc(100vw - 32px)) !important;
}

#umino-modal-newsletter .modal-content {
    min-height: 520px;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .2);
}

#umino-modal-newsletter .modal-content > .elementor-1498 {
    width: 100%;
    min-height: 520px;
}

#umino-modal-newsletter .elementor-1498 .elementor-element-dfbfff4 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 520px;
    padding: 0;
    background: #fff !important;
}

#umino-modal-newsletter .elementor-1498 .elementor-element-dfbfff4::before {
    content: "";
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    min-height: 520px;
    border-radius: 18px 0 0 18px;
    background: #ece7df url("https://oreyne.com/wp-content/uploads/2026/10/%E9%93%B6%E4%B8%9D%E8%8A%B1%E7%93%A3%E8%80%B3%E5%9D%A0%E7%89%B9%E5%86%99.webp") center center / cover no-repeat;
}

#umino-modal-newsletter .elementor-1498 .elementor-element-dfbfff4 > .elementor-container {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none !important;
    min-width: 0;
    margin: 0;
    align-self: stretch;
}

#umino-modal-newsletter .elementor-1498 .elementor-element-037f340 {
    display: flex;
    width: 100% !important;
    min-height: 520px;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #fff !important;
}

#umino-modal-newsletter .elementor-1498 .elementor-element-037f340 > .elementor-widget-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0;
}

#umino-modal-newsletter .elementor-1498 .elementor-element-7d246ca,
#umino-modal-newsletter #omnisend-embedded-v2-6adb3a97a3308bdd5e7a9c93 {
    width: 100%;
    max-width: 100%;
}

#umino-modal-newsletter .btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .9);
    opacity: .85;
}

@media (min-width: 768px) and (max-width: 1024px) {
    #umino-modal-newsletter .modal-content,
    #umino-modal-newsletter .modal-content > .elementor-1498,
    #umino-modal-newsletter .elementor-1498 .elementor-element-dfbfff4,
    #umino-modal-newsletter .elementor-1498 .elementor-element-dfbfff4::before,
    #umino-modal-newsletter .elementor-1498 .elementor-element-037f340 {
        min-height: 460px;
    }

    #umino-modal-newsletter .elementor-1498 .elementor-element-037f340 {
        padding: 32px 24px;
    }
}

@media (max-width: 767px) {
    #umino-modal-newsletter .modal-dialog {
        --bs-modal-width: min(340px, calc(100vw - 36px)) !important;
        width: min(340px, calc(100vw - 36px));
        max-width: min(340px, calc(100vw - 36px)) !important;
        max-height: calc(100dvh - 24px);
        margin: 12px auto;
    }

    #umino-modal-newsletter .modal-content,
    #umino-modal-newsletter .modal-content > .elementor-1498 {
        min-height: 0;
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 14px;
    }

    #umino-modal-newsletter .elementor-1498 .elementor-element-dfbfff4 {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        min-height: 0;
    }

    #umino-modal-newsletter .elementor-1498 .elementor-element-dfbfff4::before {
        display: none;
    }

    #umino-modal-newsletter .elementor-1498 .elementor-element-dfbfff4 > .elementor-container {
        grid-column: 1;
        grid-row: 1;
    }

    #umino-modal-newsletter .elementor-1498 .elementor-element-037f340 {
        min-height: 0;
        padding: 20px 18px 22px;
    }

    #umino-modal-newsletter .elementor-1498 .elementor-element-037f340 > .elementor-widget-wrap {
        max-width: 100%;
    }

    #umino-modal-newsletter .btn-close {
        top: 8px;
        right: 8px;
        padding: 7px;
        background-size: 12px;
    }

    #umino-modal-newsletter .elementor-1498 .elementor-widget-heading {
        margin-bottom: 8px;
    }

    #umino-modal-newsletter .elementor-1498 .elementor-widget-heading .elementor-heading-title {
        font-size: clamp(19px, 5.4vw, 23px);
        line-height: 1.12;
    }

    #umino-modal-newsletter .elementor-1498 .elementor-widget-text-editor,
    #umino-modal-newsletter .elementor-1498 .elementor-widget-text-editor p {
        font-size: 12px;
        line-height: 1.3;
    }

    #umino-modal-newsletter .elementor-1498 .elementor-widget-text-editor p {
        margin-bottom: 7px;
    }

    #umino-modal-newsletter .elementor-1498 .elementor-widget-wrap > .elementor-element {
        margin-bottom: 7px;
    }

    body.modal-open #oreyne-mobile-bottom-dock,
    body.modal-open .oreyne-pdp-mobile-sticky-cart,
    body.modal-open [data-oreyne-mobile-sticky-cart="1"],
    body.modal-open .sticky-add-to-cart,
    body.modal-open .sticky-add-to-cart-bar,
    body.modal-open .product-sticky-add-to-cart,
    body.modal-open .bls-sticky-add-to-cart,
    body.modal-open .bls-sticky-addcart {
        display: none !important;
    }
}
