/* Sytch Studio visual polish for Astra child theme */
body.page-id-0 .site-content,
body.page-template-default .site-content{
  overflow-x:hidden;
}

/* Header/menu polish only. Main dashboard layout comes from the plugin. */
.main-header-menu .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link{
  font-weight:600;
}

.main-header-menu .menu-item a[href*="customer-dashboard"],
.ast-builder-menu-1 .menu-item a[href*="customer-dashboard"]{
  color:#ead8bd;
}

.scp-portal-wrap{
  margin-top:0;
}

/* Prevent WP Customer Area default tables from visually fighting the custom portal if they appear on other pages. */
.cuar-js-content-container table,
.wpca-container table{
  max-width:100%;
}

/* Customer Dashboard slug template: remove old page spacing and keep portal full-width. */
.sytch-customer-dashboard-template .scp-portal-wrap{
  margin:0;
}
.sytch-portal-plugin-missing{
  background:#f5efe6;
  min-height:55vh;
  padding:70px 20px;
}
.sytch-portal-plugin-missing__inner{
  max-width:760px;
  margin:0 auto;
  background:#fffaf2;
  border:1px solid rgba(0,0,0,.12);
  border-radius:18px;
  padding:36px;
  box-shadow:0 14px 35px rgba(0,0,0,.08);
}

