/* Full-width calculator product: gallery starts at the header's lower edge. */
body.wr-product-layout-ready #main > :is(.ct-container, .ct-container-full) {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

/* The calculator has moved the title and breadcrumbs into the summary. */
body.wr-product-layout-ready #main .hero-section { display: none; }

body.wr-product-layout-ready .product-entry-wrapper.att-product-hero-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 0;
  padding-inline: 0;
}

body.wr-product-layout-ready .wr-product-gallery-column,
body.wr-product-layout-ready .wr-product-gallery-column > .woocommerce-product-gallery {
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  body.wr-product-layout-ready .product-entry-wrapper > .summary {
    padding: 24px clamp(20px, 2.2vw, 42px) 0 0;
  }

  body.wr-product-layout-ready .summary > .ct-breadcrumbs {
    margin: 0 0 18px;
    color: #8a8a86;
    font-size: 10px;
    letter-spacing: .035em;
    text-transform: uppercase;
  }

  body.wr-product-layout-ready .summary > .wr-product-short-description {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
  }
}

/* Selected mobile mockup; calculator internals retain their native styles. */
@media (max-width: 767px) {
  body.wr-mobile-product-ready #main .hero-section { display: none; }
  body.wr-mobile-product-ready #main > :is(.ct-container, .ct-container-full) {
    width: 100%;
    max-width: none;
    padding: 0;
  }
  body.wr-mobile-product-ready .product-entry-wrapper.att-product-hero-layout {
    padding: 0 !important;
    gap: 0 !important;
  }
  body.wr-mobile-product-ready .wr-product-gallery-column > .woocommerce-product-gallery {
    margin: 0 !important;
    padding: 0;
  }
  body.wr-mobile-product-ready .woocommerce-product-gallery .flexy-item .ct-media-container,
  body.wr-mobile-product-ready .woocommerce-product-gallery .flexy-item img {
    border-radius: 0;
    aspect-ratio: 4 / 3 !important;
  }
  body.wr-mobile-product-ready .woocommerce-product-gallery .flexy-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  body.wr-mobile-product-ready .woocommerce-product-gallery .flexy-pills {
    margin: 0;
    padding: 8px 10px 0;
    width: 100%;
  }
  body.wr-mobile-product-ready .woocommerce-product-gallery .flexy-pills ol {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 2px 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.wr-mobile-product-ready .woocommerce-product-gallery .flexy-pills ol::-webkit-scrollbar { display: none; }
  body.wr-mobile-product-ready .woocommerce-product-gallery .flexy-pills li {
    flex: 0 0 calc((100% - 24px) / 5);
    min-width: 0 !important;
    width: calc((100% - 24px) / 5) !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1;
  }
  body.wr-mobile-product-ready .woocommerce-product-gallery .flexy-pills :is(.ct-media-container, img) {
    width: 100%;
    height: auto;
    aspect-ratio: 1 !important;
    object-fit: cover;
    border-radius: 0;
  }
  body.wr-mobile-product-ready .woocommerce-product-gallery .flexy-pills li.active .ct-media-container {
    outline: 2px solid #e30613;
    outline-offset: -2px;
  }
  body.wr-mobile-product-ready .wr-mobile-product-intro {
    padding: 24px 22px 0;
  }
  body.wr-mobile-product-ready .wr-mobile-product-intro > h1.product_title {
    margin: 0 0 10px;
    color: #202124;
    font-family: var(--wr-font-body);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
  }
  body.wr-mobile-product-ready .wr-mobile-product-intro .ct-breadcrumbs {
    margin: 0 0 22px;
    color: #929292;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
  }
  body.wr-mobile-product-ready .wr-mobile-product-intro .ct-breadcrumbs .first-item { display: none; }
  body.wr-mobile-product-ready .wr-mobile-product-intro .wr-product-short-description {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
  }
  body.wr-mobile-product-ready .wr-mobile-product-intro .woocommerce-product-details__short-description {
    margin: 0;
    color: #4f5360;
    font-size: 14px;
    line-height: 1.7;
  }
  body.wr-mobile-product-ready .wr-mobile-product-intro .woocommerce-product-details__short-description p { margin: 0 0 12px; }
  body.wr-mobile-product-ready .wr-mobile-product-intro .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }
  body.wr-mobile-product-ready .wr-mobile-product-intro .ct-payment-methods {
    display: block;
    position: relative;
    margin: 0;
    padding: 36px 0 10px;
    border: 0;
    border-top: 1px solid #dedfe3;
    border-bottom: 1px solid #dedfe3;
    border-radius: 0;
    text-align: left;
  }
  body.wr-mobile-product-ready .ct-payment-methods legend {
    position: absolute;
    top: 12px;
    left: 0;
    float: none;
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
  }
  body.wr-mobile-product-ready .ct-payment-methods .ct-icon-container {
    display: inline-flex;
    width: 28px;
    height: 28px;
    margin: 0 10px 0 0;
    vertical-align: middle;
  }
  body.wr-mobile-product-ready .ct-payment-methods .ct-icon { width: 28px; height: 28px; }
  body.wr-mobile-product-ready .summary > :is(.price, .att-product-starting-price) { display: none !important; }
  body.wr-mobile-product-ready .summary > .ct-product-add-to-cart,
  body.wr-mobile-product-ready .summary > .ct-product-add-to-cart > form.cart {
    margin: 0;
    padding: 0;
    border: 0;
  }
  body.single-product.wr-mobile-product-ready .product .woocommerce-tabs {
    margin-top: 8px;
    padding-inline: 22px;
    border: 0;
  }
  body.single-product.wr-mobile-product-ready .product .woocommerce-tabs > ul.tabs {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
    overflow-x: auto;
    border-bottom: 1px solid #dedfe3;
    scrollbar-width: thin;
  }
  body.single-product.wr-mobile-product-ready .product .woocommerce-tabs > ul.tabs > li {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  body.single-product.wr-mobile-product-ready .product .woocommerce-tabs > ul.tabs > li > a {
    display: block;
    width: auto;
    min-height: 46px;
    padding: 12px 0;
    border-bottom: 3px solid transparent;
    color: #4f5360;
    font: 600 13px/1.5 var(--wr-font-body);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
  }
  body.single-product.wr-mobile-product-ready .product .woocommerce-tabs > ul.tabs > li.active > a {
    color: #e30613;
    border-bottom-color: #e30613;
  }
  body.single-product.wr-mobile-product-ready .product .woocommerce-tabs > ul.tabs::before,
  body.single-product.wr-mobile-product-ready .product .woocommerce-tabs > ul.tabs > li::before,
  body.single-product.wr-mobile-product-ready .product .woocommerce-tabs > ul.tabs > li::after { display: none; }
  body.single-product.wr-mobile-product-ready .product .woocommerce-tabs > article { padding: 0; }
  body.single-product.wr-mobile-product-ready .product .woocommerce-tabs a[role="tab"]:focus-visible {
    outline: 2px solid #e30613;
    outline-offset: -2px;
  }
  @media (max-width: 359px) {
    body.wr-mobile-product-ready .wr-mobile-product-intro { padding-inline: 16px; }
    body.single-product.wr-mobile-product-ready .product .woocommerce-tabs { padding-inline: 16px; }
    body.single-product.wr-mobile-product-ready .product .woocommerce-tabs > ul.tabs { gap: 12px; }
    body.single-product.wr-mobile-product-ready .product .woocommerce-tabs > ul.tabs > li > a { font-size: 12px; }
  }
}
