/* EggShop customer navigation, product photos and wallet actions — 20261118-v2.
   Presentation only. Existing links, forms and shipping actions stay in place. */
html.egg-ivory body > :is(nav,.topnav) > .menu,
html.egg-ivory[data-ivory-page="withdraw"] body > nav > div:last-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}
html.egg-ivory body > :is(nav,.topnav) > .menu > a[href],
html.egg-ivory[data-ivory-page="withdraw"] body > nav > div:last-child > a[href] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 34px;
  min-width: 0;
  margin: 0 !important;
  padding: 5px 8px;
  border: 1px solid #cf9bb1;
  border-radius: 8px;
  background: #fff0f5;
  color: #672a43 !important;
  box-shadow: 0 1px 0 #ead0db;
  font: 650 13px/1.4 var(--iv-type, Tahoma, sans-serif);
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
html.egg-ivory body > :is(nav,.topnav) > .menu > a[href]:hover,
html.egg-ivory[data-ivory-page="withdraw"] body > nav > div:last-child > a[href]:hover {
  background: #f9dce8;
  border-color: #aa6684;
  box-shadow: 0 1px 0 #dcb3c5;
}
html.egg-ivory body > :is(nav,.topnav) > .menu > a[href][aria-current="page"],
html.egg-ivory[data-ivory-page="withdraw"] body > nav > div:last-child > a[href="withdraw.html"],
html.egg-ivory[data-ivory-page="withdraw"] body > nav > div:last-child > a[href="/withdraw.html"] {
  background: #78314f;
  color: #fff !important;
  border-color: #61243d;
  box-shadow: inset 0 -2px 0 #4f1c32, 0 1px 0 #dcb3c5;
}
html.egg-ivory body > :is(nav,.topnav) > .menu > a[href]:focus-visible,
html.egg-ivory[data-ivory-page="withdraw"] body > nav > div:last-child > a[href]:focus-visible {
  outline: 3px solid #733e70;
  outline-offset: 3px;
}
@media (max-width: 520px) {
  html.egg-ivory body > :is(nav,.topnav) > .menu,
  html.egg-ivory[data-ivory-page="withdraw"] body > nav > div:last-child {
    gap: 4px;
  }
  html.egg-ivory body > :is(nav,.topnav) > .menu > a[href],
  html.egg-ivory[data-ivory-page="withdraw"] body > nav > div:last-child > a[href] {
    flex: 0 0 auto;
    padding: 5px 7px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.egg-ivory body > :is(nav,.topnav) > .menu > a[href],
  html.egg-ivory[data-ivory-page="withdraw"] body > nav > div:last-child > a[href] {
    transition: none;
  }
}
html.egg-ivory[data-ivory-page="waiting"] #orders .order > img {
  width: clamp(100px,34vw,188px);
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
}

/* Full product photos, with a modest increase from the original 150px. */
html.egg-ivory[data-ivory-page="order"] #products > .product > img {
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
html.egg-ivory[data-ivory-page="ready"] #products .ready-photo {
  width: 180px;
  max-width: 100%;
}
html.egg-ivory[data-ivory-page="ready"] #products .ready-photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
@media (min-width: 640px) {
  html.egg-ivory[data-ivory-page="ready"] #products > .product:has(.ivory-ready-details) {
    grid-template-columns: 180px minmax(0,1fr);
  }
}

/* Two clear wallet destinations, using the page's existing deposit and withdrawal flow. */
html.egg-ivory[data-ivory-page="topup"] main > .egg-wallet-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin: 0 0 12px;
}
html.egg-ivory[data-ivory-page="topup"] .egg-wallet-actions > .egg-wallet-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #b77893;
  border-radius: 10px;
  background: #fff7fa;
  color: #6b2946;
  font: 700 15px/1.4 var(--iv-type,Tahoma,sans-serif);
  text-decoration: none;
  text-align: center;
}
html.egg-ivory[data-ivory-page="topup"] .egg-wallet-actions > .egg-wallet-action[aria-current="page"] {
  background: #78314f;
  border-color: #61243d;
  color: #fff;
}
html.egg-ivory[data-ivory-page="topup"] .egg-wallet-actions > .egg-wallet-action:hover {
  box-shadow: 0 2px 6px #78314f26;
  border-color: #61243d;
}
html.egg-ivory[data-ivory-page="topup"] .egg-wallet-actions > .egg-wallet-action:focus-visible {
  outline: 3px solid #733e70;
  outline-offset: 3px;
}
html.egg-ivory[data-ivory-page="topup"] .egg-wallet-actions .egg-wallet-symbol {
  font-size: 18px;
  line-height: 1;
}