/* v1.0.2: Remove unwanted white/light-blue gaps above and below the portal */
body.sytch-client-portal-page,
body.sytch-client-portal-page #page,
body.sytch-client-portal-page #content,
body.sytch-client-portal-page .site-content,
body.sytch-client-portal-page .ast-container,
body.sytch-client-portal-page .content-area,
body.sytch-client-portal-page .site-main,
body.sytch-client-portal-page article,
body.sytch-client-portal-page .ast-article-single,
body.sytch-client-portal-page .entry-content,
.sytch-customer-dashboard-template,
.sytch-customer-dashboard-template .entry-content{
  background:#f5efe6!important;
}
body.sytch-client-portal-page #content,
body.sytch-client-portal-page .site-content,
body.sytch-client-portal-page .ast-container,
body.sytch-client-portal-page .content-area,
body.sytch-client-portal-page .site-main,
body.sytch-client-portal-page article,
body.sytch-client-portal-page .ast-article-single,
body.sytch-client-portal-page .entry-content,
.sytch-customer-dashboard-template{
  margin-top:0!important;
  margin-bottom:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
}
body.sytch-client-portal-page .ast-container,
.sytch-customer-dashboard-template .ast-container{
  max-width:none!important;
  width:100%!important;
  padding-left:0!important;
  padding-right:0!important;
}
body.sytch-client-portal-page .scp-portal-wrap,
.sytch-customer-dashboard-template .scp-portal-wrap{
  margin:0!important;
  padding-top:56px!important;
  padding-bottom:72px!important;
  min-height:auto!important;
}
body.sytch-client-portal-page .site-footer,
body.sytch-client-portal-page footer,
.sytch-customer-dashboard-template + .site-footer{
  margin-top:0!important;
}
@supports selector(body:has(.scp-portal-wrap)){
  body:has(.scp-portal-wrap) #content,
  body:has(.scp-portal-wrap) .site-content,
  body:has(.scp-portal-wrap) .ast-container,
  body:has(.scp-portal-wrap) .content-area,
  body:has(.scp-portal-wrap) .site-main,
  body:has(.scp-portal-wrap) article,
  body:has(.scp-portal-wrap) .ast-article-single,
  body:has(.scp-portal-wrap) .entry-content{
    background:#f5efe6!important;
    margin-top:0!important;
    margin-bottom:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
  body:has(.scp-portal-wrap) .ast-container{
    max-width:none!important;
    width:100%!important;
    padding-left:0!important;
    padding-right:0!important;
  }
}

/* v1.1.0 — Branded WooCommerce basket and order-received screens.
   Checkout page is intentionally left out of this section: it uses
   WooCommerce's default design (see the two overrides further down and
   in sytch-commerce.css). */
body.woocommerce-cart,
body.woocommerce-order-received{
  background:#f5efe6;
}
body.woocommerce-cart .site-content,
body.woocommerce-order-received .site-content{
  background:linear-gradient(135deg,#f7f1e8 0%,#efe7dc 100%);
  padding:56px 20px 72px;
}
body.woocommerce-cart .ast-container,
body.woocommerce-order-received .ast-container{
  max-width:1300px;
}
.woocommerce-notices-wrapper{max-width:1300px;margin:0 auto 24px}
.woocommerce-message,.woocommerce-info,.woocommerce-error{
  position:relative!important;
  border:1px solid rgba(0,0,0,.14)!important;
  border-top:1px solid rgba(0,0,0,.14)!important;
  border-radius:18px!important;
  background:#fffaf2!important;
  color:#1d293c!important;
  padding:18px 190px 18px 56px!important;
  box-shadow:0 12px 34px rgba(0,0,0,.08)!important;
  line-height:1.55!important;
}
.woocommerce-message:before,.woocommerce-info:before{
  color:#000!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  left:20px!important;
}
.woocommerce-message .button,.woocommerce-info .button,.woocommerce-error .button{
  position:absolute!important;
  right:18px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  float:none!important;
  border-radius:999px!important;
  background:#000!important;
  color:#fff!important;
  padding:12px 22px!important;
  font-weight:800!important;
  text-decoration:none!important;
}
.woocommerce-message .button:hover,.woocommerce-info .button:hover{background:#242424!important}
.sytch-cart-notice-inner{display:contents}
body.woocommerce-cart .woocommerce,
body.woocommerce-order-received .woocommerce{
  background:#fffaf2;
  border:1px solid rgba(0,0,0,.12);
  border-radius:24px;
  padding:30px;
  box-shadow:0 20px 50px rgba(0,0,0,.08);
}
body.woocommerce-cart table.shop_table,
body.woocommerce-order-received table.shop_table{
  border:1px solid rgba(0,0,0,.12)!important;
  border-radius:16px!important;
  overflow:hidden;
  background:#fff;
}
body.woocommerce-cart table.shop_table th,
body.woocommerce-order-received table.shop_table th{
  background:#f3e4cf;
  color:#1d293c;
  font-weight:800;
}
body.woocommerce-cart .button,
body.woocommerce-cart button.button,
body.woocommerce-order-received .button{
  border-radius:999px!important;
  background:#000!important;
  color:#fff!important;
  font-weight:800!important;
  padding:14px 22px!important;
}
body.woocommerce-cart .checkout-button{
  background:#000!important;
  font-size:16px!important;
}
body.woocommerce-cart input.input-text{
  border:1px solid rgba(0,0,0,.17)!important;
  border-radius:12px!important;
  background:#fff!important;
  padding:13px 14px!important;
}
/* Checkout page background + Place Order button color are set once, in
   sytch-commerce.css (loaded after this file). */
body.woocommerce-cart .cart-empty{
  border:0!important;
  box-shadow:none!important;
  text-align:center;
  font-size:22px;
  font-weight:800;
  padding:42px 20px!important;
  background:transparent!important;
}
/* Hide generic placeholder recommendations on an empty service basket. */
body.woocommerce-cart .cart-empty ~ .products,
body.woocommerce-cart .cart-empty ~ .wc-block-grid,
body.woocommerce-cart .woocommerce > .products,
body.woocommerce-cart .woocommerce > .wc-block-grid,
body.woocommerce-cart .woocommerce > [class*="product-new"]{
  display:none!important;
}
body.woocommerce-order-received .woocommerce-order-overview{
  background:#f3e4cf;
  border-radius:16px;
  padding:18px!important;
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}
body.woocommerce-order-received .woocommerce-order-overview li{
  border-right:1px solid rgba(0,0,0,.14)!important;
  padding-right:18px!important;
}
@media(max-width:700px){
  .woocommerce-message,.woocommerce-info,.woocommerce-error{padding:18px 20px 76px 48px!important}
  .woocommerce-message .button,.woocommerce-info .button,.woocommerce-error .button{top:auto!important;bottom:16px!important;left:18px!important;right:auto!important;transform:none!important}
  body.woocommerce-cart .woocommerce,body.woocommerce-order-received .woocommerce{padding:18px}
}
