/* HSG UI Kit — modular CSS. Do not edit parent theme/plugins. */

/* ========== Cart / Checkout / Account ========== */
.hsg-commerce-page .site-content,
.hsg-commerce-page #main {
  background: var(--hsg-page);
}
.hsg-commerce-page .woocommerce {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 56px;
  box-sizing: border-box;
}

/* Cart table — keep normal Woo columns, don't squash qty into price.
   KEEP !important only vs Docent/Woo !important or proven cascade losses. */
.hsg-cart-page .woocommerce-cart-form {
  background: var(--hsg-surface);
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  box-shadow: var(--hsg-shadow);
  padding: 8px 8px 16px;
  overflow-x: auto;
}
.hsg-cart-page table.shop_table.cart {
  table-layout: fixed;
  width: 100%;
  margin: 0;
  /* specificity (.hsg-cart-page table.shop_table.cart) beats Woo/Docent without !important */
  border: 0;
}
.hsg-cart-page table.cart th,
.hsg-cart-page table.cart td {
  /* Woo already vertical-align:middle; HSG later/equal — no !important needed */
  vertical-align: middle;
  border-color: var(--hsg-line);
  /* text-transform: Docent capitalize (no !important); HSG equal+later wins */
  text-transform: none;
  font-family: var(--hsg-font);
  color: var(--hsg-ink);
  /* Docent: .shop_table td { font-weight:400 !important } */
  font-weight: 500 !important;
}
/* th padding: Docent .shop_table th { padding:12px 0 9px !important } */
.hsg-cart-page table.cart th {
  padding: 16px 12px !important;
}
/* td padding: Docent .cart_item td { padding:8px 0 !important } has higher specificity —
   HSG cannot win without specificity hack; leave Docent value (dead fight removed). */
.hsg-cart-page table.cart thead th {
  font-size: 13px;
  font-weight: 700 !important;
  color: var(--hsg-muted);
  background: transparent;
  border-bottom: 1px solid var(--hsg-line);
}
.hsg-cart-page table.cart .product-remove { width: 40px; text-align: center; }
.hsg-cart-page table.cart .product-thumbnail { width: 72px; }
.hsg-cart-page table.cart .product-name { width: auto; }
.hsg-cart-page table.cart .product-price { width: 120px; white-space: nowrap; }
.hsg-cart-page table.cart .product-quantity { width: 110px; text-align: center; }
.hsg-cart-page table.cart .product-subtotal { width: 130px; white-space: nowrap; text-align: right; }
.hsg-cart-page table.cart img {
  /* Docent 50px / Woo 32px — equal specificity, HSG later */
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.hsg-cart-page table.cart td.product-name a {
  color: var(--hsg-ink);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}
.hsg-cart-page table.cart a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  /* Woo: a.remove { color:red !important } */
  color: #b42318 !important;
  font-size: 18px;
  line-height: 1;
  background: #fef3f2;
}
.hsg-cart-page table.cart .quantity {
  margin: 0 auto;
  float: none !important;
}
.hsg-cart-page table.cart .quantity .qty {
  width: 64px !important;
  min-height: 40px;
  text-align: center;
  border: 1px solid var(--hsg-line) !important;
  border-radius: 10px !important;
  font-family: var(--hsg-font);
  box-shadow: none !important;
}

/* Coupon + update row — never flex the <td> itself (breaks into vertical letters).
   KEEP !important only where Woo/Docent float/width/display must lose (evidence in .agents/pr1b-commerce). */
