/**
 * Commerce layer styles (PDP, cart drawer, added-to-cart, checkout, thank-you).
 * Owner: theme-commerce. Loaded after reference.css (see inc/commerce.php).
 * Reference utilities/colors come from reference.css; rules here only add
 * behaviour and structure that the static Tailwind clone cannot express.
 */

/* ------------------------------------------------------------------ prices */
.ed-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.ed-price__regular {
  text-decoration: line-through;
  opacity: 0.45;
  font-size: 0.92em;
}
.ed-price__sale {
  font-weight: inherit;
}
.ed-amount {
  white-space: nowrap;
}

/* --------------------------------------------------------------- utilities */
body.ed-drawer-open {
  overflow: hidden;
}
body.ed-drawer-open .ed-cart-drawer {
  overscroll-behavior: contain;
}

/* ================================================================ PDP: base */
body.ed-pdp #ed-main,
body.ed-checkout-mode #ed-main,
body.ed-cart-mode #ed-main {
  margin: 0;
  padding: 0;
  max-width: none;
}
body.ed-pdp .ed-pdp {
  width: 100%;
}

/* ------------------------------------------------------------- PDP gallery */
.ed-gallery .swiper-wrapper,
.ed-gallery-mobile .swiper-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.ed-gallery .swiper-slide,
.ed-gallery-mobile .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
}
.ed-gallery-mobile .swiper-slide {
  height: auto;
  aspect-ratio: 4 / 5;
}
.ed-gallery-mobile {
  position: relative;
}
.ed-gallery-mobile .swiper-scrollbar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
  z-index: 11;
  border-radius: 0;
}
.ed-gallery-mobile .swiper-scrollbar-drag {
  height: 2px;
  background: #000;
  border-radius: 0;
  width: 33%;
  transition: transform 0.1s linear;
}
.ed-gallery img {
  user-select: none;
  -webkit-user-drag: none;
}
.ed-gallery .swiper-button,
.ed-gallery-mobile .swiper-button {
  color: #000;
}
.ed-gallery .swiper-button-disabled,
.ed-gallery-mobile .swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}
.ed-gallery .swiper-pagination button.swiper-custom-bullet-dark,
.ed-gallery .swiper-pagination .swiper-custom-bullet-dark {
  padding: 0;
  border: 0;
  cursor: pointer;
  background-color: #000;
}
.ed-gallery .swiper-custom-bullet-dark {
  pointer-events: auto;
}

/* --------------------------------------------------------- PDP buy box extras */
.ed-cta__error {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-c-error, #d20100);
}
.ed-urgency {
  opacity: 0.75;
  margin-bottom: 1.25rem;
}
/* unavailable size/option (e.g. missing published variation) */
[data-ed-size][disabled],
[data-ed-option][disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.ed-countdown,
.ed-viewers {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}
.ed-countdown__label {
  opacity: 0.75;
}
.ed-countdown__label::after {
  content: ":";
}
.ed-countdown__timer {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ed-countdown__unit + .ed-countdown__unit::before {
  content: ':';
  margin: 0 0.05em;
  font-weight: 400;
}
.ed-urgency {
  row-gap: 0.3rem;
}
.ed-viewers {
  opacity: 0.8;
}
.ed-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-c-error, #d20100);
}
.ed-stock-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.ed-accordion .default-transition {
  transition: transform 0.25s ease;
}
.ed-accordion.is-open .default-transition {
  transform: rotate(45deg);
}
.ed-accordion__panel {
  overflow: hidden;
}
.ed-accordion__panel .ed-content > *:last-child {
  margin-bottom: 0;
}
.ed-accordion__panel .ed-content p {
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.ed-accordion__panel .ed-content a {
  text-decoration: underline;
}

/* horizontal rails (PDP recommendations, checkout gifts) */
.ed-rail__track,
.ed-gift-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ed-rail__track::-webkit-scrollbar,
.ed-gift-track::-webkit-scrollbar {
  display: none;
}
.ed-rail .swiper-button-disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* PDP mobile sticky CTA (reference shows the ATC pinned at the bottom on phones) */
@media (max-width: 1023px) {
  body.ed-pdp {
    padding-bottom: 68px;
  }
  .ed-pdp .ed-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
  }
  .ed-pdp .ed-cta__error {
    margin: 0 0 6px;
    text-align: center;
  }
}

/* =========================================================== Cart drawer */
#ed-cart-drawer[hidden] {
  display: none;
}
.ed-cart-drawer {
  position: relative;
  z-index: 80;
}
.ed-drawer__overlay {
  background: transparent;
  cursor: pointer;
}
/* Let clicks outside the panel reach the transparent overlay (reference behaviour). */
#ed-cart-drawer [data-ed-drawer-dialog] > div:last-child {
  pointer-events: none;
}
#ed-cart-drawer [data-ed-drawer-panel] {
  pointer-events: auto;
}
#ed-cart-drawer [data-ed-drawer-panel] {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
#ed-cart-drawer.is-open [data-ed-drawer-panel] {
  transform: translateX(0);
}
.ed-cart-drawer .sticky {
  z-index: 5;
}
.ed-cart-empty {
  padding-bottom: 2rem;
}

