/*
Theme Name: OceanWP Child
Template: oceanwp
Version: 1.0
*/

/* ==============================
   Product page - Newsole style
============================== */
.single-product div.product .summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Uniform vertical rhythm across product blocks */
.single-product div.product .summary > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove theme separator lines in product summary */
.single-product div.product .summary .newsole-product-heading,
.single-product div.product .summary .newsole-product-heading::before,
.single-product div.product .summary .newsole-product-heading::after {
  border: 0 !important;
  box-shadow: none !important;
}

.single-product div.product .summary form.cart,
.single-product div.product .summary .cart,
.single-product div.product .summary form.cart::before,
.single-product div.product .summary form.cart::after,
.single-product div.product .summary .cart::before,
.single-product div.product .summary .cart::after,
.single-product div.product .summary .newsole-variation-buttons,
.single-product div.product .summary .newsole-size-grid {
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Masque le titre/prix/avis natifs quand le bloc custom est injecte */
.single-product div.product .summary .product_title.entry-title,
.single-product div.product .summary p.price,
.single-product div.product .summary .woocommerce-product-rating {
  display: none !important;
}

.single-product div.product .summary .newsole-product-heading .product_title.entry-title,
.single-product div.product .summary .newsole-product-heading .price {
  display: block !important;
}

.newsole-product-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsole-product-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #757575;
  font-size: 14px;
  line-height: 1.4;
}

.newsole-product-breadcrumbs a {
  color: #757575;
  text-decoration: none;
}

.newsole-product-breadcrumbs a:hover {
  color: #333;
}

.newsole-breadcrumb-sep {
  color: #a8a8a8;
}

.newsole-title-price {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 0 !important;
  box-shadow: none !important;
}

.newsole-title-price .product_title {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  max-width: 78%;
  border: 0 !important;
  box-shadow: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.newsole-title-price .price {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  text-align: right;
  border: 0 !important;
  box-shadow: none !important;
}

.newsole-rating-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4a4a4a;
  font-size: 15px;
}

.newsole-rating-trigger {
  color: #4a4a4a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.newsole-rating-trigger:hover {
  color: #222;
}

.newsole-trustindex-reviews {
  display: none !important;
  margin-top: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 4px;
  background: #fff;
}

.newsole-trustindex-reviews.is-open {
  display: block !important;
  animation: newsoleReviewsIn 0.34s ease-out;
}

.newsole-trustindex-reviews.is-closing {
  display: block !important;
  animation: newsoleReviewsOut 0.34s ease-in forwards;
  pointer-events: none;
}

@keyframes newsoleReviewsIn {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes newsoleReviewsOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.newsole-product-heading > .ti-widget,
.newsole-product-heading > [class*="trustindex"],
.newsole-product-heading > [id*="trustindex"] {
  display: none !important;
}

.newsole-stars .star-rating {
  margin: 0;
  color: #09ab6b;
}

.newsole-reassurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.newsole-reassurance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 16px;
  font-size: 15px;
  color: #333;
}

.newsole-reassurance-item:nth-child(odd) {
  border-right: 1px solid #e3e3e3;
}

.newsole-reassurance-item:nth-child(-n + 2) {
  border-bottom: 1px solid #e3e3e3;
}

/* Remove bottom divider under last row cards */
.newsole-reassurance-grid .newsole-reassurance-item:nth-child(n + 3) {
  border-bottom: 0 !important;
}

.newsole-reassurance-grid .newsole-reassurance-item:nth-last-child(-n + 2) {
  border-bottom: 0 !important;
}

.newsole-icon {
  display: inline-block;
  min-width: 18px;
  text-align: center;
}

