/* Account and confirmation share the checkout cards and component controls. */
body .bhq-account-page .wp-block-post-content > .woocommerce { width: 100%; max-width: none; }
.bhq-account-page .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 1.5rem; }
.bhq-account-page .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
.bhq-account-page .woocommerce:has(> .woocommerce-MyAccount-navigation)::after { display: none; }
.bhq-account-page .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.bhq-account-page .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
body .bhq-account-page .woocommerce-MyAccount-navigation,
body .bhq-account-page .woocommerce-MyAccount-content { float: none; width: 100%; min-width: 0; margin: 0; }
.bhq-account-page .woocommerce-MyAccount-navigation ul { padding: .5rem; }
.bhq-account-page .woocommerce-MyAccount-navigation li a { text-decoration: none; }
.bhq-account-page .woocommerce-MyAccount-content { min-height: 0; padding: clamp(1rem, 2.2vw, 1.5rem); }
.bhq-account-page .woocommerce-MyAccount-navigation a { padding: .75rem .875rem; font-size: .8125rem; line-height: 1.4; }
.bhq-account-page .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
.bhq-account-page .woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }
.bhq-account-page .woocommerce :is(a.button, button.button, input.button) {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: auto; min-height: 38px; padding: .5rem .875rem; margin-block: 0;
  font-family: var(--wp--preset--font-family--body); font-size: .8125rem; line-height: 1.35;
  border-radius: min(var(--bhq-button-radius), 10px); vertical-align: middle; text-align: center;
}
.bhq-account-page .woocommerce table.woocommerce-orders-table { width: 100%; border-collapse: separate; margin: 0; }
.bhq-account-page .woocommerce table.woocommerce-orders-table :is(th, td) { padding: .875rem .75rem; vertical-align: middle; font-size: .8125rem; line-height: 1.5; text-align: start; }
.bhq-account-page .woocommerce table.woocommerce-orders-table thead th { color: var(--wp--preset--color--muted); font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; }
.bhq-account-page .woocommerce table.woocommerce-orders-table tbody th { background: transparent; }
.bhq-account-page .woocommerce .woocommerce-orders-table__cell-order-number a { font-weight: 700; text-decoration: none; }
.bhq-account-page .woocommerce table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions { width: 190px; }
.bhq-account-page .woocommerce table.woocommerce-orders-table .button { min-width: 54px; margin: .1875rem .25rem .1875rem 0; padding: .4375rem .6875rem; min-height: 34px; font-size: .75rem; }
.bhq-account-page .woocommerce table.shop_table :is(.button.view, .button.cancel) { background: var(--wp--preset--color--white); color: var(--wp--preset--color--blue); border-color: var(--wp--preset--color--line); }
.bhq-account-page .woocommerce table.shop_table .button.cancel { color: var(--wp--preset--color--muted); }
.bhq-account-page .woocommerce table.shop_table :is(.button.view, .button.cancel):hover { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--blue); }

