/* =====================================================================
   Amazon Product Box — frontend styles (v2, editorial-commerce)
   Flat surfaces, one accent, the price as hero. Scoped under .almpb and
   driven by CSS variables so it adapts to any theme. Ships with a refined
   system stack; set --almpb-font to a webfont to reach the look in the
   preview.
   ===================================================================== */

.almpb {
    --almpb-font:       ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --almpb-font-mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --almpb-paper:      #ffffff;
    --almpb-tile:       #f5f6f7;
    --almpb-ink:        #0f1115;
    --almpb-muted:      #646a73;
    --almpb-faint:      #9aa0a8;
    --almpb-line:       #ececef;
    --almpb-line-2:     #e0e2e6;
    --almpb-accent:     #e0590b;   /* the one colour we spend */
    --almpb-accent-press:#c44d08;
    --almpb-on-accent:  #ffffff;
    --almpb-instock:    #1f9d57;
    --almpb-radius:     16px;

    box-sizing: border-box;
    display: flex;
    gap: 24px;
    align-items: stretch;
    width: 100%;
    max-width: 640px;
    margin: 24px 0;
    padding: 22px;
    background: var(--almpb-paper);
    border: 1px solid var(--almpb-line);
    border-radius: var(--almpb-radius);
    color: var(--almpb-ink);
    font-family: var(--almpb-font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.almpb *, .almpb *::before, .almpb *::after { box-sizing: border-box; }
.almpb:hover { border-color: var(--almpb-line-2); box-shadow: 0 1px 2px rgba(15,17,21,.04), 0 18px 40px -28px rgba(15,17,21,.5); }
.almpb--center { margin-left: auto; margin-right: auto; }
.almpb--left   { margin-right: auto; }
.almpb--right  { margin-left: auto; }

/* ---- media ---- */
.almpb__media {
    flex: 0 0 auto;
    width: 156px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--almpb-tile);
    border-radius: 12px;
    overflow: hidden;
}
.almpb__media img { max-width: 100%; max-height: 168px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.almpb--dark .almpb__media img, .almpb--auto .almpb__media img { mix-blend-mode: normal; }

/* ---- body ---- */
.almpb__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.almpb__title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -.01em;
    color: var(--almpb-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.almpb__title a { color: inherit; text-decoration: none; }
.almpb__title a:hover { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* ---- the hero: price ---- */
.almpb__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 11px; }
.almpb__now {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--almpb-ink);
    font-variant-numeric: tabular-nums;
}
.almpb__was { font-size: 15px; color: var(--almpb-faint); text-decoration: line-through; text-decoration-thickness: 1px; font-variant-numeric: tabular-nums; }
.almpb__off { font-size: 13.5px; font-weight: 500; color: var(--almpb-accent); letter-spacing: .005em; }

/* ---- meta: one quiet line ---- */
.almpb__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 11px; font-size: 13.5px; color: var(--almpb-muted); }
.almpb__stock { display: inline-flex; align-items: center; gap: 7px; }
.almpb__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--almpb-instock); flex: 0 0 auto; }
.almpb__stock--out .almpb__dot { background: var(--almpb-accent); }
.almpb__sep { color: var(--almpb-faint); }
.almpb__prime { color: var(--almpb-muted); }
.almpb__prime b { font-weight: 500; color: var(--almpb-ink); }

/* ---- buy zone, divided by a hairline ---- */
.almpb__buy { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--almpb-line); display: flex; flex-direction: column; gap: 11px; margin-top: auto; }
.almpb__cta {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px;
    background: var(--almpb-accent);
    color: var(--almpb-on-accent);
    font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
    text-decoration: none; border: 0; border-radius: 11px;
    transition: background .15s ease;
}
.almpb__cta:hover { background: var(--almpb-accent-press); }
.almpb__cta:focus-visible { outline: 3px solid color-mix(in srgb, var(--almpb-accent) 40%, transparent); outline-offset: 2px; }
.almpb__arrow { font-size: 17px; line-height: 1; transition: transform .15s ease; }
.almpb__cta:hover .almpb__arrow { transform: translateX(3px); }

/* ---- fine print: compliance, in the data voice ---- */
.almpb__fine { margin: 0; font-family: var(--almpb-font-mono); font-size: 11px; line-height: 1.55; letter-spacing: -.01em; color: var(--almpb-faint); }
.almpb__asof { display: block; }
.almpb__disc { display: block; }

/* ---- dark ---- */
.almpb--dark {
    --almpb-paper:#14161a; --almpb-tile:#1e2127; --almpb-ink:#f3f5f8; --almpb-muted:#a7adb6;
    --almpb-faint:#727a85; --almpb-line:#262a31; --almpb-line-2:#323742; --almpb-instock:#3ac17e;
}
.almpb--dark:hover { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -26px rgba(0,0,0,.8); }
@media (prefers-color-scheme: dark) {
    .almpb--auto {
        --almpb-paper:#14161a; --almpb-tile:#1e2127; --almpb-ink:#f3f5f8; --almpb-muted:#a7adb6;
        --almpb-faint:#727a85; --almpb-line:#262a31; --almpb-line-2:#323742; --almpb-instock:#3ac17e;
    }
}

