/*
 * IKOKETSO WooCommerce transaction-page polish, v4.6.9.
 * Strictly scoped to WooCommerce cart, checkout, account and order confirmation.
 * Does not redefine global typography, topbar/header layout, or shared header classes.
 */

/* Checkout shell: resist narrow parent/column constraints without changing inner content width. */
body.woocommerce-checkout {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.woocommerce-checkout main.ik-wc-page.ik-wc-special-page,
body.woocommerce-checkout .ik-wc-special-page,
body.woocommerce-checkout .ik-checkout-page,
body.woocommerce-checkout .ik-checkout-hero,
body.woocommerce-checkout .ik-checkout-section,
body.woocommerce-checkout footer.construct,
body.woocommerce-checkout #bottom-bar.construct {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
body.woocommerce-checkout main.ik-wc-page.ik-wc-special-page,
body.woocommerce-checkout .ik-checkout-page,
body.woocommerce-checkout footer.construct,
body.woocommerce-checkout #bottom-bar.construct {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.woocommerce-checkout .ik-checkout-section > .container {
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Cart notices: target WooCommerce's actual notice wrapper directly.
 * This also works when a Cart shortcode is rendered on a custom page and the
 * request is not recognised by WooCommerce is_cart() conditional tags.
 */
.woocommerce-notices-wrapper {
  display: flow-root;
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
}
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  padding: 18px 20px 18px 60px !important;
  min-height: 72px !important;
  margin: 18px auto 0 !important;
  border: 1px solid #DCE4EF !important;
  border-top: 3px solid #F4B942 !important;
  border-radius: 14px !important;
  background: #F7F9FC !important;
  color: #536177 !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere !important;
}
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message::before,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info::before {
  position: absolute !important;
  left: 22px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  color: #9A6A00 !important;
}
.woocommerce-notices-wrapper .woocommerce-message a.button.wc-forward,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message a.button.wc-forward {
  float: right !important;
  clear: none !important;
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  margin: 0 0 8px 18px !important;
  padding: 0 22px !important;
  border: 1px solid #F4B942 !important;
  border-radius: 11px !important;
  background: #F4B942 !important;
  color: #0C1733 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .035em !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.woocommerce-notices-wrapper .woocommerce-message a.button.wc-forward:hover,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message a.button.wc-forward:hover {
  border-color: #0C1733 !important;
  background: #0C1733 !important;
  color: #FFFFFF !important;
}
.woocommerce-notices-wrapper .woocommerce-message::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}
body.woocommerce-cart .ik-cart-actions .button[name="update_cart"]:not(:disabled) {
  border-color: #F4B942 !important;
  background: #F4B942 !important;
  color: #0C1733 !important;
}
body.woocommerce-cart .ik-cart-actions .button[name="update_cart"]:disabled {
  border-color: #E4E8EF !important;
  background: #EEF1F5 !important;
  color: #8390A3 !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}
body.woocommerce-cart .ik-cart-product img {
  box-sizing: border-box !important;
  border-radius: 11px !important;
}

/* Checkout terms: undo generic card-label uppercase styling for the required checkbox. */
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-terms-and-conditions-wrapper {
  margin-top: 12px !important;
  color: #68758B !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-terms-and-conditions-wrapper p {
  margin: 0 0 10px !important;
}
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-terms-and-conditions-wrapper label.woocommerce-form__label-for-checkbox,
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-terms-and-conditions-wrapper label.checkbox {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #4E5B70 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  white-space: normal !important;
}
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  position: static !important;
  display: inline-block !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  accent-color: #3978E8;
}
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-terms-and-conditions-checkbox-text {
  display: inline !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-terms-and-conditions-wrapper .required {
  color: #B04B4B !important;
  flex: 0 0 auto !important;
  margin-left: 1px !important;
}
body.woocommerce-checkout .ik-checkout-order-panel .payment_box::before {
  display: none !important;
  content: none !important;
}
body.woocommerce-checkout .ik-checkout-order-panel .payment_box {
  margin-top: 9px !important;
  border: 1px solid #E8EDF5 !important;
  background: #F6F8FC !important;
  border-radius: 10px !important;
}
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-checkout-review-order-table {
  width: 100% !important;
  border: 1px solid #DCE4EF !important;
  border-radius: 10px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
}
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-checkout-review-order-table thead th {
  padding: 10px 11px !important;
  background: #F7F9FC !important;
  border-bottom: 1px solid #DCE4EF !important;
}
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-checkout-review-order-table tbody th,
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-checkout-review-order-table tbody td,
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-checkout-review-order-table tfoot td {
  padding: 10px 11px !important;
  border-bottom: 1px solid #E9EDF3 !important;
}
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-checkout-review-order-table tr:last-child th,
body.woocommerce-checkout .ik-checkout-order-panel .woocommerce-checkout-review-order-table tr:last-child td {
  border-bottom: 0 !important;
}

/* Order received: readable success state and evenly aligned summary cards. */
body.woocommerce-order-received .woocommerce-order {
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 40px 0 72px !important;
}
body.woocommerce-order-received .woocommerce-notice--success {
  display: block !important;
  box-sizing: border-box !important;
  margin: 0 0 20px !important;
  padding: 14px 17px !important;
  border: 1px solid #D4EBDD !important;
  border-left: 4px solid #168653 !important;
  border-radius: 10px !important;
  background: #F2FAF5 !important;
  color: #285D43 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}
body.woocommerce-order-received .woocommerce-order-overview {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  list-style: none !important;
}
body.woocommerce-order-received .woocommerce-order-overview li {
  display: block !important;
  float: none !important;
  clear: none !important;
  position: static !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  grid-column: auto !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  box-sizing: border-box !important;
  border: 1px solid #E1E7F0 !important;
  border-radius: 12px !important;
  background: #F6F8FC !important;
  color: #68758B !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  text-align: left !important;
}
body.woocommerce-order-received .woocommerce-order-overview li strong {
  display: block !important;
  margin-top: 3px !important;
  color: #17233D !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
}
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details {
  margin-top: 18px !important;
  padding: 22px !important;
  border: 1px solid #E1E7F0 !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
}
body.woocommerce-order-received .woocommerce-order-details h2,
body.woocommerce-order-received .woocommerce-customer-details h2 {
  margin: 0 0 14px !important;
  color: #0C1733 !important;
  font-size: 25px !important;
  line-height: 1.2 !important;
}
body.woocommerce-order-received .woocommerce-order-details table.shop_table {
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid #DCE4EF !important;
  border-radius: 10px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
}
body.woocommerce-order-received .woocommerce-order-details table.shop_table th,
body.woocommerce-order-received .woocommerce-order-details table.shop_table td {
  padding: 11px 13px !important;
  border-bottom: 1px solid #E1E7F0 !important;
  color: #17233D !important;
  font-size: 13px !important;
  vertical-align: middle !important;
}
body.woocommerce-order-received .woocommerce-order-details table.shop_table thead th {
  background: #F7F9FC !important;
  color: #536177 !important;
  font-weight: 800 !important;
}
body.woocommerce-order-received .woocommerce-order-details table.shop_table tfoot tr:last-child th,
body.woocommerce-order-received .woocommerce-order-details table.shop_table tfoot tr:last-child td {
  border-bottom: 0 !important;
}
body.woocommerce-order-received .woocommerce-order-details table.shop_table a {
  color: #245EC6 !important;
  text-decoration: none !important;
}
body.woocommerce-order-received .woocommerce-order-details table.shop_table a:hover {
  color: #0C1733 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
body.woocommerce-order-received .woocommerce-customer-details address {
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid #E1E7F0 !important;
  border-radius: 10px !important;
  background: #F8FAFD !important;
  color: #536177 !important;
  font-style: normal !important;
  line-height: 1.75 !important;
  text-align: left !important;
}
body.woocommerce-order-received .woocommerce-customer-details address .woocommerce-customer-details--phone,
body.woocommerce-order-received .woocommerce-customer-details address .woocommerce-customer-details--email {
  margin-top: 5px !important;
}

@media (max-width: 991px) {
  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  .woocommerce-notices-wrapper {
    width: calc(100% - 28px) !important;
    max-width: none !important;
  }
  body.woocommerce-checkout .ik-checkout-section > .container,
  body.woocommerce-cart .woocommerce-notices-wrapper,
  body.woocommerce-order-received .woocommerce-order {
    width: calc(100% - 28px) !important;
  }
  .woocommerce-notices-wrapper .woocommerce-message a.button.wc-forward {
    float: none !important;
    width: 100% !important;
    margin: 12px 0 0 !important;
    white-space: normal !important;
  }
  .woocommerce-notices-wrapper .woocommerce-message,
  .woocommerce-notices-wrapper .woocommerce-info {
    padding: 16px 16px 16px 48px !important;
  }
  .woocommerce-notices-wrapper .woocommerce-message::before,
  .woocommerce-notices-wrapper .woocommerce-info::before {
    left: 16px !important;
    top: 19px !important;
    transform: none !important;
  }
  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-customer-details {
    padding: 16px !important;
  }
  body.woocommerce-order-received .woocommerce-order-details table.shop_table th,
  body.woocommerce-order-received .woocommerce-order-details table.shop_table td {
    padding: 9px 8px !important;
    font-size: 12px !important;
  }
}
@media (max-width: 480px) {
  body.woocommerce-order-received .woocommerce-order-overview {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* IKOKETSO 4.6.11 advertising product hero refinement.
 * Scope limited to WooCommerce single advertising products; no shared header/global selectors.
 */
body.single-product .ikoketso-product-page.ik-ad-category-schools .ik-ad-hero-proof,
body.single-product .ikoketso-product-page.ik-ad-category-tertiary .ik-ad-hero-proof,
body.single-product .ikoketso-product-page.ik-ad-category-lifestyle .ik-ad-hero-proof,
body.single-product .ikoketso-product-page.ik-ad-category-advertising .ik-ad-hero-proof {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  column-gap: 18px !important;
  row-gap: 7px !important;
  margin-top: 17px !important;
  max-width: 740px !important;
}
body.single-product .ikoketso-product-page.ik-ad-category-schools .ik-ad-hero-proof span,
body.single-product .ikoketso-product-page.ik-ad-category-tertiary .ik-ad-hero-proof span,
body.single-product .ikoketso-product-page.ik-ad-category-lifestyle .ik-ad-hero-proof span,
body.single-product .ikoketso-product-page.ik-ad-category-advertising .ik-ad-hero-proof span {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  line-height: 1.5 !important;
}
@media (max-width: 767px) {
  /* The single-product template already contains a full breadcrumb. Hide the
     second compact breadcrumb emitted by header.php on mobile. */
  body.single-product .product-context-bar { display: none !important; }

  body.single-product .ikoketso-product-page.ik-ad-category-schools .ikp-product-hero,
  body.single-product .ikoketso-product-page.ik-ad-category-tertiary .ikp-product-hero,
  body.single-product .ikoketso-product-page.ik-ad-category-lifestyle .ikp-product-hero,
  body.single-product .ikoketso-product-page.ik-ad-category-advertising .ikp-product-hero {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0 !important;
  }
  body.single-product .ikoketso-product-page.ik-ad-category-schools .ikp-product-hero .hero-inner,
  body.single-product .ikoketso-product-page.ik-ad-category-tertiary .ikp-product-hero .hero-inner,
  body.single-product .ikoketso-product-page.ik-ad-category-lifestyle .ikp-product-hero .hero-inner,
  body.single-product .ikoketso-product-page.ik-ad-category-advertising .ikp-product-hero .hero-inner {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 14px !important;
  }
  body.single-product .ikoketso-product-page.ik-ad-category-schools .ikp-product-hero .hero-copy,
  body.single-product .ikoketso-product-page.ik-ad-category-tertiary .ikp-product-hero .hero-copy,
  body.single-product .ikoketso-product-page.ik-ad-category-lifestyle .ikp-product-hero .hero-copy,
  body.single-product .ikoketso-product-page.ik-ad-category-advertising .ikp-product-hero .hero-copy {
    padding-top: 12px !important;
    padding-bottom: 16px !important;
  }
  body.single-product .ikoketso-product-page.ik-ad-category-schools .ikp-product-hero .ikp-hero-card,
  body.single-product .ikoketso-product-page.ik-ad-category-tertiary .ikp-product-hero .ikp-hero-card,
  body.single-product .ikoketso-product-page.ik-ad-category-lifestyle .ikp-product-hero .ikp-hero-card,
  body.single-product .ikoketso-product-page.ik-ad-category-advertising .ikp-product-hero .ikp-hero-card {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  body.single-product .ikoketso-product-page.ik-ad-category-schools .ik-ad-hero-proof,
  body.single-product .ikoketso-product-page.ik-ad-category-tertiary .ik-ad-hero-proof,
  body.single-product .ikoketso-product-page.ik-ad-category-lifestyle .ik-ad-hero-proof,
  body.single-product .ikoketso-product-page.ik-ad-category-advertising .ik-ad-hero-proof {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px 10px !important;
    margin-top: 15px !important;
  }
  body.single-product .ikoketso-product-page.ik-ad-category-schools .ik-ad-hero-proof span,
  body.single-product .ikoketso-product-page.ik-ad-category-tertiary .ik-ad-hero-proof span,
  body.single-product .ikoketso-product-page.ik-ad-category-lifestyle .ik-ad-hero-proof span,
  body.single-product .ikoketso-product-page.ik-ad-category-advertising .ik-ad-hero-proof span {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }
}
