/* ==========================================================================
   WooCommerce in the v7 light style: cart, checkout, account, notices,
   the empty-cart course grid and the custom thank-you page.
   WooCommerce's own layout stays; colours, type and corners follow v7.
   ========================================================================== */
body.ahv-theme{accent-color:var(--orange)}

/* Buttons */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,
.wc-block-components-button:not(.is-link),.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;border:0;border-radius:999px;
  background:var(--orange);color:var(--on-orange);font-family:var(--font-d);font-weight:400;font-size:17px;line-height:1.2;text-decoration:none;
  box-shadow:0 16px 30px -18px rgba(22,17,17,.55);transition:background .2s,transform .2s}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover,.wc-block-cart__submit-button:hover,.wc-block-components-checkout-place-order-button:hover{background:var(--orange-hover);color:var(--on-orange)}
.wc-block-components-button:not(.is-link) .wc-block-components-button__text{color:inherit}
.woocommerce button.button:disabled,.woocommerce button.button:disabled[disabled]{opacity:.5;background:var(--orange);color:var(--on-orange)}

/* Block cart + checkout */
.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout{font-family:var(--font-b)}
.wc-block-components-title,.wc-block-components-checkout-step__title,.wc-block-cart__totals-title,
.wp-block-woocommerce-cart .wc-block-cart-items__header,.wc-block-components-product-name{font-family:var(--font-d);font-weight:400;color:var(--charcoal)}
.wc-block-components-checkout-step__description,.wc-block-components-product-metadata{color:var(--ink-2)}
.wc-block-components-sidebar .wp-block-woocommerce-cart-totals-block,
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block,
.wp-block-woocommerce-checkout-order-summary-block{padding:18px 20px;border-radius:24px;background:var(--bone-hi);border:1px solid var(--line)}
.wc-block-cart-items,.wc-block-cart-items td,.wc-block-cart-items th{border-color:var(--line)!important}
.wc-block-components-product-image img,.wc-block-cart-item__image img,.wc-block-components-order-summary-item__image img{border-radius:12px}
.wc-block-components-text-input input[type],.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input{
  border-radius:14px!important;border:1px solid rgba(22,17,17,.28)!important;background:#fff!important;color:var(--charcoal)!important}
.wc-block-components-text-input input[type]:focus,.wc-block-components-textarea:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus{border-color:var(--charcoal)!important;box-shadow:0 0 0 1px var(--charcoal)!important;outline:0}
.wc-block-components-text-input label,.wc-blocks-components-select .wc-blocks-components-select__label{color:var(--ink-3)!important}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]{border-color:rgba(22,17,17,.4)}
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked{background:var(--charcoal);border-color:var(--charcoal)}
.wc-block-components-checkbox .wc-block-components-checkbox__mark{fill:var(--bone-hi)}
.wc-block-components-radio-control__input:checked{border-color:var(--charcoal)}
.wc-block-components-radio-control__input:checked::before{background:var(--charcoal)}
.wc-block-components-radio-control-accordion-option,.wc-block-checkout__payment-method .wc-block-components-radio-control__option{border-radius:16px}
.wc-block-components-totals-coupon a,.wc-block-components-totals-coupon__button,.wc-block-components-panel__button{color:var(--orange-deep)}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label{font-family:var(--font-d);font-weight:400}
.wc-block-components-notice-banner{border-radius:16px}

/* Classic WooCommerce pages (shop, product, shortcode cart, account) */
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info,.woocommerce .woocommerce-error{border-radius:16px;border-top-color:var(--orange);background:var(--bone-hi);color:var(--charcoal)}
.woocommerce .woocommerce-message::before,.woocommerce .woocommerce-info::before{color:var(--orange-deep)}
.woocommerce table.shop_table{border-radius:20px;border-color:var(--line);background:var(--bone-hi);overflow:hidden}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border-color:var(--line)}
.woocommerce .cart_totals h2,.woocommerce-checkout h3,.woocommerce-MyAccount-content h2,.woocommerce-order-details h2{font-family:var(--font-d);font-weight:400}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce .select2-container .select2-selection{border-radius:14px;border:1px solid rgba(22,17,17,.28);background:#fff;padding:10px 14px}
.woocommerce ul.products li.product{padding:14px;border-radius:28px;background:var(--bone-hi);border:1px solid var(--line)}
.woocommerce ul.products li.product a img{border-radius:18px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--font-d);font-weight:400;font-size:20px}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--charcoal);font-family:var(--font-d)}
.woocommerce span.onsale{background:var(--orange);color:var(--on-orange);border-radius:999px;min-height:0;line-height:1;padding:8px 12px}
.woocommerce-breadcrumb{color:var(--ink-3)}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--bone-hi)}
.woocommerce-MyAccount-navigation ul{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.woocommerce-MyAccount-navigation a{display:block;padding:10px 16px;border-radius:14px;transition:background .2s}
.woocommerce-MyAccount-navigation a:hover{background:var(--bone-hi)}
.woocommerce-MyAccount-navigation li.is-active a{background:var(--charcoal);color:var(--bone-hi)}

/* Empty cart: our courses */
.ahv-cart-courses-title{margin:40px 0 0;font-family:var(--font-d);font-weight:400;font-size:clamp(24px,3vw,32px);text-align:center}
.ahv-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:22px;text-align:left}
.ahv-course-grid .cc{color:var(--charcoal)}
.ahv-course-grid .cc h3{font-size:20px}
.ahv-course-grid .cc .price{font-size:24px}

