/* ==========================================================================
   LGD Pickup Only — in-store pickup notice
   Colours come from the theme Customizer via the --lgd-* variables published
   by the LGD Product SEO Additions mu-plugin. Fallbacks mirror the current
   theme_mod values (color_primary #132436, color_button #dd3333).
   ========================================================================== */

.lgd-po {
  --po-brand: var(--lgd-brand, #dd3333);
  --po-brand-hover: var(--lgd-brand-hover, #ad2727);
  --po-ink: var(--lgd-primary, #132436);
  --po-soft: var(--lgd-soft, #f2f2f2);
  --po-line: #e2e5e8;
  --po-radius: var(--lgd-btn-radius, 0px);

  margin: 0 0 1.4rem;
  padding: 1.15rem 1.25rem;
  color: var(--po-ink);
  background: var(--po-soft);
  border: 1px solid var(--po-line);
  border-left: 4px solid var(--po-brand);
  border-radius: var(--po-radius);
  line-height: 1.6;
}

/* ---------- head ---------- */
.lgd-po__head {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.lgd-po__icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--po-brand);
}

.lgd-po__title {
  margin: 0 0 0.2rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--po-ink);
}

.lgd-po__intro {
  margin: 0;
  font-size: 0.94rem;
}

/* ---------- stores ---------- */
.lgd-po__stores {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.lgd-po__store {
  margin: 0;
  padding: 0.85rem 0.95rem;
  background: #fff;
  border: 1px solid var(--po-line);
  border-radius: var(--po-radius);
}

.lgd-po__store-name {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--po-ink);
}

.lgd-po__store-addr {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
}

.lgd-po__store-addr a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--po-line);
}

.lgd-po__store-addr a:hover {
  text-decoration-color: var(--po-brand);
}

/* Phone is the primary action here, so give it button weight. */
.lgd-po__store-tel {
  margin: 0;
}

.lgd-po__store-tel a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  background: var(--po-brand);
  border-radius: var(--po-radius);
  text-decoration: none;
  transition: background-color 0.16s ease;
}

.lgd-po__store-tel a:hover,
.lgd-po__store-tel a:focus-visible {
  color: #fff;
  background: var(--po-brand-hover);
}

.lgd-po__store-tel a:focus-visible {
  outline: 2px solid var(--po-ink);
  outline-offset: 2px;
}

.lgd-po__store-tel svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

/* ---------- note ---------- */
.lgd-po__note {
  margin: 0.9rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--po-line);
  font-size: 0.86rem;
  color: #5b6875;
}

/* ---------- shop / category listing button ---------- */
.lgd-po__loop-btn {
  /* Deliberately lower contrast than a real Add to Cart so the listing does
     not advertise a purchase that cannot happen. */
  background: transparent !important;
  color: var(--lgd-primary, #132436) !important;
  border: 1px solid var(--lgd-primary, #132436) !important;
}

.lgd-po__loop-btn:hover,
.lgd-po__loop-btn:focus-visible {
  background: var(--lgd-primary, #132436) !important;
  color: #fff !important;
}

/* ---------- print ---------- */
@media print {
  .lgd-po {
    background: none;
    border: 1px solid #999;
  }
  .lgd-po__store-tel a {
    color: #000;
    background: none;
    font-weight: 700;
  }
}

/* ---------- forced colours ---------- */
@media (forced-colors: active) {
  .lgd-po__store-tel a {
    border: 1px solid ButtonText;
  }
}
