/* Giftmasters Wokiee conversion patterns — adapted for Every Gift Gives */

/* —— Dual-line ATC (ADD TO BASKET for home delivery) —— */
.egg-btn-atc {
  flex-direction: column;
  gap: 0.1rem !important;
  line-height: 1.15;
  padding-block: 0.7rem !important;
}

.egg-atc-main {
  display: block;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.egg-atc-sub {
  display: block;
  font-size: 0.72em;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.9;
  font-style: italic;
}

.egg-add-form .egg-btn-atc {
  padding-block: 0.55rem !important;
}

.egg-add-form .egg-atc-sub {
  font-size: 0.68em;
}

/* —— Free shipping progress (cart) —— */
.egg-ship-progress {
  max-width: 720px;
  margin: 0 auto 1.75rem;
  text-align: center;
  background: linear-gradient(180deg, #f4f2fb, #fff);
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  border: 2px solid var(--egg-navy);
  box-shadow: 0 6px 18px rgba(8, 24, 72, 0.08);
}

.egg-ship-progress.is-unlocked {
  border-color: var(--egg-pink);
  background: linear-gradient(180deg, var(--egg-pink-soft), #fff);
}

.egg-ship-progress-text {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--egg-navy);
  font-family: var(--egg-font);
}

.egg-ship-progress-bar {
  width: 100%;
  background: #e2e0ef;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.egg-ship-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--egg-navy), var(--egg-pink));
  border-radius: 999px;
  transition: width 0.4s ease;
  min-width: 0;
}

.egg-ship-progress-success {
  margin-top: 0.65rem;
  color: var(--egg-pink-deep);
  font-weight: 800;
  font-size: 0.95rem;
}

.egg-ship-progress-hint {
  margin-bottom: 1.25rem;
  border-style: dashed;
}

/* —— Shipping micro-chip (product) —— */
.egg-shipchip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--egg-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(8, 24, 72, 0.05);
  margin: 0.85rem 0 1rem;
  flex-wrap: wrap;
}

.egg-shipchip-rm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #d50032;
  color: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.55rem 0.26rem 0.4rem;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  font-family: var(--egg-font);
}

.egg-shipchip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffcc00;
  display: inline-block;
}

.egg-shipchip-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--egg-ink);
  font-weight: 600;
}

.egg-shipchip-sep { opacity: 0.45; }
.egg-shipchip-date { font-weight: 800; color: var(--egg-navy); }
.egg-shipchip.is-free .egg-shipchip-rm {
  box-shadow: 0 0 0 2px rgba(232, 40, 104, 0.25) inset;
}

/* —— Stock / order-within box —— */
.egg-stock-box {
  border: 3px solid #16b272;
  border-radius: 10px;
  padding: 0.95rem 1rem;
  margin: 1rem 0 0.75rem;
  text-align: center;
  background: #f7fffb;
}

.egg-stock-box.is-out {
  border-color: #c9a227;
  background: #fffbeb;
}

.egg-stock-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #0f8a52;
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}

.egg-stock-box.is-out .egg-stock-status { color: #a67c00; }

.egg-stock-icon {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #16b272;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.egg-stock-box.is-out .egg-stock-icon { background: #c9a227; }

.egg-stock-ready {
  font-weight: 500;
  color: var(--egg-muted);
  font-size: 0.92rem;
}

.egg-order-cutoff {
  color: var(--egg-ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.egg-cutoff-timer {
  font-weight: 800;
  color: var(--egg-navy);
  font-variant-numeric: tabular-nums;
}

.egg-delivery-date {
  margin-top: 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--egg-navy);
  font-family: var(--egg-font);
}

.egg-date-clause {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--egg-muted);
  font-style: italic;
}

/* —— Payment + delivery card —— */
.egg-pay-trust {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--egg-line);
}

.egg-pay-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.egg-pay-icons-compact {
  margin: 0.85rem 0;
  justify-content: center;
}

.egg-pay-icon {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--egg-line);
  border-radius: 6px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--egg-navy);
  letter-spacing: 0.02em;
  font-family: var(--egg-font);
}

.egg-delivery-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--egg-line);
  border-radius: 12px;
  background: var(--egg-soft);
  margin-bottom: 0.85rem;
}

.egg-delivery-card-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.egg-delivery-card-text {
  margin: 0 0 0.2rem;
  font-weight: 700;
  color: var(--egg-navy);
  font-size: 0.95rem;
}

.egg-delivery-card-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--egg-muted);
}

.egg-trust-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--egg-muted);
  font-size: 0.9rem;
}

.egg-trust-checks li {
  margin: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.egg-trust-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--egg-pink);
  font-weight: 800;
}

/* —— Sticky ATC —— */
.egg-sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: #081848;
  color: #fff;
  box-shadow: 0 -6px 20px rgba(8, 24, 72, 0.2);
  border-top: 3px solid var(--egg-pink);
  padding: 0.65rem 0;
  transform: translate3d(0, 110%, 0);
  transition: transform 0.2s ease, visibility 0.2s ease;
  visibility: hidden;
  pointer-events: none;
  /* Isolate paint work from page scroll */
  contain: layout paint;
  backface-visibility: hidden;
}

