/* KickBox.BG — V8.12 order / thank-you contrast and mobile refinement */

/* ---------- DARK / DEFAULT ---------- */
body.woocommerce-order-received .site-main,
body.woocommerce-view-order .site-main,
body.woocommerce-account .woocommerce-MyAccount-content{
  color:#eef3f8!important;
}

body.woocommerce-order-received .woocommerce,
body.woocommerce-view-order .woocommerce,
body.woocommerce-account .woocommerce-MyAccount-content{
  --kbg-order-text:#eef3f8;
  --kbg-order-muted:#c7d1dc;
  --kbg-order-soft:#9eabba;
  --kbg-order-surface:#10151b;
  --kbg-order-surface-2:#151b23;
  --kbg-order-line:#2d3743;
  --kbg-order-accent:#ff3942;
  color:var(--kbg-order-text)!important;
}

body.woocommerce-order-received .woocommerce :where(h1,h2,h3,h4,h5,h6),
body.woocommerce-view-order .woocommerce :where(h1,h2,h3,h4,h5,h6),
body.woocommerce-account .woocommerce-MyAccount-content :where(h1,h2,h3,h4,h5,h6){
  color:#fff!important;
  opacity:1!important;
}

body.woocommerce-order-received .woocommerce :where(p,li,dt,dd,address,span),
body.woocommerce-view-order .woocommerce :where(p,li,dt,dd,address,span),
body.woocommerce-account .woocommerce-MyAccount-content :where(p,li,dt,dd,address,span){
  color:var(--kbg-order-muted)!important;
}

body.woocommerce-order-received .woocommerce :where(strong,b),
body.woocommerce-view-order .woocommerce :where(strong,b),
body.woocommerce-account .woocommerce-MyAccount-content :where(strong,b){
  color:var(--kbg-order-text)!important;
}

body.woocommerce-order-received .woocommerce a,
body.woocommerce-view-order .woocommerce a,
body.woocommerce-account .woocommerce-MyAccount-content a{
  color:var(--kbg-order-accent)!important;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
}

body.woocommerce-order-received .woocommerce a:hover,
body.woocommerce-view-order .woocommerce a:hover,
body.woocommerce-account .woocommerce-MyAccount-content a:hover{
  color:#ff6269!important;
}

/* Thank-you intro and overview */
body.woocommerce-order-received .woocommerce-thankyou-order-received{
  margin:0 0 18px!important;
  color:#f4f7fb!important;
  font-size:18px!important;
  line-height:1.45!important;
  font-weight:650!important;
}

body.woocommerce-order-received ul.woocommerce-order-overview{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:0!important;
  margin:0 0 22px!important;
  padding:0!important;
  border:1px solid var(--kbg-order-line)!important;
  border-radius:16px!important;
  background:var(--kbg-order-surface)!important;
  overflow:hidden!important;
}

body.woocommerce-order-received ul.woocommerce-order-overview li{
  min-width:0!important;
  margin:0!important;
  padding:13px 14px!important;
  border-right:1px solid var(--kbg-order-line)!important;
  color:var(--kbg-order-soft)!important;
  font-size:10px!important;
  line-height:1.35!important;
  letter-spacing:.02em!important;
  text-transform:uppercase!important;
}

body.woocommerce-order-received ul.woocommerce-order-overview li:last-child{
  border-right:0!important;
}

body.woocommerce-order-received ul.woocommerce-order-overview li strong{
  display:block!important;
  margin-top:4px!important;
  color:#fff!important;
  font-size:13px!important;
  line-height:1.35!important;
  letter-spacing:0!important;
  text-transform:none!important;
  overflow-wrap:anywhere!important;
}

/* Order sections */
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-view-order .woocommerce-order-details,
body.woocommerce-view-order .woocommerce-customer-details{
  margin-top:24px!important;
}

body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title,
body.woocommerce-view-order .woocommerce-order-details__title,
body.woocommerce-view-order .woocommerce-column__title{
  margin:0 0 12px!important;
  color:#fff!important;
  font-size:26px!important;
  line-height:1.1!important;
  letter-spacing:-.025em!important;
  font-weight:900!important;
}

