/* Búðarmerki, round 2 (Sindri, 17 Oct: the ticket buttons and hang tags
   "look a bit strange and the tags take wayy too much space").
   Buttons keep the site's display face, Marcellus, in tracked capitals (the
   same voice as the headings) but lose the punched notches and the dashed
   stub: a clean box, the main action carries a small arrow that nudges on
   hover. Tags stop being shapes: one quiet line of small capitals under the
   product name, Sértilboð in the brand red, Ný vara in ink, the rest grey,
   separated by a middle dot. A price row stays one or two lines tall.
   Loaded after styles.css and site.css, so it restyles without touching them. */
:root{--font-mark:var(--font-display)}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn,.chip{font-family:var(--font-mark);font-weight:400;text-transform:uppercase;letter-spacing:.12em;line-height:1}
.btn{font-size:.875rem;padding:var(--spacing-s) var(--spacing-l);min-height:3rem}
.btn-fill{gap:.7em;transition:color var(--btn-duration) var(--btn-ease),background-color .2s ease,transform .16s cubic-bezier(.23,1,.32,1)}
.btn-fill::after{content:"";flex:none;width:.9em;height:.9em;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .2s cubic-bezier(.23,1,.32,1)}
@media (hover:hover) and (pointer:fine){
  .btn-fill:hover:not(:disabled){background:var(--color-brand);transform:none}
  .btn-fill:hover:not(:disabled)::after{transform:translateX(3px)}
}

/* chips: the small actions (meat days, offer reminder, list filters) */
.chip{font-size:.75rem;padding:0 .95rem;min-height:2.75rem;border:1px solid var(--color-black)}
.chip--fill,.chip[aria-pressed="true"]{background:var(--color-black);color:var(--color-white)}
@media (hover:hover) and (pointer:fine){.chip:not(.chip--fill):not([aria-pressed="true"]):hover{background:var(--color-black);color:var(--color-white)}.chip--fill:hover{background:var(--color-brand);border-color:var(--color-brand)}}
.chip[data-done]{background:var(--color-brand);border-color:var(--color-brand);color:var(--color-white)}

/* form choices in the same voice; picked = brand red */
.choice span{font-family:var(--font-mark);font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;border-color:var(--color-black)}
.choice input:checked+span{background:var(--color-brand);border-color:var(--color-brand);color:var(--color-white)}

/* ── tags: a line of small capitals, not a row of shapes ──────────────────── */
.prices__name .tags{display:flex;flex-wrap:wrap;flex-basis:100%;align-items:baseline;gap:0 .55rem;margin-top:-.1rem}
.tag{display:inline;height:auto;padding:0;border:0;background:none;
  font-family:var(--font-mark);font-size:.6875rem;letter-spacing:.1em;line-height:1.5;text-transform:uppercase;color:var(--color-mid-gray);white-space:nowrap}
.tag+.tag::before{content:"·";margin-right:.55rem;color:var(--color-light-gray)}
.tag--offer{color:var(--color-brand);background:none}
.tag--new{color:var(--color-black)}
.meatday__tag{margin-left:.35rem;padding:0;border:0;background:none;height:auto;font-family:var(--font-mark);font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase;color:var(--color-mid-gray);vertical-align:.1em}

/* the basket keeps its count, set apart by a hairline */
.basket{font-family:var(--font-mark);font-size:.8125rem;letter-spacing:.12em;text-transform:uppercase}
.basket__n{font-family:var(--font-sans);letter-spacing:0}

@media (forced-colors:active){.tag+.tag::before{color:CanvasText}}

/* ── icon buttons (Sindri, 17 Oct: "use more icons than texts") ──────────────
   A 44 px square with a 20 px line icon; the words live in aria-label and in a
   small tooltip on hover or keyboard focus. Plain = transparent, --line = a
   hairline box, --fill = the action (black, red on hover). */
.ibtn{position:relative;display:inline-grid;place-items:center;flex:none;width:2.75rem;height:2.75rem;padding:0;color:var(--color-black);background:transparent;border:1px solid transparent;cursor:pointer;text-decoration:none;transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s cubic-bezier(.23,1,.32,1)}
.ibtn[hidden]{display:none}
.ibtn svg{width:1.25rem;height:1.25rem}
.ibtn:active{transform:scale(.94)}
.ibtn--line{border-color:var(--color-black)}
.ibtn--fill{background:var(--color-black);border-color:var(--color-black);color:var(--color-white)}
.ibtn--lg{width:3rem;height:3rem}
.ibtn[aria-expanded="true"]{background:var(--color-black);color:var(--color-white)}
@media (hover:hover) and (pointer:fine){
  .ibtn:not(.ibtn--fill):hover{background:rgba(20,20,20,.07)}
  .ibtn--line:hover{background:var(--color-black);color:var(--color-white)}
  .ibtn--fill:hover{background:var(--color-brand);border-color:var(--color-brand)}
}
/* the tooltip: only where hover exists, and on keyboard focus */
.ibtn[data-tip]::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;z-index:5;padding:.35rem .55rem;white-space:nowrap;
  font-family:var(--font-mark);font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase;color:var(--color-white);background:var(--color-black);
  opacity:0;transform:translate(-50%,3px);pointer-events:none;transition:opacity .12s ease,transform .16s cubic-bezier(.23,1,.32,1);
  /* collapsed while hidden: an invisible nowrap label still widens the page on a phone (7 px at 375) */
  max-width:0;padding-inline:0;overflow:hidden}
.ibtn[data-tip]:focus-visible::after{opacity:1;transform:translate(-50%,0);max-width:30rem;padding-inline:.55rem}
@media (hover:hover) and (pointer:fine){.ibtn[data-tip]:hover::after{opacity:1;transform:translate(-50%,0);transition-delay:.25s;max-width:30rem;padding-inline:.55rem}}
.ibtn[aria-expanded="true"]::after{opacity:0!important}
@media (prefers-reduced-motion:reduce){.ibtn[data-tip]::after{transform:translate(-50%,0)}}

/* meat days: the two icons sit in the countdown corner, no extra row */
.meatday__actions{display:flex;gap:.375rem;margin-top:var(--spacing-xs)}
@media (min-width:64rem){
  .meatday{position:relative}
  .meatday__actions{position:absolute;top:var(--spacing-l);right:0;margin:0}
}
.offers__foot .ibtn,.page-head__actions .ibtn{width:3rem;height:3rem}
