/* =====================================================================
 * Achadinhos — recursos Art Labs (artlabs.4): pop-up de saída, cestinha,
 * roleta e fotos "Chegou aqui em casa".
 * ===================================================================== */

/* ---------------- Pop-up de saída ---------------- */
.al-exit {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: inherit;
}
.al-exit[hidden] { display: none; }
.al-exit[data-preview] { position: relative; inset: auto; z-index: 0; min-height: 420px; padding: 24px 12px; border-radius: 12px; overflow: hidden; }
.al-exit__overlay {
    position: absolute;
    inset: 0;
    background: var(--al-x-overlay, #1b120c);
    opacity: 0;
    transition: opacity .3s ease;
}
.al-exit.is-open .al-exit__overlay,
.al-exit[data-preview] .al-exit__overlay { opacity: var(--al-x-overlay-op, .55); }
.al-exit__box {
    position: relative;
    width: min(var(--al-x-w, 460px), 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 30px 26px 22px;
    border-radius: var(--al-x-r, 18px);
    background: var(--al-x-bg, #fff);
    color: var(--al-x-color, #3a2a20);
    text-align: center;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
    outline: none;
    opacity: 0;
    transition: opacity .3s ease, transform .35s cubic-bezier(.2, 1.2, .4, 1);
}
.al-exit--anim-zoom .al-exit__box { transform: scale(.85); }
.al-exit--anim-slide .al-exit__box { transform: translateY(40px); }
.al-exit.is-open .al-exit__box,
.al-exit[data-preview] .al-exit__box { opacity: 1; transform: none; }

.al-exit--bottom { align-items: flex-end; padding: 0; }
.al-exit--bottom .al-exit__box { width: min(var(--al-x-w, 460px), 100%); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.al-exit--bottom.al-exit--anim-zoom .al-exit__box,
.al-exit--bottom .al-exit__box { transform: translateY(100%); }
.al-exit--bottom.is-open .al-exit__box,
.al-exit--bottom[data-preview] .al-exit__box { transform: none; }

.al-exit--corner { align-items: flex-end; justify-content: flex-end; pointer-events: none; }
.al-exit--corner .al-exit__overlay { display: none; }
.al-exit--corner .al-exit__box { pointer-events: auto; width: min(360px, 100%); padding: 22px 20px 18px; }

html body .al-exit__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid !important;
    place-items: center;
    width: 34px !important;
    height: 34px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, .06) !important;
    color: inherit !important;
    cursor: pointer;
}
.al-exit__emoji { font-size: 54px; line-height: 1; margin-bottom: 10px; animation: al-x-bob 2.4s ease-in-out infinite; }
@keyframes al-x-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.al-exit__img { display: block; width: 100%; max-height: 200px; object-fit: cover; border-radius: calc(var(--al-x-r, 18px) * .6); margin-bottom: 14px; }
.al-exit__title { margin: 0 0 8px; font-size: 22px; font-weight: 800; line-height: 1.2; color: inherit; }
.al-exit__text { font-size: 15px; line-height: 1.5; opacity: .9; }
.al-exit__text p { margin: 0 0 8px; }
html body .al-exit__coupon {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 6px 0 14px;
    padding: 10px 16px !important;
    border: 2px dashed var(--al-x-accent, #c45c1d) !important;
    border-radius: 10px !important;
    background: color-mix(in srgb, var(--al-x-accent, #c45c1d) 8%, transparent) !important;
    color: var(--al-x-accent, #c45c1d) !important;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .08em;
    cursor: pointer;
}
html body .al-exit__coupon[hidden] { display: none !important; }
.al-exit__coupon small { font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; opacity: .8; }
.al-exit__products { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 120px)); justify-content: center; gap: 10px; margin: 12px 0 16px; }
.al-exit__product { display: flex; flex-direction: column; gap: 6px; color: inherit !important; text-decoration: none !important; font-size: 12px; line-height: 1.25; }
.al-exit__product img, .al-exit__ph { display: grid; place-items: center; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #f3ede8; font-size: 26px; }
.al-exit__product span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-exit__product:hover img { transform: scale(1.04); }
.al-exit__product img { transition: transform .25s ease; }
.al-exit__btn {
    display: block;
    margin: 10px 0 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--al-x-accent, #c45c1d);
    color: var(--al-x-btn, #fff) !important;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none !important;
    transition: transform .2s ease, filter .2s ease;
}
.al-exit__btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
html body .al-exit__dismiss {
    margin-top: 10px;
    padding: 6px !important;
    border: 0 !important;
    background: none !important;
    color: inherit !important;
    font-size: 13px;
    text-decoration: underline;
    opacity: .7;
    cursor: pointer;
}
html.al-exit-open { overflow: hidden; }

/* ---------------- Cestinha ---------------- */
:root { --al-bk-accent: #c45c1d; }
.achadinhos-al-card-actions .achadinhos-al-basket-btn.is-in { color: var(--al-bk-accent) !important; }
.achadinhos-al-basket-btn.is-in svg path:first-child { fill: color-mix(in srgb, var(--al-bk-accent) 25%, transparent); }
.is-pop { animation: al-bk-pop .45s ease; }
@keyframes al-bk-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

html body .achadinhos-al-basket-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 12px 0 0;
    padding: 12px 16px !important;
    border: 2px dashed color-mix(in srgb, var(--al-bk-accent) 55%, transparent) !important;
    border-radius: 12px !important;
    background: color-mix(in srgb, var(--al-bk-accent) 6%, #fff) !important;
    color: var(--al-bk-accent) !important;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
html body .achadinhos-al-basket-cta:hover { background: color-mix(in srgb, var(--al-bk-accent) 12%, #fff) !important; }
html body .achadinhos-al-basket-cta.is-in { border-style: solid !important; background: var(--al-bk-accent) !important; color: #fff !important; }
.achadinhos-al-basket-see { display: block; margin-top: 8px; text-align: center; font-size: 13px; font-weight: 600; color: var(--al-bk-accent) !important; }
.achadinhos-al-basket-see[hidden] { display: none; }

.achadinhos-al-basket-fab {
    position: fixed;
    bottom: 22px;
    z-index: 9980;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--al-bk-accent);
    color: #fff !important;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
    text-decoration: none !important;
}
.achadinhos-al-basket-fab[hidden] { display: none; }
.achadinhos-al-basket-fab--left { left: 22px; }
.achadinhos-al-basket-fab--right { right: 22px; }
.admin-bar .achadinhos-al-basket-fab--left { left: 84px; }
.achadinhos-al-basket-fab__count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #222;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}
.achadinhos-al-basket-fab.is-bump { animation: al-bk-pop .5s ease; }

.achadinhos-al-basket-page { max-width: 980px; margin: 0 auto; padding: 24px 0 40px; }
.achadinhos-al-basket-page__title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 28px; font-weight: 800; color: var(--ach-text, #333); }
.achadinhos-al-basket-page__title svg { color: var(--al-bk-accent); }
.achadinhos-al-basket-page__intro { margin: 0 0 18px; color: var(--ach-text-muted, #666); }
.achadinhos-al-basket-page__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px; border-radius: 14px; background: var(--ach-bg-white, #fff); box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.achadinhos-al-basket-page__bar[hidden] { display: none; }
.achadinhos-al-basket-page__seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--ach-bg, #f3f3f3); }
html body .achadinhos-al-basket-page__seg button { padding: 7px 14px !important; border: 0 !important; border-radius: 999px !important; background: transparent !important; color: var(--ach-text, #333) !important; font-weight: 600; cursor: pointer; }
html body .achadinhos-al-basket-page__seg button.is-active { background: var(--al-bk-accent) !important; color: #fff !important; }
.achadinhos-al-basket-page__sum { flex: 1; font-weight: 700; color: var(--ach-text, #333); }
.achadinhos-al-basket-page__actions { display: flex; flex-wrap: wrap; gap: 8px; }
html body .achadinhos-al-basket-page__act { display: inline-flex !important; align-items: center; padding: 8px 12px !important; border: 1px solid var(--ach-border, #e5e5e5) !important; border-radius: 10px !important; background: #fff !important; color: var(--ach-text, #333) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; cursor: pointer; }
html body .achadinhos-al-basket-page__act--wa { border-color: #25D366 !important; color: #128C7E !important; }
html body .achadinhos-al-basket-page__act--clear { color: #b42318 !important; }
.al-bk-store { margin-bottom: 18px; padding: 14px; border-radius: 16px; background: var(--ach-bg-white, #fff); box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.al-bk-store__head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--ach-border, #eee); }
.al-bk-store__head img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.al-bk-store__head h2 { flex: 1; margin: 0; font-size: 17px; font-weight: 800; color: var(--ach-text, #333); }
.al-bk-store__head small { font-size: 12px; font-weight: 600; color: var(--ach-text-muted, #777); }
.al-bk-store__sum { font-weight: 800; color: var(--al-bk-accent); }
.al-bk-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--ach-border, #eee); }
.al-bk-item:last-child { border-bottom: 0; }
.al-bk-item__img img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #f3ede8; }
.al-bk-item__title { display: block; font-weight: 700; color: var(--ach-text, #333) !important; text-decoration: none !important; line-height: 1.3; }
.al-bk-item__price { display: block; margin-top: 4px; font-weight: 800; color: var(--ach-card-price, #00a650); }
.al-bk-item__act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.al-bk-buy { display: inline-block; padding: 9px 16px; border-radius: 10px; background: var(--al-bk-accent); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; white-space: nowrap; }
.al-bk-buy:hover { filter: brightness(1.07); }
html body .al-bk-remove { padding: 2px 4px !important; border: 0 !important; background: none !important; color: var(--ach-text-muted, #888) !important; font-size: 12px; text-decoration: underline; cursor: pointer; }
.achadinhos-al-basket-page__empty { padding: 50px 20px; text-align: center; border-radius: 16px; background: var(--ach-bg-white, #fff); }
.achadinhos-al-basket-page__empty[hidden] { display: none; }
.achadinhos-al-basket-page__empty-icon { font-size: 56px; }
.achadinhos-al-basket-page__go { display: inline-block; margin-top: 10px; padding: 12px 22px; border-radius: 12px; background: var(--al-bk-accent); color: #fff !important; font-weight: 700; text-decoration: none !important; }
@media (max-width: 600px) {
    .al-bk-item { grid-template-columns: 60px minmax(0, 1fr); }
    .al-bk-item__img img { width: 60px; height: 60px; }
    .al-bk-item__act { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .achadinhos-al-basket-page__title { font-size: 22px; }
}

/* ---------------- Roleta ---------------- */
.al-roleta {
    max-width: 440px;
    margin: 24px auto;
    padding: 22px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff7f0, #fff);
    box-shadow: 0 14px 40px -18px rgba(122, 52, 16, .45);
    text-align: center;
}
.al-roleta__title { margin: 0 0 6px; font-size: 22px; font-weight: 800; line-height: 1.2; color: #3a2a20; }
.al-roleta__sub { margin: 0 0 14px; font-size: 14px; color: #7a5a48; }
.al-roleta__stage { position: relative; width: min(330px, 100%); aspect-ratio: 1; margin: 6px auto 14px; }
.al-roleta__wheel { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45); will-change: transform; }
.al-roleta__svg { display: block; width: 100%; height: 100%; }
.al-roleta__pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    z-index: 2;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid var(--al-rl-pointer, #3a2a20);
    transform: translateX(-50%);
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3));
}
.al-roleta__center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    font-size: 28px;
    transform: translate(-50%, -50%);
}
html body .al-roleta__btn {
    display: inline-block !important;
    padding: 14px 30px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--al-rl-btn-bg, #c45c1d) !important;
    color: var(--al-rl-btn-color, #fff) !important;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px rgba(196, 92, 29, .8) !important;
    transition: transform .2s ease;
    animation: al-rl-breath 2.4s ease-in-out infinite;
}
html body .al-roleta__btn:disabled { opacity: .6; cursor: wait; animation: none; }
@keyframes al-rl-breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.al-roleta__result { margin-top: 16px; }
.al-roleta__result[hidden] { display: none; }
.al-roleta__result.is-in { animation: al-rl-in .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes al-rl-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.al-roleta__rtitle { margin: 0 0 8px; font-size: 14px; color: #7a5a48; }
.al-roleta__rtitle strong { color: var(--al-rl-btn-bg, #c45c1d); }
.al-roleta__card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); color: #3a2a20 !important; text-decoration: none !important; text-align: left; }
.al-roleta__card img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.al-roleta__ctext { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.al-roleta__ctext strong { color: var(--ach-card-price, #00a650); font-size: 16px; }
.al-roleta__go { display: inline-block; margin-top: 10px; font-weight: 800; color: var(--al-rl-btn-bg, #c45c1d) !important; }
.al-roleta__msg { margin: 12px 0 0; color: #b42318; font-weight: 600; }
.al-roleta__msg[hidden] { display: none; }

/* ---------------- Fotos "Chegou aqui em casa" ---------------- */
.al-ugc { margin: 34px 0; padding: 24px; border-radius: 18px; background: var(--ach-bg-white, #fff); box-shadow: 0 2px 12px rgba(0, 0, 0, .05); }
.al-ugc__title { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: var(--ach-text, #333); }
.al-ugc__intro { margin: 0 0 16px; color: var(--ach-text-muted, #777); }
.al-ugc__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.al-ugc__item { margin: 0; }
html body .al-ugc__open { display: block !important; width: 100%; padding: 0 !important; border: 0 !important; border-radius: 12px !important; background: none !important; overflow: hidden; cursor: zoom-in; }
.al-ugc__open img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s ease; }
.al-ugc__open:hover img { transform: scale(1.05); }
.al-ugc__item figcaption { margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--ach-text, #333); }
.al-ugc__item figcaption span { display: block; color: var(--ach-text-muted, #777); }
.al-ugc__formbox { border-radius: 14px; border: 1px solid var(--ach-border, #eee); }
.al-ugc__cta { list-style: none; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--al-ugc-accent) 8%, #fff); color: var(--al-ugc-accent); font-weight: 800; text-align: center; cursor: pointer; }
.al-ugc__cta::-webkit-details-marker { display: none; }
.al-ugc__cta::before { content: "📷 "; }
.al-ugc__form { display: grid; gap: 12px; padding: 16px; }
.al-ugc__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.al-ugc__drop { position: relative; display: grid; place-items: center; min-height: 140px; border: 2px dashed color-mix(in srgb, var(--al-ugc-accent) 45%, transparent); border-radius: 14px; background: #fffaf6; text-align: center; color: var(--ach-text-muted, #777); cursor: pointer; overflow: hidden; }
.al-ugc__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.al-ugc__preview { max-width: 100%; max-height: 260px; object-fit: contain; }
.al-ugc__field { display: grid; gap: 4px; font-weight: 600; font-size: 14px; color: var(--ach-text, #333); }
.al-ugc__field input, .al-ugc__field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--ach-border, #ddd); border-radius: 10px; font: inherit; font-weight: 400; }
.al-ugc__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ach-text-muted, #666); }
html body .al-ugc__send { padding: 13px 18px !important; border: 0 !important; border-radius: 12px !important; background: var(--al-ugc-accent) !important; color: #fff !important; font-weight: 800; font-size: 15px; cursor: pointer; }
html body .al-ugc__send:disabled { opacity: .7; cursor: default; }
.al-ugc__msg { margin: 0; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.al-ugc__msg.is-ok { background: #ecfdf3; color: #067647; }
.al-ugc__msg.is-err { background: #fef3f2; color: #b42318; }
.al-ugc__msg[hidden] { display: none; }
.al-ugc__locked { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--ach-bg, #f6f6f6); color: var(--ach-text-muted, #666); font-size: 14px; }
.al-ugc__dialog { max-width: min(92vw, 900px); padding: 0; border: 0; border-radius: 16px; background: #111; color: #fff; }
.al-ugc__dialog::backdrop { background: rgba(0, 0, 0, .75); }
.al-ugc__dialog img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; }
.al-ugc__dialog p { margin: 0; padding: 10px 14px; font-size: 14px; }
html body .al-ugc__x { position: absolute; top: 8px; right: 8px; width: 36px !important; height: 36px !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(0, 0, 0, .55) !important; color: #fff !important; font-size: 24px; line-height: 1; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
    .al-exit__emoji, html body .al-roleta__btn { animation: none; }
    .al-exit__box, .al-exit__overlay { transition: none; }
}

/* =====================================================================
   Cestinha artlabs.5 — celular primeiro
   ===================================================================== */

/* Botão do card: marca de "guardado" bem visível */
.achadinhos-al-basket-btn { position: relative; text-decoration: none !important; }
.achadinhos-al-basket-btn__mark {
    position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--al-bk-accent); color: #fff; display: none; place-items: center;
    font-size: 9px; font-weight: 800; line-height: 1; border: 2px solid #fff;
}
.achadinhos-al-basket-btn__mark::before { content: "+"; }
.achadinhos-al-card-actions .achadinhos-al-basket-btn .achadinhos-al-basket-btn__mark { display: grid; background: #9aa0a6; }
.achadinhos-al-card-actions .achadinhos-al-basket-btn.is-in .achadinhos-al-basket-btn__mark { background: var(--al-bk-accent); }
.achadinhos-al-card-actions .achadinhos-al-basket-btn.is-in .achadinhos-al-basket-btn__mark::before { content: "✓"; }
.achadinhos-al-card-actions .achadinhos-al-basket-btn.is-in {
    background: color-mix(in srgb, var(--al-bk-accent) 14%, #fff) !important;
}
html body .achadinhos-al-basket-cta { text-decoration: none !important; }
.achadinhos-al-basket-hint { margin: 6px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--ach-text-muted, #666); text-align: center; }
.achadinhos-al-inline-icon { display: inline-flex; vertical-align: -3px; color: var(--al-bk-accent); }

/* Ícone da cestinha no cabeçalho (no lugar do ♡) */
.achadinhos-al-bk-head { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.achadinhos-al-bk-badge {
    position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--al-bk-accent); color: #fff; font-size: 10.5px; font-weight: 800;
    line-height: 18px; text-align: center; border: 2px solid var(--ach-header-bg, #fff); box-sizing: content-box;
}
.achadinhos-al-bk-badge[hidden] { display: none; }
.achadinhos-al-bk-head.is-bump { animation: al-bk-pop .5s ease; }

/* Aviso ao guardar */
.achadinhos-al-bk-toast {
    position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 99990;
    width: min(560px, calc(100vw - 24px)); transform: translate(-50%, 20px); opacity: 0;
    display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center;
    padding: 14px 16px; border-radius: 16px; background: #1f2230; color: #fff;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55); transition: transform .25s ease, opacity .25s ease;
}
.achadinhos-al-bk-toast[hidden] { display: none; }
.achadinhos-al-bk-toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.achadinhos-al-bk-toast.is-out { transform: translate(-50%, 20px); opacity: 0; }
.achadinhos-al-bk-toast__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--al-bk-accent); color: #fff; }
.achadinhos-al-bk-toast__text strong { display: block; font-size: 15px; line-height: 1.3; }
.achadinhos-al-bk-toast__text span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.achadinhos-al-bk-toast__text span[hidden] { display: none; }
.achadinhos-al-bk-toast__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.achadinhos-al-bk-toast__undo, .achadinhos-al-bk-toast__go {
    min-height: 40px; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none !important;
}
.achadinhos-al-bk-toast__undo { border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.achadinhos-al-bk-toast__go { background: #fff; color: #1f2230 !important; display: inline-flex; align-items: center; }
@media (min-width: 768px) {
    .achadinhos-al-bk-toast { grid-template-columns: auto 1fr auto; }
    .achadinhos-al-bk-toast__actions { grid-column: auto; margin-top: 0; }
}

/* Botão flutuante: menor no celular, some ao rolar para baixo, não briga com "voltar ao topo" */
@media (max-width: 767px) {
    .achadinhos-al-basket-fab { width: 48px; height: 48px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transition: transform .25s ease, opacity .25s ease; }
    .achadinhos-al-basket-fab--left { left: 12px; }
    .achadinhos-al-basket-fab--right { right: 12px; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    .achadinhos-al-basket-fab.is-away { transform: translateY(90px); opacity: 0; pointer-events: none; }
    html.al-bk-sheet-open .achadinhos-al-basket-fab { display: none; }
}

/* Página da cestinha */
.al-bk-notice { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; font-weight: 600; }
.al-bk-notice--ok { background: #e7f6ec; color: #11602f; }
.al-bk-notice--err { background: #fdecec; color: #8a1c1c; }

.al-bk-account {
    display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center;
    margin: 0 0 18px; padding: 16px; border-radius: 16px; background: var(--ach-bg-white, #fff);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06); border: 1px solid color-mix(in srgb, var(--al-bk-accent) 25%, transparent);
}
.al-bk-account--guest { background: color-mix(in srgb, var(--al-bk-accent) 6%, #fff); }
.al-bk-account__badge { font-size: 28px; line-height: 1; }
.al-bk-account__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--al-bk-accent); color: #fff; font-weight: 800; font-size: 18px; }
.al-bk-account__text strong { display: block; font-size: 16px; color: var(--ach-text, #333); }
.al-bk-account__text span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--ach-text-muted, #666); }
.al-bk-account__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
@media (min-width: 768px) {
    .al-bk-account { grid-template-columns: auto 1fr auto; }
    .al-bk-account__actions { grid-column: auto; }
}

.al-bk-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px;
    border: 0; border-radius: 12px; background: var(--al-bk-accent); color: #fff !important; font-size: 15px; font-weight: 800;
    cursor: pointer; text-decoration: none !important; box-shadow: 0 8px 18px -10px var(--al-bk-accent);
}
.al-bk-btn:disabled { opacity: .6; cursor: wait; }
.al-bk-btn--full { width: 100%; margin-top: 6px; }
.al-bk-link { border: 0; background: none; padding: 6px 2px; color: var(--al-bk-accent) !important; font-weight: 700; font-size: 14px; text-decoration: underline; cursor: pointer; }
.al-bk-link--danger { color: #b3261e !important; font-weight: 600; }

/* Folha (bottom sheet no celular, janela no computador) */
html.al-bk-sheet-open { overflow: hidden; }
.al-bk-sheet { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; }
.al-bk-sheet[hidden] { display: none; }
.al-bk-sheet__backdrop { position: absolute; inset: 0; background: rgba(15, 17, 30, .55); }
.al-bk-sheet__box {
    position: relative; width: 100%; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px)); border-radius: 22px 22px 0 0;
    background: var(--ach-bg-white, #fff); transform: translateY(30px); opacity: 0; transition: transform .25s ease, opacity .25s ease; outline: none;
}
.al-bk-sheet.is-open .al-bk-sheet__box { transform: none; opacity: 1; }
.al-bk-sheet__box::before { content: ""; display: block; width: 44px; height: 5px; margin: -8px auto 14px; border-radius: 5px; background: #d9d9de; }
@media (min-width: 768px) {
    .al-bk-sheet { align-items: center; padding: 24px; }
    .al-bk-sheet__box { max-width: 560px; border-radius: 22px; padding: 28px; }
    .al-bk-sheet__box::before { display: none; }
}
.al-bk-sheet__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f1f4; font-size: 24px; line-height: 1; cursor: pointer; color: #333; }

.al-bk-form h2, .al-bk-done h2 { margin: 0 40px 6px 0; font-size: 21px; line-height: 1.25; color: var(--ach-text, #222); }
.al-bk-form__lead { margin: 0 0 16px; font-size: 14px; color: var(--ach-text-muted, #666); }
.al-bk-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 560px) { .al-bk-row { grid-template-columns: 1fr 1fr; } }
.al-bk-field { display: block; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ach-text, #333); }
.al-bk-field input {
    display: block; width: 100%; margin-top: 5px; min-height: 48px; padding: 10px 14px; box-sizing: border-box;
    border: 1.5px solid #d4d6dd; border-radius: 12px; background: #fff; font-size: 16px; /* 16px evita zoom no iPhone */ color: #222;
}
.al-bk-field input:focus { outline: none; border-color: var(--al-bk-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--al-bk-accent) 25%, transparent); }
.al-bk-field input[aria-invalid="true"] { border-color: #b3261e; }
.al-bk-form small[data-err] { display: block; min-height: 0; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: #b3261e; }
.al-bk-form small[data-err]:empty { display: none; }
.al-bk-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 4px 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--ach-text, #333); cursor: pointer; }
.al-bk-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--al-bk-accent); }
.al-bk-check a { color: var(--al-bk-accent); font-weight: 700; }
.al-bk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.al-bk-form__msg { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: #b3261e; }
.al-bk-form__msg:empty { display: none; }
.al-bk-form__alt { margin: 14px 0 0; font-size: 14px; text-align: center; color: var(--ach-text-muted, #666); }
.al-bk-done { text-align: center; padding: 10px 0; }
.al-bk-done__icon { font-size: 44px; }
.al-bk-done p { margin: 8px 0 18px; font-size: 15px; line-height: 1.55; color: var(--ach-text, #333); }

/* Barra fixa com total e WhatsApp (celular); no computador fica no fim da lista */
.achadinhos-al-basket-sticky {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--ach-bg-white, #fff); box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.achadinhos-al-basket-sticky[hidden] { display: none; }
.achadinhos-al-basket-sticky__sum { font-weight: 700; color: var(--ach-text, #333); font-size: 14px; }
.achadinhos-al-basket-sticky__wa {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 12px;
    background: #25d366; color: #fff !important; font-weight: 800; text-decoration: none !important;
}
@media (max-width: 767px) {
    .achadinhos-al-basket-sticky {
        position: sticky; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 50;
        box-shadow: 0 -6px 24px -8px rgba(0, 0, 0, .25);
    }
    .achadinhos-al-basket-sticky__wa { flex: 1 1 100%; }
    .achadinhos-al-basket-page__bar { flex-direction: column; align-items: stretch; }
    .achadinhos-al-basket-page__seg { display: grid; grid-template-columns: 1fr 1fr; }
    .achadinhos-al-basket-page__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .al-bk-item__act { flex-wrap: wrap; }
    .al-bk-item__act .al-bk-buy { flex: 1 1 auto; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .al-bk-remove { min-height: 44px; padding: 0 12px; }
}
.achadinhos-al-qv__basket { text-decoration: none !important; }
.achadinhos-al-qv__basket.is-in { border-color: var(--al-bk-accent) !important; color: var(--al-bk-accent) !important; }
@media (max-width: 767px) {
    .achadinhos-al-basket-page__list { padding-bottom: 8px; }
    .achadinhos-al-basket-sticky { margin-top: 24px; }
}