/* Retain native notice roles, messages, icons and verification action URLs. */
.bhq-main .wc-block-components-notice-banner {
  border: 1px solid var(--wp--preset--color--line); border-inline-start: 3px solid var(--wp--preset--color--blue);
  border-radius: min(var(--bhq-card-radius), 12px); padding: 1rem; margin-block: 0 1.25rem;
  background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--body); font-size: .875rem; line-height: 1.6; gap: .75rem;
}
.bhq-main .wc-block-components-notice-banner > svg { flex-shrink: 0; margin-top: .125rem; background: var(--wp--preset--color--blue); fill: white; }
.bhq-main .wc-block-components-notice-banner.is-success { border-inline-start-color: var(--wp--preset--color--success); background: #f2faf6; }
.bhq-main .wc-block-components-notice-banner.is-success > svg { background: var(--wp--preset--color--success); }
.bhq-main .wc-block-components-notice-banner.is-success { align-items: center; }
.bhq-main .wc-block-components-notice-banner.is-success > svg { flex: 0 0 24px; height: 24px; margin: 0; }
.bhq-main .wc-block-components-notice-banner.is-success .wc-block-components-notice-banner__content { display: block; flex: 1; }
.bhq-main .wc-block-components-notice-banner.is-success .bhq-added-to-cart { display: block; margin: 0; }
.bhq-main .wc-block-components-notice-banner.is-error { border-inline-start-color: #b32d2e; background: #fff6f4; }
.bhq-main .wc-block-components-notice-banner.is-error > svg { background: #b32d2e; }
.bhq-main .wc-block-components-notice-banner.is-warning { border-inline-start-color: var(--wp--preset--color--orange); background: var(--wp--preset--color--sand); }
.bhq-main .wc-block-components-notice-banner.is-warning > svg { background: var(--wp--preset--color--navy); }
.bhq-main .wc-block-components-notice-banner__content { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; min-width: 0; }
.bhq-main .wc-block-components-notice-banner__content > :is(p, ul) { margin: 0; }
.bhq-main .wc-block-components-notice-banner__content > .button {
  order: 1; float: none !important; display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; margin: 0; padding: .4375rem .75rem !important; border: 1px solid var(--wp--preset--color--line) !important;
  border-radius: min(var(--bhq-button-radius), 8px); background: white !important; color: var(--wp--preset--color--blue) !important;
  font-family: var(--wp--preset--font-family--body); font-size: .75rem; font-weight: 500; line-height: 1.4;
  text-decoration: none !important; opacity: 1; box-shadow: none;
}
.bhq-main .wc-block-components-notice-banner__content > .button:hover { border-color: var(--wp--preset--color--blue) !important; background: var(--wp--preset--color--sand) !important; }
.bhq-main .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) { border: 1px solid var(--wp--preset--color--line); border-inline-start: 3px solid var(--wp--preset--color--blue); background: var(--wp--preset--color--surface); padding: 1rem 1rem 1rem 3rem; font-size: .875rem; line-height: 1.6; }
.bhq-main .woocommerce .woocommerce-message { border-inline-start-color: var(--wp--preset--color--success); }
.bhq-main .woocommerce .woocommerce-error { border-inline-start-color: #b32d2e; background: #fff6f4; }

.bhq-dashboard { display: grid; gap: 1.25rem; }
.bhq-dashboard-welcome { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.5rem; border-radius: var(--bhq-card-radius); background: var(--wp--preset--color--navy); color: white; }
.bhq-dashboard-welcome .bhq-eyebrow { color: #f8ba55; font-size: .625rem; margin: 0 0 .625rem; }
.bhq-dashboard-welcome h2 { color: white; margin: 0 0 .75rem; font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.25; }
.bhq-dashboard-welcome p:last-child { margin: 0; color: #cad5df; font-size: .875rem; }
.bhq-dashboard-avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid #ffffff38; border-radius: 50%; background: #ffffff0c; color: var(--wp--preset--color--orange); font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.5rem; }
.bhq-dashboard-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .875rem; }
.woocommerce a.bhq-dashboard-shortcut { display: flex; flex-direction: column; align-items: flex-start; padding: 1.125rem; border: 1px solid var(--wp--preset--color--line); border-radius: var(--bhq-card-radius); color: var(--wp--preset--color--navy); background: var(--wp--preset--color--warm); text-decoration: none; transition: border-color .15s, background-color .15s; }
.woocommerce a.bhq-dashboard-shortcut:hover { background: var(--wp--preset--color--sand); border-color: var(--wp--preset--color--orange); }
.bhq-dashboard-shortcut strong { font-family: var(--wp--preset--font-family--heading); font-size: .9375rem; margin-bottom: .25rem; }
.bhq-dashboard-shortcut > span:last-child { font-size: .75rem; color: var(--wp--preset--color--muted); }
.bhq-dashboard-count, .bhq-dashboard-icon { display: block; height: 32px; margin-bottom: .875rem; }
.bhq-dashboard-count { font-family: var(--wp--preset--font-family--heading); font-size: 1.625rem; line-height: 32px; font-weight: 700; color: var(--wp--preset--color--blue); }
.bhq-dashboard-icon { width: 28px; background: var(--bhq-icon-color); mask: var(--bhq-dashboard-icon) center / 26px no-repeat; }
.bhq-dashboard-icon-download { --bhq-dashboard-icon: url('../icons/download.svg'); }
.bhq-dashboard-icon-account { --bhq-dashboard-icon: url('../icons/account.svg'); }
.bhq-dashboard-latest { border: 1px solid var(--wp--preset--color--line); border-radius: var(--bhq-card-radius); padding: 1.25rem; }
.bhq-section-heading, .bhq-latest-heading, .bhq-dashboard-help { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.bhq-section-heading { margin-bottom: 1.25rem; }
.bhq-section-heading h2 { margin: 0; font-size: 1.0625rem; }
.bhq-section-heading a, .bhq-dashboard-help a { font-size: .75rem; font-weight: 600; text-decoration: none; }
.bhq-latest-heading > strong { font-family: var(--wp--preset--font-family--heading); font-size: 1rem; }
.bhq-order-status { padding: .25rem .625rem; font-size: .6875rem; font-weight: 700; border-radius: 6px; color: var(--wp--preset--color--blue); background: #edf2fb; }
.bhq-order-status--on-hold, .bhq-order-status--pending { background: var(--wp--preset--color--sand); color: #885100; }
.bhq-order-status--completed, .bhq-order-status--processing { background: #eaf7f0; color: #11654e; }
.bhq-order-status--failed, .bhq-order-status--cancelled { background: #fff1ef; color: #a72a2c; }
.bhq-latest-facts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin: 1.25rem 0; padding-block: 1.125rem; border-block: 1px solid var(--wp--preset--color--line); }
.bhq-latest-facts dt { font-size: .6875rem; color: var(--wp--preset--color--muted); margin-bottom: .375rem; }
.bhq-latest-facts dd { font-size: .8125rem; margin: 0; }
.bhq-latest-facts dd.bhq-latest-price { font-family: var(--wp--preset--font-family--heading); font-size: 1.125rem; font-weight: 700; color: var(--wp--preset--color--navy); }
.bhq-dashboard-help { padding: .25rem; font-size: .75rem; color: var(--wp--preset--color--muted); }

/* Native confirmation blocks still own status, permissions, payment instructions,
   amounts, downloads and addresses. Only their surrounding layout changes. */
.bhq-order-page .bhq-confirmation-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 2rem; }
.bhq-confirmation-grid > *, .bhq-order-detail-stack > *, .bhq-order-summary-stack > * { min-width: 0; margin-block: 0; }
.bhq-order-detail-stack, .bhq-order-summary-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.bhq-order-page :is(.bhq-order-meta, .bhq-next-steps, .wp-block-woocommerce-order-confirmation-totals-wrapper, .wp-block-woocommerce-order-confirmation-billing-wrapper, .wp-block-woocommerce-order-confirmation-shipping-wrapper, .wp-block-woocommerce-order-confirmation-downloads-wrapper, .wp-block-woocommerce-order-confirmation-additional-fields-wrapper) { padding: 1.5rem; box-shadow: 0 8px 28px #192d4406; border-radius: var(--bhq-card-radius); }
.bhq-order-page .bhq-confirmation-grid h2 { font-size: 1.125rem; margin-block: 0 1.125rem; }
.bhq-order-page .bhq-confirmation-grid .wc-block-order-confirmation-summary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin: 0; padding: 0; }
.bhq-order-page .wc-block-order-confirmation-summary-list-item { display: flex; flex-direction: column; gap: .25rem; min-width: 0; padding: 0; margin: 0; }
.bhq-order-page .wc-block-order-confirmation-summary-list-item__key { color: var(--wp--preset--color--muted); font-size: .75rem; font-weight: 500; }
.bhq-order-page .wc-block-order-confirmation-summary-list-item__value { color: var(--wp--preset--color--navy); font-size: .875rem; overflow-wrap: anywhere; }
.bhq-order-page .wc-block-order-confirmation-summary-list-item__value .amount { font-family: var(--wp--preset--font-family--heading); font-weight: 700; }
.bhq-order-page .wp-block-woocommerce-order-confirmation-totals-wrapper { border-top: 3px solid var(--wp--preset--color--orange); }
.bhq-order-page table.wc-block-order-confirmation-totals__table { border: 0; width: 100%; border-collapse: collapse; }
.bhq-order-page table.wc-block-order-confirmation-totals__table :is(th, td) { padding: .875rem .625rem; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.bhq-order-page table.wc-block-order-confirmation-totals__table thead th { color: var(--wp--preset--color--muted); font-size: .6875rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.bhq-order-page table.wc-block-order-confirmation-totals__table tfoot tr:last-child :is(th, td) { padding: 1rem; background: var(--wp--preset--color--navy); color: white; border-bottom: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 700; }
.bhq-order-page table.wc-block-order-confirmation-totals__table tfoot tr:last-child td { font-size: 1.375rem; color: var(--wp--preset--color--orange); }
.bhq-order-page :is(.wp-block-woocommerce-order-confirmation-billing-address, .wp-block-woocommerce-order-confirmation-shipping-address) { padding: 0; border: 0; font-size: .875rem; line-height: 1.8; }
.bhq-order-page :is(.wp-block-woocommerce-order-confirmation-billing-address, .wp-block-woocommerce-order-confirmation-shipping-address) address { font-style: normal; border: 0; padding: 0; }
.bhq-order-page .bhq-next-steps { margin: 0; background: var(--wp--preset--color--sand); box-shadow: none; }
.bhq-order-page .bhq-next-steps .bhq-eyebrow { margin: 0 0 .625rem; font-size: .625rem; }
.bhq-order-page .bhq-next-steps p:not(.bhq-eyebrow) { font-size: .8125rem; line-height: 1.7; }
.bhq-order-page .bhq-next-steps .wp-block-buttons { display: flex; flex-direction: column; align-items: stretch; gap: .625rem; margin-top: 1.25rem; }
.bhq-order-page .bhq-next-steps .wp-block-button { width: 100%; }
.bhq-order-page .bhq-next-steps .wp-block-button__link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: .625rem .875rem; font-size: .8125rem; }
.bhq-order-page .wp-block-woocommerce-order-confirmation-additional-information:not(:empty) { padding: 1.25rem 1.5rem; background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); border-inline-start: 3px solid var(--wp--preset--color--blue); border-radius: var(--bhq-card-radius); font-size: .875rem; overflow-wrap: anywhere; }
.bhq-order-page .wp-block-woocommerce-order-confirmation-additional-information:empty { display: none; }
.bhq-order-page .wp-block-woocommerce-order-confirmation-additional-information > :first-child { margin-top: 0; }
.bhq-order-page .wp-block-woocommerce-order-confirmation-additional-information > :last-child { margin-bottom: 0; }
.bhq-order-page .wc-block-order-confirmation-order-note { margin-top: 1rem; padding: .875rem 1rem; background: var(--wp--preset--color--sand); border-inline-start: 3px solid var(--wp--preset--color--orange); border-radius: 8px; font-size: .8125rem; overflow-wrap: anywhere; }
.bhq-order-page .wc-block-order-confirmation-order-note p { margin: 0; }
.bhq-order-page .wc-block-order-confirmation-order-note__label { font-family: var(--wp--preset--font-family--heading); font-weight: 700; margin-bottom: .375rem !important; }

@media (max-width: 1000px) {
  .bhq-account-page .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: 180px minmax(0, 1fr); gap: 1rem; }
  .bhq-account-page .woocommerce table.woocommerce-orders-table :is(th, td) { padding: .75rem .5rem; }
}
@media (max-width: 780px) {
  .bhq-account-page .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); }
  .bhq-order-page .bhq-confirmation-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .bhq-account-page .woocommerce-MyAccount-navigation { margin: 0; }
}
@media (max-width: 768px) {
  .bhq-account-page .woocommerce table.woocommerce-orders-table tr { background: white; }
  .bhq-account-page .woocommerce table.woocommerce-orders-table tbody th { display: block; padding: .875rem; }
  .bhq-account-page .woocommerce table.woocommerce-orders-table tbody tr:not(:last-child) { border-bottom: 2px solid var(--wp--preset--color--line); }
  .bhq-account-page .woocommerce table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions { width: 100%; }
  .bhq-account-page .woocommerce table.woocommerce-orders-table td { padding: .625rem .875rem; background: transparent; }
}
@media (max-width: 480px) {
  .bhq-dashboard-welcome { padding: 1.125rem; }
  .bhq-dashboard-avatar { display: none; }
  .bhq-dashboard-shortcuts { grid-template-columns: minmax(0, 1fr); gap: .625rem; }
  .woocommerce a.bhq-dashboard-shortcut { padding: 1rem; }
  .bhq-latest-facts { grid-template-columns: minmax(0, 1fr); gap: .875rem; }
  .bhq-dashboard-latest { padding: 1rem; }
  .bhq-order-page :is(.bhq-order-meta, .bhq-next-steps, .wp-block-woocommerce-order-confirmation-totals-wrapper, .wp-block-woocommerce-order-confirmation-billing-wrapper, .wp-block-woocommerce-order-confirmation-shipping-wrapper) { padding: 1.125rem; }
  .bhq-order-page .bhq-confirmation-grid .wc-block-order-confirmation-summary-list { gap: 1rem; }
  .bhq-order-page table.wc-block-order-confirmation-totals__table tfoot tr:last-child td { font-size: 1.125rem; }
}
