.tobacco-guide {
    --tcg-brand: #972620;
    --tcg-deep: #681c18;
    --tcg-ink: #312b29;
    --tcg-muted: #63534c;
    --tcg-paper: #fffdfb;
    --tcg-option: #fbf5f2;
    --tcg-hover: #f3e2db;
    --tcg-gold: #e5c5b8;
    --tcg-line: #c1a198;
    --tcg-edge: 1rem;
    --tcg-right: calc(var(--tcg-edge) + env(safe-area-inset-right, 0px));
    --tcg-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
    --tcg-launcher-size: 3.5rem;
    font-family: inherit;
}

.tobacco-guide [hidden],
.tobacco-guide .tobacco-guide__dialog:not([open]),
.tobacco-guide .tobacco-guide__launcher[aria-expanded="true"] .tobacco-guide__tooltip {
    display: none !important;
}

.tobacco-guide .tobacco-guide__launcher {
    position: fixed;
    inset: auto var(--tcg-right) var(--tcg-bottom) auto;
    z-index: 9990;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: var(--tcg-launcher-size);
    height: var(--tcg-launcher-size);
    margin: 0;
    padding: 0;
    border: 2px solid var(--tcg-gold);
    border-radius: 50%;
    color: var(--tcg-paper);
    background: var(--tcg-brand);
    box-shadow: 0 4px 18px rgb(53 18 15 / 28%);
    cursor: pointer;
    line-height: 1;
}

.tobacco-guide .tobacco-guide__launcher:hover {
    background: var(--tcg-deep);
}

.tobacco-guide .tobacco-guide__bubble {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 25px;
    height: 19px;
    border: 2px solid currentColor;
    border-radius: 7px;
}

.tobacco-guide .tobacco-guide__bubble::before {
    position: absolute;
    inset: 6px auto auto 3px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 6px 0 currentColor, 12px 0 currentColor;
    content: "";
}

.tobacco-guide .tobacco-guide__bubble::after {
    position: absolute;
    inset: auto auto -5px 4px;
    width: 7px;
    height: 5px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    border-radius: 0 0 0 2px;
    background: var(--tcg-brand);
    transform: skewY(-32deg);
    content: "";
}

.tobacco-guide .tobacco-guide__launcher:hover .tobacco-guide__bubble::after {
    background: var(--tcg-deep);
}

.tobacco-guide .tobacco-guide__tooltip {
    position: fixed;
    inset: auto calc(var(--tcg-right) + var(--tcg-launcher-size) + .55rem) calc(var(--tcg-bottom) + .4rem) auto;
    z-index: 9990;
    box-sizing: border-box;
    width: max-content;
    max-width: min(16rem, calc(100vw - var(--tcg-right) - var(--tcg-launcher-size) - 1.4rem));
    padding: .5rem .75rem;
    border: 1px solid var(--tcg-line);
    border-radius: 1rem;
    color: var(--tcg-brand);
    background: var(--tcg-paper);
    box-shadow: 0 3px 13px rgb(53 18 15 / 18%);
    font: inherit;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
    pointer-events: none;
}

.tobacco-guide .tobacco-guide__dialog {
    position: fixed;
    inset: auto var(--tcg-right) var(--tcg-bottom) auto;
    z-index: 9991;
    box-sizing: border-box;
    width: min(25rem, calc(100vw - var(--tcg-right) - var(--tcg-edge) - env(safe-area-inset-left, 0px)));
    max-width: none;
    max-height: min(38rem, calc(100vh - var(--tcg-bottom) - var(--tcg-edge)));
    max-height: min(38rem, calc(100dvh - var(--tcg-bottom) - var(--tcg-edge) - env(safe-area-inset-top, 0px)));
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--tcg-line);
    border-radius: 1rem;
    color: var(--tcg-ink);
    background: var(--tcg-paper);
    box-shadow: 0 10px 44px rgb(53 18 15 / 26%);
    font: inherit;
    line-height: 1.45;
}

.tobacco-guide .tobacco-guide__dialog[open] {
    display: flex;
    flex-direction: column;
}