.hsg-cart-page table.cart td.actions {
  /* Woo smallscreen sets tr td { display:block } — layout requirement */
  display: table-cell !important;
  /* Docent .actions padding 20px 30px wins without !important */
  padding: 14px 8px !important;
}
.hsg-cart-page table.cart td.actions::after {
  /* Woo clearfix pseudo on .actions */
  content: none !important;
  display: none !important;
}
/* Pure HSG wrapper — no vendor selector fights */
.hsg-cart-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.hsg-cart-actions__coupon,
.hsg-cart-page table.cart td.actions .coupon.hsg-cart-actions__coupon {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  /* Woo: .coupon { float:left } */
  float: none !important;
  padding: 0;
  margin: 0;
  width: auto;
  max-width: calc(100% - 180px);
  flex: 1 1 auto;
  min-width: 0;
}
/* label hide: Woo already sets display:none on .coupon label (higher specificity than Bootstrap) */
.hsg-cart-actions__input,
.hsg-cart-page table.cart td.actions .coupon .input-text.hsg-cart-actions__input {
  flex: 1 1 auto;
  /* Docent: #coupon_code { width:46% !important } + Woo float/width */
  width: 200px !important;
  min-width: 140px !important;
  max-width: 240px !important;
  min-height: 44px;
  height: 44px;
  /* Woo coupon input margin 0 4px 0 0 / Docent spacing */
  margin: 0 !important;
  float: none !important;
  /* Docent/Woo input border-radius ~2px */
  border: 1px solid var(--hsg-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-family: var(--hsg-font);
  box-sizing: border-box;
}
.hsg-cart-actions__apply,
.hsg-cart-actions__update,
.hsg-cart-page table.cart td.actions button.hsg-cart-actions__apply,
.hsg-cart-page table.cart td.actions button.hsg-cart-actions__update,
.hsg-cart-page table.cart td.actions button[name="apply_coupon"],
.hsg-cart-page table.cart td.actions button[name="update_cart"] {
  flex: 0 0 auto;
  /* Woo smallscreen: .coupon .button { width:48% } / .actions .button { width:100% } */
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none !important;
  margin: 0;
  writing-mode: horizontal-tb;
  min-height: 44px;
  height: 44px;
  padding: 0 16px;
}
.hsg-cart-actions__apply,
.hsg-cart-page table.cart td.actions button[name="apply_coupon"] {
  /* Vendor button bg/color wars (Woo gray + Docent tutor-primary) */
  background: var(--hsg-primary) !important;
  border-color: var(--hsg-primary) !important;
  color: #fff !important;
  background-image: none !important;
}
.hsg-cart-actions__update,
.hsg-cart-page table.cart td.actions button[name="update_cart"] {
  background: #fff !important;
  border: 1px solid var(--hsg-line) !important;
  color: var(--hsg-ink) !important;
  margin-left: auto;
  flex-shrink: 0;
}
.hsg-cart-page table.cart td.actions button[name="update_cart"]:disabled,
.hsg-cart-page table.cart td.actions button[name="update_cart"][disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  color: var(--hsg-muted);
}

/* Totals card — KEEP float/width vs Woo layout floats; strip duplicates of Docent/hsg-btn */
.hsg-cart-page .cart-collaterals {
  /* Docent already margin-top:20px; Woo already width:100% */
  margin-top: 20px;
  display: flex;
  /* KEEP: media ≤991 sets invalid justify-content:stretch (ignored→start); preserve right-align card */
  justify-content: flex-end !important;
  width: 100%;
}
.hsg-cart-page .cart-collaterals .cart_totals,
.hsg-cart-page .woocommerce .cart_totals {
  /* Woo layout: width 48% / float right — equal specificity, but float needs !important vs cascade */
  width: 380px;
  max-width: 100%;
  float: none !important;
  background: var(--hsg-surface);
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  box-shadow: var(--hsg-shadow);
  padding: 18px 20px 20px;
  box-sizing: border-box;
}
.hsg-cart-page .cart_totals h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: var(--hsg-ink);
  text-transform: none;
}
.hsg-cart-page .cart_totals table.shop_table {
  border: 0;
  margin: 0 0 14px;
}
.hsg-cart-page .cart_totals table.shop_table th,
.hsg-cart-page .cart_totals table.shop_table td {
  border-color: var(--hsg-line);
  /* Docent .shop_table th { padding:12px 0 9px !important } */
  padding: 12px 0 !important;
  text-align: left;
}
.hsg-cart-page .cart_totals table.shop_table td {
  /* Woo smallscreen: td { text-align:right !important } — reinforce intentional right align */
  text-align: right !important;
}
.hsg-cart-page .wc-proceed-to-checkout {
  padding: 0;
}
.hsg-cart-page .wc-proceed-to-checkout a.checkout-button {
  /* width 100% already from .hsg-btn--block; KEEP display vs vendor-buttons inline-flex */
  display: flex !important;
  justify-content: center;
}

.hsg-commerce-page .cart-empty,
.hsg-commerce-page .return-to-shop {
  text-align: center;
}
.hsg-commerce-page .return-to-shop .button {
  display: inline-flex;
  min-width: 220px;
}

