.meta-packs-launcher,
.meta-packs-launcher *,
.meta-packs-popup,
.meta-packs-popup * {
    box-sizing: border-box;
}

.meta-packs-launcher.meta-packs-launcher {
    position: fixed !important;
    left: max(18px, env(safe-area-inset-left)) !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
    z-index: 99990 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: 52px !important;
    padding: 6px 16px 6px 7px !important;
    appearance: none !important;
    border: 1px solid rgba(255, 248, 243, 0.72) !important;
    border-radius: 999px !important;
    background:
        linear-gradient(135deg, rgba(44, 34, 31, 0.96), rgba(86, 61, 53, 0.96)) !important;
    color: #FFF8F3 !important;
    box-shadow: 0 18px 46px rgba(44, 34, 31, 0.32), 0 0 0 5px rgba(255, 248, 243, 0.22) !important;
    cursor: pointer !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transform: translateZ(0);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}

.meta-packs-launcher.meta-packs-launcher::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.meta-packs-launcher.meta-packs-launcher:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 248, 243, 0.95) !important;
    box-shadow: 0 24px 62px rgba(44, 34, 31, 0.38), 0 0 0 6px rgba(212, 47, 103, 0.12) !important;
}

.meta-packs-launcher__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #D53369, #B06F58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 10px 24px rgba(129, 61, 75, 0.32);
}

.meta-packs-launcher__icon svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.meta-packs-launcher__text {
    display: inline-flex;
    color: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.meta-packs-popup[hidden],
.meta-packs-popup__slide[hidden],
.meta-packs-popup__controls[hidden] {
    display: none !important;
}

.meta-packs-popup-open {
    overflow: hidden;
}

.meta-packs-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 22px;
}

.meta-packs-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 34, 31, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.meta-packs-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 880px);
    max-height: calc(100svh - 44px);
    display: grid;
    gap: 20px;
    overflow: hidden;
    padding: 30px;
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 250, 247, 0.99), rgba(248, 238, 233, 0.97));
    border: 1px solid rgba(255, 248, 243, 0.92);
    box-shadow: 0 34px 120px rgba(31, 23, 21, 0.36);
    color: #2C221F;
}

.meta-packs-popup__dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(176, 123, 104, 0.16);
    pointer-events: none;
}

.meta-packs-popup .meta-packs-popup__close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    appearance: none !important;
    border: 1px solid rgba(212, 47, 103, 0.2) !important;
    border-radius: 999px !important;
    background: rgba(212, 47, 103, 0.1) !important;
    color: #C72B5E !important;
    box-shadow: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
    text-indent: -9999px;
    overflow: hidden;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease !important;
}

.meta-packs-popup .meta-packs-popup__close:hover {
    transform: translateY(-1px);
    background: #C72B5E !important;
    color: #FFFFFF !important;
}

.meta-packs-popup .meta-packs-popup__close::before,
.meta-packs-popup .meta-packs-popup__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
}

.meta-packs-popup .meta-packs-popup__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.meta-packs-popup .meta-packs-popup__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.meta-packs-popup__head {
    max-width: min(1080px, calc(100% - 92px));
    padding-right: 58px;
}

.meta-packs-popup__head span {
    display: inline-flex;
    margin-bottom: 9px;
    color: #8D5F50;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.meta-packs-popup__head h2 {
    margin: 0;
    color: #2C221F;
    font-size: clamp(28px, 2.7vw, 42px);
    line-height: 1.04;
    font-weight: 900;
    text-wrap: balance;
}

.meta-packs-popup__viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
}

.meta-packs-popup__track {
    display: flex;
    width: 100%;
    transition: transform 0.52s cubic-bezier(.2,.8,.2,1);
    will-change: transform;
}

.meta-packs-popup[data-mode="single"] .meta-packs-popup__track {
    display: block;
    transform: none !important;
}

.meta-packs-popup__slide {
    flex: 0 0 100%;
    min-width: 0;
}

.meta-packs-popup__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, 0.88fr) minmax(0, 1.12fr);
    min-height: 330px;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 248, 243, 0.72);
    border: 1px solid rgba(176, 123, 104, 0.2);
    color: inherit;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.meta-packs-popup__card:hover {
    color: inherit;
}

.meta-packs-popup__card.has-no-image {
    grid-template-columns: 1fr;
}

.meta-packs-popup__media {
    min-height: 100%;
    background: rgba(176, 123, 104, 0.12);
}

.meta-packs-popup__media img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    display: block;
    object-fit: cover;
}

.meta-packs-popup__body {
    display: grid;
    align-content: center;
    gap: 13px;
    min-width: 0;
    padding: 34px;
}

.meta-packs-popup__badge {
    display: inline-flex;
    width: fit-content;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(141, 95, 80, 0.12);
    color: #8D5F50;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.meta-packs-popup__body h3 {
    margin: 0;
    max-width: 18em;
    color: #2C221F;
    font-size: clamp(23px, 2.5vw, 34px);
    line-height: 1.08;
    font-weight: 900;
}

.meta-packs-popup__body p {
    margin: 0;
    max-width: 46em;
    color: rgba(44, 34, 31, 0.72);
    font-size: 16px;
    line-height: 1.48;
    font-weight: 650;
}

.meta-packs-popup__body small {
    display: block;
    color: #7A2E24;
    font-size: 14px;
    line-height: 1.42;
    font-weight: 850;
}

