.apd-shell {
  width: 100%;
  margin: 0;
}

.apd-shell__stage,
.apd-gallery-replaced .apd-shell,
.apd-gallery-replaced .apd-shell__stage,
.apd-gallery-replaced .apd-mount,
.apd-modal-designer .apd-shell {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.apd-mount {
  min-height: 480px;
  overflow: visible;
}

.apd-product-gallery-replacement {
  margin: 0;
}

.apd-product-gallery-placeholder {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 24px;
  border: 1px dashed #c9d3e5;
  border-radius: 18px;
  background: #f8fbff;
  color: #50627b;
  text-align: center;
}

.apd-condensed-source {
  display: none !important;
}

.apd-condensed-source.apd-condensed-source--inline-fallback {
  display: block !important;
  width: 100%;
}

.apd-product-gallery-fallback {
  min-width: 0;
}

body:not(.apd-mode-full-width) .woocommerce div.product .apd-product-gallery-fallback,
body:not(.apd-mode-full-width).woocommerce-page div.product .apd-product-gallery-fallback {
  float: left;
  width: 48%;
  clear: none;
}

.woocommerce-product-gallery.apd-gallery-replaced,
.single-product div.product div.images.apd-gallery-replaced,
.product .images.apd-gallery-replaced,
[data-product-gallery].apd-gallery-replaced {
  width: 100%;
}

body:not(.apd-mode-full-width).woocommerce.single-product div.product div.images.apd-product-gallery-fallback.apd-gallery-replaced,
body:not(.apd-mode-full-width).woocommerce-page.single-product div.product div.images.apd-product-gallery-fallback.apd-gallery-replaced {
  float: left;
  width: 48%;
  clear: none;
}

body:not(.apd-mode-full-width).woocommerce.single-product div.product .apd-gallery-replaced + div.summary,
body:not(.apd-mode-full-width).woocommerce-page.single-product div.product .apd-gallery-replaced + div.summary {
  float: right;
  width: 48%;
  max-width: 48%;
  clear: none;
  margin-top: 0;
}

.woocommerce.single-product div.product div.summary > .ask-page-module-host[data-asuka-portal-host="element-variation-picker"],
.woocommerce-page.single-product div.product div.summary > .ask-page-module-host[data-asuka-portal-host="element-variation-picker"] {
  width: 100%;
  margin: 22px 0 24px;
}


body.apd-mode-full-width .woocommerce .wp-block-woocommerce-product-image-gallery,
body.apd-mode-full-width .wp-block-woocommerce-product-image-gallery {
  width: 100% !important;
  max-width: none !important;
  clear: both;
}

body.apd-mode-full-width .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery,
body.apd-mode-full-width .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery.apd-gallery-replaced {
  width: 100% !important;
  max-width: none !important;
}

body.apd-mode-full-width.woocommerce #content div.product div.images.apd-gallery-replaced,
body.apd-mode-full-width.woocommerce div.product div.images.apd-gallery-replaced,
body.apd-mode-full-width.woocommerce-page #content div.product div.images.apd-gallery-replaced,
body.apd-mode-full-width.woocommerce-page div.product div.images.apd-gallery-replaced,
body.apd-mode-full-width .woocommerce #content div.product div.images.apd-gallery-replaced,
body.apd-mode-full-width .woocommerce div.product div.images.apd-gallery-replaced,
body.apd-mode-full-width .woocommerce-page #content div.product div.images.apd-gallery-replaced,
body.apd-mode-full-width .woocommerce-page div.product div.images.apd-gallery-replaced {
  float: none;
  width: 100%;
  max-width: none;
  clear: both;
}

body.apd-mode-full-width.woocommerce #content div.product div.images.apd-gallery-replaced + div.summary,
body.apd-mode-full-width.woocommerce div.product div.images.apd-gallery-replaced + div.summary,
body.apd-mode-full-width.woocommerce-page #content div.product div.images.apd-gallery-replaced + div.summary,
body.apd-mode-full-width.woocommerce-page div.product div.images.apd-gallery-replaced + div.summary,
body.apd-mode-full-width .woocommerce #content div.product div.images.apd-gallery-replaced + div.summary,
body.apd-mode-full-width .woocommerce div.product div.images.apd-gallery-replaced + div.summary,
body.apd-mode-full-width .woocommerce-page #content div.product div.images.apd-gallery-replaced + div.summary,
body.apd-mode-full-width .woocommerce-page div.product div.images.apd-gallery-replaced + div.summary {
  float: left;
  width: 48%;
  max-width: 48%;
  clear: both;
}

body.apd-mode-full-width .apd-fullwidth-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body.apd-mode-full-width .apd-fullwidth-stack > .wp-block-column {
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: 100% !important;
  flex-grow: 0;
}

body.apd-mode-full-width .apd-fullwidth-stack > .wp-block-column[style] {
  flex-basis: 100% !important;
}

.apd-modal-trigger-wrap {
  margin: 1rem 0;
}

.apd-open-designer-modal.button.alt {
  min-height: 44px;
  padding-inline: 18px;
}

.apd-designer-modal[hidden] {
  display: none !important;
}

.apd-designer-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: clamp(12px, 2vw, 24px);
  overscroll-behavior: contain;
}