.newsole-post-logo {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.newsole-size-advice {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: #fafafa;
  color: #212121;
  font-size: 16px;
  padding: 12px 14px;
}

/* Hidden per latest requirement */
.newsole-size-advice {
  display: none !important;
}

.newsole-size-advice-icon {
  font-size: 15px;
  opacity: 0.75;
}

.newsole-delivery-estimate-box {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: #fafafa;
  color: #212121;
  font-size: 14px;
  padding: 12px 14px;
  margin-top: 0 !important;
}

.newsole-delivery-estimate-wrap {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

.newsole-delivery-estimate-wrap::before,
.newsole-delivery-estimate-wrap::after,
.single-product div.product .summary .newsole-delivery-estimate-wrap::before,
.single-product div.product .summary .newsole-delivery-estimate-wrap::after {
  content: none !important;
  display: none !important;
}

/* Remove extra separator lines around delivery estimate block */
.single-product div.product .summary hr,
.single-product div.product .summary .newsole-delivery-estimate-wrap + hr,
.single-product div.product .summary hr + .newsole-delivery-estimate-wrap {
  display: none !important;
}

.single-product div.product .summary .newsole-delivery-estimate-wrap,
.single-product div.product .summary .newsole-delivery-estimate-wrap + * {
  border-top: 0 !important;
  box-shadow: none !important;
}

.newsole-delivery-estimate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #9a9a9a;
  border-radius: 50%;
  color: #666;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 18px;
}

.newsole-delivery-estimate-icon::before {
  content: "i";
}

.single-product div.product form.cart {
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px !important;
}

/* Uniform spacing rhythm inside cart area */
.single-product div.product form.cart > * {
  margin: 0 !important;
}

.single-product div.product form.cart > * + * {
  margin-top: 12px !important;
}

.single-product div.product form.cart .variations {
  margin: 0 !important;
}

/* Prevent native variation selector flash before JS grid init */
.single-product div.product form.cart table.variations {
  display: none !important;
}

.single-product div.product form.cart .variations td {
  padding-bottom: 0 !important;
}

.newsole-variation-buttons {
  margin: 0 !important;
}

.newsole-variation-title {
  display: none;
}

.newsole-unit-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  overflow: hidden;
  margin: 4px 0 10px;
}

/* Demande client: suppression des onglets EU/US/UK/CM */
.newsole-unit-switch {
  display: none !important;
}

.newsole-unit-switch button {
  border: 0;
  background: #fff;
  color: #444;
  min-width: 40px;
  height: 30px;
  font-size: 14px;
  padding: 0 10px;
}

.newsole-unit-switch button.is-active {
  background: #1f1f1f;
  color: #fff;
}

.newsole-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  background: transparent !important;
  padding: 0;
}

.newsole-size-option {
  appearance: none;
  flex: 0 0 calc((100% - 30px) / 6);
  height: 48px;
  border: 1px solid #cfcfcf !important;
  background: #fff;
  font-size: 13px;
  line-height: 1;
  color: #111;
  font-weight: 600;
  border-radius: 6px !important;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Force rounded size tiles against theme/plugin overrides */
.single-product div.product form.cart .newsole-size-grid .newsole-size-option,
.single-product div.product .newsole-size-option,
button.newsole-size-option {
  border-radius: 6px !important;
  overflow: hidden !important;
}

.newsole-size-option:hover:not(.is-disabled):not(.is-active) {
  background: #f4f4f4;
}

.newsole-size-option.is-active {
  background: #111;
  color: #fff;
}

.newsole-size-option.is-disabled {
  color: #bdbdbd;
  background: #f8f8f8;
  cursor: not-allowed;
  display: none !important;
}

.single-product div.product form.cart .single_add_to_cart_button,
.single-product div.product .single_add_to_cart_button.button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #00A99D;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  transition: opacity 0.2s ease;
  order: 20;
  margin-top: 0 !important;
}

.single-product div.product form.cart .single_add_to_cart_button:hover {
  opacity: 0.92;
  background: #009f94;
}

/* Keep express checkout native behavior */
.single-product .fkwcs-product {
  order: 30 !important;
  margin: 8px 0 0 !important;
  margin-bottom: 0 !important;
}

