/**
 * DPD + Easybox locker overlays — same chrome as FANbox (#adb-fan-map).
 *
 * @author advrider.ro
 */

/* ----- DPD: our modal hosts the iframe ----- */

.adb-modal.adb-modal--fan-chrome {
    z-index: 2147483000;
    align-items: stretch;
    justify-content: stretch;
    padding: 16px;
    background: #00000080;
}

.adb-modal.adb-modal--fan-chrome .adb-modal__backdrop {
    background: transparent;
}

.adb-modal.adb-modal--fan-chrome .adb-modal__dialog {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100vh - 32px);
    min-height: 0;
    border-radius: 40px;
    box-shadow: 0 8px 24px #1114172e;
    overflow: hidden;
}

.adb-modal.adb-modal--fan-chrome .adb-modal__header {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    padding: 16px;
    border: 0;
    background: transparent;
    pointer-events: none;
}

.adb-modal.adb-modal--fan-chrome .adb-modal__title {
    display: none;
}

.adb-modal.adb-modal--fan-chrome .adb-modal__close {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    border: 1px solid #f3f3f3;
    border-radius: 50%;
    background: #fff;
    color: #1b1f24;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 4px 4px #6674833d;
}

.adb-modal.adb-modal--fan-chrome .adb-modal__body {
    flex: 1 1 auto;
    min-height: 0;
}

.adb-modal.adb-modal--fan-chrome .adb-widget__frame {
    border-radius: 40px;
}

/* ----- Easybox: Sameday SDK fullscreen iframe ----- */

body.adb-locker-plugin-chrome::before {
    content: '';
    position: fixed;
    z-index: 2147482999;
    inset: 0;
    background: #00000080;
    pointer-events: none;
}

.adb-easybox-chrome-close {
    display: none;
    position: fixed;
    z-index: 2147483001;
    top: 32px;
    right: 32px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid #f3f3f3;
    border-radius: 50%;
    background: #fff;
    color: #1b1f24;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 4px 4px #6674833d;
    cursor: pointer;
}

body.adb-locker-plugin-chrome .adb-easybox-chrome-close {
    display: inline-flex;
}

body.adb-locker-plugin-chrome.locker-plugin-v2-hide-scrollbar #locker-plugin-v2-iframe,
body.adb-locker-plugin-chrome #locker-plugin-v2-iframe {
    position: fixed !important;
    z-index: 2147483000 !important;
    top: 16px !important;
    right: 16px !important;
    bottom: auto !important;
    left: 16px !important;
    width: calc(100vw - 32px) !important;
    height: calc(100vh - 32px) !important;
    height: calc(100dvh - 32px) !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 40px !important;
    box-shadow: 0 8px 24px #1114172e !important;
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .adb-modal.adb-modal--fan-chrome {
        padding: 0;
    }

    .adb-modal.adb-modal--fan-chrome .adb-modal__dialog {
        border-radius: 0;
        box-shadow: none;
    }

    .adb-modal.adb-modal--fan-chrome .adb-widget__frame {
        border-radius: 0;
    }

    body.adb-locker-plugin-chrome::before {
        display: none;
    }

    body.adb-locker-plugin-chrome #locker-plugin-v2-iframe {
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.adb-locker-plugin-chrome .adb-easybox-chrome-close {
        top: 16px;
        right: 16px;
    }
}

@supports (height: 100dvh) {
    @media (max-width: 767px) {
        body.adb-locker-plugin-chrome #locker-plugin-v2-iframe {
            height: 100dvh !important;
        }
    }
}