.apd-designer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}

@media (max-width: 768px) {
  body:not(.apd-mode-full-width) .woocommerce div.product .apd-product-gallery-fallback,
  body:not(.apd-mode-full-width).woocommerce-page div.product .apd-product-gallery-fallback,
  body:not(.apd-mode-full-width).woocommerce.single-product div.product div.images.apd-product-gallery-fallback.apd-gallery-replaced,
  body:not(.apd-mode-full-width).woocommerce-page.single-product div.product div.images.apd-product-gallery-fallback.apd-gallery-replaced {
    float: none;
    width: 100%;
    clear: both;
  }

  body:not(.apd-mode-full-width).woocommerce.single-product div.product .apd-gallery-replaced + div.summary,
  body:not(.apd-mode-full-width).woocommerce-page.single-product div.product .apd-gallery-replaced + div.summary {
    float: none;
    width: 100%;
    max-width: none;
    clear: both;
    margin-top: 32px;
  }
}

.apd-designer-modal__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(100%, 1600px);
  height: min(100%, 980px);
  min-height: 0;
  max-height: 100%;
  margin: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.apd-designer-modal__header {
  display: flex;
  flex: 0 0 auto;
  box-sizing: border-box;
  justify-content: flex-end;
  padding: 14px 16px;
  border-bottom: 1px solid #e5ebf5;
}

.apd-designer-modal__close {
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  color: #324152;
  cursor: pointer;
}

.apd-designer-modal__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  background: #f6f9fc;
}

