/* لِبسة حيّرتني. */
:root {
  --poll-wine: #66001f;
  --poll-olive: #606b4b;
  --poll-paper: #f5ede3;
  --poll-soft: #efe5d6;
  --poll-gold: #d8bb85;
  --poll-ink: #33261f;
  --poll-muted: #6f6256;
}

.poll-promo { padding: 8px 16px 28px; }
.poll-promo-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
  background: var(--poll-paper);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgb(102 0 31 / 6%);
  display: grid;
  gap: 10px;
  justify-items: center;
}
.poll-promo-card h2 { margin: 0; color: var(--poll-wine); font-size: 1.55rem; }
.poll-promo-card p { margin: 0; color: var(--poll-ink); }
.poll-promo-mark { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--poll-soft); }
html body .poll-promo-mark .poll-icon { width: 40px; height: 40px; }
html body .poll-add .poll-icon { width: 20px; height: 20px; }

.poll-btn, a.poll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid var(--poll-wine);
  border-radius: 999px;
  background: var(--poll-wine);
  color: var(--poll-paper) !important;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.poll-btn:hover { opacity: .92; }
.poll-btn:active { transform: scale(.98); }
.poll-btn[disabled] { opacity: .5; cursor: not-allowed; }
.poll-btn.is-ghost, a.poll-btn.is-ghost { background: transparent; color: var(--poll-wine) !important; }
.poll-btn:focus-visible, .poll-add:focus-visible, .poll-chip:focus-visible, .poll-icon-btn:focus-visible, .poll-photo:focus-visible { outline: 3px solid var(--poll-gold); outline-offset: 2px; }

.poll-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-block: 8px;
  padding: 8px 16px;
  border: 1px solid var(--poll-gold);
  border-radius: 999px;
  background: var(--poll-paper);
  color: var(--poll-wine);
  font: inherit;
  cursor: pointer;
}
.poll-add.is-added { background: var(--poll-soft); }
.poll-fav-item { display: grid; align-content: start; justify-items: center; min-width: 0; }
.poll-fav-item > :first-child { width: 100%; }

.poll-bar {
  position: fixed;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 60;
  max-width: 460px;
  margin-inline: auto;
  padding: 8px 8px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--poll-paper);
  border: 1px solid var(--poll-gold);
  border-radius: 999px;
  box-shadow: 0 8px 26px rgb(51 38 31 / 18%);
  color: var(--poll-ink);
  animation: poll-rise .22s ease;
}
[dir="rtl"] .poll-bar { padding: 8px 16px 8px 8px; }
.poll-bar .poll-btn { min-height: 38px; padding: 6px 16px; font-size: .9rem; }

.poll-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 40px;
  color: var(--poll-ink);
  display: grid;
  gap: 18px;
}
.poll-head { display: grid; gap: 8px; justify-items: center; text-align: center; }
.poll-head h1 { margin: 0; color: var(--poll-wine); font-size: 1.55rem; line-height: 1.35; overflow-wrap: anywhere; }
.poll-head p { margin: 0; }
.poll-logo { height: 42px; width: auto; }
.poll-kicker { color: var(--poll-olive); font-weight: 600; }
.poll-link { color: var(--poll-wine); }
.poll-note, .poll-privacy, .poll-boot { margin: 0; text-align: center; color: var(--poll-muted); font-size: .88rem; }

.poll-section { display: grid; gap: 12px; padding: 18px; background: var(--poll-paper); border-radius: 20px; }
.poll-section h2 { margin: 0; color: var(--poll-wine); font-size: 1.1rem; }
.poll-section > p { margin: 0; color: var(--poll-muted); font-size: .9rem; }

.poll-input, .poll-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--poll-gold);
  border-radius: 14px;
  background: #fbf6ee;
  color: var(--poll-ink);
  font: inherit;
}
.poll-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.poll-chip {
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--poll-gold);
  border-radius: 999px;
  background: transparent;
  color: var(--poll-ink);
  font: inherit;
  cursor: pointer;
}
.poll-chip[aria-pressed="true"] { background: var(--poll-wine); border-color: var(--poll-wine); color: var(--poll-paper); }

