.sd-page, .sd-panel, .sd-panel__header, .sd-rail, .sd-footer
{
    --sd-ink: var(--gm-text, #4e2440);
    --sd-muted: var(--gm-text-soft, #765d70);
    --sd-accent: var(--gm-accent, #a92352);
    --sd-border: var(--gm-border, #e5d5dc);
    --sd-paper: var(--public-surface, #fffbf4);
    --sd-rail-width: 48px;
    color: var(--sd-ink);
}
.sd-page, .sd-page *, .sd-panel *, .sd-rail *, .sd-footer, .sd-footer *
{
    box-sizing: border-box;
}
.sd-page [hidden], .sd-panel [hidden], .sd-panel__header[hidden], .sd-panel__header [hidden], .sd-rail [hidden]
{
    display: none !important;
}
.sd-page
{
    --sd-footer-height: 87px;
    --sd-panel-border: 1px;
    --sd-options-top: 12px;
    --sd-columns: var(--sd-mobile-columns, 3);
    --sd-tag-columns: var(--sd-tag-mobile-columns, 2);
    --sd-edge-offset: var(--sd-available-edge-offset, 0px);
    --sd-rail-padding: 5px;
    --sd-rail-radius: 16px;
    --sd-overview-inset: 0px;
    --sd-overview-shift: 0px;
    --sd-overview-start: calc(var(--sd-overview-inset) + var(--sd-overview-shift));
    --gf-accent: var(--public-primary, #a51e4b);
    --gf-accent-strong: var(--public-primary-strong, #7f1538);
    --sd-drawer-width: 90%;
    --sd-drawer-height: 80dvh;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    max-height: min(780px, calc(100dvh - 96px));
    min-height: 0;
    max-width: 780px;
    margin: 0 auto;
    padding: 17px 8px 8px;
    border: 1px solid var(--public-border, #eed5d8);
    border-radius: 28px;
    background: radial-gradient(ellipse at 100% 0, var(--public-soft-accent, #ffe0e9) 0, transparent 55%), linear-gradient(155deg, var(--public-surface, #fff9e8), var(--public-surface-warm, #fff0cc));
}
.sd-page--open
{
    height: min(780px, calc(100dvh - 96px));
}
.sd-page--open .sd-workspace
{
    flex-grow: 1;
}
.sd-intro
{
    flex-shrink: 0;
    margin-bottom: 12px;
    padding-inline-start: var(--sd-overview-start);
}
.sd-intro h2
{
    margin: 0;
    color: var(--sd-ink);
    font-size: clamp(18px, 4.5vw, 24px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
}
.sd-overview
{
    display: grid;
    grid-template-columns: repeat(var(--sd-columns), minmax(0, 1fr));
    align-items: start;
    gap: 7px;
}
.sd-workspace
{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    align-items: start;
    margin-right: calc(-1 * var(--sd-edge-offset));
    flex: 0 1 auto;
    min-height: 0;
    padding: 0 0 12px;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    scrollbar-width: thin;
    scrollbar-gutter: auto;
}
.sd-page:has(.sd-rail:not([hidden]))
{
    --sd-overview-inset: max(calc((var(--sd-rail-width) + 8px) / 2), calc(var(--sd-rail-width) + 8px - var(--sd-edge-offset)));
    --sd-overview-shift: min(0px, calc((var(--sd-edge-offset) - var(--sd-rail-width) - var(--sd-content-inset, 9px)) / 2));
}
.sd-workspace:has(.sd-rail:not([hidden]))
{
    margin-top: calc(-1 * var(--sd-rail-padding));
}
.sd-workspace:has(.sd-rail:not([hidden])) > form
{
    margin-top: var(--sd-rail-padding);
}
.sd-workspace > form
{
    grid-area: 1 / 1;
    width: calc(100% - var(--sd-edge-offset) - 2 * var(--sd-overview-inset));
    margin-inline-start: var(--sd-overview-start);
    min-width: 0;
}
.sd-reset
{
    display: block;
    margin-left: auto;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--sd-muted);
    font: inherit;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sd-reset:hover
{
    color: var(--sd-accent);
}
.sd-page button, .sd-panel button, .sd-close, .sd-rail button, .sd-footer button
{
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.sd-page button:focus-visible, .sd-panel button:focus-visible, .sd-close:focus-visible, .sd-rail button:focus-visible, .sd-footer button:focus-visible,
.sd-options:focus-visible, .sd-workspace:focus-visible, .sd-tag input:focus-visible + .sd-tag__surface
{
    outline: 3px solid var(--sd-accent);
    outline-offset: 2px;
}
.sd-footer button:disabled
{
    cursor: default;
}
.sd-cell
{
    container-type: inline-size;
    font: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 0;
    min-height: 92px;
    padding: 6px 5px;
    border: 1px solid var(--sd-border);
    border-radius: 16px;
    background: var(--sd-paper);
    text-align: center;
    transition: background-color .15s, border-color .15s;
}
.sd-cell:hover
{
    border-color: #c49baa;
    background: #fff2e9;
}
.sd-cell--selected
{
    border-color: #d79ab1;
    background: #fff1f5;
}
.sd-cell__title
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 750;
    overflow-wrap: break-word;
    hyphens: auto;
}
.sd-recipient-name
{
    hyphens: none;
    overflow-wrap: normal;
}
.sd-cell__empty, .sd-choice
{
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: break-word;
    hyphens: auto;
}
.sd-cell__empty
{
    justify-content: center;
    color: var(--sd-muted);
}
.sd-cell__content
{
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.sd-choice
{
    min-height: 24px;
    text-align: left;
}
.sd-choice__name
{
    min-width: 0;
    white-space: normal;
}
.sd-cell img, .sd-rail img, .sd-tag img
{
    flex-shrink: 0;
    object-fit: contain;
}
.sd-cell__choices
{
    display: grid;
    gap: 4px;
}
@container (max-width: 110px)
{
    .sd-choice
    {
        flex-direction: column;
        text-align: center;
    }
    .sd-choice__name
    {
        width: 100%;
    }
}
.sd-footer
{
    position: relative;
    flex-shrink: 0;
    z-index: 1070;
}
.sd-close
{
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid;
    border-radius: 50%;
}
.sd-rail-frame
{
    --sd-rail-top: calc(var(--sd-panel-border) + var(--sd-header-height, 0px) + var(--sd-options-top) - var(--sd-rail-padding));
    --sd-rail-max-height: calc(min(var(--sd-drawer-height), 100% - var(--sd-footer-height) - 8px) - var(--sd-rail-top));
    grid-area: 1 / 1;
    justify-self: end;
    position: relative;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    padding: var(--sd-rail-padding) 0 var(--sd-rail-padding) var(--sd-rail-padding);
    border-radius: var(--sd-rail-radius) 0 0 var(--sd-rail-radius);
    background: var(--sd-paper);
}
.sd-rail-frame:has(> .sd-rail[hidden])
{
    display: none;
}
.sd-rail
{
    display: flex;
    flex-direction: column;
    width: var(--sd-rail-width);
    border: 1px solid var(--sd-border);
    border-right: 0;
    border-radius: var(--sd-rail-radius) 0 0 var(--sd-rail-radius);
    background: #f4e9eb;
    box-shadow: -3px 3px 12px color-mix(in srgb, var(--gm-text, #4e2440) 7%, transparent);
}
.sd-page--open .sd-rail-frame
{
    position: absolute;
    grid-area: auto;
    top: var(--sd-rail-top);
    right: calc(-1 * var(--sd-edge-offset));
    max-height: var(--sd-rail-max-height);
}
.sd-page--open .sd-rail
{
    overflow-y: auto;
    scrollbar-width: thin;
}
.sd-rail button
{
    position: relative;
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 4px 6px;
    border: 0;
    border-bottom: 1px solid var(--sd-border);
    background: transparent;
}
.sd-rail button:last-child
{
    border-bottom: 0;
}
.sd-rail button:hover
{
    background: #e9d9e0;
}
.sd-rail button[aria-expanded='true']
{
    background: #fff5eb;
    box-shadow: inset 3px 0 var(--sd-accent);
}
.sd-rail button[aria-expanded='true']:hover
{
    background: #f5e4da;
}
.sd-rail button:focus-visible
{
    outline-offset: -4px;
}
.sd-rail__count
{
    position: absolute;
    top: 4px;
    right: 3px;
    min-width: 15px;
    padding: 0 3px;
    border-radius: 8px;
    background: var(--sd-accent);
    color: white;
    font-size: 9px;
    line-height: 15px;
    text-align: center;
}
.sd-tip
{
    display: none;
    max-width: min(220px, calc(100vw - 80px));
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.sd-drawer-host
{
    --sd-panel-end: 8px;
    --sd-panel-radius: 22px 0 0 22px;
    border-radius: var(--sd-panel-radius);
    position: absolute;
    top: 0;
    right: calc(-1 * var(--sd-edge-offset));
    z-index: 1050;
    width: calc(var(--sd-drawer-width) + var(--sd-edge-offset));
    height: min(var(--sd-drawer-height), calc(100% - var(--sd-footer-height) - 8px));
    container-type: inline-size;
    overflow: hidden;
    overflow: clip;
    pointer-events: none;
}
.sd-workspace:has(.sd-rail:not([hidden])) + .sd-drawer-host
{
    --sd-panel-end: calc(var(--sd-rail-width) + 8px);
}
.sd-panel.flexdrawer
{
    overflow: hidden;
    overscroll-behavior-y: auto;
    scrollbar-gutter: auto;
    border: var(--sd-panel-border) solid var(--sd-border);
    border-right: 0;
    border-radius: var(--sd-panel-radius);
}
.sd-panel__header
{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px 6px;
    padding: 8px 8px 8px 12px;
    border-bottom: 1px solid var(--sd-border);
}
.sd-panel__header h2
{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: clamp(16px, 5.5cqi, 21px);
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.sd-panel__header [data-sd-title]:focus
{
    outline: none;
}
.sd-panel__category
{
    grid-area: 1 / 1;
    display: grid;
    gap: 2px;
    min-width: 0;
}
.sd-panel__header h2 > img, .sd-panel__header h2 > .flexicon
{
    flex: none;
    object-fit: contain;
}
.sd-panel__header .sd-close
{
    grid-column: 2;
    grid-row: 1;
}
.sd-panel__hint
{
    container-type: inline-size;
    margin: 0;
    color: var(--sd-muted);
    font-size: 12px;
}
@container (max-width: 200px)
{
    .sd-panel__gesture
    {
        display: none;
    }
}
.sd-gesture-touch
{
    display: none;
}
@media (pointer: coarse)
{
    .sd-gesture-mouse
    {
        display: none;
    }
    .sd-gesture-touch
    {
        display: inline;
    }
}
.sd-options
{
    flex: 1;
    min-height: 0;
    margin-bottom: 8px;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    padding: var(--sd-options-top) var(--sd-panel-end) 8px 12px;
    scrollbar-width: none;
}
.sd-options::-webkit-scrollbar
{
    display: none;
}
.sd-tags
{
    display: grid;
    grid-template-columns: repeat(var(--sd-tag-columns), minmax(0, 1fr));
    gap: 7px;
}
.sd-tag
{
    position: relative;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}
.sd-tag input
{
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.sd-tag__surface
{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    min-height: 112px;
    padding: 16px 4px 10px;
    border: 1px solid var(--sd-border);
    border-radius: 13px;
    background: white;
}
.sd-tag:hover .sd-tag__surface
{
    background: #fff2e9;
    border-color: #c49baa;
}
.sd-tag__name
{
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}
.sd-tag__check
{
    position: absolute;
    top: 3px;
    right: 3px;
    visibility: hidden;
    color: var(--sd-accent);
}
.sd-tag input:checked + .sd-tag__surface
{
    border-color: var(--sd-accent);
    background: #ffeaf2;
    box-shadow: inset 0 0 0 1px var(--sd-accent);
}
.sd-tag input:checked + .sd-tag__surface .sd-tag__check
{
    visibility: visible;
}
@media (min-width: 1024px)
{
    .sd-page
    {
        --sd-columns: var(--sd-desktop-columns, 3);
        --sd-tag-columns: var(--sd-tag-desktop-columns, 4);
    }
}
@media (max-width: 767.98px), (hover: none), (pointer: coarse)
{
    .sd-tip
    {
        display: none !important;
    }
}
@media (max-width: 767.98px)
{
    .sd-page
    {
        --sd-drawer-width: 96%;
    }
    .sd-page:has(.sd-rail[hidden])
    {
        --sd-overview-inset: 10px;
    }
    .sd-overview
    {
        --sd-cell-gap: 7px;
        container-type: inline-size;
        gap: var(--sd-cell-gap);
    }
    .sd-cell
    {
        width: 100%;
        min-height: calc((100cqi - (var(--sd-columns) - 1) * var(--sd-cell-gap)) / var(--sd-columns));
    }
}
@keyframes sd-category-enter
{
    from { opacity: .55; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference)
{
    .sd-category-enter
    {
        animation: sd-category-enter 140ms ease-out;
    }
}
@media (prefers-reduced-motion: reduce)
{
    .sd-panel.flexdrawer, .sd-cell
    {
        transition: none;
    }
}

.gm-giftfinder--overlay:has([data-giftfinder-production-side-drawer])
{
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.gm-giftfinder--overlay .sd-panel__header,
.giftfinder-overlay-sheet__header:has(> .sd-panel__header:not([hidden])) > .giftfinder-overlay-sheet__title
{
    display: none;
}
.giftfinder-overlay-sheet__header > .sd-panel__header
{
    grid-template-columns: minmax(0, 1fr);
    flex: 1 1 0;
    min-width: 0;
    container-type: inline-size;
    padding: 0;
    border: 0;
}
.giftfinder-overlay-sheet:has(.sd-page) .giftfinder-overlay-sheet__close
{
    flex: none;
    align-self: flex-start;
    width: 44px;
    height: 44px;
}
.giftfinder-overlay-sheet:has(.sd-page) .giftfinder-overlay-sheet__close:hover
{
    background: #f5e8e7;
}
.sd-close,
.giftfinder-overlay-sheet__header:has(> .sd-panel__header:not([hidden])) > .giftfinder-overlay-sheet__close
{
    color: var(--public-primary-strong, #7f1538);
    border-color: color-mix(in srgb, currentColor 30%, var(--public-surface, #fff9e8));
    background: var(--public-soft-accent, #ffe0e9);
}
.sd-close:hover,
.giftfinder-overlay-sheet__header:has(> .sd-panel__header:not([hidden])) > .giftfinder-overlay-sheet__close:hover
{
    background: color-mix(in srgb, var(--public-soft-accent, #ffe0e9) 88%, currentColor);
}
.giftfinder-overlay-sheet:has([data-giftfinder-production-side-drawer]):not(:has(.sd-panel))
{
    height: auto;
    max-height: min(calc(92dvh - var(--gm-header-offset)), 920px);
}
.giftfinder-overlay-sheet__content:has([data-giftfinder-production-side-drawer])
{
    display: flex;
    flex-direction: column;
}
.giftfinder-overlay-sheet:has([data-giftfinder-production-side-drawer]),
.giftfinder-overlay-sheet__content:has([data-giftfinder-production-side-drawer])
{
    overflow: visible;
}
.gm-giftfinder--overlay .sd-page
{
    max-height: none;
    max-width: none;
    margin-inline: 0;
}
.giftfinder-overlay-sheet__content:has(.sd-panel) > .gm-giftfinder--overlay,
.gm-giftfinder--overlay .sd-page:has(.sd-panel)
{
    flex: 1 1 auto;
    height: auto;
}
.gm-giftfinder--overlay .sd-workspace
{
    flex-grow: 1;
}
@media (min-width: 768px)
{
    .gm-giftfinder--overlay .sd-page
    {
        --sd-edge-offset: 0px;
        --sd-drawer-width: 100%;
        --sd-rail-space: calc(var(--sd-rail-width) + var(--sd-rail-padding));
    }
    .gm-giftfinder--overlay .sd-workspace:has(.sd-rail:not([hidden])) > form
    {
        width: calc(100% - var(--sd-rail-space) - 8px);
        margin-inline-start: 0;
    }
    .gm-giftfinder--overlay .sd-rail-frame
    {
        position: absolute;
        grid-area: auto;
        top: var(--sd-rail-top);
        right: var(--sd-content-inset, 8px);
        max-height: var(--sd-rail-max-height);
    }
    .gm-giftfinder--overlay .sd-rail
    {
        overflow-y: auto;
        scrollbar-width: thin;
    }
    .gm-giftfinder--overlay .sd-workspace:has(.sd-rail:not([hidden])) + .sd-drawer-host
    {
        --sd-panel-end: 8px;
        left: 0;
        right: calc(var(--sd-content-inset, 8px) + var(--sd-rail-space));
        width: auto;
    }
}
.gm-giftfinder--inline .sd-page
{
    max-width: none;
}