.apd-designer-modal__body .apd-modal-designer,
.apd-designer-modal__body .apd-product-gallery-host,
.apd-designer-modal__body .apd-shell,
.apd-designer-modal__body .apd-shell__stage,
.apd-designer-modal__body .apd-mount {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.apd-designer-modal__body .apd-mount {
  box-sizing: border-box;
  height: 100% !important;
}

.apd-designer-modal__body .apd-mount > * {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

@media (max-width: 768px), (max-height: 680px) {
  .apd-designer-modal {
    padding: 0;
  }

  .apd-designer-modal__dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .apd-designer-modal__header {
    min-height: 48px;
    padding: max(6px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  }

  .apd-designer-modal__close {
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .apd-designer-modal__body {
    padding: 0;
  }
}

html.apd-modal-open,
body.apd-modal-open {
  overflow: hidden;
}


.apd-validation-notice {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
}

.apd-validation-notice p {
  margin: 0;
}


.apd-pricing-summary {
  margin: 0.85rem 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #dde7f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
  color: #223244;
  box-shadow: 0 8px 22px rgba(15, 35, 60, 0.04);
}

.apd-pricing-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.apd-pricing-summary__eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #47627d;
}

.apd-pricing-summary__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: #e7f0fb;
  color: #20476f;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.apd-pricing-summary__mini-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
  background: #eef3f8;
  color: #5c7087;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.apd-pricing-summary__header,
.apd-pricing-summary__subhead {
  font-size: 0.9rem;
  font-weight: 700;
  color: #15283d;
}

.apd-pricing-summary__header {
  margin-top: 0.35rem;
}

.apd-pricing-summary__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.apd-pricing-summary__metric {
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dfe7f2;
}

.apd-pricing-summary__metric--accent {
  background: #edf6ff;
  border-color: #cfe1f7;
}

.apd-pricing-summary__metric-label {
  display: block;
  margin-bottom: 0.18rem;
  color: #5c6f84;
  font-size: 0.74rem;
}

.apd-pricing-summary__metric-value {
  display: block;
  font-size: 0.98rem;
  line-height: 1.2;
  color: #13283d;
}

.apd-pricing-summary__details {
  margin-top: 0.7rem;
}

.apd-pricing-summary__subhead {
  margin-bottom: 0.4rem;
}

.apd-pricing-summary__table-wrap {
  overflow-x: auto;
  border: 1px solid #dce6f2;
  border-radius: 12px;
  background: #fff;
}

.apd-pricing-summary__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.apd-pricing-summary__table thead th {
  padding: 0.55rem 0.7rem;
  background: #f5f8fc;
  border-bottom: 1px solid #dce6f2;
  color: #54677b;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
}

.apd-pricing-summary__table tbody th,
.apd-pricing-summary__table tbody td {
  padding: 0.58rem 0.7rem;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.83rem;
  text-align: left;
  vertical-align: top;
}

.apd-pricing-summary__table tbody th {
  color: #213447;
  font-weight: 600;
  width: 28%;
}

.apd-pricing-summary__table tbody td {
  color: #54677b;
}

.apd-pricing-summary__table tbody td:last-child,
.apd-pricing-summary__table tbody th:last-child {
  white-space: nowrap;
}

.apd-pricing-summary__table tbody tr:last-child th,
.apd-pricing-summary__table tbody tr:last-child td {
  border-bottom: 0;
}

.apd-pricing-summary__table-wrap--rules .apd-pricing-summary__table tbody th {
  width: 24%;
}

@media (max-width: 640px) {
  .apd-pricing-summary {
    padding: 0.75rem;
  }

  .apd-pricing-summary__metrics {
    grid-template-columns: 1fr;
  }

  .apd-pricing-summary__table {
    min-width: 0;
  }

  .apd-pricing-summary__table thead th,
  .apd-pricing-summary__table tbody th,
  .apd-pricing-summary__table tbody td {
    padding: 0.5rem 0.55rem;
    font-size: 0.8rem;
  }
}

.apd-customer-order-summary {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e3eaf3;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  font-size: 12px;
  line-height: 1.55;
}

.apd-customer-order-summary__media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.apd-customer-order-summary__image {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  border: 1px solid #d8e2ef;
  border-radius: 12px;
  background: #fff;
}

.apd-customer-order-summary__content {
  min-width: 0;
}

.apd-customer-order-summary__eyebrow {
  color: #47627d;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apd-customer-order-summary__title {
  margin-top: 0.3rem;
  color: #15283d;
  font-size: 0.95rem;
  font-weight: 700;
}

.apd-customer-order-summary__text {
  margin: 0.45rem 0 0;
  color: #44586c;
}

.apd-customer-order-summary__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.apd-customer-order-summary__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #eef4fb;
  color: #35506d;
}

.apd-customer-order-summary__pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.7rem;
  color: #465a6e;
}

.apd-customer-order-summary__pricing strong {
  color: #12283d;
}

.apd-customer-order-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.apd-customer-order-summary__button,
.apd-customer-design-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.apd-customer-order-summary__button--primary,
.apd-customer-design-card__button--primary {
  background: #1d4ed8;
  color: #fff;
}

.apd-customer-order-summary__button--primary:hover,
.apd-customer-design-card__button--primary:hover {
  background: #1e40af;
  color: #fff;
}

.apd-customer-order-summary__button--secondary,
.apd-customer-design-card__button--secondary {
  border: 1px solid #d4dfec;
  background: #fff;
  color: #1b3550;
}

.apd-customer-order-summary__button--secondary:hover,
.apd-customer-design-card__button--secondary:hover {
  border-color: #b9cde3;
  background: #f8fbff;
  color: #16324a;
}


.apd-cart-thumbnail {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #dde7f2;
  background: #fff;
}

.apd-cart-design-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.9rem;
  margin-top: 0.85rem;
  padding: 0.9rem;
  border: 1px solid #dde7f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #fcfdff 0%, #f6f9fd 100%);
  box-shadow: 0 8px 24px rgba(16, 33, 52, 0.05);
}

.apd-cart-design-card--no-media {
  grid-template-columns: minmax(0, 1fr);
}

.apd-cart-design-card__media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.apd-cart-design-card__image,
.apd-cart-design-card__placeholder {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  border: 1px solid #d8e2ef;
  background: #fff;
}

