/* AuthVault + installed MarketKit/WoodMart colors, scoped to customer-facing pages.
   This is not a replacement for WooCommerce forms, templates or plugin settings. */
body {
  --avp-theme-a:var(--mk46-teal,var(--mk-accent,var(--wd-primary-color,#087f85)));
  --avp-theme-b:var(--mk46-teal,var(--mk-accent,var(--wd-primary-color,#087f85)));
  --avp-theme-ink:var(--mk-ink,var(--wd-text-color,#183b40));
  --avp-theme-surface:var(--mk-surface,#fff);
  --avp-theme-muted:var(--mk-muted,#64748b);
  --avp-theme-soft:var(--mk-bg,#eff8f5);
  --avp-theme-border:var(--mk-line,#dbe6e5);
  --avp-theme-input:var(--mk-surface,#fff);
  --avp-brand-primary:var(--avp-theme-a);
  --avp-primary:var(--avp-theme-a);
  --avp-button-ink:var(--mk-button-ink,#fff);
}
body .avp-mac, body .avpwcw-account-warranties, body .avpwcis-delivery-account,
body .avpwcis-delivery-card, body .avpt, body .avpwcot-page, body .avpwc-checkout-card {
  font-family:inherit; direction:inherit; color:var(--avp-theme-ink);
}
/* Theme-owned account layout and service panels: keep every registered WC endpoint visible. */
body.mk-shell .mk-account-sidebar, body.mk-shell .mk-account-content .mk30-panel,
body.mk-shell .mk30-stat, body.mk-shell .mk30-actions-panel,
body.mk-shell .woocommerce-MyAccount-content :is(.avpwcw-account-card,.avpwcw-order-warranty-panel,.avpwcis-delivery-card,.avp-order-detail-card,.avp-order-info-card) {
  background:var(--avp-theme-surface)!important;border-color:var(--avp-theme-border)!important;
  color:var(--avp-theme-ink)!important;
}
body.mk-shell .mk-account-sidebar .woocommerce-MyAccount-navigation a,
body.mk-shell .mk30-panel-heading h3,body.mk-shell .mk30-actions-panel h3,
body.mk-shell .mk30-stat strong {color:var(--avp-theme-ink)!important}
body.mk-shell .mk-account-sidebar .woocommerce-MyAccount-navigation :is(a:hover,.is-active a) {
  color:var(--avp-theme-a)!important;background:var(--avp-theme-soft)!important;
}
body.mk-shell .mk30-welcome { background:linear-gradient(115deg,var(--avp-theme-ink),var(--avp-theme-a))!important;color:#fff!important }
body.mk-shell .mk30-stat-icon, body.mk-shell .mk30-shortcuts>a,
body.mk-shell .mk-account-sidebar .mk-account-identity {background:var(--avp-theme-soft)!important}
body.mk-shell .mk30-stat-icon, body.mk-shell .mk30-panel-heading>a,
body.mk-shell .mk-account-sidebar .mk-account-shop-link {color:var(--avp-theme-a)!important}
body.mk-shell .woocommerce-MyAccount-content :is(input.input-text,select,textarea) {
  background:var(--avp-theme-input)!important;border-color:var(--avp-theme-border)!important;
  color:var(--avp-theme-ink)!important;
}
body.mk-shell .woocommerce-MyAccount-content :is(input.input-text,select,textarea):focus-visible {
  outline:2px solid var(--mk-focus,var(--avp-theme-a))!important;outline-offset:1px;
}
/* Warranty cards/claims/verification adopt installed theme, not fixed violet or teal. */
body :is(.avpwcw-product-warranty-card,.avpwcw-account-card,.avpwcw-order-warranty-panel,.avpwcw-claim-form,.avpwcw-frontend-tab) {
  --avp-primary:var(--avp-theme-a);--avp-border:var(--avp-theme-border);
  font-family:inherit!important; color:var(--avp-theme-ink);
}
body :is(.avpwcw-product-warranty-card,.avpwcw-order-warranty-panel,.avpwcw-account-card) {
  border-color:var(--avp-theme-border)!important;background:var(--avp-theme-surface)!important;border-radius:16px;
}
body :is(.avpwcw-product-warranty-icon,.avpwcw-account-actions .button,.avpwcw-claim-form .button) {
  background:var(--avp-theme-a)!important;color:var(--avp-button-ink)!important;
}
body .avpwcw-frontend-tab :is(h2,h3),body .avpwcw-account-warranties :is(h2,h3) {
  color:var(--avp-theme-ink)!important;
}
body .avpwcw-account-warranties :is(a:not(.button),.avpwcw-status) {color:var(--avp-theme-a)}
/* Delivery preferences, estimated ETA, shipment tracking and order status. */
body .avpwcis-estimate,body .avpwcis-estimate-inline,body .avpwcis-shop-delivery {
  --avpwcis-card-bg:var(--avp-theme-soft);--avpwcis-card-border:var(--avp-theme-border);
  --avpwcis-title-color:var(--avp-theme-ink);--avpwcis-message-color:var(--avp-theme-muted);
  --avpwcis-accent-color:var(--avp-theme-a);--avpwcis-icon-bg:var(--avp-theme-a);
  --avpwcis-shop-icon-color:var(--avp-theme-a);--avpwcis-shop-icon-bg:var(--avp-theme-soft);
  --avpwcis-shop-text-color:var(--avp-theme-muted);--avpwcis-shop-label-color:var(--avp-theme-ink);
}
body .avpwcis-delivery-card {border-color:var(--avp-theme-border)!important;background:var(--avp-theme-surface)!important}
body .avpwcis-delivery-card__heading h3,body .avpwcis-delivery-field :is(label,legend) {color:var(--avp-theme-ink)!important}
body .avpwcis-delivery-field :is(input[type=text],input[type=date],input[type=time],select,textarea) {
  background:var(--avp-theme-surface)!important;color:var(--avp-theme-ink)!important;
  border-color:var(--avp-theme-border)!important;
}
body .avpwcis-day-chip input:checked+span,body .avpwcis-instruction-chip input:checked+span {
  border-color:var(--avp-theme-a)!important;color:var(--avp-theme-a)!important;background:var(--avp-theme-soft)!important;
}
body .avpwcis-delivery-card :is(button[type=submit],.button-primary),
body .avpt :is(.avpt-action-primary,.avpt-btn-primary) {
  background:var(--avp-theme-a)!important;color:var(--avp-button-ink)!important;border-color:var(--avp-theme-a)!important;
}
body .avpt {--avpt-p:var(--avp-theme-a);--avpt-text:var(--avp-theme-ink);
  --avpt-muted:var(--avp-theme-muted);--avpt-border:var(--avp-theme-border);
  --avpt-bg:var(--avp-theme-soft);--avpt-white:var(--avp-theme-surface)}
body.mk-shell .woocommerce-MyAccount-content .avpt {min-height:0!important;border-radius:18px;overflow:clip}
body .avpwcot-page {--avp-primary:var(--avp-theme-a);--avp-text:var(--avp-theme-ink);
  --avp-border:var(--avp-theme-border);--avp-bg:var(--avp-theme-soft)}
body .avpwc-checkout-card {border-color:var(--avp-theme-border)!important;
  background:var(--avp-theme-soft)!important;color:var(--avp-theme-ink)!important}
body .avpwc-checkout-card__badge {color:var(--avp-theme-a)!important;background:var(--avp-theme-surface)!important}
body .avpwc-checkout-card__title {color:var(--avp-theme-ink)!important}
/* Shared frontend actions, never WP admin. */
body .woocommerce-MyAccount-content :is(.avp-order-btn,.avp-shop-card-action,.avpwcw-account-actions .button),
body .woocommerce-MyAccount-content .button {border-radius:11px;align-items:center;gap:7px}
body .woocommerce-MyAccount-content :is(.avp-order-btn,.avp-shop-card-action) svg,
body .woocommerce-MyAccount-content :is(.avp-order-btn,.avp-shop-card-action) i {vertical-align:middle;flex-shrink:0}
@media(max-width:767px) {
  body.mk-shell .mk-account-sidebar{position:static!important}
  body .avpwcis-delivery-grid,body .avpwcw-claim-form-grid {grid-template-columns:minmax(0,1fr)!important}
  body .avpwcis-delivery-card {padding:16px!important}
  body.mk-shell .mk-account-layout{grid-template-columns:minmax(0,1fr)!important}
}

/* v10: card layout belongs to the theme account container, never to a replacement plugin template. */
body.mk-shell.woocommerce-account.logged-in .mk-account-content :is(.avp-db-grid,.avp-shop-grid){
 display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr))!important;
 gap:clamp(14px,1.5vw,22px)!important;align-items:stretch!important;width:100%!important;min-width:0!important;
}
body.mk-shell.woocommerce-account.logged-in .mk-account-content .avp-db-grid>.avp-db-card{
 grid-column:auto!important;width:100%!important;min-width:0!important;min-height:135px!important;box-sizing:border-box;
}
body.mk-shell.woocommerce-account.logged-in .mk-account-content .avp-shop-grid>.avp-shop-card{
 grid-column:auto!important;min-width:0!important;width:100%!important;min-height:250px;
}
body.mk-shell.woocommerce-account.logged-in .mk-account-content .avp-shop-grid>.avp-shop-card--current{
 grid-column:1/-1!important;min-height:0!important;
}
body.mk-shell.woocommerce-account.logged-in .mk-account-content :is(.avp-db-section-head,.avp-shop-shell,.avp-db-detail-panel,.avp-db-quick-panel){
 margin-block:clamp(16px,1.7vw,26px)!important;min-width:0!important;
}
body.mk-shell.woocommerce-account.logged-in .mk-account-content :is(.avp-db-card,.avp-shop-card,.avp-mac-content>.avp-panel,.avpwcw-account-card,.avpwcw-order-warranty-panel){
 box-sizing:border-box;max-width:100%;overflow-wrap:anywhere;
}
body.mk-shell.woocommerce-account.logged-in .mk-account-content :is(.avp-mac,.avp-mac-content,.avp-native-feature){min-width:0!important;max-width:100%!important}
body.mk-shell.woocommerce-account.logged-in .mk-account-content :is(.avp-db-grid,.avp-shop-grid) :is(a,button){max-width:100%}
@media(max-width:640px){
 body.mk-shell.woocommerce-account.logged-in .mk-account-content :is(.avp-db-grid,.avp-shop-grid){grid-template-columns:minmax(0,1fr)!important;gap:13px!important}
 body.mk-shell.woocommerce-account.logged-in .mk-account-content :is(.avp-db-card,.avp-shop-card){min-height:0!important}
}
