/* "Shipping to <flags>" block under the buy button on soundglow.eu product
   pages (markup: /shipping-block.php, data: /assets/js/sg-shipping-rates.js). */
.sg-shiprates {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(240, 238, 255, 0.12);
  font-family: var(--font-b);
  text-align: left;
}
.sg-shiprates[hidden] { display: none; }

/* Label + flags always share one row, whichever country is picked. Where even
   the label wouldn't fit (small phones, the narrow stackers card), every
   country drops the lead-in ("Shipping to the"), so switching flags never moves anything. */
.sg-shiprates { container-type: inline-size; }
.sg-shiprates-head {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
  gap: 0.75rem;
}
.sg-shiprates-label { min-width: 0; white-space: nowrap; font-size: 0.82rem; color: rgba(240, 238, 255, 0.6); }
@container (max-width: 370px) {
  .sg-shiprates-label [data-role="lead"] { display: none; }
}
.sg-shiprates-label strong { font-weight: 500; color: var(--white); }

.sg-shiprates-flags { display: flex; flex-shrink: 0; margin-right: -5px; }
.sg-shiprates-flag {
  display: flex; align-items: center; justify-content: center;
  min-width: 30px; min-height: 34px; padding: 0;
  background: none; border: 0; border-bottom: 2px solid transparent;
  cursor: pointer; opacity: 0.5;
  transition: opacity 0.15s ease;
}
.sg-shiprates-flag[hidden] { display: none; }
.sg-shiprates-flag:hover { opacity: 0.85; }
.sg-shiprates-flag[aria-pressed="true"] { opacity: 1; border-bottom-color: var(--purple); }
.sg-shiprates-flag:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.sg-shiprates-flag svg { display: block; width: 20px; height: 14px; outline: 1px solid rgba(240, 238, 255, 0.18); outline-offset: -1px; }

.sg-shiprates-list { margin: 0.45rem 0 0; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.sg-shiprates-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; }
.sg-shiprates-list dt { color: rgba(240, 238, 255, 0.6); font-weight: 400; }
.sg-shiprates-list dd { margin: 0; color: var(--white); white-space: nowrap; }

.sg-shiprates-note { margin: 0.45rem 0 0; font-size: 0.78rem; line-height: 1.4; color: rgba(240, 238, 255, 0.6); }

/* Stackers: nothing to ship until the card can actually be bought. */
.acc-card.unavailable .sg-shiprates { display: none; }
.acc-card .sg-shiprates { width: 100%; }