body.woocommerce-order-received table.shop_table,
body.woocommerce-view-order table.shop_table,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table{
  width:100%!important;
  margin:0!important;
  border:1px solid var(--kbg-order-line)!important;
  border-radius:16px!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  background:var(--kbg-order-surface)!important;
  overflow:hidden!important;
}

body.woocommerce-order-received table.shop_table th,
body.woocommerce-view-order table.shop_table th,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th{
  padding:11px 13px!important;
  background:var(--kbg-order-surface-2)!important;
  color:#d9e1ea!important;
  border-color:var(--kbg-order-line)!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:850!important;
}

body.woocommerce-order-received table.shop_table td,
body.woocommerce-view-order table.shop_table td,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td{
  padding:11px 13px!important;
  background:var(--kbg-order-surface)!important;
  color:#eef3f8!important;
  border-color:var(--kbg-order-line)!important;
  font-size:13px!important;
  line-height:1.45!important;
  vertical-align:middle!important;
}

body.woocommerce-order-received table.shop_table td.product-name,
body.woocommerce-view-order table.shop_table td.product-name{
  font-weight:750!important;
}

body.woocommerce-order-received table.shop_table td.product-name a,
body.woocommerce-view-order table.shop_table td.product-name a{
  color:#ff4a52!important;
  font-weight:800!important;
}

body.woocommerce-order-received table.shop_table .amount,
body.woocommerce-view-order table.shop_table .amount,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table .amount{
  color:#fff!important;
  font-weight:850!important;
}

body.woocommerce-order-received table.shop_table tfoot th,
body.woocommerce-view-order table.shop_table tfoot th{
  color:#dbe3ec!important;
  background:#131920!important;
}

body.woocommerce-order-received table.shop_table tfoot td,
body.woocommerce-view-order table.shop_table tfoot td{
  color:#fff!important;
  background:#10151b!important;
  font-weight:800!important;
}

/* Selected delivery / plugin-generated details */
body.woocommerce-order-received .woocommerce-order-details + :where(div,section),
body.woocommerce-view-order .woocommerce-order-details + :where(div,section){
  color:var(--kbg-order-muted)!important;
}

body.woocommerce-order-received .woocommerce :where(.kbg-selected-delivery,.selected-delivery,.woo-bg--delivery,.woo-bg-delivery),
body.woocommerce-view-order .woocommerce :where(.kbg-selected-delivery,.selected-delivery,.woo-bg--delivery,.woo-bg-delivery){
  color:var(--kbg-order-muted)!important;
}

body.woocommerce-order-received .woocommerce :where(.kbg-selected-delivery,.selected-delivery,.woo-bg--delivery,.woo-bg-delivery) :where(h2,h3,h4,strong),
body.woocommerce-view-order .woocommerce :where(.kbg-selected-delivery,.selected-delivery,.woo-bg--delivery,.woo-bg-delivery) :where(h2,h3,h4,strong){
  color:#fff!important;
}

/* Customer addresses */
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns,
body.woocommerce-view-order .woocommerce-customer-details .woocommerce-columns{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}

body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column,
body.woocommerce-view-order .woocommerce-customer-details .woocommerce-column{
  width:auto!important;
  float:none!important;
  margin:0!important;
}

body.woocommerce-order-received .woocommerce-customer-details address,
body.woocommerce-view-order .woocommerce-customer-details address{
  min-height:100%!important;
  margin:0!important;
  padding:15px 16px!important;
  border:1px solid var(--kbg-order-line)!important;
  border-radius:14px!important;
  background:var(--kbg-order-surface)!important;
  color:#eef3f8!important;
  font-size:13px!important;
  line-height:1.55!important;
  font-style:normal!important;
}

body.woocommerce-order-received .woocommerce-customer-details address :where(p,span),
body.woocommerce-view-order .woocommerce-customer-details address :where(p,span){
  color:#eef3f8!important;
}

body.woocommerce-order-received .woocommerce-customer-details address a,
body.woocommerce-view-order .woocommerce-customer-details address a{
  color:#ff4a52!important;
}

