/* Cache-safe related-products, checkout, and topbar-icon parity. */

.pftg-topbar > p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pftg-topbar-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  overflow: visible;
  fill: none;
  stroke: #4fbbec;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Elementor's related-products section is a centered 1,160px four-column grid. */
.pftg-product-main > .wp-block-woocommerce-product-collection:last-child {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding: 70px max(20px, calc((100% - 1160px) / 2)) 100px !important;
}

.pftg-product-main > .wp-block-woocommerce-product-collection:last-child > h2,
.pftg-product-main > .wp-block-woocommerce-product-collection:last-child > .wc-block-product-template {
  width: min(100%, 1160px) !important;
  max-width: 1160px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.pftg-product-main > .wp-block-woocommerce-product-collection:last-child > .wc-block-product-template {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

.pftg-product-main > .wp-block-woocommerce-product-collection:last-child .wc-block-product {
  box-sizing: border-box;
  width: auto !important;
  margin: 0 !important;
  padding: 25px !important;
}

.pftg-product-main > .wp-block-woocommerce-product-collection:last-child .wp-block-button__link {
  padding: 10px 35px !important;
}

/* Production checkout is a centered 1,140px classic WooCommerce surface. */
.page-id-1186 .pftg-checkout-main {
  box-sizing: border-box;
  width: min(calc(100% - 40px), 1140px) !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 48px 0 60px !important;
}

.page-id-1186 .pftg-checkout-main > .entry-content,
.page-id-1186 .pftg-checkout-main > .entry-content > .woocommerce,
.page-id-1186 .pftg-checkout-main form.woocommerce-checkout {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.page-id-1186 .pa-shop-head {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
  font-family: Inter, sans-serif;
}

.page-id-1186 .pa-shop-head .eb {
  display: block;
  margin: 0 0 12px;
  color: #4fbbec;
  font-family: Lexend, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-id-1186 .pa-shop-head h2 {
  margin: 0 0 12px;
  color: #101218;
  font-family: Lexend, sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
}

.page-id-1186 .pa-shop-head p {
  margin: 0;
  color: #5a5f67;
  font-size: 16px;
  line-height: 1.7;
}

.woocommerce-checkout .woocommerce-checkout-review-order table.shop_table {
  overflow: hidden;
  border: 1px solid #eef1f4 !important;
  border-radius: 16px !important;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 18, 24, .06);
}

.woocommerce-checkout table.shop_table th,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #customer_details h3,
.woocommerce-checkout #ship-to-different-address {
  color: #101218 !important;
  font-family: Lexend, sans-serif !important;
}

.woocommerce-checkout #place_order {
  width: auto;
  padding: 14px 32px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #4fbbec !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: Lexend, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  transition: background .18s ease, transform .18s ease;
}

.woocommerce-checkout #place_order:hover {
  background: #2fa9df !important;
  transform: translateY(-1px);
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout select {
  border: 1px solid #d9dee3 !important;
  border-radius: 10px !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: #4fbbec !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(79, 187, 236, .16) !important;
}

.woocommerce-checkout #customer_details .woocommerce-billing-fields,
.woocommerce-checkout #customer_details .woocommerce-shipping-fields,
.woocommerce-checkout #customer_details .woocommerce-additional-fields {
  margin-bottom: 24px;
  padding: 26px 28px;
  border: 1px solid #eef1f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 18, 24, .06);
}

.woocommerce-checkout #order_review {
  padding: 24px 26px;
  border: 1px solid #eef1f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 18, 24, .06);
}

.woocommerce-checkout #payment {
  border-radius: 12px;
  background: #f6fbfe !important;
}

@media (max-width: 1024px) {
  .pftg-product-main > .wp-block-woocommerce-product-collection:last-child > .wc-block-product-template {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .pftg-product-main > .wp-block-woocommerce-product-collection:last-child {
    padding: 30px 20px !important;
  }

  .pftg-product-main > .wp-block-woocommerce-product-collection:last-child > .wc-block-product-template {
    grid-template-columns: 1fr !important;
    row-gap: 40px !important;
  }

  .page-id-1186 .pftg-checkout-main {
    width: calc(100% - 40px) !important;
    padding-top: 40px !important;
  }
}