.egg-sticky-atc.is-visible {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}

.egg-sticky-atc[hidden] {
  display: none !important;
}

.egg-sticky-atc-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.egg-sticky-atc-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.egg-sticky-atc-product img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.egg-sticky-atc-title {
  font-weight: 800;
  font-family: var(--egg-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(40vw, 280px);
}

.egg-sticky-atc-price {
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}

.egg-sticky-atc .egg-btn {
  box-shadow: 0 6px 16px rgba(232, 40, 104, 0.35);
  background: var(--egg-pink);
  border-color: var(--egg-pink);
}

.egg-sticky-atc .egg-btn:hover {
  background: var(--egg-pink-hot);
  border-color: var(--egg-pink-hot);
}

/* Reserve space once on product pages so sticky ATC doesn't reflow the document while scrolling */
body.has-sticky-atc {
  padding-bottom: 88px;
}

@media (prefers-reduced-motion: reduce) {
  .egg-sticky-atc {
    transition: none;
  }
}

/* —— Breadcrumb —— */
.egg-breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.egg-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--egg-muted);
}

.egg-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.5;
}

.egg-breadcrumb a {
  color: var(--egg-muted);
  font-weight: 600;
}

.egg-breadcrumb a:hover {
  color: var(--egg-pink);
}

.egg-breadcrumb [aria-current="page"] {
  color: var(--egg-navy);
  font-weight: 700;
}

/* —— Card shipping hint + free delivery badge —— */
.egg-card-ship-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--egg-muted);
  font-weight: 600;
}

.egg-badge-ship {
  left: auto;
  right: 0.7rem;
  background: var(--egg-navy);
  box-shadow: 0 4px 12px rgba(8, 24, 72, 0.25);
}

/* —— Icon banners (4-up on desktop) —— */
.egg-icon-banners .egg-trust-strip-inner {
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .egg-icon-banners .egg-trust-strip-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.egg-trust-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.egg-summary-ship strong {
  color: var(--egg-pink);
  font-weight: 800;
}

@media (max-width: 600px) {
  .egg-sticky-atc-title { max-width: 36vw; }
  .egg-ship-progress-text { font-size: 0.95rem; }
  .egg-sticky-atc .egg-atc-sub { display: none; }
}

.egg-footer-ship-note {
  margin-top: 0.75rem !important;
  font-size: 0.88rem !important;
  color: rgba(255,255,255,0.7) !important;
}

.egg-footer .egg-pay-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}
.egg-personalise {
  width: 100%;
  border: 1px solid var(--egg-line);
  border-radius: 12px;
  padding: 1rem;
  background: var(--egg-soft);
  margin-bottom: 0.75rem;
}
.egg-personalise-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--egg-navy);
}
.egg-personalise-lead {
  margin: 0 0 0.85rem;
  color: var(--egg-muted);
  font-size: 0.9rem;
}
.egg-pers-field {
  display: block;
  margin-bottom: 0.75rem;
}
.egg-pers-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--egg-navy);
}
.egg-pers-label em {
  font-style: normal;
  font-weight: 600;
  color: var(--egg-muted);
  font-size: 0.8rem;
}
.egg-pers-field input[type="text"],
.egg-pers-field input[type="url"] {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--egg-line);
  border-radius: 8px;
  font: inherit;
}
.egg-pers-hint {
  display: block;
  margin-top: 0.25rem;
  color: var(--egg-muted);
  font-size: 0.8rem;
}
.egg-buy-box-stack {
  flex-direction: column;
  align-items: stretch;
}
.egg-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}
.egg-form-error {
  background: #fff0f5;
  border: 1px solid var(--egg-pink);
  color: var(--egg-pink-deep);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0.75rem 0;
  font-weight: 700;
}
.egg-cart-pers {
  background: var(--egg-soft);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  margin: 0.4rem 0;
  font-size: 0.88rem;
}
.egg-cart-pers ul {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
}
.egg-cart-pers span {
  color: var(--egg-muted);
}
.egg-admin-btn-accent { background: var(--pink); color: #fff; }
.egg-admin-btn-accent:hover { background: #c91d55; color: #fff; }
.egg-admin-btn-accent:disabled { opacity: 0.45; cursor: not-allowed; }
.egg-admin-pill.is-live { background: #e8fff3; color: #0f8a52; }
.egg-seo-flag { font-size: 1.15rem; font-weight: 800; text-align: center; }
.egg-tick { color: #0f8a52; }
.egg-cross { color: #c91d55; }
.egg-admin-row-actions { display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start; }
.egg-inline-form { display: inline; margin: 0; }
.egg-link-btn {
  background: none; border: none; color: var(--pink); cursor: pointer;
  font: inherit; font-weight: 700; padding: 0; text-decoration: underline;
}
.egg-link-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.egg-select-all-label { margin-right: 0.5rem; }
.egg-admin-filters select { min-width: 150px; }
.egg-prose-html h3 { margin: 1.25rem 0 0.5rem; color: var(--egg-navy, #081848); }
.egg-prose-html p { margin: 0 0 0.75rem; color: #444; line-height: 1.55; }
.egg-prose-html ul { margin: 0 0 0.75rem 1.1rem; color: #444; }