/* ---------- LIGHT THEME ---------- */
html[data-kbg-theme="light"] body.woocommerce-order-received .woocommerce,
html[data-kbg-theme="light"] body.woocommerce-view-order .woocommerce,
html[data-kbg-theme="light"] body.woocommerce-account .woocommerce-MyAccount-content{
  --kbg-order-text:#111820;
  --kbg-order-muted:#465568;
  --kbg-order-soft:#667589;
  --kbg-order-surface:#fff;
  --kbg-order-surface-2:#f5f7fa;
  --kbg-order-line:#d7dfe8;
  --kbg-order-accent:#d71927;
  color:var(--kbg-order-text)!important;
}

html[data-kbg-theme="light"] body.woocommerce-order-received .woocommerce :where(h1,h2,h3,h4,h5,h6,strong,b),
html[data-kbg-theme="light"] body.woocommerce-view-order .woocommerce :where(h1,h2,h3,h4,h5,h6,strong,b),
html[data-kbg-theme="light"] body.woocommerce-account .woocommerce-MyAccount-content :where(h1,h2,h3,h4,h5,h6,strong,b){
  color:#111820!important;
}

html[data-kbg-theme="light"] body.woocommerce-order-received .woocommerce :where(p,li,dt,dd,address,span),
html[data-kbg-theme="light"] body.woocommerce-view-order .woocommerce :where(p,li,dt,dd,address,span),
html[data-kbg-theme="light"] body.woocommerce-account .woocommerce-MyAccount-content :where(p,li,dt,dd,address,span){
  color:#465568!important;
}

html[data-kbg-theme="light"] body.woocommerce-order-received .woocommerce a,
html[data-kbg-theme="light"] body.woocommerce-view-order .woocommerce a,
html[data-kbg-theme="light"] body.woocommerce-account .woocommerce-MyAccount-content a{
  color:#c71926!important;
}

html[data-kbg-theme="light"] body.woocommerce-order-received .woocommerce-thankyou-order-received{
  color:#202a35!important;
}

html[data-kbg-theme="light"] body.woocommerce-order-received ul.woocommerce-order-overview,
html[data-kbg-theme="light"] body.woocommerce-order-received table.shop_table,
html[data-kbg-theme="light"] body.woocommerce-view-order table.shop_table,
html[data-kbg-theme="light"] body.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
html[data-kbg-theme="light"] body.woocommerce-order-received .woocommerce-customer-details address,
html[data-kbg-theme="light"] body.woocommerce-view-order .woocommerce-customer-details address{
  background:#fff!important;
  border-color:#d7dfe8!important;
}

html[data-kbg-theme="light"] body.woocommerce-order-received ul.woocommerce-order-overview li{
  border-color:#d7dfe8!important;
  color:#667589!important;
}

html[data-kbg-theme="light"] body.woocommerce-order-received ul.woocommerce-order-overview li strong{
  color:#111820!important;
}

html[data-kbg-theme="light"] body.woocommerce-order-received table.shop_table th,
html[data-kbg-theme="light"] body.woocommerce-view-order table.shop_table th,
html[data-kbg-theme="light"] body.woocommerce-account .woocommerce-MyAccount-content table.shop_table th{
  background:#f5f7fa!important;
  color:#39485a!important;
  border-color:#d7dfe8!important;
}

html[data-kbg-theme="light"] body.woocommerce-order-received table.shop_table td,
html[data-kbg-theme="light"] body.woocommerce-view-order table.shop_table td,
html[data-kbg-theme="light"] body.woocommerce-account .woocommerce-MyAccount-content table.shop_table td,
html[data-kbg-theme="light"] body.woocommerce-order-received table.shop_table tfoot td,
html[data-kbg-theme="light"] body.woocommerce-view-order table.shop_table tfoot td{
  background:#fff!important;
  color:#111820!important;
  border-color:#d7dfe8!important;
}

html[data-kbg-theme="light"] body.woocommerce-order-received table.shop_table tfoot th,
html[data-kbg-theme="light"] body.woocommerce-view-order table.shop_table tfoot th{
  background:#f5f7fa!important;
  color:#39485a!important;
}

