/* The shipping restrictions page (page-shipping-restrictions.php). Loaded only
   there. Shares the Build page's bordered tiles and the product tab's callout
   palette so it reads as the same site. */

.g80-ship {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* --- Overview: summary beside the map ------------------------------------ */

.g80-ship__overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 24px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  background: linear-gradient(to bottom, #d4d4d4, #f5f5f5);
}

@media (min-width: 1024px) {
  .g80-ship__overview {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 48px;
    padding: 40px;
  }
}

.g80-ship__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9f0712;
  margin-bottom: 8px;
}

.g80-ship__title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #1a1a1a;
}

@media (min-width: 768px) {
  .g80-ship__title {
    font-size: 34px;
  }
}

.g80-ship__text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
}

.g80-ship__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 0;
}

@media (min-width: 1024px) {
  .g80-ship__stats {
    grid-template-columns: 1fr;
  }
}

.g80-ship__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  background: #ffffff;
}

@media (min-width: 1024px) {
  .g80-ship__stat {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
  }
}

.g80-ship__stat dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #1a1a1a;
}

@media (min-width: 1024px) {
  .g80-ship__stat dt {
    flex: 0 0 72px;
  }
}

.g80-ship__stat dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #555555;
}

.g80-ship__stat--restricted dt {
  color: #9f0712;
}

/* --- Tile map ---------------------------------------------------------------
   Eleven columns by eight rows; each tile is placed by inline grid-column and
   grid-row from g80_shipping_state_tiles(). */

.g80-ship__map {
  margin: 0;
  min-width: 0;
}

.g80-map {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  grid-template-rows: repeat(8, auto);
  gap: 4px;
}

@media (min-width: 640px) {
  .g80-map {
    gap: 6px;
  }
}

.g80-map__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #d6d6d6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #8a8a8a;
  user-select: none;
}

@media (min-width: 640px) {
  .g80-map__tile {
    font-size: 12px;
  }
}

.g80-map__tile--restricted {
  background: #9f0712;
  border-color: #9f0712;
  color: #ffffff;
}

.g80-map__tile--partial {
  background: repeating-linear-gradient(
    -45deg,
    #ffffff 0 3px,
    #f2c6c9 3px 6px
  );
  border-color: #9f0712;
  color: #9f0712;
}

.g80-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-size: 12px;
  color: #555555;
}

.g80-map__key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.g80-map__swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #ffffff;
  border: 1px solid #d6d6d6;
}

.g80-map__swatch--restricted {
  background: #9f0712;
  border-color: #9f0712;
}

.g80-map__swatch--partial {
  background: repeating-linear-gradient(
    -45deg,
    #ffffff 0 3px,
    #f2c6c9 3px 6px
  );
  border-color: #9f0712;
}

/* --- Lists ------------------------------------------------------------------ */

.g80-ship__lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .g80-ship__lists {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

.g80-ship__block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #1a1a1a;
  margin-bottom: 4px;
}

.g80-ship__block-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.g80-ship__block-note {
  font-size: 13px;
  color: #666666;
}

.g80-ship__states {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .g80-ship__states {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

.g80-ship__state,
.g80-ship__place {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 15px;
  color: #1a1a1a;
}

.g80-ship__state-code {
  flex: 0 0 auto;
  min-width: 36px;
  padding: 3px 0;
  border-radius: 4px;
  background: #9f0712;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.g80-ship__state-code--partial {
  background: #ffffff;
  color: #9f0712;
  border: 1px solid #9f0712;
  padding: 2px 0;
}

.g80-ship__places {
  list-style: none;
  margin: 0;
  padding: 0;
}

.g80-ship__place-name {
  flex: 1 1 auto;
}

.g80-ship__place-scope {
  flex: 0 0 auto;
  font-size: 13px;
  color: #666666;
  white-space: nowrap;
}

/* --- Terms ------------------------------------------------------------------ */

.g80-ship__terms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 1024px) {
  .g80-ship__terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.g80-ship__fee {
  background: #f5f5f5;
  border-left: 3px solid #9f0712;
  border-radius: 0 4px 4px 0;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.65;
  color: #1a1a1a;
}

.g80-ship__fee-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9f0712;
  margin-bottom: 6px;
}

.g80-ship__fee strong {
  color: #9f0712;
  white-space: nowrap;
}

.g80-ship__help {
  padding: 20px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.g80-ship__help-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1a1a1a;
}

.g80-ship__help-text {
  margin: 6px 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #666666;
}

.g80-ship__help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.g80-ship__help-link:hover {
  color: #9f0712;
}
