/*** all Mobile Screen (iphone 6,7,8) ***/
/*** mobile Landscape Size ***/
/*** medium devices (tablets, less than 992px) ***/
/*** iPad in landscape ***/
/**** smaller than desktop 1200 (devices and browsers) ***/
/*** laptop with MDPI (medium density per inch) resolution ***/
/*** laptop with HiDPI (High Dots Per Inch) resolution ***/
/*** WSXGA (Wide Super Extended Graphics Array) resolution ***/
/*** all Mobile Screen (iphone 6,7,8) ***/
/*** mobile Landscape Size ***/
/*** medium devices (tablets, less than 992px) ***/
/*** iPad in landscape ***/
/**** smaller than desktop 1200 (devices and browsers) ***/
/*** laptop with MDPI (medium density per inch) resolution ***/
/*** laptop with HiDPI (High Dots Per Inch) resolution ***/
/*** WSXGA (Wide Super Extended Graphics Array) resolution ***/
/* ---------------------------------------------------------------------------
   The listing popup (#productDetailModal in footer.php).
   Change list item 35 (the homepage v50 prototype): ONE calm column on every
   screen -- Share (top left) and one X (top right) in a slim header row; the
   large square photo; the price on its own line; the caption; the contact
   buttons; a small grey "Is this item sold?" link; More from this seller.
   A centred card on a desktop, a full-height sheet on a phone. Nothing is
   pinned: the buttons sit right under the caption, where the prototype has
   them. No title line (the title is screen-reader only), no helper note, no
   bottom Close button.
   The pieces the plugin draws (contact buttons, gallery arrows and dots,
   skeleton, the sold link, More from this seller) are styled in the plugin's
   assets/css/listing-popup.css; this file is the frame.
   Palette: brand green #2E9E3D (#237A30 for text on white), ink #161B17.
   --------------------------------------------------------------------------- */
.product-detail-modal {
  --ys-pm-ink: #161B17;
  --ys-pm-muted: #5B6660;
  --ys-pm-line: #E6EAE7;
  --ys-pm-soft: #F3F5F4;
  --ys-pm-green: #2E9E3D;
  --ys-pm-green-text: #237A30;
  --ys-pm-radius: 20px;
}
.product-detail-modal .modal-dialog {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}
.product-detail-modal .product-modal-content {
  display: flex;
  flex-direction: column;
  /* A flex item of .modal-dialog-centered: without this the seller row's
     width could stretch the whole card past a phone's screen. */
  min-width: 0;
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: var(--ys-pm-radius);
  background: #fff;
  box-shadow: 0 24px 48px -12px rgba(22, 27, 23, 0.28);
}

/* Header row: Share on the left, the one X on the right, both 44px tall. */
.product-detail-modal .product-modal-head {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  min-height: 56px;
  padding: 6px 10px;
}
.product-detail-modal .product-modal-head .ys-popup-share,
.product-detail-modal .product-modal-head .modal-close-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.product-detail-modal .product-modal-head .ys-popup-share {
  gap: 6px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ys-pm-green-text);
  font-size: 14px;
  font-weight: 600;
}
.product-detail-modal .product-modal-head .modal-close-btn {
  width: 44px;
  margin-left: auto;
  padding: 0;
  border-radius: 50%;
  color: var(--ys-pm-ink);
}
.product-detail-modal .product-modal-head .ys-popup-share[hidden] {
  display: none;
}
.product-detail-modal .product-modal-head .ys-popup-share:hover {
  background: #EEF7EF;
}
.product-detail-modal .product-modal-head .modal-close-btn:hover {
  background: var(--ys-pm-soft);
}
.product-detail-modal .product-modal-head .ys-popup-share:focus-visible,
.product-detail-modal .product-modal-head .modal-close-btn:focus-visible {
  outline: 2px solid var(--ys-pm-green);
  outline-offset: 1px;
}

.product-detail-modal .product-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.product-detail-modal .product-modal-wrapper {
  display: block;
  padding: 0 20px 24px;
}

/* The photo: a fixed square box, so nothing jumps while it loads. */
.product-detail-modal .product-modal-image {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ys-pm-soft);
}
.product-detail-modal .product-modal-image img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.product-detail-modal .product-modal-details {
  min-width: 0;
  margin: 0;
  padding: 0;
}
/* Screen-reader only (footer.php adds .visually-hidden); kept tidy in case
   an older footer.php still shows it. */
.product-detail-modal .product-modal-title {
  margin: 0 0 8px;
  color: var(--ys-pm-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.product-detail-modal .product-modal-title:focus {
  outline: none;
}
/* The price, big and on its own line (Section 8, item 4). */
.product-detail-modal .product-modal-details .product-modal-price {
  margin: 0 0 8px;
  color: var(--ys-pm-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}
.product-detail-modal .product-modal-details .product-modal-price:empty {
  display: none;
}
/* The caption: one paragraph, whole, no rule above it (item 4). */
.product-detail-modal .product-modal-details .product-modal-description {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ys-pm-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.product-detail-modal .product-modal-details .product-modal-description p {
  margin: 0 0 10px;
}
.product-detail-modal .product-modal-details .product-modal-description p:last-child {
  margin-bottom: 0;
}
/* An older footer.php's "Use the posted contact information..." line is gone
   from the current one (item 35); hidden here too, divider and all. */
.product-detail-modal .product-modal-details .product-modal-note {
  display: none;
}

/* Phone: a full-height sheet that slides up. */
@media (max-width: 767px) {
  .product-detail-modal .modal-dialog {
    max-width: none;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    align-items: flex-end;
  }
  .product-detail-modal.fade .modal-dialog {
    transform: translateY(32px);
    transition: transform 0.25s ease-out;
  }
  .product-detail-modal.show .modal-dialog {
    transform: none;
  }
  .product-detail-modal .product-modal-content {
    height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }
  @supports (height: 100dvh) {
    .product-detail-modal .product-modal-content {
      height: 100dvh;
    }
  }
  .product-detail-modal .product-modal-head {
    min-height: 52px;
    padding: 4px 6px;
  }
  .product-detail-modal .product-modal-wrapper {
    padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .product-detail-modal .product-modal-details .product-modal-price {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-detail-modal.fade .modal-dialog {
    transition: none;
  }
}
/*# sourceMappingURL=modal.css.map */
/* ---------------------------------------------------------------------------
   "Coming Soon" dialog for switched-off pills (v122 Section 7Q, Appendix D,
   D6 #42). Driven by js/coming-soon.js; markup in template-parts/pill-bar.php.
   Matches the prototype's ComingSoonModal (yad-homepage-v50.jsx).
   --------------------------------------------------------------------------- */
.ys-soon-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  background: rgba(15, 20, 17, 0.55);
}
.ys-soon-backdrop[hidden] {
  display: none;
}
html.ys-soon-open,
html.ys-soon-open body {
  overflow: hidden;
}
.ys-soon {
  width: 100%;
  max-width: 384px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.ys-soon:focus {
  outline: none;
}
.ys-soon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #F1FBF2;
  color: #2E9E3D;
}
.ys-soon-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #161B17;
}
.ys-soon-text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.45;
  color: #6b6b70;
}
.ys-soon-close {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  /* Darker than the brand green so white text passes 4.5:1. */
  background: #237A30;
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.ys-soon-close:hover {
  background: #1C6427;
}
.ys-soon-close:focus-visible {
  outline: 2px solid #161B17;
  outline-offset: 2px;
}
@media (max-width: 579px) {
  .ys-soon-backdrop {
    padding: 0 16px;
  }
  .ys-soon {
    padding: 20px 16px;
  }
}