/* Checkout */
/* Core review-order 5.2+ adds thead; previous HSG override had none — hide to keep UI. */
.hsg-checkout-page .woocommerce-checkout-review-order-table thead {
  display: none;
}
.hsg-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info,
.hsg-checkout-page .woocommerce-info {
  border: 1px solid var(--hsg-line) !important;
  border-radius: 12px;
  background: #fff !important;
  color: var(--hsg-ink);
  padding: 14px 16px !important;
}
/* Do NOT force display:block — Woo starts with style="display:none" and .showcoupon toggles it.
   Style chrome only; leave visibility to Woo checkout.js. */
.hsg-checkout-page form.checkout_coupon.hsg-checkout-coupon,
.hsg-checkout-page form.hsg-checkout-coupon {
  margin: 12px 0 20px;
  padding: 16px 18px;
  background: var(--hsg-surface);
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  box-shadow: var(--hsg-shadow);
  box-sizing: border-box;
}
.hsg-checkout-coupon__hint {
  /* pure HSG class — no vendor selector fight */
  margin: 0 0 12px;
  padding: 0;
  color: var(--hsg-muted);
  font-size: 14px;
  float: none;
  width: 100%;
}
.hsg-checkout-coupon__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}
.hsg-checkout-coupon__row .form-row {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}
.hsg-checkout-coupon__row .form-row-first {
  flex: 1 1 220px;
  padding-right: 0 !important;
}
.hsg-checkout-coupon__row .form-row-last {
  flex: 0 0 auto;
  padding-left: 0 !important;
}
.hsg-checkout-coupon__row .clear {
  display: none;
}
.hsg-checkout-coupon__input,
.hsg-checkout-page .hsg-checkout-coupon .input-text.hsg-checkout-coupon__input {
  flex: 1 1 220px;
  /* Docent input[type=text] { width:100% } + checkout form .input-text { width:100% !important } */
  width: auto !important;
  max-width: none !important;
  min-height: 48px;
  margin: 0;
  float: none;
  border: 1px solid var(--hsg-line) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  box-sizing: border-box;
}
.hsg-checkout-coupon__btn,
.hsg-checkout-page .hsg-checkout-coupon button.hsg-checkout-coupon__btn,
.hsg-checkout-page .hsg-checkout-coupon button[name="apply_coupon"] {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 148px !important;
  margin: 0;
  float: none;
  /* vendor button color wars */
  background: var(--hsg-primary) !important;
  border: 1px solid var(--hsg-primary) !important;
  border-radius: 12px !important;
  color: #fff !important;
  background-image: none !important;
}
.hsg-checkout-page .col2-set {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: start;
}
.hsg-checkout-page #customer_details {
  align-items: start;
}
.hsg-checkout-page .col2-set::before,
.hsg-checkout-page .col2-set::after {
  display: none !important;
  content: none !important;
}
.hsg-checkout-page .col2-set .col-1,
.hsg-checkout-page .col2-set .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0;
  box-sizing: border-box;
}
.hsg-checkout-page #customer_details .col-1,
.hsg-checkout-page #customer_details > .col-1,
.hsg-checkout-page .col2-set > .col-1,
.hsg-checkout-page .review-wrap,
.hsg-checkout-page .col2-set > .col-2 .review-wrap {
  padding: 24px 28px 28px !important;
  background: var(--hsg-surface) !important;
  border: 1px solid var(--hsg-line) !important;
  border-radius: var(--hsg-radius) !important;
  box-shadow: var(--hsg-shadow);
  box-sizing: border-box !important;
}
.hsg-checkout-page .woocommerce-billing-fields,
.hsg-checkout-page .woocommerce-additional-fields,
.hsg-checkout-page .woocommerce-billing-fields__field-wrapper {
  padding: 0;
  margin: 0;
}
.hsg-checkout-page #order_review_heading,
.hsg-checkout-page .woocommerce-billing-fields > h3,
.hsg-checkout-page .woocommerce-additional-fields > h3 {
  margin: 0 0 18px;
  padding: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--hsg-ink);
}
.hsg-checkout-page .form-row {
  /* Woo .form-row { margin-bottom:6px } + theme padding */
  margin-bottom: 14px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.hsg-checkout-page .form-row-first,
.hsg-checkout-page .form-row-last {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.hsg-checkout-page .form-row-first {
  padding-right: 8px !important;
}
.hsg-checkout-page .form-row-last {
  padding-left: 8px !important;
}
.hsg-checkout-page .form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hsg-ink);
}
.hsg-checkout-page form .input-text,
.hsg-checkout-page form select,
.hsg-checkout-page textarea {
  width: 100% !important;
  border: 1px solid var(--hsg-line) !important;
  border-radius: 10px !important;
  min-height: 44px;
  padding: 10px 12px !important;
  font-family: var(--hsg-font) !important;
  box-shadow: none !important;
  background: #fff !important;
}
.hsg-checkout-page .woocommerce-checkout-payment {
  background: #f8fafc !important;
  border: 1px solid var(--hsg-line) !important;
  border-radius: 12px;
  padding: 14px 16px !important;
}
.hsg-checkout-page .woocommerce-privacy-policy-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--hsg-muted);
}
.hsg-checkout-page #place_order {
  width: 100% !important;
  display: flex !important;
  justify-content: center;
  margin-top: 12px;
}

