/* ScanShop Store Welcome Popup - v1.5.0 */

.scanshop-store-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    font-family: inherit;
}

.scanshop-store-popup.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.scanshop-store-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 14, .68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Compact bottom sheet: always touches the bottom and keeps CTA visible */
.scanshop-store-popup__panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(680px, 100%);
    max-height: 78vh;
    overflow: hidden;
    transform: translate(-50%, 105%);
    transition: transform .42s cubic-bezier(.22, .61, .36, 1);
    background:
        radial-gradient(circle at 0% 0%, rgba(13, 227, 156, .15) 0 125px, transparent 126px),
        radial-gradient(circle at 100% 0%, rgba(94, 242, 197, .12) 0 115px, transparent 116px),
        linear-gradient(180deg, #ffffff 0%, #fbfffd 100%);
    border: 1px solid rgba(13, 227, 156, .22);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -16px 55px rgba(0, 0, 0, .30);
}

.scanshop-store-popup.is-open .scanshop-store-popup__panel {
    transform: translate(-50%, 0);
}

.scanshop-store-popup__panel::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #00b97a, #0de39c, #5ef2c5, #0de39c, #00b97a);
}

.scanshop-store-popup__panel::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 190px;
    height: 190px;
    top: -125px;
    right: -65px;
    border-radius: 50%;
    background: rgba(13, 227, 156, .09);
    pointer-events: none;
}

.scanshop-store-popup__handle {
    display: block;
    position: absolute;
    z-index: 4;
    top: 10px;
    left: 50%;
    width: 42px;
    height: 4px;
    transform: translateX(-50%);
    border-radius: 99px;
    background: rgba(0, 80, 55, .14);
}

/* Close button sits above the top edge of the bottom sheet. */
.scanshop-store-popup__close {
    position: absolute;
    z-index: 100;
    top: -58px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0 0 2px;
    border: 0 !important;
    outline: 0;
    border-radius: 50% !important;
    background: #30313a !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.28) !important;
    color: #fff !important;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    transition: transform .18s ease, background .18s ease;
}

.scanshop-store-popup__close:hover,
.scanshop-store-popup__close:focus-visible {
    color: #fff !important;
    transform: scale(1.06);
    background: #202128 !important;
    box-shadow: 0 8px 22px rgba(0,0,0,.32) !important;
    outline: none;
}

.scanshop-store-popup__body {
    position: relative;
    z-index: 2;
    padding: 32px 42px 22px;
    text-align: center;
}

.scanshop-store-popup__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    margin: 4px auto 9px;
    padding: 5px 15px;
    border: 1px solid rgba(13, 227, 156, .18);
    border-radius: 999px;
    background: #eafff7;
    color: #00865b;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.scanshop-store-popup__body h2 {
    position: relative;
    margin: 0 auto;
    max-width: 590px;
    color: #111814;
    font-size: clamp(27px, 4.2vw, 39px);
    line-height: 1.05;
    letter-spacing: -.045em;
    font-weight: 500;
}

.scanshop-store-popup__body h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin: 13px auto 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #00b97a, #0de39c);
}

.scanshop-store-popup__message {
    position: relative;
    max-width: 520px;
    margin: 17px auto 0;
    padding: 17px 21px;
    border: 1px solid rgba(0, 185, 122, .16);
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(245, 255, 251, .98), rgba(237, 250, 245, .92));
    color: #5c6762;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 22px rgba(0, 120, 80, .05);
    white-space: normal;
    word-break: break-word;
}

.scanshop-store-popup__message::before {
    content: "✦  SPECIAL STORE OFFER  ✦";
    display: block;
    margin-bottom: 7px;
    color: #00865b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.scanshop-store-popup__message br + br {
    display: block;
    content: "";
    margin-top: 3px;
}

.scanshop-store-popup__continue {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(330px, 100%);
    min-height: 54px;
    margin: 18px auto 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #111714, #073d2d);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(0, 50, 35, .20);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.scanshop-store-popup__continue::after {
    content: "→";
    margin-left: 10px;
    font-size: 19px;
    line-height: 1;
}

.scanshop-store-popup__continue:hover,
.scanshop-store-popup__continue:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #00b97a, #008b60);
    box-shadow: 0 15px 30px rgba(0, 150, 100, .25);
    outline: none;
}

.scanshop-popup-no-scroll { overflow: hidden !important; }

@media (max-width: 600px) {
    .scanshop-store-popup__panel {
        width: 100%;
        max-height: 80vh;
        border-radius: 24px 24px 0 0;
    }

    .scanshop-store-popup__handle { top: 8px; width: 38px; }

    .scanshop-store-popup__close {
        top: -52px;
        right: 14px;
        width: 46px;
        height: 46px;
        font-size: 34px;
    }

    .scanshop-store-popup__body {
        padding: 30px 15px 17px;
    }

    .scanshop-store-popup__eyebrow {
        margin-bottom: 8px;
    }

    .scanshop-store-popup__body h2 {
        max-width: 94%;
        font-size: 27px;
        line-height: 1.06;
    }

    .scanshop-store-popup__body h2::after {
        margin-top: 10px;
    }

    .scanshop-store-popup__message {
        margin-top: 14px;
        padding: 14px 12px;
        border-radius: 17px;
        font-size: 13px;
        line-height: 1.45;
    }

    .scanshop-store-popup__message::before {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .scanshop-store-popup__continue {
        width: calc(100% - 10px);
        min-height: 51px;
        margin-top: 14px;
    }
}

@media (max-width: 380px) {
    .scanshop-store-popup__panel { max-height: 82vh; }
    .scanshop-store-popup__body { padding-left: 12px; padding-right: 12px; }
    .scanshop-store-popup__body h2 { font-size: 24px; }
    .scanshop-store-popup__message { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .scanshop-store-popup__panel,
    .scanshop-store-popup__close,
    .scanshop-store-popup__continue { transition: none !important; }
}

/* Closing state: the sheet itself slides down before the popup is removed. */
.scanshop-store-popup.is-closing {
    visibility: visible;
    pointer-events: none;
    opacity: 1;
}

.scanshop-store-popup.is-closing .scanshop-store-popup__panel {
    transform: translate(-50%, 105%);
}

.scanshop-store-popup.is-closing .scanshop-store-popup__backdrop {
    opacity: 0;
    transition: opacity .45s ease;
}