.tobacco-guide .tobacco-guide__dialog::backdrop {
    background: rgb(53 18 15 / 18%);
}

.tobacco-guide .tobacco-guide__header {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .3rem .65rem;
    padding: .45rem .65rem .45rem 1rem;
    border-bottom: 2px solid var(--tcg-gold);
    color: var(--tcg-paper);
    background: var(--tcg-brand);
}

.tobacco-guide .tobacco-guide__title {
    flex: 1 1 8rem;
    margin: 0;
    color: inherit;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.tobacco-guide .tobacco-guide__controls {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    min-width: 0;
    max-width: 100%;
    margin-inline-start: auto;
}

.tobacco-guide .tobacco-guide__close,
.tobacco-guide .tobacco-guide__sound,
.tobacco-guide .tobacco-guide__language,
.tobacco-guide .tobacco-guide__back {
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    padding: .25rem .55rem;
    border: 1px solid transparent;
    border-radius: .45rem;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tobacco-guide .tobacco-guide__close {
    padding-inline: .3rem;
    font-size: 1.5rem;
}

.tobacco-guide .tobacco-guide__sound,
.tobacco-guide .tobacco-guide__language {
    border-color: var(--tcg-gold);
    font-size: .85rem;
    font-weight: 650;
}

.tobacco-guide .tobacco-guide__controls button:hover {
    color: var(--tcg-paper);
    background: var(--tcg-deep);
}

.tobacco-guide .tobacco-guide__sound[aria-pressed="false"] {
    text-decoration: line-through;
}

.tobacco-guide .tobacco-guide__content {
    min-height: 0;
    padding: .9rem 1rem 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.tobacco-guide .tobacco-guide__back {
    margin: 0 0 .2rem -.45rem;
    color: var(--tcg-brand);
    text-decoration: underline;
    text-underline-offset: .15em;
}

.tobacco-guide .tobacco-guide__back:hover {
    background: var(--tcg-option);
}

.tobacco-guide .tobacco-guide__heading {
    margin: 0 0 .7rem;
    color: var(--tcg-deep);
    font: inherit;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.tobacco-guide .tobacco-guide__intro,
.tobacco-guide .tobacco-guide__status {
    margin: 0 0 .75rem;
    color: var(--tcg-muted);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.tobacco-guide .tobacco-guide__status {
    padding: .44rem .6rem;
    border-inline-start: 3px solid var(--tcg-line);
    background: var(--tcg-option);
    font-size: .85rem;
}

.tobacco-guide .tobacco-guide__choices {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tobacco-guide .tobacco-guide__choices li {
    margin: 0;
}

.tobacco-guide .tobacco-guide__option {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: .62rem .75rem;
    border: 1px solid var(--tcg-line);
    border-radius: .55rem;
    color: var(--tcg-brand);
    background: var(--tcg-option);
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    line-height: 1.4;
    text-align: start;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tobacco-guide .tobacco-guide__option:hover {
    color: var(--tcg-deep);
    background: var(--tcg-hover);
}

.tobacco-guide button:focus-visible,
.tobacco-guide a:focus-visible {
    outline: 2px solid var(--tcg-brand);
    outline-offset: 2px;
}

.tobacco-guide .tobacco-guide__launcher:focus-visible,
.tobacco-guide .tobacco-guide__controls button:focus-visible {
    outline: 2px solid var(--tcg-paper);
    outline-offset: -4px;
}

@media (max-width: 30rem) {
    .tobacco-guide {
        --tcg-edge: .75rem;
    }

    .tobacco-guide .tobacco-guide__content {
        padding-inline: .75rem;
    }

    .tobacco-guide .tobacco-guide__header {
        padding-inline: .6rem;
    }

    .tobacco-guide .tobacco-guide__title {
        flex-basis: 100%;
    }
}

/* The site's language and cookie controls occupy the bottom edge. */
@media (max-height: 32rem) {
    .tobacco-guide .tobacco-guide__dialog {
        --tcg-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
    }
}

html.age-gate__restricted .tobacco-guide,
body.age-restriction .tobacco-guide,
body.fl-builder-edit .tobacco-guide {
    display: none !important;
}