.poll-selected { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.poll-selected li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; background: var(--poll-soft); border-radius: 14px; }
.poll-selected img { width: 64px; height: 76px; object-fit: contain; border-radius: 10px; background: var(--poll-paper); }
.poll-selected strong { display: block; overflow-wrap: anywhere; }
.poll-selected small { color: var(--poll-muted); }
.poll-row-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 6px; }
.poll-icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--poll-paper);
  color: var(--poll-wine);
  font: inherit;
  cursor: pointer;
}
.poll-icon-btn[disabled] { opacity: .35; cursor: not-allowed; }

.poll-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.poll-pick-card { display: grid; gap: 6px; padding: 8px; border: 0; border-radius: 14px; background: var(--poll-soft); color: var(--poll-ink); font: inherit; text-align: start; cursor: pointer; }
.poll-pick-card[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--poll-wine); }
.poll-pick-card img { width: 100%; height: 140px; object-fit: contain; border-radius: 10px; background: var(--poll-paper); }
.poll-pick-card small { color: var(--poll-muted); overflow-wrap: anywhere; }

.poll-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.poll-option { display: grid; align-content: start; gap: 8px; padding: 10px; background: var(--poll-paper); border-radius: 18px; min-width: 0; }
.poll-option.is-mine { box-shadow: inset 0 0 0 2px var(--poll-wine); }
.poll-photo { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; background: var(--poll-soft); cursor: zoom-in; }
.poll-photo img { display: block; width: 100%; height: clamp(170px, 42vw, 340px); object-fit: contain; border-radius: 14px; }
.poll-option h2 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.poll-meta { margin: 0; color: var(--poll-muted); font-size: .86rem; overflow-wrap: anywhere; }
.poll-price { font-weight: 700; color: var(--poll-wine); }
.poll-tag { justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--poll-soft); color: var(--poll-wine); font-size: .8rem; font-weight: 600; }
.poll-tag.is-lead { background: var(--poll-wine); color: var(--poll-paper); }
.poll-tag.is-off { background: var(--poll-soft); color: #8a4b12; }
.poll-option .poll-btn { width: 100%; padding-inline: 10px; font-size: .92rem; }

.poll-track { height: 8px; border-radius: 999px; background: var(--poll-soft); overflow: hidden; }
.poll-fill { height: 100%; width: 0; border-radius: 999px; background: var(--poll-olive); transition: width .5s ease; }
.poll-option .is-lead-fill { background: var(--poll-wine); }
.poll-count { display: flex; justify-content: space-between; gap: 8px; font-size: .86rem; }

.poll-status { display: grid; gap: 4px; justify-items: center; text-align: center; }
.poll-status strong { color: var(--poll-wine); }
.poll-thanks { padding: 10px 14px; border-radius: 14px; background: var(--poll-soft); color: var(--poll-wine); text-align: center; font-weight: 600; animation: poll-rise .22s ease; }
.poll-error { padding: 10px 14px; border-radius: 14px; background: #f3e3d8; color: #8a2b12; text-align: center; }
.poll-share { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.poll-list { display: grid; gap: 10px; }
.poll-list article { display: grid; gap: 8px; padding: 14px; background: var(--poll-paper); border-radius: 16px; }
.poll-list h3 { margin: 0; color: var(--poll-wine); font-size: 1rem; overflow-wrap: anywhere; }
.poll-list-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.poll-list-actions .poll-btn { min-height: 38px; padding: 6px 14px; font-size: .88rem; }
.poll-group-title { margin: 8px 0 0; color: var(--poll-olive); font-size: 1rem; }

.poll-zoom { max-width: min(92vw, 720px); padding: 8px; border: 0; border-radius: 18px; background: var(--poll-paper); }
.poll-zoom::backdrop { background: rgb(51 38 31 / 60%); }
.poll-zoom img { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
.poll-zoom button { display: block; margin: 8px auto 0; }

/* The site styles controls and text from layers with !important. The first layer outranks the rest, so this feature sits there. */
@layer libseh-storefront {
  html:root body.luxury-ui[data-lang][data-dir][class] .poll-btn:not(.is-ghost):not(#_):not(#_),
  html:root body.luxury-ui[data-lang][data-dir][class] .poll-chip[aria-pressed="true"]:not(#_):not(#_),
  html:root body.luxury-ui[data-lang][data-dir][class] .poll-tag.is-lead:not(#_):not(#_) {
    color: var(--poll-paper) !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] .poll-btn.is-ghost:not(#_):not(#_) {
    color: var(--poll-wine) !important;
    background: transparent !important;
  }
  /* With no new products or offers those two would sit side by side on a computer; the section stays between them. */
  html:root body.home-page .home-shop-pair.is-empty-pair:not(#_):not(#_) { grid-template-columns: minmax(0, 1fr) !important; }
  html:root body.luxury-ui[data-lang][data-dir][class] .poll-promo-card:not(#_):not(#_) {
    background: var(--poll-wine) !important;
    box-shadow: none !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] .poll-promo-card :is(h2, p):not(#_):not(#_) {
    color: var(--poll-paper) !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] .poll-promo-card .poll-promo-mark:not(#_):not(#_) {
    background: var(--poll-paper) !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] .poll-promo-card a.poll-btn:not(#_):not(#_) {
    background: var(--poll-paper) !important;
    border-color: var(--poll-paper) !important;
    color: var(--poll-wine) !important;
  }
  /* The site styles every button as a round olive pill; these controls keep their own shape. */
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-btn:not(.is-ghost):not(#_):not(#_) {
    background: var(--poll-wine) !important;
    border: 1px solid var(--poll-wine) !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-pick-card:not(#_):not(#_) {
    display: grid !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    padding: 8px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--poll-soft) !important;
    color: var(--poll-ink) !important;
    white-space: normal !important;
    box-shadow: none !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-pick-card[aria-pressed="true"]:not(#_):not(#_) {
    box-shadow: inset 0 0 0 2px var(--poll-wine) !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-pick-card strong:not(#_):not(#_) {
    color: var(--poll-ink) !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-pick-card small:not(#_):not(#_) {
    color: var(--poll-muted) !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-icon-btn:not(#_):not(#_) {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--poll-paper) !important;
    color: var(--poll-wine) !important;
    box-shadow: none !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-chip:not(#_):not(#_) {
    width: auto !important;
    min-height: 38px !important;
    padding: 6px 14px !important;
    border: 1px solid var(--poll-gold) !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-chip:not([aria-pressed="true"]):not(#_):not(#_) {
    color: var(--poll-ink) !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-chip[aria-pressed="true"]:not(#_):not(#_) {
    background: var(--poll-wine) !important;
    border-color: var(--poll-wine) !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-photo:not(#_):not(#_) {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--poll-soft) !important;
    box-shadow: none !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-add:not(#_):not(#_) {
    background: var(--poll-paper) !important;
    border: 1px solid var(--poll-gold) !important;
    border-radius: 999px !important;
    color: var(--poll-wine) !important;
    box-shadow: none !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-add.is-added:not(#_):not(#_) {
    background: var(--poll-soft) !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] button.poll-add span:not(#_):not(#_) {
    color: var(--poll-wine) !important;
  }
  html:root body.luxury-ui[data-lang][data-dir][class] .poll-bar > span:not(#_):not(#_) {
    color: var(--poll-ink) !important;
  }
}

@keyframes poll-rise { from { transform: translateY(6px); } to { transform: none; } }

@media (max-width: 340px) {
  .poll-options { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .poll-options.has-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .poll-options.has-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .poll-bar, .poll-thanks { animation: none; }
  .poll-fill, .poll-btn { transition: none; }
}