/* ==================================================== Added to cart card */
#ed-added-to-cart[hidden] {
  display: none;
}
.ed-added-to-cart {
  position: fixed;
  z-index: 95;
  right: 16px;
  bottom: 16px;
  width: min(430px, calc(100vw - 32px));
  animation: ed-added-in 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes ed-added-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ed-added-to-cart__panel {
  border: 1px solid var(--color-c-light-gray, #f2f2f2);
}
@media (max-width: 767px) {
  .ed-added-to-cart {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }
}

/* ============================================================== Checkout */
body.ed-checkout-mode > header,
body.ed-checkout-mode > footer,
body.ed-checkout-mode > *:has(> header),
body.ed-checkout-mode > *:has(> footer) {
  display: none !important;
}
body.ed-checkout-mode {
  background: #fff;
}
body.ed-checkout-mode #ed-main {
  min-height: 100vh;
}
.ed-checkout-page {
  background: #fff;
}

/* delivery fields */
.ed-form-card {
  border: 1px solid var(--color-c-light-gray, #f2f2f2);
  border-radius: 0.375rem;
  background: #fff;
  padding: 1rem;
  margin-top: 0.5rem;
}
.ed-form-card__country {
  margin-bottom: 1rem;
}
.ed-select {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: #fff;
  padding: 0.75rem;
  font-size: 0.875rem;
  border-radius: 0;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
  padding-right: 2.2rem;
  outline: none;
  cursor: pointer;
}
.ed-select:focus {
  border-color: #000;
}
.ed-checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}
.ed-checkout-fields .form-row {
  margin: 0;
  padding: 0;
  width: 100%;
  float: none;
  display: block;
}
.ed-checkout-fields .form-row-wide {
  grid-column: 1 / -1;
}
.ed-checkout-fields label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.ed-checkout-fields label .required {
  color: var(--color-c-error, #d20100);
  text-decoration: none;
}
.ed-checkout-fields .input-text,
.ed-checkout-fields input[type="text"],
.ed-checkout-fields input[type="email"],
.ed-checkout-fields input[type="tel"] {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 0;
  background: #fff;
  padding: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.2;
  outline: none;
  appearance: none;
}
.ed-checkout-fields input:focus {
  border-color: #000;
}
.ed-checkout-fields .woocommerce-error,
.ed-checkout-fields .ed-field-error {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: var(--color-c-error, #d20100);
}
.woocommerce-validated .ed-select {
  border-color: #000;
}

/* payment + terms */
.ed-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ed-payment-method {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  background: #fff;
}
.ed-payment-method:has(.ed-radio:checked) {
  border-color: #000;
}
.ed-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #000;
  display: inline-block;
  position: relative;
  flex: none;
  margin: 0;
  background: #fff;
  cursor: pointer;
}
.ed-radio:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #000;
}
.ed-pay-icon {
  width: 40px;
  height: 26px;
  flex: none;
  border-radius: 3px;
  overflow: hidden;
}
.ed-payment-terms .form-row {
  margin: 0;
  padding: 0;
  float: none;
  width: 100%;
}
.ed-payment-terms .form-row label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.75rem;
  line-height: 1.35;
  cursor: pointer;
}
.ed-payment-terms input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #000;
  border-radius: 2px;
  flex: none;
  margin: 1px 0 0;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.ed-payment-terms input[type="checkbox"]:checked {
  background: #000;
}
.ed-payment-terms input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ed-payment-terms .required {
  display: none;
}
.ed-payment-terms .woocommerce-error {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  color: var(--color-c-error, #d20100);
}
.ed-checkout-error {
  color: var(--color-c-error, #d20100);
}

/* Woo notices (checkout errors / success) */
.ed-checkout-page .woocommerce-notices-wrapper:empty {
  display: none;
}
.ed-checkout-page .woocommerce-error,
.ed-checkout-page .woocommerce-info,
.ed-checkout-page .woocommerce-message {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-c-error, #d20100);
  font-size: 0.8125rem;
  color: var(--color-c-error, #d20100);
  background: #fff;
}
.ed-checkout-page .woocommerce-message {
  border-color: var(--color-c-green, #64ba5e);
  color: #2c6b28;
}
.ed-checkout-page ul.woocommerce-error li,
.ed-checkout-page ul.woocommerce-info li {
  margin: 0 0 0.25rem;
  padding: 0;
}

/* summary rows: keep the right column visually pinned like the reference */
@media (min-width: 1024px) {
  .ed-checkout-main > [data-ed-checkout-summary-wrap] {
    background: #fff;
  }
}

/* ---------------------------------------------------------- cart page */
body.ed-cart-mode .ed-cart-page {
  width: 100%;
}

/* ---------------------------------------------------------- thank you */
.ed-thankyou .ed-conversion-slot {
  opacity: 0.001;
  height: 1px;
  overflow: hidden;
}
.ed-thankyou .ed-payment-icons {
  max-width: 480px;
}
.ed-thankyou address {
  border: 1px solid var(--color-c-light-gray, #f2f2f2);
  border-radius: 0.375rem;
  background: #fff;
  padding: 1rem;
}

/* ------------------------------------------------------------ no-JS safety */
.ed-added-to-cart,
.ed-cart-drawer {
  -webkit-overflow-scrolling: touch;
}

/* -------------------------------------------------- utility shims (missing in reference.css build) */
.scroll-smooth { scroll-behavior: smooth; }
.text-c-green { color: var(--color-c-green, #64ba5e); }
.opacity-80 { opacity: 0.8; }
.not-italic { font-style: normal; }
.leading-4 { line-height: 1rem; }
.max-w-120 { max-width: 30rem; }
.gap-x-2\.5 { column-gap: 0.625rem; }
.min-w-4 { min-width: 1rem; }
.tracking-normal { letter-spacing: normal; }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ed-thankyou address {
  font-style: normal;
}
.ed-rail__track,
.ed-gift-track {
  scroll-behavior: smooth;
}
.ed-pay-icon {
  width: 42px;
  height: 26px;
  flex: none;
}
#ed-added-to-cart .ed-price,
#ed-added-to-cart .ed-price__sale {
  font-size: 0.8125rem;
}

/* Checkout two-column split: reference 861 | 579 at 1440 (Tailwind arbitrary class not in the
   precompiled reference build, so define it here). */
@media (min-width: 1280px) {
  .ed-checkout-main > [data-ed-checkout-summary-wrap] { width: 579px; }
}

/* Checkout charity note (client copy; presentation only). */
.ed-charity { max-width: 46rem; }

/* =========================================================================
 * Checkout — visual polish (match reference typography / calmer controls)
 * ========================================================================= */
.ed-checkout-page {
  background: #f7f7f5;
}
.ed-checkout-page .ed-checkout-main > div:last-child {
  background: #f7f7f5;
}
.ed-checkout-page .ed-checkout-main > [data-ed-checkout-summary-wrap] {
  background: #fff;
}

/* headings: reference checkout uses the sans face, not the serif display face */
.ed-checkout-page .ed-checkout-main h2,
.ed-checkout-page [data-ed-checkout-summary] h1,
.ed-checkout-page [data-ed-checkout-summary] h2 {
  font-family: var(--font-sans, "Moderat", ui-sans-serif, system-ui, sans-serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

/* section cards */
.ed-checkout-page .ed-form-card,
.ed-checkout-page [data-ed-delivery-options] .rounded-md,
.ed-checkout-page .min-h-96 > .rounded-md {
  border: 1px solid rgb(0 0 0 / 8%);
  border-radius: 12px;
  background: #fff;
  padding: 1.25rem 1.5rem;
  box-shadow: none;
}

/* country select: boxed control like the reference */
.ed-checkout-page .ed-select {
  height: 48px;
  border: 1px solid rgb(0 0 0 / 18%);
  border-radius: 8px;
  padding: 0 2.4rem 0 14px;
  font-size: 0.9375rem;
  background-color: #fff;
  transition: border-color 150ms ease;
}
.ed-checkout-page .ed-select:focus { border-color: #171a17; }

/* text fields: underline style (site-wide form language), calmer than boxes */
.ed-checkout-page .ed-checkout-fields { gap: 0.35rem 1.5rem; }
.ed-checkout-page .ed-checkout-fields .form-row { margin-bottom: 0.35rem; }
.ed-checkout-page .ed-checkout-fields label {
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  margin-bottom: 0.1rem;
  color: rgb(0 0 0 / 62%);
}
.ed-checkout-page .ed-checkout-fields .input-text,
.ed-checkout-page .ed-checkout-fields input[type="text"],
.ed-checkout-page .ed-checkout-fields input[type="email"],
.ed-checkout-page .ed-checkout-fields input[type="tel"] {
  border: 0;
  border-bottom: 1px solid rgb(0 0 0 / 22%);
  border-radius: 0;
  background: transparent;
  padding: 0.55rem 0 0.65rem;
  font-size: 0.9375rem;
  transition: border-color 150ms ease;
}
.ed-checkout-page .ed-checkout-fields input:focus {
  border-bottom-color: #171a17;
  outline: none;
}
.ed-checkout-page .ed-checkout-fields input::placeholder { color: rgb(0 0 0 / 32%); }

/* delivery option rows */
.ed-checkout-page [data-ed-delivery-options] .rounded-md { padding: 0; }
.ed-checkout-page [data-ed-delivery-options] label { padding: 0.9rem 1.4rem; }

/* payment method */
.ed-checkout-page .ed-payment-method {
  border: 1px solid rgb(0 0 0 / 14%);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.ed-checkout-page .ed-payment-method:has(.ed-radio:checked) {
  border-color: #171a17;
  background: #faf9f7;
}

/* payment icons: smaller, quieter row */
.ed-checkout-page .ed-payment-icons { gap: 6px; margin-top: 16px; }
.ed-checkout-page .ed-payment-icons .ed-pay-icon {
  width: 30px;
  height: 19px;
  border-radius: 2px;
  opacity: 0.9;
}

/* demo note + charity panel */
.ed-checkout-page .ed-payment-demo-note,
.ed-checkout-page .min-h-96 > .rounded-md > p {
  margin-top: 14px;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: rgb(0 0 0 / 52%);
}
.ed-checkout-page .ed-charity {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgb(0 0 0 / 6%);
  border-radius: 12px;
  background: #f6f2ec;
}
.ed-checkout-page .ed-charity > p:first-child {
  margin-bottom: 6px;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: rgb(0 0 0 / 55%);
}
.ed-checkout-page .ed-charity > p:last-child {
  font-size: 0.8125rem;
  line-height: 1.55;
  opacity: 1;
  color: #171a17;
}

/* terms */
.ed-checkout-page .ed-payment-terms { gap: 0.85rem; margin-top: 1.5rem; }
.ed-checkout-page .ed-payment-terms .form-row label {
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgb(0 0 0 / 72%);
  gap: 0.65rem;
}
.ed-checkout-page .ed-payment-terms .form-row label a {
  color: #171a17;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* CTA: proper full-width pill */
.ed-checkout-page #place_order {
  min-height: 52px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
  transition: background-color 200ms ease, transform 120ms ease;
}
.ed-checkout-page #place_order:active { transform: scale(0.995); }

/* summary column */
.ed-checkout-page [data-ed-checkout-summary-wrap] {
  border-left: 1px solid rgb(0 0 0 / 6%);
}
.ed-checkout-page [data-ed-checkout-summary] { padding: 0 2rem 2.5rem; }
.ed-checkout-page [data-ed-discount-toggle] {
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: #171a17;
}
.ed-checkout-page [data-ed-totals] { font-size: 0.8125rem; }
.ed-checkout-page [data-ed-totals] dt { color: rgb(0 0 0 / 62%); }
.ed-checkout-page [data-ed-total-grand] { font-size: 0.9375rem; font-weight: 700; }

@media (max-width: 1023.98px) {
  .ed-checkout-page [data-ed-checkout-summary-wrap] { border-left: 0; border-bottom: 1px solid rgb(0 0 0 / 6%); }
  .ed-checkout-page [data-ed-checkout-summary] { padding: 1.5rem 1rem 2rem; }
  .ed-checkout-page .ed-checkout-main > [data-ed-checkout-summary-wrap] { order: -1; }
}

/* checkout polish follow-ups */
.ed-checkout-page .ed-checkout-main > [data-ed-checkout-summary-wrap] {
  align-self: stretch;
  height: auto;
  min-height: calc(100vh - 50px);
}
.ed-checkout-page .ed-payment-icons .ed-pay-icon {
  width: 34px;
  height: 22px;
}
.ed-checkout-page [data-ed-delivery-options] > div,
.ed-checkout-page [data-ed-delivery-options] .rounded-md {
  border: 1px solid rgb(0 0 0 / 8%);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}
.ed-checkout-page [data-ed-delivery-options] .rounded-md { padding: 0.9rem 0; }
.ed-checkout-page [data-ed-delivery-options] .rounded-md > * { padding-left: 0; }
@media (max-width: 1023.98px) {
  .ed-checkout-page .ed-checkout-main > [data-ed-checkout-summary-wrap] { min-height: 0; }
}

/* terms labels: block + absolute checkbox so inline links wrap naturally */
.ed-checkout-page .ed-payment-terms .form-row label {
  display: block;
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgb(0 0 0 / 72%);
}
.ed-checkout-page .ed-payment-terms input[type="checkbox"] {
  position: absolute;
  top: 2px;
  left: 0;
}
.ed-checkout-page .ed-payment-terms .form-row { margin-bottom: 0.15rem; }

@media (max-width: 639px) {
  .ed-checkout-page .ed-checkout-fields { grid-template-columns: 1fr; gap: 0.35rem; }
  .ed-checkout-page .ed-checkout-fields .form-row-wide { grid-column: auto; }
  .ed-checkout-page .ed-checkout-main > div:last-child { padding-top: 0; }
  .ed-checkout-page .ed-checkout-main { gap: 0; }
}

/* "Added to cart" card: larger, friendlier CTAs (reference button scale) */
.ed-added-to-cart {
  width: min(460px, calc(100vw - 32px));
}
.ed-added-to-cart__panel {
  padding: 1.25rem 1.25rem 1.15rem;
}
#ed-added-to-cart [data-ed-added-card] > div > .flex.items-center.justify-between > div {
  gap: 0.6rem;
}
#ed-added-to-cart a[href*="/checkout"],
#ed-added-to-cart [data-ed-open-cart] {
  min-height: 46px;
  padding: 0 1.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}
#ed-added-to-cart a[href*="/checkout"] { flex: 1 1 auto; }
@media (max-width: 639px) {
  #ed-added-to-cart [data-ed-added-card] > div > .flex.items-center.justify-between {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  #ed-added-to-cart [data-ed-added-card] > div > .flex.items-center.justify-between > div {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  #ed-added-to-cart a[href*="/checkout"],
  #ed-added-to-cart [data-ed-open-cart] {
    width: 100%;
    min-height: 48px;
  }
}

/* payment gateway rows (real provider): icon + title + short description */
.ed-checkout-page .ed-payment-method { gap: 0.85rem; }
.ed-checkout-page .ed-payment-method__body { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.ed-checkout-page .ed-payment-method__icon { display: inline-flex; flex: none; }
.ed-checkout-page .ed-payment-method__icon img {
  max-height: 26px;
  width: auto;
  border-radius: 3px;
}
.ed-checkout-page .ed-payment-method__text { display: flex; flex-direction: column; gap: 0.15rem; }
.ed-checkout-page .ed-payment-method__label { font-size: 0.875rem; font-weight: 600; }
.ed-checkout-page .ed-payment-method__desc { font-size: 0.6875rem; line-height: 1.45; color: rgb(0 0 0 / 55%); }

/* delivery options: calm card, thin threshold hint, readable rate rows */
.ed-checkout-page .ed-shipping-card {
  border: 1px solid rgb(0 0 0 / 8%);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.ed-checkout-page .ed-shipping-hint {
  padding: 13px 18px 11px;
  border-bottom: 1px solid rgb(0 0 0 / 6%);
  background: #fbfaf8;
}
.ed-checkout-page .ed-shipping-hint__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.6875rem;
  color: rgb(0 0 0 / 66%);
}
.ed-checkout-page .ed-shipping-hint__threshold { flex: none; font-weight: 700; color: #171a17; letter-spacing: 0.02em; }
.ed-checkout-page .ed-shipping-hint__bar {
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgb(0 0 0 / 8%);
  overflow: hidden;
}
.ed-checkout-page .ed-shipping-hint__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #171a17;
  transition: width 250ms ease;
}
.ed-checkout-page .ed-shipping-rates { display: flex; flex-direction: column; }
.ed-checkout-page .ed-shipping-rate {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
}
.ed-checkout-page .ed-shipping-rate + .ed-shipping-rate { border-top: 1px solid rgb(0 0 0 / 6%); }
.ed-checkout-page .ed-shipping-rate:hover { background: #fbfaf8; }
.ed-checkout-page .ed-shipping-rate__text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.ed-checkout-page .ed-shipping-rate__label { font-size: 0.875rem; font-weight: 500; }
.ed-checkout-page .ed-shipping-rate__meta { font-size: 0.6875rem; color: rgb(0 0 0 / 52%); }
.ed-checkout-page .ed-shipping-rate__price { flex: none; font-size: 0.8125rem; font-weight: 700; }
.ed-checkout-page .ed-shipping-card__note {
  padding: 11px 18px 13px;
  border-top: 1px solid rgb(0 0 0 / 6%);
  background: #fbfaf8;
  font-size: 0.625rem;
  color: rgb(0 0 0 / 45%);
  letter-spacing: 0.01em;
}
/* neutralise the older generic padding overrides for this block */
.ed-checkout-page [data-ed-delivery-options] .rounded-md { padding: 0; border: 0; }

/* payment card: reference-style large method tiles + compact gateway selector */
.ed-checkout-page .ed-payment-card {
  border: 1px solid rgb(0 0 0 / 8%);
  border-radius: 12px;
  background: #fff;
  padding: 22px 24px 24px;
}
.ed-checkout-page .ed-payment-card__title {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.ed-checkout-page .ed-payment-grid .ed-payment-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.ed-checkout-page .ed-payment-grid .ed-pay-icon {
  width: 100%;
  height: 54px;
  padding: 13px 10px;
  border: 1px solid rgb(0 0 0 / 12%);
  border-radius: 6px;
  background: #fff;
  opacity: 1;
  transition: border-color 150ms ease;
}
.ed-checkout-page .ed-payment-grid .ed-pay-icon:hover { border-color: rgb(0 0 0 / 32%); }
.ed-checkout-page .ed-payment-gateways {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgb(0 0 0 / 8%);
}
.ed-checkout-page .ed-payment-card__note {
  margin: 12px 0 0;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: rgb(0 0 0 / 52%);
}
@media (max-width: 639px) {
  .ed-checkout-page .ed-payment-card { padding: 18px 16px 20px; }
  .ed-checkout-page .ed-payment-grid .ed-payment-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ed-checkout-page .ed-payment-grid .ed-pay-icon { height: 46px; padding: 11px 8px; }
}

/* grid container is .ed-payment-grid itself (icons render as bare SVGs) */
.ed-checkout-page .ed-payment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
@media (max-width: 639px) {
  .ed-checkout-page .ed-payment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
}

/* Empty cart: centred, intentional state instead of a bare left-aligned paragraph */
.ed-cart-empty {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 0 72px;
  text-align: center;
}
.ed-cart-empty__icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e8c9c0;
  color: #171a17;
}
.ed-cart-empty__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ed-cart-empty__links a { text-decoration: underline; text-underline-offset: 3px; }
.ed-cart-empty__links a:hover { text-decoration: none; }
@media (max-width: 639px) {
  .ed-cart-empty { padding: 32px 0 48px; }
  .ed-cart-empty h1 { font-size: 26px; }
}

/* Empty cart: explicit sizes (arbitrary Tailwind values are not in the reference build) */
.ed-cart-empty h1 {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 30px;
  line-height: 1.1;
}
.ed-cart-empty > p { font-size: 14px; }
.ed-cart-empty > a {
  min-height: 46px;
  padding: 0 32px;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.ed-cart-empty .ed-cart-empty__links { margin-top: 26px; }
@media (max-width: 639px) {
  .ed-cart-empty h1 { font-size: 26px; }
}

/* client-supplied PNG payment logos inside the tiles */
.ed-checkout-page .ed-payment-grid .ed-pay-icon {
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 12%);
  border-radius: 6px;
  padding: 12px 16px;
  width: 100%;
  height: 54px;
}
@media (max-width: 639px) {
  .ed-checkout-page .ed-payment-grid .ed-pay-icon { height: 46px; padding: 10px 10px; }
}
