/* Demo guide. Brand values come from fmeextensions.com: orange #e47143, deep orange #db4d2d, ink #141414, tint #fff7f2. */
.fme-g {
    --fme-orange: #e47143;
    --fme-orange-deep: #db4d2d;
    --fme-ink: #141414;
    --fme-text: #424242;
    --fme-muted: #686868;
    --fme-tint: #fff7f2;
    --fme-tint-line: #ffdbc6;
    --fme-line: #ebebeb;
    color: var(--fme-text);
    font: 400 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

.fme-g *,
.fme-g *::before,
.fme-g *::after {
    box-sizing: border-box;
}

.fme-g [hidden] {
    display: none !important;
}

.fme-g p,
.fme-g ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fme-g li {
    margin: 0;
}

.fme-g .fme-g-icon {
    display: block;
    flex: none;
    height: 18px;
    pointer-events: none; /* Clicks land on the button or link, never on the SVG (store scripts read className). */
    width: 18px;
}

/* Page frame: the panel takes a column of its own beside the store on wide screens. */
@media (min-width: 1200px) {
    body.fme-guide {
        padding-right: 360px;
    }

    body.fme-guide.fme-g-undocked {
        padding-right: 0;
    }

    /* Popups opened by the store (Magento modals, Magnific) keep to the store column beside the docked panel. */
    body.fme-guide:not(.fme-g-undocked) .modals-overlay,
    body.fme-guide:not(.fme-g-undocked) .modal-popup,
    body.fme-guide:not(.fme-g-undocked) .mfp-bg,
    body.fme-guide:not(.fme-g-undocked) .mfp-wrap {
        right: 360px;
        width: auto;
    }

    /* Magento sets width:100% on body while a modal is open; keep the panel's padding inside it. */
    body.fme-guide._has-modal:not(.fme-g-undocked) {
        box-sizing: border-box;
    }

    /* The store is narrower beside the panel: keep Luma's longest filter names on one line. */
    body.fme-guide:not(.fme-g-undocked) .filter-options-title {
        font-size: 13px;
        word-break: normal;
    }
}

@media (max-width: 767px) {
    body.fme-guide {
        padding-bottom: 52px;
    }

    body.fme-guide.fme-g-no-bar {
        padding-bottom: 0;
    }
}

/* Banner */
.fme-g-banner {
    background: #fff;
    border-top: 4px solid var(--fme-orange);
    box-shadow: 0 1px 0 var(--fme-tint-line), 0 6px 16px rgba(20, 20, 20, .07);
    position: relative;
    z-index: 4;
}

.fme-g-banner__main {
    align-items: center;
    display: flex;
    gap: 28px;
    margin: 0 auto;
    max-width: 1280px;
    padding: 16px 24px;
}

.fme-g .fme-g-logo {
    border-right: 1px solid var(--fme-line);
    display: block;
    flex: none;
    padding-right: 28px;
}

.fme-g-logo img {
    display: block;
    height: 46px;
    width: auto;
}

.fme-g-banner__text {
    flex: 1 1 auto;
    min-width: 0;
}

.fme-g .fme-g-eyebrow {
    align-items: center;
    color: var(--fme-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.fme-g-live {
    align-items: center;
    background: var(--fme-tint);
    border: 1px solid var(--fme-tint-line);
    border-radius: 99px;
    color: #b63f1f;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    letter-spacing: .06em;
    padding: 2px 9px;
    text-transform: uppercase;
}

.fme-g-live::before {
    background: var(--fme-orange-deep);
    border-radius: 50%;
    content: "";
    height: 7px;
    width: 7px;
}

.fme-g .fme-g-name {
    color: var(--fme-ink);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.fme-g .fme-g-benefit {
    color: var(--fme-text);
    font-size: 15px;
    line-height: 1.4;
    margin-top: 3px;
    max-width: 62ch;
}

.fme-g-banner__cta {
    flex: none;
    text-align: center;
}

.fme-g .fme-g-buy,
.fme-g .fme-g-buy:visited {
    align-items: center;
    background: var(--fme-orange-deep);
    border-radius: 99px;
    box-shadow: 0 6px 14px rgba(219, 77, 45, .3);
    color: #fff;
    display: inline-flex;
    font-size: 17px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    line-height: 1.2;
    padding: 13px 24px;
    text-decoration: none;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
    white-space: nowrap;
}

.fme-g .fme-g-buy:hover {
    background: #c74223;
    box-shadow: 0 8px 18px rgba(219, 77, 45, .38);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.fme-g .fme-g-trust {
    color: var(--fme-muted);
    font-size: 12px;
    margin-top: 8px;
    white-space: pre-wrap;
}

.fme-g-seeing {
    align-items: center;
    background: var(--fme-tint);
    border-top: 1px solid var(--fme-tint-line);
    display: flex;
    gap: 18px;
    padding: 10px max(24px, calc((100% - 1232px) / 2));
}

.fme-g .fme-g-seeing__label {
    color: #b63f1f;
    flex: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.fme-g .fme-g-seeing__list {
    display: flex;
    flex: 1 1 auto;
    gap: 22px;
    min-width: 0;
}

.fme-g .fme-g-seeing__list li {
    align-items: flex-start;
    color: #2a2a2a;
    display: flex;
    flex: 1 1 0;
    font-size: 13px;
    gap: 6px;
    line-height: 1.35;
}

.fme-g .fme-g-seeing__list .fme-g-icon {
    color: var(--fme-orange-deep);
    height: 16px;
    margin-top: 1px;
    width: 16px;
}

.fme-g .fme-g-seeing__list--after,
body.fme-g-gate-done .fme-g .fme-g-seeing__list:has(+ .fme-g-seeing__list--after) {
    display: none;
}

body.fme-g-gate-done .fme-g .fme-g-seeing__list--after {
    display: flex;
}

.fme-g button.fme-g-replay {
    background: #fff;
    border: 1px solid var(--fme-orange);
    border-radius: 99px;
    box-shadow: none;
    color: #b63f1f;
    cursor: pointer;
    flex: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    padding: 7px 14px;
}

.fme-g button.fme-g-jump {
    align-items: center;
    background: var(--fme-orange-deep);
    border-color: var(--fme-orange-deep);
    color: #fff;
    display: inline-flex;
    gap: 5px;
}

.fme-g button.fme-g-jump .fme-g-icon {
    height: 15px;
    width: 15px;
}

.fme-g button.fme-g-replay:hover {
    background: var(--fme-orange-deep);
    border-color: var(--fme-orange-deep);
    color: #fff;
}

.fme-g .fme-g-gatenote {
    display: none;
}

/* Dots */
.fme-g-layer {
    height: 0;
    left: 0;
    position: absolute;
    top: 0;
    width: 0;
    z-index: 3;
}

.fme-g button.fme-g-dot {
    align-items: center;
    background: var(--fme-orange-deep);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(20, 20, 20, .35);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    height: 26px;
    justify-content: center;
    line-height: 1;
    margin: -13px 0 0 -13px;
    padding: 0;
    position: absolute;
    transition: background-color .15s ease, transform .15s ease;
    width: 26px;
}

/* A larger tap area without a larger dot. */
.fme-g button.fme-g-dot::before {
    content: "";
    inset: -9px;
    position: absolute;
}

.fme-g button.fme-g-dot::after {
    animation: fme-g-pulse 2.4s ease-out infinite;
    border: 2px solid var(--fme-orange);
    border-radius: 50%;
    content: "";
    inset: -2px;
    pointer-events: none;
    position: absolute;
}

.fme-g button.fme-g-dot:hover,
.fme-g button.fme-g-dot.is-active {
    background: var(--fme-ink);
    transform: scale(1.12);
}

.fme-g button.fme-g-dot.is-active::after {
    animation: none;
    opacity: 0;
}

@keyframes fme-g-pulse {
    0% {
        opacity: .9;
        transform: scale(1);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Optional ("dots_on_top" in the tour): dots and ring above store elements such as sliders with a z-index. */
.fme-g[data-dots-top] .fme-g-layer,
.fme-g[data-dots-top] .fme-g-ring {
    z-index: 110;
}

body.fme-g-gate-pending .fme-g-layer,
body.fme-g-gate-open .fme-g-layer {
    visibility: hidden;
}

/* Highlight around a feature chosen in the panel */
.fme-g-ring {
    animation: fme-g-ring 1.2s ease-in-out 2;
    border: 3px solid var(--fme-orange-deep);
    border-radius: 10px;
    box-shadow: 0 0 0 4px rgba(228, 113, 67, .28);
    pointer-events: none;
    position: absolute;
    z-index: 3;
}

@keyframes fme-g-ring {
    50% {
        box-shadow: 0 0 0 12px rgba(228, 113, 67, .12);
    }
}

/* Tooltip */
.fme-g-tip {
    background: var(--fme-ink);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(20, 20, 20, .32);
    color: #fff;
    display: flex;
    gap: 10px;
    left: 0;
    max-width: min(310px, calc(100vw - 20px));
    padding: 12px 14px;
    position: absolute;
    top: 0;
    width: 310px;
    z-index: 120;
}

.fme-g-tip__num {
    align-items: center;
    background: var(--fme-orange-deep);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: none;
    font-size: 12px;
    font-weight: 700;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.fme-g .fme-g-tip__title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 3px;
}

.fme-g .fme-g-tip__text {
    color: #e6e6e6;
    font-size: 13px;
    line-height: 1.45;
}

.fme-g-tip__arrow {
    background: var(--fme-ink);
    bottom: -5px;
    height: 12px;
    position: absolute;
    transform: rotate(45deg);
    width: 12px;
}

.fme-g-tip.is-below .fme-g-tip__arrow {
    bottom: auto;
    top: -5px;
}

/* Panel */
.fme-g-panel {
    background: #fff;
    bottom: 0;
    box-shadow: -1px 0 0 var(--fme-line), -8px 0 24px rgba(20, 20, 20, .08);
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    top: 0;
    width: 360px;
    z-index: 130;
}

.fme-g[data-panel="collapsed"] .fme-g-panel,
.fme-g[data-panel="dismissed"] .fme-g-panel {
    display: none;
}

.fme-g-panel__head {
    align-items: center;
    background: var(--fme-ink);
    color: #fff;
    display: flex;
    flex: none;
    gap: 4px;
    padding: 12px 10px 12px 18px;
}

.fme-g .fme-g-panel__title {
    align-items: center;
    color: #fff;
    display: flex;
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 700;
    gap: 8px;
}

.fme-g-count {
    background: var(--fme-orange-deep);
    border-radius: 99px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
}

.fme-g button.fme-g-iconbtn {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.fme-g button.fme-g-iconbtn:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.fme-g-panel__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 10px;
    position: relative;
}

.fme-g .fme-g-section {
    color: var(--fme-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    padding: 16px 18px 6px;
    text-transform: uppercase;
}

.fme-g button.fme-g-row,
.fme-g a.fme-g-row,
.fme-g li.fme-g-row {
    align-items: flex-start;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0;
    box-shadow: none;
    color: var(--fme-text);
    display: flex;
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    gap: 11px;
    line-height: 1.42;
    padding: 9px 15px 9px 15px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.fme-g button.fme-g-row,
.fme-g a.fme-g-row {
    cursor: pointer;
}

.fme-g button.fme-g-row:hover,
.fme-g a.fme-g-row:hover,
.fme-g button.fme-g-row.is-active {
    background: var(--fme-tint);
    border-left-color: var(--fme-orange-deep);
    color: var(--fme-text);
    text-decoration: none;
}

.fme-g-row__text {
    flex: 1 1 auto;
    min-width: 0;
}

.fme-g-row__text strong {
    color: var(--fme-ink);
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1px;
}

.fme-g-row__text small {
    color: var(--fme-muted);
    display: block;
    font-size: 12px;
}

.fme-g-row__note {
    color: #b63f1f;
    display: block;
    font-size: 12px;
    font-style: normal;
    margin-top: 3px;
}

.fme-g-row__go {
    color: var(--fme-muted);
    flex: none;
    margin-top: 6px;
}

.fme-g-badge {
    align-items: center;
    background: var(--fme-orange-deep);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: none;
    font-size: 12px;
    font-weight: 700;
    height: 24px;
    justify-content: center;
    line-height: 1;
    margin-top: 1px;
    width: 24px;
}

.fme-g-row.is-missing .fme-g-badge {
    background: #bdbdbd;
}

.fme-g-badge--tick {
    background: var(--fme-tint);
    color: var(--fme-orange-deep);
}

.fme-g-badge--muted {
    background: #f5f5f5;
    color: var(--fme-muted);
}

.fme-g .fme-g-badge .fme-g-icon {
    height: 15px;
    width: 15px;
}

.fme-g-admin {
    align-items: center;
    background: var(--fme-tint);
    border: 1px solid var(--fme-tint-line);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    justify-content: space-between;
    margin: 6px 18px 4px;
    padding: 10px 12px;
}

.fme-g .fme-g-admin__label {
    color: var(--fme-text);
    font-size: 12px;
    width: 100%;
}

.fme-g-admin__label code {
    background: #fff;
    border: 1px solid var(--fme-tint-line);
    border-radius: 4px;
    color: var(--fme-ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    padding: 1px 5px;
    white-space: nowrap;
}

.fme-g .fme-g-admin__link,
.fme-g .fme-g-admin__link:visited {
    align-items: center;
    color: #b63f1f;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 4px;
    text-decoration: none;
}

.fme-g .fme-g-admin__link:hover {
    color: var(--fme-ink);
    text-decoration: underline;
}

.fme-g-panel__foot {
    border-top: 1px solid var(--fme-line);
    flex: none;
    padding: 12px 18px;
}

.fme-g .fme-g-buy--block {
    box-shadow: none;
    width: 100%;
}

/* Collapsed and dismissed states: edge tabs that stay in the page's margin. */
.fme-g button.fme-g-launcher {
    align-items: center;
    background: var(--fme-ink);
    border: 0;
    border-radius: 10px 0 0 10px;
    box-shadow: -3px 3px 14px rgba(20, 20, 20, .28);
    color: #fff;
    cursor: pointer;
    display: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    line-height: 1.2;
    padding: 16px 9px;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    z-index: 130;
}

.fme-g button.fme-g-launcher .fme-g-count {
    padding: 8px 4px;
}

.fme-g button.fme-g-launcher .fme-g-icon {
    transform: rotate(-90deg);
}

.fme-g button.fme-g-launcher:hover {
    background: #2b2b2b;
    color: #fff;
}

.fme-g[data-panel="collapsed"] button.fme-g-launcher {
    display: flex;
}

.fme-g button.fme-g-tab {
    background: var(--fme-orange-deep);
    border: 0;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 10px rgba(20, 20, 20, .25);
    color: #fff;
    cursor: pointer;
    display: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
    padding: 14px 9px;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    z-index: 130;
}

.fme-g button.fme-g-tab:hover {
    background: #c74223;
    color: #fff;
}

.fme-g[data-panel="dismissed"] button.fme-g-tab {
    display: block;
}

/* Keyboard focus */
.fme-g a:focus-visible,
.fme-g button:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--fme-ink);
    outline: 0;
}

.fme-g-panel__head button:focus-visible {
    box-shadow: 0 0 0 2px var(--fme-ink), 0 0 0 4px #fff !important;
}

.fme-g button.fme-g-row:focus-visible,
.fme-g a.fme-g-row:focus-visible {
    box-shadow: inset 0 0 0 2px var(--fme-ink);
}

/* An age gate or similar keeps the screen left over by the guide, instead of the guide covering it. */
html.fme-g-gate-open {
    overflow: hidden;
}

body.fme-guide .fme-g-gated {
    right: var(--fme-g-gate-right, 0) !important;
    top: var(--fme-g-gate-top, 0) !important;
}

/* Tablet: the panel floats over the store while open */
@media (max-width: 1199px) {
    .fme-g-panel {
        box-shadow: -10px 0 32px rgba(20, 20, 20, .22);
    }

    .fme-g .fme-g-logo {
        padding-right: 20px;
    }

    .fme-g-banner__main {
        gap: 20px;
        padding: 14px 20px;
    }

    .fme-g-seeing {
        padding: 10px 20px;
    }
}

@media (max-width: 960px) {
    .fme-g-seeing {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .fme-g .fme-g-seeing__list {
        flex-direction: column;
        gap: 4px;
    }

    .fme-g .fme-g-benefit {
        font-size: 14px;
    }
}

/* Phone */
@media (max-width: 767px) {
    /* Full-bleed even when a store theme pads the body. */
    .fme-g-banner {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .fme-g-banner__main {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px 12px;
        position: relative;
    }

    .fme-g .fme-g-eyebrow {
        margin: 0;
        position: absolute;
        right: 16px;
        top: 17px;
    }

    .fme-g-eyebrow__text {
        display: none;
    }

    .fme-g .fme-g-benefit {
        margin-top: 2px;
    }

    .fme-g .fme-g-logo {
        border-right: 0;
        padding-right: 0;
    }

    .fme-g-logo img {
        height: 34px;
    }

    .fme-g .fme-g-name {
        font-size: 22px;
    }

    .fme-g .fme-g-buy {
        width: 100%;
    }

    .fme-g .fme-g-trust {
        margin-top: 6px;
    }

    .fme-g-seeing {
        padding: 8px 16px 10px;
    }

    .fme-g button.fme-g-replay {
        margin-top: 4px;
    }

    .fme-g-panel {
        border-radius: 14px 14px 0 0;
        box-shadow: 0 -10px 32px rgba(20, 20, 20, .28);
        left: 0;
        max-height: 72vh;
        top: auto;
        width: 100%;
    }

    .fme-g-panel__head {
        border-radius: 14px 14px 0 0;
    }

    .fme-g-panel__foot {
        padding: 10px 16px;
    }

    .fme-g button.fme-g-launcher {
        border-radius: 0;
        bottom: 0;
        box-shadow: 0 -4px 14px rgba(20, 20, 20, .2);
        justify-content: flex-start;
        left: 0;
        min-height: 52px;
        padding: 10px 16px;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
        writing-mode: horizontal-tb;
    }

    .fme-g button.fme-g-launcher .fme-g-count {
        padding: 4px 8px;
    }

    .fme-g button.fme-g-launcher .fme-g-icon {
        margin-left: auto;
        transform: none;
    }

    .fme-g button.fme-g-tab {
        bottom: 84px;
        top: auto;
        transform: none;
    }

    .fme-g-tip {
        width: calc(100vw - 20px);
    }

    /* With a gate open, the banner stays compact so the gate keeps the room it needs. */
    body.fme-g-gate-open .fme-g-seeing,
    body.fme-g-gate-open .fme-g-trust,
    body.fme-g-gate-open .fme-g-logo,
    body.fme-g-gate-open .fme-g-eyebrow {
        display: none;
    }

    body.fme-g-gate-open .fme-g-benefit {
        font-size: 13px;
    }

    body.fme-g-gate-open .fme-g-buy {
        font-size: 15px;
        padding: 9px 18px;
    }
}

@media (max-width: 1199px) {
    .fme-g .fme-g-gatenote {
        background: var(--fme-tint);
        border-top: 1px solid var(--fme-tint-line);
        color: #2a2a2a;
        font-size: 13px;
        line-height: 1.35;
        padding: 8px 16px;
    }

    body:not(.fme-g-gate-open) .fme-g .fme-g-gatenote {
        display: none;
    }

    body.fme-g-gate-open .fme-g .fme-g-gatenote {
        display: block;
    }
}

/* Admin guide (Block\Adminhtml\Guide): no banner, the admin demo bar names the extension; the strip sits under it. */
.fme-g--admin .fme-g-seeing {
    border: 1px solid var(--fme-tint-line);
    border-top: 0;
    padding: 9px 30px;
}

.fme-g .fme-g-panel__intro {
    color: var(--fme-muted);
    font-size: 12px;
    padding: 14px 18px 0;
}

.fme-g .fme-g-panel__intro strong {
    color: var(--fme-ink);
}

/* The admin menu (z-index 700) and its flyouts must not cover the panel, its tabs or a tooltip. Admin popups stay above. */
.fme-g--admin .fme-g-panel,
.fme-g--admin button.fme-g-launcher,
.fme-g--admin button.fme-g-tab {
    z-index: 710;
}

.fme-g--admin .fme-g-tip {
    z-index: 720;
}

/* The admin is 1024px wide at least: on a phone keep the strip within the screen beside the admin menu. */
@media (max-width: 767px) {
    .fme-g--admin .fme-g-seeing {
        max-width: calc(100vw - 130px);
        padding: 8px 12px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fme-g *,
    .fme-g *::before,
    .fme-g *::after {
        animation: none !important;
        transition: none !important;
    }
}