.apd-cart-design-card__image {
  object-fit: contain;
}

.apd-cart-design-card__placeholder {
  display: grid;
  place-items: center;
  padding: 0.65rem;
  color: #697d91;
  text-align: center;
  font-size: 0.82rem;
}

.apd-cart-design-card__eyebrow {
  color: #47627d;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apd-cart-design-card__summary,
.apd-cart-design-card__meta {
  margin: 0.35rem 0 0;
  color: #516477;
  font-size: 0.89rem;
  line-height: 1.45;
}

.apd-cart-design-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.apd-cart-design-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef4fb;
  color: #35506d;
  font-size: 0.78rem;
}

.apd-cart-design-card__pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
}

.apd-cart-design-card__pricing div {
  display: grid;
  gap: 0.15rem;
}

.apd-cart-design-card__pricing span {
  color: #607285;
  font-size: 0.79rem;
}

.apd-cart-design-card__pricing strong {
  color: #12283d;
}

.apd-cart-design-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.apd-customer-designs {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid #e4ebf4;
  border-radius: 22px;
  background: linear-gradient(180deg, #fcfdff 0%, #f6f9fd 100%);
  box-shadow: 0 12px 34px rgba(16, 33, 52, 0.05);
}

.apd-customer-designs__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.apd-customer-designs__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #eaf2fd;
  color: #24537f;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.apd-customer-designs__title {
  margin: 0.5rem 0 0;
  color: #12283d;
  font-size: 1.35rem;
}

.apd-customer-designs__intro {
  margin: 0.35rem 0 0;
  color: #516477;
  max-width: 60ch;
}

.apd-customer-designs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dce6f2;
  color: #1f3b57;
  font-weight: 700;
  white-space: nowrap;
}

.apd-customer-designs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.apd-customer-design-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid #dde7f2;
  background: #fff;
}

.apd-customer-design-card__media {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.apd-customer-design-card__image,
.apd-customer-design-card__placeholder {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 16px;
  border: 1px solid #d8e2ef;
  background: #f8fbff;
}

.apd-customer-design-card__image {
  object-fit: contain;
  background: #fff;
}

.apd-customer-design-card__placeholder {
  display: grid;
  place-items: center;
  padding: 0.75rem;
  text-align: center;
  color: #697d91;
  font-size: 0.88rem;
}

.apd-customer-design-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.apd-customer-design-card__status--pending {
  background: #fff4e5;
  color: #7a4b00;
}

.apd-customer-design-card__status--in_progress {
  background: #e5f0ff;
  color: #0a4b78;
}

.apd-customer-design-card__status--produced {
  background: #edf7ed;
  color: #1b5e20;
}

.apd-customer-design-card__status--delivered {
  background: #ede7f6;
  color: #512da8;
}

.apd-customer-design-card__eyebrow {
  color: #47627d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apd-customer-design-card__title {
  margin: 0.35rem 0 0;
  color: #12283d;
  font-size: 1.08rem;
}

.apd-customer-design-card__summary,
.apd-customer-design-card__meta {
  margin: 0.45rem 0 0;
  color: #516477;
  font-size: 0.9rem;
}

.apd-customer-design-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.apd-customer-design-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #eef4fb;
  color: #35506d;
  font-size: 0.8rem;
}

.apd-customer-design-card__pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.85rem;
}

.apd-customer-design-card__pricing div {
  display: grid;
  gap: 0.18rem;
}

.apd-customer-design-card__pricing span {
  color: #607285;
  font-size: 0.8rem;
}

.apd-customer-design-card__pricing strong {
  color: #12283d;
}

.apd-customer-design-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .apd-customer-order-summary,
  .apd-customer-design-card,
  .apd-cart-design-card {
    grid-template-columns: 1fr;
  }

  .apd-customer-order-summary__media,
  .apd-customer-design-card__media,
  .apd-cart-design-card__media {
    justify-content: flex-start;
  }

  .apd-customer-design-card__image,
  .apd-customer-design-card__placeholder,
  .apd-customer-order-summary__image,
  .apd-cart-design-card__image,
  .apd-cart-design-card__placeholder {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .apd-customer-designs__header {
    flex-direction: column;
  }
}


