/* Expect Logistics rebrand pop-up */

.expect-popup[hidden] {
    display: none !important;
}

.expect-popup {
    position: fixed;
    inset: 0;
    z-index: 2147483000; /* above Divi header, menus and admin bar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    opacity: 0;
    transition: opacity .25s ease;
}

.expect-popup.is-open {
    opacity: 1;
}

.expect-popup *,
.expect-popup *::before,
.expect-popup *::after {
    box-sizing: border-box;
}

.expect-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, .6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.expect-popup__panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 48px 40px;
    border-radius: 22px;
    background-color: #2466ff;
    background-image: var(--expect-popup-bg);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    outline: none;
    transform: translateY(12px);
    transition: transform .25s ease;
}

.expect-popup.is-open .expect-popup__panel {
    transform: none;
}

.expect-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.expect-popup__close:hover,
.expect-popup__close:focus-visible {
    background: #fff;
    color: #2466ff;
}

.expect-popup__label {
    display: inline-block;
    margin: 0 0 26px;
    padding: 9px 20px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 400;
    color: #fff;
}

.expect-popup__logo {
    display: block;
    width: 320px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 30px;
}

.expect-popup .expect-popup__title {
    max-width: 340px;
    margin: 0 auto 12px;
    padding: 0;
    font-family: inherit;
    font-size: 23px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0;
    color: #fff;
}

.expect-popup__text {
    max-width: 350px;
    margin: 0 auto 30px;
    padding: 0;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 400;
    color: #fff;
}

.expect-popup__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.expect-popup .expect-popup__btn {
    display: inline-block;
    padding: 11px 20px;
    border: 1.5px solid #fff;
    border-radius: 999px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.expect-popup .expect-popup__btn:hover,
.expect-popup .expect-popup__btn:focus-visible {
    background: #fff;
    color: #2466ff;
}

.expect-popup :focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.expect-popup .expect-popup__panel:focus,
.expect-popup .expect-popup__panel:focus-visible {
    outline: none;
}

html.expect-popup-lock,
html.expect-popup-lock body {
    overflow: hidden !important;
}

/* Mobile */
@media (max-width: 600px) {
    .expect-popup { padding: 16px; }
    .expect-popup__panel { padding: 56px 22px 32px; }
    .expect-popup__label { margin-bottom: 24px; }
    .expect-popup__logo { width: 250px; margin-bottom: 26px; }
    .expect-popup .expect-popup__title { font-size: 21px; line-height: 1.4; }
    .expect-popup__text { margin-bottom: 26px; font-size: 16px; line-height: 1.5; }
    .expect-popup__actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .expect-popup .expect-popup__btn { padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .expect-popup,
    .expect-popup__panel { transition: none; }
}