.meta-packs-popup__body strong {
    display: inline-flex;
    width: fit-content;
    color: #8D5F50;
    font-size: 22px;
    line-height: 1;
    font-weight: 950;
}

.meta-packs-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 42px;
    margin-top: 4px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #2C221F;
    color: #FFF8F3;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.meta-packs-popup__controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    justify-self: center;
    padding: 10px 12px;
    border: 1px solid rgba(176, 123, 104, 0.16);
    border-radius: 999px;
    background: rgba(255, 248, 243, 0.84);
    box-shadow: 0 18px 42px rgba(44, 34, 31, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
}

.meta-packs-popup .meta-packs-popup__arrow {
    appearance: none !important;
    position: relative;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 999px !important;
    background: rgba(141, 95, 80, 0.1) !important;
    color: #C82D64 !important;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(141, 95, 80, 0.08), 0 8px 18px rgba(44, 34, 31, 0.06) !important;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.meta-packs-popup .meta-packs-popup__arrow:hover,
.meta-packs-popup .meta-packs-popup__arrow:focus-visible {
    transform: translateY(-1px);
    background: #2C221F !important;
    color: #FFF8F3 !important;
    box-shadow: 0 12px 24px rgba(44, 34, 31, 0.16) !important;
}

.meta-packs-popup .meta-packs-popup__arrow:active {
    transform: translateY(0) scale(0.96);
    background: #8D5F50 !important;
    color: #FFF8F3 !important;
}

.meta-packs-popup .meta-packs-popup__arrow::before,
.meta-packs-popup .meta-packs-popup__arrow::after {
    content: none !important;
}

.meta-packs-popup .meta-packs-popup__arrow svg {
    width: 21px !important;
    height: 21px !important;
    display: block !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.meta-packs-popup__arrow-fallback {
    display: none;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.meta-packs-popup__dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 2px;
}

.meta-packs-popup .meta-packs-popup__dot {
    appearance: none !important;
    position: relative;
    width: 9px !important;
    height: 9px !important;
    min-width: 9px !important;
    min-height: 9px !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 999px !important;
    background: rgba(141, 95, 80, 0.26) !important;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 0 4px rgba(141, 95, 80, 0);
    transition: width 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.meta-packs-popup .meta-packs-popup__dot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: transparent;
    transition: background 0.24s ease;
}

.meta-packs-popup .meta-packs-popup__dot:hover,
.meta-packs-popup .meta-packs-popup__dot:focus-visible {
    transform: scale(1.12);
    background: rgba(141, 95, 80, 0.42) !important;
    box-shadow: 0 0 0 4px rgba(141, 95, 80, 0.1);
}

.meta-packs-popup .meta-packs-popup__dot.is-active {
    width: 34px !important;
    background: rgba(141, 95, 80, 0.12) !important;
    box-shadow: inset 0 0 0 1px rgba(141, 95, 80, 0.13), 0 8px 18px rgba(44, 34, 31, 0.07);
}

.meta-packs-popup .meta-packs-popup__dot.is-active::before {
    inset: 2px 3px;
    background: linear-gradient(90deg, #8D5F50, #C82D64);
}

@media (hover: none) {
    .meta-packs-launcher.meta-packs-launcher:hover {
        transform: none;
    }
}

@media (max-width: 760px) {
    .meta-packs-popup {
        padding: 14px;
    }

    .meta-packs-popup__dialog {
        max-height: calc(100svh - 28px);
        padding: 22px;
        border-radius: 24px;
        gap: 15px;
    }

    .meta-packs-popup .meta-packs-popup__close {
        top: 14px !important;
        right: 14px !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .meta-packs-popup__head {
        padding-right: 46px;
    }

    .meta-packs-popup__head h2 {
        font-size: clamp(27px, 7.4vw, 36px);
    }

    .meta-packs-popup__card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .meta-packs-popup__media img {
        min-height: 0;
        aspect-ratio: 1.55 / 1;
    }

    .meta-packs-popup__body {
        padding: 24px;
    }

    .meta-packs-popup__body h3 {
        max-width: 100%;
        font-size: clamp(23px, 7vw, 30px);
    }
}

@media (max-width: 460px) {
    .meta-packs-launcher.meta-packs-launcher {
        left: max(12px, env(safe-area-inset-left)) !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        width: 50px !important;
        height: 48px !important;
        padding: 5px !important;
        gap: 0 !important;
    }

    .meta-packs-launcher__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .meta-packs-launcher__text {
        display: none;
    }

    .meta-packs-popup__dialog {
        padding: 16px;
        border-radius: 20px;
    }

    .meta-packs-popup__head span {
        font-size: 11px;
    }

    .meta-packs-popup__body {
        gap: 11px;
        padding: 18px;
    }

    .meta-packs-popup__badge {
        font-size: 11px;
        padding: 8px 12px;
    }

    .meta-packs-popup__body p {
        font-size: 14px;
    }

    .meta-packs-popup__body small {
        font-size: 13px;
    }

    .meta-packs-popup__body strong {
        font-size: 20px;
    }

    .meta-packs-popup__cta {
        min-height: 40px;
        padding: 11px 15px;
        font-size: 11px;
    }

    .meta-packs-popup__controls {
        gap: 10px;
    }

    .meta-packs-popup__arrow {
        width: 38px;
        height: 38px;
    }
}