/* ---- responsive ---- */
@media (max-width: 520px) {
    .almpb { flex-direction: column; gap: 18px; padding: 18px; }
    .almpb__media { width: 100%; height: 190px; align-self: auto; }
    .almpb__cta { align-self: stretch; justify-content: center; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    .almpb, .almpb__cta, .almpb__arrow { transition: none; }
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .almpb__cta:focus-visible { outline-color: var(--almpb-accent); }
}

/* =====================================================================
   Compact variant — a short single-row mention for mid-content use
   ===================================================================== */
.almpb--compact { gap: 15px; padding: 12px 14px; align-items: center; max-width: 560px; }
.almpb--compact .almpb__media { width: 58px; height: 58px; padding: 7px; border-radius: 10px; align-self: center; }
.almpb--compact .almpb__media img { max-height: 46px; }
.almpb--compact .almpb__body { gap: 0; justify-content: center; }
.almpb--compact .almpb__title { margin: 0 0 3px; font-size: 14.5px; -webkit-line-clamp: 1; }
.almpb--compact .almpb__meta { margin-top: 0; gap: 8px; }
.almpb--compact .almpb__now { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.almpb--compact .almpb__was { font-size: 12.5px; }
.almpb--compact .almpb__cta { align-self: center; flex: 0 0 auto; padding: 9px 16px; font-size: 13.5px; border-radius: 9px; }
.almpb--compact .almpb__arrow { font-size: 15px; }
@media (max-width: 520px) {
    .almpb--compact { flex-direction: row; flex-wrap: wrap; }
    .almpb--compact .almpb__media { width: 52px; height: 52px; align-self: center; }
    .almpb--compact .almpb__cta { align-self: stretch; justify-content: center; width: 100%; }
}

/* =====================================================================
   Table / ranked-list variant
   ===================================================================== */
.almpb-table {
    --almpb-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --almpb-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --almpb-paper:#fff; --almpb-tile:#f5f6f7; --almpb-ink:#0f1115; --almpb-muted:#646a73;
    --almpb-faint:#9aa0a8; --almpb-line:#ececef; --almpb-accent:#e0590b; --almpb-accent-press:#c44d08;
    --almpb-on-accent:#fff; --almpb-instock:#1f9d57; --almpb-radius:16px;
    box-sizing: border-box; width: 100%; max-width: 680px; margin: 24px 0;
    background: var(--almpb-paper); border: 1px solid var(--almpb-line); border-radius: var(--almpb-radius);
    overflow: hidden; font-family: var(--almpb-font); color: var(--almpb-ink);
}
.almpb-table *, .almpb-table *::before, .almpb-table *::after { box-sizing: border-box; }

.almpb-table__row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-top: 1px solid var(--almpb-line); }
.almpb-table__row:first-child { border-top: 0; }
.almpb-table__row--pick { background: color-mix(in srgb, var(--almpb-accent) 5%, transparent); border-left: 3px solid var(--almpb-accent); padding-left: 15px; }

.almpb-table__rank { flex: 0 0 auto; width: 24px; text-align: center; font-size: 15px; font-weight: 700; color: var(--almpb-faint); font-variant-numeric: tabular-nums; }
.almpb-table__row--pick .almpb-table__rank { color: var(--almpb-accent); }

.almpb-table__media { flex: 0 0 auto; width: 66px; height: 66px; display: flex; align-items: center; justify-content: center; padding: 8px; background: var(--almpb-tile); border-radius: 11px; overflow: hidden; }
.almpb-table__media img { max-width: 100%; max-height: 50px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.almpb-table--dark .almpb-table__media img, .almpb-table--auto .almpb-table__media img { mix-blend-mode: normal; }

.almpb-table__info { flex: 1 1 auto; min-width: 0; }
.almpb-table__pick-tag { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--almpb-accent); margin-bottom: 3px; }
.almpb-table__title { margin: 0 0 5px; font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.almpb-table__title a { color: inherit; text-decoration: none; }
.almpb-table__title a:hover { text-decoration: underline; text-underline-offset: 2px; }
.almpb-table__sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--almpb-muted); }

.almpb-table__buy { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; min-width: 124px; }
.almpb-table__price { display: flex; align-items: baseline; gap: 8px; }
.almpb-table__price .almpb__now { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.almpb-table__price .almpb__was { font-size: 13px; }
.almpb-table__cta { padding: 10px 16px; font-size: 14px; border-radius: 10px; }

.almpb-table__fine { margin: 0; padding: 13px 18px; border-top: 1px solid var(--almpb-line); font-family: var(--almpb-font-mono); font-size: 11px; line-height: 1.5; color: var(--almpb-faint); }

.almpb-table--dark {
    --almpb-paper:#14161a; --almpb-tile:#1e2127; --almpb-ink:#f3f5f8; --almpb-muted:#a7adb6;
    --almpb-faint:#727a85; --almpb-line:#262a31; --almpb-instock:#3ac17e;
}
@media (prefers-color-scheme: dark) {
    .almpb-table--auto {
        --almpb-paper:#14161a; --almpb-tile:#1e2127; --almpb-ink:#f3f5f8; --almpb-muted:#a7adb6;
        --almpb-faint:#727a85; --almpb-line:#262a31; --almpb-instock:#3ac17e;
    }
}
@media (max-width: 560px) {
    .almpb-table__row { flex-wrap: wrap; gap: 12px; }
    .almpb-table__info { flex: 1 1 60%; }
    .almpb-table__buy { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
    .almpb-table__cta { flex: 0 0 auto; }
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .almpb-table__row--pick { background: var(--almpb-tile); }
}

/* deal pill — accurate, sourced from OffersV2 DealDetails (opt-in resource) */
.almpb__deal { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--almpb-accent); background: color-mix(in srgb, var(--almpb-accent) 11%, transparent); padding: 2px 8px; border-radius: 6px; }
@supports not (color: color-mix(in srgb, red 50%, blue)) { .almpb__deal { background: var(--almpb-tile); } }