html[data-kbg-theme="light"] body.woocommerce-order-received table.shop_table .amount,
html[data-kbg-theme="light"] body.woocommerce-view-order table.shop_table .amount,
html[data-kbg-theme="light"] body.woocommerce-account .woocommerce-MyAccount-content table.shop_table .amount{
  color:#111820!important;
}

html[data-kbg-theme="light"] body.woocommerce-order-received .woocommerce-customer-details address,
html[data-kbg-theme="light"] body.woocommerce-view-order .woocommerce-customer-details address,
html[data-kbg-theme="light"] body.woocommerce-order-received .woocommerce-customer-details address :where(p,span),
html[data-kbg-theme="light"] body.woocommerce-view-order .woocommerce-customer-details address :where(p,span){
  color:#283544!important;
}

/* ---------- MOBILE ---------- */
@media(max-width:760px){
  body.woocommerce-order-received .site-main,
  body.woocommerce-view-order .site-main{
    padding-top:10px!important;
    padding-bottom:30px!important;
  }

  body.woocommerce-order-received .woocommerce,
  body.woocommerce-view-order .woocommerce{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  body.woocommerce-order-received .woocommerce-thankyou-order-received{
    margin-bottom:12px!important;
    font-size:15px!important;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview{
    grid-template-columns:1fr!important;
    margin-bottom:16px!important;
    border-radius:13px!important;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview li{
    padding:12px 14px!important;
    border-right:0!important;
    border-bottom:1px solid var(--kbg-order-line)!important;
    grid-column:auto!important;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview li:last-child{border-bottom:0!important}

  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-customer-details,
  body.woocommerce-view-order .woocommerce-order-details,
  body.woocommerce-view-order .woocommerce-customer-details{
    margin-top:18px!important;
  }

  body.woocommerce-order-received .woocommerce-order-details__title,
  body.woocommerce-order-received .woocommerce-column__title,
  body.woocommerce-view-order .woocommerce-order-details__title,
  body.woocommerce-view-order .woocommerce-column__title{
    margin-bottom:9px!important;
    font-size:28px!important;
    line-height:1.05!important;
  }

  body.woocommerce-order-received table.shop_table,
  body.woocommerce-view-order table.shop_table{
    border-radius:13px!important;
  }

  body.woocommerce-order-received table.shop_table th,
  body.woocommerce-order-received table.shop_table td,
  body.woocommerce-view-order table.shop_table th,
  body.woocommerce-view-order table.shop_table td{
    padding:9px 10px!important;
    font-size:12px!important;
    line-height:1.35!important;
  }

  body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns,
  body.woocommerce-view-order .woocommerce-customer-details .woocommerce-columns{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  body.woocommerce-order-received .woocommerce-customer-details address,
  body.woocommerce-view-order .woocommerce-customer-details address{
    padding:13px 14px!important;
    border-radius:12px!important;
    font-size:12px!important;
    line-height:1.5!important;
  }

  body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    float:none!important;
  }
  body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column__title{
    margin:0 0 10px!important;
    font-size:24px!important;
    line-height:1.12!important;
    overflow-wrap:anywhere!important;
  }
  body.woocommerce-order-received .woocommerce-customer-details address{
    min-height:0!important;
    height:auto!important;
    margin:0!important;
  }

  /* Catch plugin blocks such as “Избрана доставка” without relying on fragile colors. */
  body.woocommerce-order-received .woocommerce > :where(div,section):not(.woocommerce-order-details):not(.woocommerce-customer-details),
  body.woocommerce-view-order .woocommerce > :where(div,section):not(.woocommerce-order-details):not(.woocommerce-customer-details){
    color:var(--kbg-order-muted)!important;
  }

  body.woocommerce-order-received .woocommerce > :where(div,section):not(.woocommerce-order-details):not(.woocommerce-customer-details) :where(h2,h3,h4,strong),
  body.woocommerce-view-order .woocommerce > :where(div,section):not(.woocommerce-order-details):not(.woocommerce-customer-details) :where(h2,h3,h4,strong){
    color:var(--kbg-order-text)!important;
  }
}