/* Order received / thank you — redesign */
.hsg-order-received-page .woocommerce {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 16px 64px;
  box-sizing: border-box;
}
.hsg-order-received {
  display: grid;
  gap: 20px;
}
.hsg-order-received__hooks:empty {
  display: none;
}
.hsg-order-received__hooks > *:empty {
  display: none;
}

/* Hero */
.hsg-ty-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
  padding: 28px 24px 24px;
  text-align: center;
  background: var(--hsg-success-soft);
  border: 1px solid #abefc6;
  border-radius: var(--hsg-radius);
  box-sizing: border-box;
}
.hsg-ty-hero--error {
  background: #fef2f2;
  border-color: #fecaca;
}
.hsg-ty-hero__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #12b76a;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(18, 183, 106, 0.28);
}
.hsg-ty-hero--error .hsg-ty-hero__icon {
  background: #dc2626;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25);
}
.hsg-ty-hero__title {
  margin: 4px 0 0;
  font-family: var(--hsg-font);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--hsg-ink);
}
.hsg-ty-hero__desc {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--hsg-text);
}
.hsg-ty-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 0;
}
.hsg-ty-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #c2410c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.hsg-ty-badge__icon {
  display: inline-flex;
  color: #ea580c;
}

/* Summary bar — meta (~70%) + amount (~30%) */
.hsg-ty-summary,
.hsg-order-received-page ul.hsg-ty-summary.woocommerce-order-overview {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  background: var(--hsg-surface);
  border: 1px solid var(--hsg-line);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.hsg-ty-summary::before,
.hsg-ty-summary::after,
.hsg-order-received-page ul.hsg-ty-summary::before,
.hsg-order-received-page ul.hsg-ty-summary::after {
  content: none;
  display: none;
}
.hsg-ty-summary > li,
.hsg-order-received-page ul.hsg-ty-summary > li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--hsg-line);
  list-style: none;
  text-align: left;
  text-transform: none;
  font-size: 13px;
  color: var(--hsg-muted);
  min-width: 0;
  box-sizing: border-box;
}
.hsg-ty-summary > li:last-child {
  border-bottom: 0;
}
.hsg-ty-summary__icon {
  display: none;
}
.hsg-ty-summary__label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hsg-muted);
}
.hsg-ty-summary > li > strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--hsg-ink);
  overflow-wrap: break-word;
  word-break: normal;
}
.hsg-ty-summary > li.email > strong,
.hsg-order-received-page ul.hsg-ty-summary > li.email > strong {
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: normal;
}
.hsg-ty-summary > li.total,
.hsg-order-received-page ul.hsg-ty-summary > li.total {
  background: #f8fbff;
}
.hsg-ty-summary__total,
.hsg-ty-summary__total .woocommerce-Price-amount,
.hsg-ty-summary__total .amount {
  color: var(--hsg-primary);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hsg-ty-summary,
  .hsg-order-received-page ul.hsg-ty-summary.woocommerce-order-overview {
    /* Left meta ~70%, amount ~30% */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(160px, 1.3fr);
    align-items: stretch;
  }
  .hsg-ty-summary > li,
  .hsg-order-received-page ul.hsg-ty-summary > li {
    border-bottom: 0;
    border-right: 1px solid var(--hsg-line);
    padding: 12px 16px;
  }
  .hsg-ty-summary > li:last-child,
  .hsg-ty-summary > li.total,
  .hsg-order-received-page ul.hsg-ty-summary > li.total {
    border-right: 0;
  }
  .hsg-ty-summary > li.total,
  .hsg-order-received-page ul.hsg-ty-summary > li.total {
    align-items: flex-end;
    text-align: right;
  }
  .hsg-ty-summary > li.email,
  .hsg-order-received-page ul.hsg-ty-summary > li.email {
    min-width: 0;
  }
  .hsg-ty-summary > li.email > strong,
  .hsg-order-received-page ul.hsg-ty-summary > li.email > strong {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
  }
}