.apd-cart-name-preview{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:72px;height:72px;margin-right:12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;overflow:hidden}
.apd-cart-name-preview__image{display:block;width:100%;height:100%;object-fit:contain}
.woocommerce-mini-cart .apd-cart-name-preview,.widget_shopping_cart .apd-cart-name-preview{width:56px;height:56px;margin-right:10px;border-radius:8px}
.woocommerce-cart .apd-cart-item--customized td.product-thumbnail img[src*="woocommerce-placeholder"],
.woocommerce-cart .apd-cart-item--customized .product-thumbnail img[src*="woocommerce-placeholder"]{display:none!important}
.woocommerce-mini-cart .apd-cart-item--customized img[src*="woocommerce-placeholder"],
.widget_shopping_cart .apd-cart-item--customized img[src*="woocommerce-placeholder"]{display:none!important}

.apd-blocks-cart-item--customized .wc-block-cart-item__image img,
.apd-blocks-cart-item--customized .wc-block-components-order-summary-item__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid #dde7f2;
  border-radius: 8px;
  background: #fff;
}

.apd-blocks-cart-item--customized .wc-block-components-product-details {
  margin-top: 8px;
}

.apd-blocks-cart-item--customized .wc-block-components-product-details__name {
  color: #516477;
  font-weight: 600;
}

/* V11.4 front order polish */
.apd-order-resume-link {
  margin-top: 0.5rem;
}

.apd-order-resume-link a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.apd-order-resume-link a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.apd-order-item-thumb {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 10px;
}

.apd-order-item-thumb__image {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid #d8e2ef;
  border-radius: 10px;
  background: #fff;
  padding: 2px;
  box-shadow: 0 6px 16px rgba(16, 33, 52, 0.06);
}

/* Frontend-only view pagination override from the custom product UI setting.
   The admin builder strips this setting before preview mount, so admins always
   keep the regular Views pagination while customers get the configured mode. */
.apd-shell[data-apd-views-pagination-enabled="0"] [data-apd-view-pagination-toolbar="1"] {
  display: none !important;
}

.apd-shell[data-apd-views-pagination-mode="dots"] [data-apd-view-pagination-toolbar="1"] .ask-theme-carousel-page,
.apd-shell[data-apd-views-pagination-mode="dots"] [data-apd-view-pagination-toolbar="1"] .ask-theme-carousel-page__preview {
  width: 11px !important;
  min-width: 11px !important;
  height: 11px !important;
  min-height: 11px !important;
  padding: 0 !important;
  border-radius: 999px !important;
}

.apd-shell[data-apd-views-pagination-mode="dots"] [data-apd-view-pagination-toolbar="1"] .ask-theme-carousel-page__preview img,
.apd-shell[data-apd-views-pagination-mode="dots"] [data-apd-view-pagination-toolbar="1"] .ask-theme-carousel-page__preview > div,
.apd-shell[data-apd-views-pagination-mode="dots"] [data-apd-view-pagination-toolbar="1"] .ask-theme-carousel-page__badge,
.apd-shell[data-apd-views-pagination-mode="dots"] [data-apd-view-pagination-toolbar="1"] .ask-theme-carousel-page__label {
  display: none !important;
}

.apd-shell[data-apd-views-pagination-mode="numbers"] [data-apd-view-pagination-toolbar="1"] .ask-theme-carousel-page {
  width: auto !important;
  min-width: 28px !important;
  height: auto !important;
  min-height: 24px !important;
  padding: 0 !important;
  border-radius: 10px !important;
}

.apd-shell[data-apd-views-pagination-mode="numbers"] [data-apd-view-pagination-toolbar="1"] .ask-theme-carousel-page__preview {
  width: auto !important;
  min-width: 28px !important;
  height: auto !important;
  min-height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.apd-shell[data-apd-views-pagination-mode="numbers"] [data-apd-view-pagination-toolbar="1"] .ask-theme-carousel-page__preview img,
.apd-shell[data-apd-views-pagination-mode="numbers"] [data-apd-view-pagination-toolbar="1"] .ask-theme-carousel-page__preview > div,
.apd-shell[data-apd-views-pagination-mode="numbers"] [data-apd-view-pagination-toolbar="1"] .ask-theme-carousel-page__label {
  display: none !important;
}

.apd-shell[data-apd-views-pagination-mode="numbers"] [data-apd-view-pagination-toolbar="1"] .ask-theme-carousel-page__badge {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 28px !important;
  height: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  line-height: 1 !important;
}