/* ---------- Thank-you page ---------- */
.ahv-ty{display:grid;gap:20px;max-width:860px;margin:0 auto}
.ahv-ty .en{font-family:var(--font-en)}
.ahv-ty__hero{padding:clamp(28px,5vw,52px);border-radius:32px;background:var(--bone-hi);border:1px solid var(--line);text-align:center}
.ahv-ty__badge{display:inline-grid;place-items:center;width:84px;height:84px;border-radius:50%;background:var(--charcoal);color:var(--bone-hi);box-shadow:0 0 0 10px rgba(22,17,17,.06)}
.ahv-ty--paid .ahv-ty__badge{background:var(--orange);color:var(--on-orange);box-shadow:0 0 0 10px rgba(242,90,29,.14)}
.ahv-ty__badge svg{width:38px;height:38px}
.ahv-ty__eyebrow{display:block;margin-top:20px;font-family:var(--font-en);font-size:13.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.ahv-ty__title{max-width:640px;margin:12px auto 0;font-family:var(--font-d);font-weight:400;font-size:clamp(2rem,4.4vw,3.1rem);line-height:1.3;color:var(--charcoal);text-wrap:balance}
.ahv-ty__lead{display:grid;gap:10px;max-width:600px;margin:18px auto 0;color:var(--ink-2);font-size:18px;line-height:1.8}
.ahv-ty__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:28px}
.ahv-ty__meta{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:26px}
.ahv-ty__chip{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:rgba(22,17,17,.06);font-size:15px;color:var(--ink-2)}
.ahv-ty__chip svg{width:15px;height:15px}
.ahv-ty__chip b{font-family:var(--font-d);font-weight:400;color:var(--charcoal)}
.ahv-ty__label{margin:8px 0 0;font-family:var(--font-d);font-weight:400;font-size:20px;text-align:center}
.ahv-ty__socials{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:12px}
.ahv-ty__social{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:22px;background:var(--charcoal);color:var(--bone-hi);transition:transform .25s,background .2s}
.ahv-ty__social:hover{transform:translateY(-3px);background:#000}
.ahv-ty__social-ic{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--bone-hi);color:var(--charcoal)}
.ahv-ty__social-ic svg{width:20px;height:20px}
.ahv-ty__social-text{flex:1;min-width:0}
.ahv-ty__social-text b{display:block;font-family:var(--font-d);font-weight:400;font-size:17px}
.ahv-ty__social-text small{display:block;font-size:14.5px;color:var(--on-dark-2)}
.ahv-ty__out{width:16px;height:16px;opacity:.7}
.ahv-ty__order{border-radius:24px;background:var(--bone-hi);border:1px solid var(--line);overflow:hidden}
.ahv-ty__order summary{display:flex;align-items:center;gap:14px;padding:18px 22px;list-style:none;cursor:pointer}
.ahv-ty__order summary::-webkit-details-marker{display:none}
.ahv-ty__order-ic{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--charcoal);color:var(--bone-hi)}
.ahv-ty__order-ic svg{width:20px;height:20px}
.ahv-ty__order-head{flex:1;min-width:0}
.ahv-ty__order-head b{display:block;font-family:var(--font-d);font-weight:400;font-size:18px}
.ahv-ty__order-head small{display:block;font-size:14.5px;color:var(--ink-3)}
.ahv-ty__order-total{font-family:var(--font-d);font-size:20px}
.ahv-ty__chev svg{width:18px;height:18px;transition:rotate .25s}
.ahv-ty__order[open] .ahv-ty__chev svg{rotate:180deg}
.ahv-ty__rows{padding:4px 22px 18px;border-top:1px solid var(--line)}
.ahv-ty__row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px dashed var(--line);font-size:16.5px}
.ahv-ty__row > span:first-child{color:var(--ink-3)}
.ahv-ty__row > span:last-child{text-align:right}
.ahv-ty__row em{margin-left:6px;font-style:normal;color:var(--ink-3)}
.ahv-ty__row--total{border-bottom:0;font-family:var(--font-d);font-size:19px}
.ahv-ty__row--total > span:first-child{color:var(--charcoal)}
.ahv-ty__row--discount > span:last-child{color:var(--orange-deep)}
.ahv-ty__coupon{display:inline-flex;margin-left:6px;padding:0 8px;border-radius:6px;border:1.5px dashed var(--orange-deep);color:var(--orange-deep);font-family:var(--font-d);font-size:13.5px;letter-spacing:.06em}
.ahv-ty__help{text-align:center;color:var(--ink-2);font-size:16px}
.ahv-ty__help a{color:var(--orange-deep);text-decoration:underline;text-underline-offset:3px}
.ahv-ty__extra{font-size:16px}

@media (max-width:980px){
  .ahv-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .ahv-course-grid,.ahv-ty__socials{grid-template-columns:minmax(0,1fr)}
  .ahv-ty__order summary{flex-wrap:wrap}
  .ahv-ty__actions .btn{width:100%}
}