/* Match express button format to Add to cart */
.single-product #fkwcs_custom_express_button button.fkwcs_smart_buttons,
.single-product .fkwcs-product button.fkwcs_smart_buttons {
  width: 100% !important;
  max-width: none !important;
  min-height: 52px !important;
  border-radius: 999px !important;
  margin: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Keep equal spacing around OR separator and express button */
.single-product .fkwcs-product hr,
.single-product .fkwcs-product [class*="separator"] {
  margin: 8px 0 !important;
}

/* Center OR separator exactly between buttons */
.single-product .fkwcs-product [class*="separator"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  text-align: center !important;
  line-height: 1 !important;
}

.single-product .fkwcs-product [class*="separator"]::before,
.single-product .fkwcs-product [class*="separator"]::after {
  flex: 1 1 auto !important;
  margin: 0 !important;
}

.single-product .fkwcs-product [class*="separator"] span {
  display: inline-block !important;
  margin: 0 12px !important;
  transform: none !important;
  line-height: 1 !important;
}

/* Extra fallback for OR text wrappers */
.single-product .fkwcs-product [class*="or"],
.single-product .fkwcs-product [id*="or"] {
  margin: 8px 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* Final spacing normalization for checkout stack */
.single-product div.product .summary .newsole-reassurance-grid {
  margin-bottom: 0 !important;
}

.single-product div.product .summary .newsole-variation-buttons {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.single-product div.product .summary .newsole-split-payment-note {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.single-product div.product .summary .fkwcs-product,
.single-product div.product .summary #fkwcs_custom_express_button {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.single-product div.product .summary .newsole-delivery-estimate-wrap {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

.single-product div.product .summary .fkwcs-product > * + * {
  margin-top: 8px !important;
}

/* Remove any line above delivery estimate block */
.single-product div.product hr,
.single-product div.product .summary > hr,
.single-product div.product .summary .cart + hr,
.single-product div.product .summary form.cart + hr,
.single-product div.product .summary .newsole-delivery-estimate-wrap::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product div.product .summary .newsole-delivery-estimate-wrap {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  position: static !important;
}

/* Final strict spacing alignment: Add -> Klarna -> OR -> Express -> Delivery */
.single-product div.product form.cart .single_add_to_cart_button,
.single-product div.product form.cart .newsole-split-payment-note,
.single-product div.product form.cart .fkwcs-product,
.single-product div.product .summary .newsole-delivery-estimate-wrap {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.single-product div.product form.cart .fkwcs-product [class*="separator"],
.single-product div.product form.cart .fkwcs-product [class*="or"],
.single-product div.product form.cart .fkwcs-product hr {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.single-product div.product form.cart .fkwcs-product button.fkwcs_smart_buttons {
  margin-top: 0 !important;
}

/* Custom deterministic OR separator */
.single-product div.product form.cart .newsole-or-separator {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 8px 0 !important;
  width: 100% !important;
}

.single-product div.product form.cart .newsole-or-separator .line {
  flex: 1 1 auto;
  height: 1px;
  background: #dddddd;
}

.single-product div.product form.cart .newsole-or-separator .txt {
  line-height: 1 !important;
  transform: none !important;
  color: #666;
}

/* Remove stubborn divider before delivery estimate */
.single-product div.product form.cart,
.single-product div.product .summary form.cart,
.single-product div.product .summary .cart,
.single-product div.product form.cart::after,
.single-product div.product .summary form.cart::after {
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.newsole-split-payment-note {
  margin: 8px 0 0 !important;
  text-align: center;
  color: #222;
  font-size: 14px;
  line-height: 1.35;
  order: 21;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.newsole-installment-amount {
  white-space: nowrap;
}

.newsole-klarna-badge {
  white-space: nowrap;
}

/* Backup force in case cached/overridden markup */
.single-product .newsole-split-payment-note .newsole-klarna-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

@media (max-width: 1024px) {
  .newsole-title-price .product_title,
  .newsole-title-price .price {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .single-product div.product .summary {
    gap: 8px;
  }

  .single-product div.product form.cart {
    gap: 8px !important;
  }

  .newsole-title-price {
    flex-direction: column;
    gap: 8px;
  }

  .newsole-title-price .product_title {
    max-width: 100%;
    font-size: 26px;
  }

  .newsole-title-price .price {
    font-size: 28px;
    text-align: left;
  }

  .single-product .newsole-reassurance-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    align-items: stretch !important;
  }

  .single-product .newsole-reassurance-grid .newsole-reassurance-item {
    min-height: 76px;
    padding: 10px 8px;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    border-right: 1px solid #e3e3e3 !important;
    border-bottom: 1px solid #e3e3e3 !important;
    align-items: center;
    font-size: 13px;
  }

  .single-product .newsole-reassurance-grid .newsole-reassurance-item:nth-child(even) {
    border-right: 0 !important;
  }

  .single-product .newsole-reassurance-grid .newsole-reassurance-item:nth-child(n + 3) {
    border-bottom: 0 !important;
  }

  .single-product .newsole-reassurance-grid .newsole-reassurance-item:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }

  .newsole-size-option {
    flex: 0 0 calc((100% - 24px) / 5);
    font-size: 13px;
    height: 48px;
  }

  /* Force 5 tiles per row on phones */
  .single-product div.product form.cart .newsole-size-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .single-product div.product form.cart .newsole-size-grid .newsole-size-option {
    flex: initial !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 48px !important;
    font-size: 13px !important;
  }

  .single-product div.product form.cart .single_add_to_cart_button,
  .single-product div.product .single_add_to_cart_button.button {
    font-size: 24px;
  }

  .newsole-split-payment-note {
    font-size: 13px;
  }

  .newsole-delivery-estimate-box {
    font-size: 13px;
    padding: 11px 12px;
  }

  .newsole-trustindex-reviews {
    padding: 4px;
  }
}

/* Collapse empty express checkout space (CSS-only, safe) */
.single-product form.cart #fkwcs_stripe_smart_button_wrapper:has(#fkwcs_custom_express_button button.fkwcs_smart_buttons[style*="display:none"]),
.single-product form.cart .fkwcs_stripe_smart_button_wrapper:has(#fkwcs_custom_express_button button.fkwcs_smart_buttons[style*="display:none"]) {
  margin: 0 !important;
  padding: 0 !important;
}

.single-product form.cart #fkwcs_stripe_smart_button_wrapper:has(#fkwcs_custom_express_button button.fkwcs_smart_buttons[style*="display:none"]) #fkwcs-payment-request-separator,
.single-product form.cart .fkwcs_stripe_smart_button_wrapper:has(#fkwcs_custom_express_button button.fkwcs_smart_buttons[style*="display:none"]) #fkwcs-payment-request-separator,
.single-product form.cart #fkwcs_stripe_smart_button_wrapper:has(#fkwcs_custom_express_button button.fkwcs_smart_buttons[style*="display:none"]) #fkwcs_custom_express_button,
.single-product form.cart .fkwcs_stripe_smart_button_wrapper:has(#fkwcs_custom_express_button button.fkwcs_smart_buttons[style*="display:none"]) #fkwcs_custom_express_button {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Remove black divider under SKU/Category/Brand meta */
.single-product div.product .summary .product_meta,
.single-product div.product .summary .product_meta::before,
.single-product div.product .summary .product_meta::after,
.single-product div.product .summary .product_meta + hr,
.single-product div.product .woocommerce-tabs,
.single-product div.product .woocommerce-tabs::before {
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

/* Tighten gap between product meta and tabs section */
.single-product div.product .summary .product_meta {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.single-product div.product .clear-after-summary,
.single-product div.product .clear-after-summary.clr {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  display: none !important;
}

.single-product div.product .woocommerce-tabs.wc-tabs-wrapper {
  margin-top: -8px !important;
  padding-top: 0 !important;
}

