/* WPC Estimated Delivery Date */
body.woocommerce .wpced_date_wrapper,
body.woocommerce .wpced-date-wrap,
body.woocommerce .wpc-estimated-delivery-date-countdown {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 16px 0;
  padding: 14px 17px;
  border: 1px dashed #d7b9a7;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffaf5, #f8eff0);
  color: #65585a;
  font: 500 13px/1.6 Jost, sans-serif;
  overflow-wrap: anywhere;
}
body.woocommerce .wpced_date_wrapper strong,
body.woocommerce .wpced-date-wrap strong,
body.woocommerce .wpc-estimated-delivery-date-countdown strong {
  color: #536147;
  font-weight: 600;
}
body.woocommerce .wpced_date_wrapper .wpced-date-wrap,
body.woocommerce .wpced-date-wrap .wpced-date-wrap {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* WPC Smart Quick View trigger */
body.woocommerce .woosq-btn,
body.woocommerce button.woosq-btn,
body.woocommerce a.woosq-btn {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 42px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 17px;
  border: 1px solid #a65a6b;
  border-radius: 999px;
  background: #fffaf6;
  color: #8f4e60;
  font: 600 10px/1.25 Jost, sans-serif;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  box-shadow: 2px 3px 0 #e5c9c3;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
body.woocommerce .woosq-btn:hover,
body.woocommerce .woosq-btn:focus-visible {
  transform: translateY(-2px);
  border-color: #a65a6b;
  background: #b76e7d;
  color: #fff;
  box-shadow: 2px 5px 0 #dfc0b8;
}

/* WPC Smart Quick View window */
body .mfp-bg.mfp-woosq {
  background: #45383f;
  opacity: .68;
}
body .mfp-wrap.mfp-woosq .mfp-container {
  box-sizing: border-box;
  padding: 24px;
}
body .mfp-woosq .mfp-content {
  width: min(100%, 980px);
  max-width: 980px;
  margin: 0 auto;
}
body .mfp-woosq #woosq-popup,
body .mfp-woosq .woosq-popup,
body .mfp-woosq .woosq-product {
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #eadbd0;
  border-radius: 26px;
  background: #fffaf5;
  color: #5d5355;
  box-shadow: 0 24px 80px #241c2052;
}
body .mfp-woosq .woosq-product > .product {
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: inherit;
  background: #fffaf5;
}
body .mfp-woosq .woosq-product > .product .summary .summary-content,
body .mfp-woosq .woosq-product > .product .summary {
  box-sizing: border-box;
  color: #5d5355;
}
body .mfp-woosq .woosq-product .product_title {
  color: #536147;
  font: 500 clamp(26px, 3vw, 38px)/1.15 'Playfair Display', Georgia, serif;
}
body .mfp-woosq .woosq-product .price {
  color: #a65a6b;
  font: 600 19px/1.4 Jost, sans-serif;
}
body .mfp-woosq .woosq-product .woocommerce-product-details__short-description {
  color: #655b5c;
  font: 400 16px/1.7 'Cormorant Garamond', Georgia, serif;
}
body .mfp-woosq .woosq-product .mfp-close,
body .mfp-woosq .mfp-close {
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid #e5d4c8;
  border-radius: 50%;
  background: #fffaf5;
  color: #6f5c5f;
  opacity: 1;
  line-height: 40px;
  text-align: center;
}
body .mfp-woosq .woosq-product form.cart .single_add_to_cart_button {
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #a65a6b;
  border-radius: 999px;
  background: #b76e7d;
  color: #fff;
  font: 600 10px/1.3 Jost, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  body .mfp-wrap.mfp-woosq .mfp-container { padding: 12px; }
  body .mfp-woosq .mfp-content { width: 100%; }
  body .mfp-woosq #woosq-popup,
  body .mfp-woosq .woosq-popup,
  body .mfp-woosq .woosq-product { border-radius: 20px; }
  body .mfp-woosq .woosq-product > .product { max-height: calc(100dvh - 24px); overflow-y: auto; }
  body .mfp-woosq .woosq-product > .product .summary .summary-content,
  body .mfp-woosq .woosq-product > .product .summary { padding: 16px; }
  body .woocommerce .woosq-btn { min-height: 40px; padding: 9px 13px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce .woosq-btn { transition: none; }
}

/* Actual front-end wrapper emitted by WPC Estimated Delivery Date. */
.woocommerce .wpced,
.woocommerce-page .wpced {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 14px 0 16px;
}
.woocommerce .wpced .wpced-inner,
.woocommerce-page .wpced .wpced-inner {
  box-sizing: border-box;
  display: flex;
  min-height: 46px;
  align-items: center;
  width: 100%;
  padding: 11px 14px;
  border: 1px dashed #d5b59f;
  border-radius: 15px;
  background: linear-gradient(120deg, #fffaf4, #f8edef);
  color: #5d5657;
  font: 500 13px/1.55 Jost, sans-serif;
  overflow-wrap: anywhere;
  box-shadow: inset 0 0 0 3px #fff9f2;
}
.woocommerce .wpced .wpced-inner::before,
.woocommerce-page .wpced .wpced-inner::before {
  content: '';
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a65a6b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M8 14h2M14 14h2M8 17h2'/%3E%3C/svg%3E");
}

/* Let the Quick View use a roomy editorial layout instead of WPC's narrow default. */
body .mfp-wrap.mfp-woosq .mfp-container { padding: 20px !important; }
body .mfp-woosq .mfp-content { width: min(1180px, calc(100vw - 40px)) !important; max-width: 1180px !important; }
body .mfp-woosq #woosq-popup.woosq-popup {
  width: min(1180px, calc(100vw - 40px)) !important;
  min-width: 0 !important;
  max-width: 1180px !important;
  height: min(760px, calc(100dvh - 40px)) !important;
  min-height: min(560px, calc(100dvh - 40px)) !important;
  max-height: calc(100dvh - 40px) !important;
}
body .mfp-woosq #woosq-popup .woosq-product,
body .mfp-woosq #woosq-popup .woosq-product > .product {
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
}
body .mfp-woosq #woosq-popup .woosq-product > .product {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr) !important;
  align-items: stretch;
  overflow: hidden !important;
}
body .mfp-woosq #woosq-popup .woosq-product > .product > .images {
  float: none !important;
  width: auto !important;
  min-width: 0;
  height: 100% !important;
  max-height: 100% !important;
  padding: 28px;
  background: radial-gradient(ellipse at 50% 18%, #f4e2dd, transparent 48%), #f8f0e9;
}
body .mfp-woosq #woosq-popup .woosq-product > .product > .summary {
  float: none !important;
  box-sizing: border-box;
  width: auto !important;
  min-width: 0;
  max-height: 100% !important;
  margin: 0 !important;
  padding: clamp(24px, 4vw, 48px) !important;
  overflow: auto !important;
  background: #fffaf5;
}
body .mfp-woosq #woosq-popup .woosq-product .woocommerce-product-gallery__image img,
body .mfp-woosq #woosq-popup .woosq-product .images > img {
  width: 100%;
  max-height: min(65vh, 620px);
  object-fit: contain;
  border-radius: 15px;
}
@media (min-width: 761px) {
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails {
    box-sizing: border-box;
    grid-column: 1;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 28px;
    background: radial-gradient(ellipse at 50% 18%, #f4e2dd, transparent 48%), #f8f0e9;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .slick-list,
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .slick-track,
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .slick-slide,
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .slick-slide > div {
    height: 100% !important;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .summary {
    height: 100% !important;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .summary .summary-content {
    box-sizing: border-box;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
/* Tablet Quick View: give the product artwork room and keep the copy compact. */
@media (min-width: 761px) and (max-width: 1100px) {
  body .mfp-wrap.mfp-woosq .mfp-container { padding: 16px !important; }
  body .mfp-woosq .mfp-content,
  body .mfp-woosq #woosq-popup.woosq-popup {
    width: min(100%, calc(100vw - 32px)) !important;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product {
    grid-template-columns: minmax(0, 1.25fr) minmax(275px, .75fr) !important;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails,
  body .mfp-woosq #woosq-popup .woosq-product > .product > .images {
    box-sizing: border-box;
    padding: 18px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images .slick-list,
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images .slick-track,
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images .slick-slide,
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images .slick-slide > div {
    height: 100% !important;
    min-height: 0 !important;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images img,
  body .mfp-woosq #woosq-popup .woosq-product .woocommerce-product-gallery__image img,
  body .mfp-woosq #woosq-popup .woosq-product .images > img {
    width: 100% !important;
    max-height: min(72vh, 620px);
    object-fit: contain;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .summary {
    padding: 22px !important;
  }
  body .mfp-woosq #woosq-popup .woosq-product .product_title {
    font-size: clamp(23px, 2.6vw, 30px);
    line-height: 1.12;
  }
  body .mfp-woosq #woosq-popup .woosq-product .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.5;
  }
}
@media (max-width: 760px) {
  body .mfp-wrap.mfp-woosq {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
  body .mfp-wrap.mfp-woosq .mfp-container {
    box-sizing: border-box;
    height: auto !important;
    min-height: 100%;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    vertical-align: top;
  }
  body .mfp-wrap.mfp-woosq .mfp-container { padding: 12px !important; }
  body .mfp-woosq .mfp-content,
  body .mfp-woosq #woosq-popup.woosq-popup { width: calc(100vw - 24px) !important; }
  body .mfp-woosq #woosq-popup.woosq-popup {
    height: min(820px, calc(100dvh - 24px)) !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
  body .mfp-woosq #woosq-popup .woosq-product,
  body .mfp-woosq #woosq-popup .woosq-product > .product {
    box-sizing: border-box;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    touch-action: pan-y;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product {
    display: flex !important;
    flex-direction: column;
  }
  body .mfp-woosq #woosq-popup .mfp-close { position: fixed !important; top: 14px !important; right: 14px !important; z-index: 1000001; }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .images {
    flex: 0 0 auto;
    height: clamp(230px, 40vh, 340px) !important;
    padding: 14px;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails {
    box-sizing: border-box;
    display: block !important;
    flex: 0 0 auto;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    min-height: 230px;
    height: clamp(230px, 40vh, 340px) !important;
    max-height: 42vh !important;
    margin: 0 !important;
    padding: 14px;
    overflow: hidden;
    order: 1;
    background: radial-gradient(ellipse at 50% 18%, #f4e2dd, transparent 48%), #f8f0e9;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images .slick-list,
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images .slick-track,
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images .slick-slide,
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images .slick-slide > div {
    height: 100% !important;
    min-height: 0 !important;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails .images img,
  body .mfp-woosq #woosq-popup .woosq-product > .product > .images img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(clamp(230px, 40vh, 340px) - 28px) !important;
    margin: auto !important;
    object-fit: contain;
    visibility: visible !important;
    opacity: 1 !important;
  }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .thumbnails { grid-row: 1; }
  body .mfp-woosq #woosq-popup .woosq-product > .product > .summary {
    flex: 0 0 auto;
    order: 2;
    max-height: none !important;
    padding: 22px !important;
    overflow: visible !important;
  }
}