@media (max-width: 767px) {
  .hsg-ty-summary > li.total,
  .hsg-order-received-page ul.hsg-ty-summary > li.total {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
  }
  .hsg-ty-summary > li.total .hsg-ty-summary__label,
  .hsg-order-received-page ul.hsg-ty-summary > li.total .hsg-ty-summary__label {
    flex: 1 1 auto;
  }
  .hsg-ty-summary > li.total .hsg-ty-summary__total,
  .hsg-order-received-page ul.hsg-ty-summary > li.total .hsg-ty-summary__total {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
  }
  .hsg-ty-summary > li.email > strong,
  .hsg-order-received-page ul.hsg-ty-summary > li.email > strong {
    /* Prefer break after @ / . instead of mid-token when possible */
    font-size: 12.5px;
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* Two-column body */
.hsg-ty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
@media (min-width: 960px) {
  .hsg-ty-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 20px;
  }
  .hsg-ty-grid--single {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
  }
}

.hsg-ty-card {
  margin: 0;
  padding: 22px 22px 24px;
  background: var(--hsg-surface);
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  min-width: 0;
}
.hsg-ty-card__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
}
.hsg-ty-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--hsg-blue-soft);
  color: var(--hsg-primary);
}
.hsg-ty-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--hsg-ink);
  line-height: 1.3;
  text-transform: none;
}
.hsg-ty-card__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--hsg-muted);
}

/* Banking */
.hsg-ty-bank__box {
  padding: 14px 14px 6px;
  border: 1px solid var(--hsg-line);
  border-radius: 12px;
  background: #f8fafc;
}
.hsg-ty-bank__name {
  display: grid;
  gap: 2px;
  margin: 0 0 10px;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--hsg-line);
}
.hsg-ty-bank__bank-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--hsg-muted);
}
.hsg-ty-bank__name strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--hsg-ink);
  overflow-wrap: anywhere;
}
.hsg-ty-bank__fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.hsg-ty-bank__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label copy"
    "value copy";
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  margin: 0;
  padding: 12px 4px;
  border-bottom: 1px solid var(--hsg-line);
}
.hsg-ty-bank__row:last-child {
  border-bottom: 0;
}
.hsg-ty-bank__label {
  grid-area: label;
  font-size: 12px;
  font-weight: 600;
  color: var(--hsg-muted);
}
.hsg-ty-bank__value {
  grid-area: value;
  font-size: 14px;
  font-weight: 800;
  color: var(--hsg-ink);
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.hsg-ty-bank__row .hsg-copy-btn {
  grid-area: copy;
}

.hsg-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
  color: var(--hsg-primary);
  font-family: var(--hsg-font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.hsg-copy-btn:hover,
.hsg-copy-btn:focus-visible {
  background: var(--hsg-blue-soft);
  border-color: var(--hsg-primary);
  outline: none;
}
.hsg-copy-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.2);
}
.hsg-copy-btn.is-copied {
  background: var(--hsg-success-soft);
  border-color: #abefc6;
  color: var(--hsg-success);
}

.hsg-ty-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.55;
}
.hsg-ty-note__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #fb923c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
}
.hsg-ty-note__body {
  min-width: 0;
}
.hsg-ty-note__body p {
  margin: 0 0 6px;
}
.hsg-ty-note__body p:last-child {
  margin-bottom: 0;
}

