/* Scoped to the Smart Cart widget, including the native top-layer dialog. */
.tasc {
    --tasc-accent: #008fc5;
    --tasc-width: 490px;
    --tasc-ink: #11284b;
    --tasc-muted: #526d87;
    --tasc-border: #d5e5f1;
}
.tasc .tasc-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--tasc-border);
    border-radius: 30px;
    background: #fff;
    color: var(--tasc-ink);
    padding: 9px 15px;
    font-weight: 650;
    text-decoration: none;
}
.tasc .tasc-badge {
    display: inline-block;
    background: #eaf5fc;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 13px;
    vertical-align: middle;
}
.tasc .tasc-trigger-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.tasc .tasc-trigger-icon-after .tasc-trigger-icon { order: 1; }
.tasc .tasc-trigger > .tasc-trigger-badge { order: 2; }
.tasc .tasc-trigger-text { display: contents; }
.tasc .tasc-trigger-icon .tasc-trigger-badge {
    position: absolute;
    top: -.65em;
    right: -.8em;
    min-width: 1.4em;
    padding: .2em .35em;
    text-align: center;
    font-size: 11px;
    line-height: 1;
}
.tasc [data-hide-empty-count] .tasc-trigger-badge[data-count-value="0"] { display: none; }
html.tasc-open { overflow: hidden; }
.tasc .tasc-drawer:not([open]) { display: none; }
.tasc .tasc-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(100%, var(--tasc-width));
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    border: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: white;
    color: var(--tasc-ink);
    box-shadow: -20px 0 70px #0002;
    font: 15px/1.5 system-ui, sans-serif;
    text-align: left;
}
.tasc .tasc-drawer[open] { animation: tasc-enter .28s ease-out; }
.tasc .tasc-drawer::backdrop { background: #11284baa; }
@keyframes tasc-enter { from { transform: translateX(100%); } }
.tasc .tasc-drawer :is(p, h2, h3) { margin: 0; color: inherit; }
.tasc .tasc-drawer :is(a, button, input):focus-visible,
.tasc .tasc-trigger:focus-visible { outline: 3px solid #288fc7; outline-offset: 2px; }
.tasc .tasc-drawer button {
    font: inherit;
    color: inherit;
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
}
.tasc .tasc-drawer button:disabled { opacity: .48; cursor: default; }
.tasc .tasc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 23px 24px;
    border-bottom: 1px solid #e0eaf2;
    background: white;
}
.tasc .tasc-head h2 { font-size: 23px; letter-spacing: -.8px; font-weight: 750; }
.tasc .tasc-drawer .tasc-close {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 50%;
    background: #f2f7fb;
    font-size: 27px;
    line-height: 1;
}
.tasc .tasc-scroll {
    overflow: auto;
    min-height: 0;
    flex: 1;
    overscroll-behavior: contain;
    padding: 20px 24px;
}
.tasc .tasc-notice { background: #e8f6ef; color: #176344; }
.tasc .tasc-notice.tasc-error, .tasc .tasc-minimum { background: #fff1e7; color: #963c17; }
.tasc .tasc-notice, .tasc .tasc-minimum, .tasc .tasc-undo {
    padding: 10px 13px;
    border-radius: 9px;
    margin-bottom: 12px;
    font-size: 13px;
}
.tasc .tasc-undo:not([hidden]) { display: flex; justify-content: space-between; gap: 8px; background: #f4f8fb; }
.tasc .tasc-undo button { text-decoration: underline; font-weight: 700; }
.tasc .tasc-shipping { background: #edf7fd; border-radius: 12px; padding: 16px; margin-bottom: 12px; font-size: 13px; }
.tasc .tasc-track { height: 7px; margin: 12px 0 6px; overflow: hidden; border-radius: 10px; background: #d7e8f3; }
.tasc .tasc-bar { height: 100%; border-radius: 10px; background: var(--tasc-accent); }
.tasc .tasc-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid #e0eaf2; }
.tasc .tasc-art { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #f4f8fb; }
.tasc .tasc-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tasc .tasc-custom-image { width: 32px; height: auto; }
.tasc .tasc-name { color: var(--tasc-ink); font-weight: 750; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.tasc .tasc-muted { color: var(--tasc-muted); font-size: 13px; }
.tasc .tasc-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tasc .tasc-product .tasc-line { margin-top: 8px; }
.tasc .tasc-product .tasc-stock { color: #18754c; font-size: 12px; margin: 6px 0 10px; }
.tasc .tasc-qty { display: inline-flex; flex: 0 0 auto; align-items: stretch; border: 1px solid var(--tasc-border); border-radius: 8px; height: 35px; }
.tasc .tasc-qty button { width: 31px; font-size: 17px; }
.tasc .tasc-qty input { width: 39px; min-width: 0; height: auto; padding: 0; border: 0; background: white; color: inherit; font: inherit; text-align: center; appearance: textfield; }
.tasc .tasc-qty input::-webkit-inner-spin-button { appearance: none; }
.tasc .tasc-drawer .tasc-remove { color: var(--tasc-muted); font-size: 12px; text-decoration: underline; }
.tasc .tasc-rec { margin-top: 25px; }
.tasc .tasc-rec h3 { font-size: 16px; margin-bottom: 4px; }
.tasc .tasc-recbox { display: flex; align-items: center; gap: 12px; border: 1px solid var(--tasc-border); border-radius: 12px; padding: 12px; margin-top: 12px; }
.tasc .tasc-recbox .tasc-art { flex: 0 0 62px; width: 62px; height: 62px; }
.tasc .tasc-recbox .tasc-plus { display: grid; place-items: center; flex: 0 0 38px; height: 38px; margin-left: auto; background: #e5f3fc; color: #12658b; border-radius: 9px; font-size: 23px; }
.tasc .tasc-empty { text-align: center; padding: 65px 10px; }
.tasc .tasc-empty h3 { font-size: 20px; margin-bottom: 6px; }
.tasc .tasc-foot { padding: 18px 24px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--tasc-border); box-shadow: 0 -8px 24px #11284b08; background: white; }
.tasc .tasc-total { font-size: 18px; font-weight: 800; margin-bottom: 5px; background: #eaf6fc; border: 1px solid #d4eafb; border-radius: 12px; padding: 13px 15px; }
.tasc .tasc-foot .tasc-primary, .tasc .tasc-foot .tasc-secondary { display: block; width: 100%; text-align: center; border-radius: 10px; text-decoration: none; }
.tasc .tasc-foot .tasc-primary { background: var(--tasc-accent); color: white; padding: 13px; margin-top: 15px; font-weight: 750; }
.tasc .tasc-foot .tasc-secondary { border: 1px solid var(--tasc-border); color: var(--tasc-ink); padding: 10px; margin-top: 8px; font-weight: 650; }
.tasc .tasc-drawer .tasc-continue { display: block; margin: 10px auto 0; color: var(--tasc-muted); font-size: 13px; text-decoration: underline; }
@media (max-width: 520px) {
    .tasc .tasc-head, .tasc .tasc-scroll, .tasc .tasc-foot { padding-left: 17px; padding-right: 17px; }
    .tasc .tasc-head, .tasc .tasc-row { padding-top: 15px; padding-bottom: 15px; }
    .tasc .tasc-foot { padding-top: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .tasc .tasc-drawer[open] { animation: none; }
}
