.sf-cart-link {
    --sf-cart-badge: var(--theme-accent, var(--theme-primary, #0b5fff));
    --sf-cart-badge-ink: var(--theme-primary-contrast, #ffffff);

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 2.1rem;
    min-height: 2.1rem;
    padding: .2rem;
    color: inherit;
    text-decoration: none;
    line-height: 1;
    vertical-align: middle;
}

.sf-cart-link__icon {
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
}

.sf-cart-link__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sf-cart-link__label {
    font-size: .9rem;
    font-weight: 700;
}

.sf-cart-link__badge {
    position: absolute;
    top: -0.2rem;
    right: -0.35rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .28rem;
    border-radius: 999px;
    background: var(--sf-cart-badge);
    color: var(--sf-cart-badge-ink);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--theme-surface, #ffffff);
}

body .sf-cart-link,
.sf-cart-link {
    text-decoration: none;
}

body .sf-cart-link:hover,
.sf-cart-link:hover {
    opacity: .92;
    text-decoration: none;
}

.sf-cart-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sf-cart-menu__toggle {
    --sf-cart-badge: var(--theme-accent, var(--theme-primary, #0b5fff));
    --sf-cart-badge-ink: var(--theme-primary-contrast, #ffffff);

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    min-height: 2.1rem;
    padding: .2rem;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 1;
}

.sf-cart-menu__toggle:hover {
    opacity: .92;
}

.sf-cart-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(22rem, calc(100vw - 1.5rem));
    padding: .85rem .9rem 1rem;
    border-radius: 10px;
    background: #fff;
    color: #151515;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
    z-index: 120;
}

.sf-cart-menu__panel[hidden] {
    display: none !important;
}

.sf-cart-menu__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #666;
}

.sf-cart-menu__head strong {
    font-size: .95rem;
    letter-spacing: 0;
    text-transform: none;
    color: #111;
}

.sf-cart-menu__items {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 16rem;
    overflow: auto;
    display: grid;
    gap: .7rem;
}

.sf-cart-menu__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid #ececec;
}

.sf-cart-menu__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sf-cart-menu__event {
    display: block;
    color: #111 !important;
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.25;
    text-decoration: none !important;
}

.sf-cart-menu__event:hover {
    color: #111 !important;
    text-decoration: underline !important;
}

.sf-cart-menu__meta {
    margin: .2rem 0 0;
    color: #666;
    font-size: .78rem;
    line-height: 1.35;
}

.sf-cart-menu__price {
    flex: 0 0 auto;
    font-size: .9rem;
    white-space: nowrap;
}

.sf-cart-menu__foot {
    margin-top: .9rem;
    padding-top: .8rem;
    border-top: 1px solid #ececec;
    display: grid;
    gap: .7rem;
}

.sf-cart-menu__subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    font-size: .9rem;
}

.sf-cart-menu__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: .55rem .9rem;
    border-radius: 6px;
    background: #111;
    color: #fff !important;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none !important;
}

.sf-cart-menu__cta:hover {
    opacity: .92;
    color: #fff !important;
    text-decoration: none !important;
}

.sf-cart-menu__cta--ghost {
    background: transparent;
    color: #111 !important;
    border: 1px solid #ccc;
}

.sf-cart-menu__cta--ghost:hover {
    color: #111 !important;
}

.sf-cart-menu__empty {
    margin: 0 0 .85rem;
    color: #555;
    font-size: .92rem;
    line-height: 1.4;
}

.sf-member-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sf-member-menu__direct,
.sf-member-menu__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    min-height: 2.1rem;
    padding: .2rem;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    line-height: 1;
    text-decoration: none !important;
}

.sf-member-menu__direct:hover,
.sf-member-menu__toggle:hover,
.sf-member-menu.is-open .sf-member-menu__toggle {
    opacity: .92;
}

.sf-member-menu__icon {
    display: inline-flex;
    color: inherit;
}

.sf-member-menu__icon svg {
    display: block;
}

.sf-member-menu__toggle.is-signed-in::after {
    content: '';
    position: absolute;
    right: .15rem;
    bottom: .2rem;
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px currentColor;
}

.sf-member-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(16.5rem, calc(100vw - 1.5rem));
    padding: .85rem .9rem 1rem;
    border-radius: 10px;
    background: #fff;
    color: #151515;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
    z-index: 120;
}

.sf-member-menu__panel[hidden] {
    display: none !important;
}

.sf-member-menu__head {
    margin: 0 0 .65rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid #ececec;
}

.sf-member-menu__head strong {
    font-size: .95rem;
}

.sf-member-menu__nav {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.sf-member-menu__link {
    display: block;
    padding: .45rem .55rem;
    border-radius: 6px;
    color: #151515 !important;
    text-decoration: none !important;
    font-size: .92rem;
    font-weight: 500;
}

.sf-member-menu__link:hover {
    background: #f3f4f6;
}

.sf-member-menu__logout {
    margin: .65rem 0 0;
    padding-top: .65rem;
    border-top: 1px solid #ececec;
}

.sf-member-menu__logout-btn {
    display: block;
    width: 100%;
    padding: .5rem .65rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #b42318;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.sf-member-menu__logout-btn:hover {
    background: #fef3f2;
}

.sf-member-menu__guest {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.sf-member-menu__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    font-size: .9rem;
    font-weight: 650;
}

.sf-member-menu__cta:hover {
    background: #000;
    color: #fff !important;
}

.sf-member-menu__cta--ghost {
    background: transparent;
    color: #111 !important;
    border: 1px solid #ccc;
}

.sf-member-menu__cta--ghost:hover {
    color: #111 !important;
    background: #f7f7f7;
}