/* Order details */
.hsg-ty-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.hsg-ty-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--hsg-line);
}
.hsg-ty-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--hsg-blue-soft);
  border: 1px solid var(--hsg-line);
}
.hsg-ty-item__thumb--placeholder {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}
.hsg-ty-item__thumb img,
.hsg-ty-item__thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hsg-ty-item__meta {
  min-width: 0;
}
.hsg-order-received-page .hsg-ty-item__title,
.hsg-order-received-page a.hsg-ty-item__title {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--hsg-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hsg-order-received-page a.hsg-ty-item__title:hover {
  color: var(--hsg-primary);
}
.hsg-ty-item__qty {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--hsg-muted);
}
.hsg-ty-item__price {
  font-size: 14px;
  font-weight: 800;
  color: var(--hsg-ink);
  white-space: nowrap;
  text-align: right;
}
.hsg-ty-totals {
  margin: 8px 0 0;
  padding: 8px 0 0;
  display: grid;
  gap: 8px;
}
.hsg-ty-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  font-size: 14px;
  color: var(--hsg-text);
}
.hsg-ty-totals__row dt {
  margin: 0;
  font-weight: 600;
  color: var(--hsg-muted);
}
.hsg-ty-totals__row dd {
  margin: 0;
  font-weight: 700;
  color: var(--hsg-ink);
  text-align: right;
}
.hsg-ty-totals__row--order_total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--hsg-line);
}
.hsg-ty-totals__row--order_total dt,
.hsg-ty-totals__row--order_total dd,
.hsg-ty-totals__row--order_total .woocommerce-Price-amount,
.hsg-ty-totals__row--order_total .amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--hsg-primary);
}

/* Next steps — reuse .hsg-ty-card chrome; stepper-only rules below */
.hsg-ty-next__header {
  display: block;
  margin: 0 0 18px;
}
.hsg-ty-next__icon {
  display: none;
}
.hsg-ty-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.hsg-ty-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 0 0 14px;
}
.hsg-ty-step:last-child {
  padding-bottom: 0;
}
/* Vertical connector (mobile / default) */
.hsg-ty-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 13px;
  width: 2px;
  bottom: 0;
  background: var(--hsg-line-strong);
}
.hsg-ty-step__num {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hsg-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 3px var(--hsg-surface);
}
.hsg-ty-step__body {
  min-width: 0;
  padding-top: 2px;
}
.hsg-ty-step__title {
  display: block;
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--hsg-ink);
}
.hsg-ty-step__desc,
.hsg-ty-next__fallback {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--hsg-text);
}
.hsg-ty-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
  padding-top: 20px;
}
.hsg-ty-next__actions .hsg-btn {
  min-width: 168px;
}

@media (min-width: 768px) {
  .hsg-ty-steps--3,
  .hsg-ty-steps--2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .hsg-ty-steps--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
    margin-inline: auto;
  }
  .hsg-ty-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
    grid-template-columns: none;
  }
  .hsg-ty-step:not(:last-child)::before {
    /* Horizontal connector between circles */
    top: 13px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .hsg-ty-step__body {
    padding-top: 10px;
    max-width: 22ch;
  }
  .hsg-ty-step__desc {
    max-width: 28ch;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .hsg-ty-item {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "thumb meta"
      "price price";
  }
  .hsg-ty-item__thumb {
    width: 48px;
    height: 48px;
    grid-area: thumb;
  }
  .hsg-ty-item__meta {
    grid-area: meta;
  }
  .hsg-ty-item__price {
    grid-area: price;
    text-align: left;
    padding-left: 60px;
  }
  .hsg-ty-bank__row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "value"
      "copy";
    justify-items: start;
  }
  .hsg-ty-next__actions .hsg-btn {
    width: 100%;
  }
}

.hsg-account-page .woocommerce-MyAccount-navigation {
  padding: 12px;
  margin-bottom: 16px;
  background: var(--hsg-surface);
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
}
.hsg-account-page .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.hsg-account-page .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--hsg-ink);
  text-decoration: none;
  font-weight: 600;
}
.hsg-account-page .woocommerce-MyAccount-navigation .is-active a,
.hsg-account-page .woocommerce-MyAccount-navigation a:hover {
  background: var(--hsg-blue-soft);
  color: var(--hsg-primary);
}
.hsg-account-page .woocommerce-MyAccount-content {
  padding: 18px 20px 22px;
  background: var(--hsg-surface);
  border: 1px solid var(--hsg-line);
  border-radius: var(--hsg-radius);
  box-shadow: var(--hsg-shadow);
}

@media (max-width: 991px) {
  .hsg-checkout-page .col2-set {
    grid-template-columns: 1fr;
  }
  /* justify-content:stretch was invalid CSS and dead under base flex-end !important */
  .hsg-cart-page .cart-collaterals .cart_totals {
    max-width: none;
  }
  .hsg-cart-page table.cart td.actions button[name="update_cart"] {
    float: none !important;
  }
}
