/* Buy X get Y notice, design 10 "Cart preview" (js/deals.js; not in React).
   Values from the mockup tmp/bxgy-designs/designs.css (.bx10 and shared .bx-* rules). */
.deal {
  --deal-gold: #f5c542;
  --deal-line: #3a3a3a;
  --deal-muted: #b9b9b9;
  display: grid;
  gap: 10px;
  color: var(--text-color);
  font-family: var(--mui-font);
}
.deal *, .deal *::before, .deal *::after { box-sizing: border-box; }
.deal p { margin: 0; }
.deal--inline { margin: 16px 0 0; }
.deal__head { display: grid; gap: 8px; justify-items: start; }
.deal__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--deal-gold);
  color: #1d1600;
  font: 800 11px/1 var(--mui-font);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.deal__tag .icon { width: 14px; height: 14px; fill: currentColor; }
.deal__title { font: 700 18px/1.3 var(--mui-font); }
.deal__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deal__cart {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--deal-line);
  border-radius: 10px;
  background: #1b1b1b;
  font-size: 13px;
}
.deal__cart.is-best { border-color: var(--primary); }
.deal__cart-title {
  margin: 0 0 2px;
  color: var(--deal-muted);
  font: 700 13px var(--mui-font);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.deal__cart.is-best .deal__cart-title { color: var(--primary); }
.deal__row { display: flex; justify-content: space-between; gap: 8px; }
.deal__row > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.deal__row > span:last-child { flex: none; }
.deal__total { padding-top: 6px; border-top: 1px solid var(--deal-line); font-weight: 700; }
.deal__was { color: var(--deal-muted); text-decoration: line-through; }
.deal__save { color: var(--deal-muted); font-size: 13px; }
.deal__select {
  width: 100%;
  min-height: 44px;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #5b5b5b;
  border-radius: 8px;
  background: #1a1a1a;
  color: var(--text-color);
  font: 14px var(--mui-font);
}
.deal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  font: 600 14px/1.2 var(--mui-font);
  text-align: center;
  cursor: pointer;
}
.deal__btn--teal { background: var(--primary); color: #0d1f1e; }
.deal__btn--teal:hover:not(:disabled) { background: #2aa8a4; }
.deal__btn--ghost { border: 1px solid #5b5b5b; background: transparent; color: var(--text-color); }
.deal__btn--ghost:hover:not(:disabled) { border-color: #8a8a8a; }
.deal__btn:disabled { cursor: default; opacity: .7; }
.deal__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.deal__btn-text { min-width: 0; overflow-wrap: anywhere; }
.deal__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.deal__acts > .deal__btn { flex: 1 1 180px; }

/* Card dialog: the modal root fades (policy native-ui-motion-eased-show-hide-v3). */
.deal-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.deal-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); }
.deal-modal__box {
  position: relative;
  gap: 14px;
  align-content: start;
  width: min(460px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #333;
  border-radius: 14px;
  background: #1f1f1f;
  box-shadow: var(--shadow-24);
}
.deal-modal__box:focus { outline: none; }
.deal-modal__box > .deal__head { padding-right: 40px; }
/* A wrapper places the X: base.css's .x-btn:not(#\#) rules outrank component rules on the button. */
.deal-modal__x { position: absolute; top: 14px; right: 14px; line-height: 0; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  /* Room for the x-btn--esc "Esc" label left of the X. */
  .deal-modal__box > .deal__head { padding-right: 80px; }
}
@media (max-width: 420px) {
  .deal__cols { grid-template-columns: 1fr; }
}
