@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --ge-color-bg: #0a0a0a;
  --ge-color-bg-alt: #0d0d0d;
  --ge-color-surface: #151515;
  --ge-color-surface-strong: #181818;
  --ge-color-border: #292929;
  --ge-color-border-soft: #232323;
  --ge-color-accent: #ff6b1a;
  --ge-color-accent-hover: #e85f13;
  --ge-color-text: #ffffff;
  --ge-color-text-soft: #c9c9c9;
  --ge-color-text-muted: #929292;
  --ge-font: 'Montserrat', Arial, sans-serif;
  --ge-radius-sm: .375rem;
  --ge-header-height: 83px;
  --ge-hero-container: 1540px;
  --ge-transition: 240ms cubic-bezier(.2, .7, .2, 1);
  --graphite-950: #181b1f;
  --graphite-900: #22262b;
  --graphite-800: #2d3238;
  --graphite-700: #454b53;
  --gray-600: #67707c;
  --gray-500: #7f8894;
  --gray-300: #d8dde3;
  --gray-200: #e7eaee;
  --gray-100: #f3f5f7;
  --surface: #ffffff;
  --orange: #ff6b1a;
  --orange-dark: #e85400;
  --orange-soft: #fff2e9;
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(20, 25, 31, .07);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--gray-100);
  color: var(--graphite-950);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid rgba(255, 107, 26, .28);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Site header: exact Global Element header rules, isolated from calculator UI. */
.sh-header {
  position: sticky;
  z-index: 9999;
  top: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--ge-header-height);
  box-sizing: border-box;
  padding-right: max(28px, calc((100vw - var(--ge-hero-container)) / 2));
  padding-left: max(28px, calc((100vw - var(--ge-hero-container)) / 2));
  border-bottom: 1px solid var(--ge-color-border-soft);
  color: var(--ge-color-text);
  background: rgba(13, 13, 13, .96);
  font-family: var(--ge-font);
  backdrop-filter: blur(14px);
}

body .sh-header .sh-inner {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0;
  padding: 13px 0 !important;
}

.sh-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 5px 7px;
  margin: -5px -7px;
  border-radius: var(--ge-radius-sm);
  color: inherit;
  text-decoration: none !important;
  transition: background-color var(--ge-transition), box-shadow var(--ge-transition), transform var(--ge-transition);
}

.sh-logo-icon { display: flex; width: 59px; height: 34px; flex: 0 0 auto; color: var(--ge-color-accent); transform-origin: center; transition: filter var(--ge-transition), transform var(--ge-transition); }
.sh-logo-icon svg { width: 100%; height: 100%; }
.sh-logo-divider { width: 2px; height: 34px; flex: 0 0 auto; border-radius: 1px; background: var(--ge-color-accent); transform-origin: center; transition: box-shadow var(--ge-transition), transform var(--ge-transition); }
.sh-logo-text { font-size: .9375rem; font-weight: 800; line-height: 1.18; letter-spacing: .035em; text-transform: uppercase; }
.sh-logo-global { color: var(--ge-color-accent); }
.sh-logo-element { color: var(--ge-color-text); }

.sh-logo:focus-visible { outline: 2px solid var(--ge-color-accent); outline-offset: 4px; }
.sh-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.sh-nav-item { position: relative; padding: 9px 12px; border: 1px solid transparent; border-radius: var(--ge-radius-sm); color: var(--ge-color-text) !important; font-size: .8125rem; font-weight: 600; line-height: 1.2; letter-spacing: .015em; text-decoration: none !important; text-transform: uppercase; white-space: nowrap; transition: color var(--ge-transition), border-color var(--ge-transition), background-color var(--ge-transition), transform var(--ge-transition); }
.sh-nav-item:hover, .sh-nav-item:focus-visible { border-color: rgba(255, 107, 26, .78); color: var(--ge-color-accent) !important; background: rgba(255, 107, 26, .055); transform: translateY(-2px); }
.sh-nav-item:focus-visible { outline: 2px solid rgba(255, 107, 26, .35); outline-offset: 2px; }

.sh-right { display: flex; flex: 0 0 auto; min-width: 0; max-width: 100%; align-items: center; gap: 20px; }
.sh-contact { display: flex; flex-direction: column; gap: 3px; }
.sh-contact-row { position: relative; display: flex; align-items: center; gap: 8px; min-height: 30px; margin: 0; padding: 3px 8px 3px 4px; border: 1px solid transparent; border-radius: var(--ge-radius-sm); color: var(--ge-color-text-soft); background: transparent; font-family: var(--ge-font); text-align: left; text-decoration: none; transition: color var(--ge-transition), border-color var(--ge-transition), background-color var(--ge-transition), transform var(--ge-transition), box-shadow var(--ge-transition); }
.sh-contact-row:hover, .sh-contact-row:focus-visible { border-color: rgba(255, 107, 26, .24); color: var(--ge-color-text); background: rgba(255, 107, 26, .055); box-shadow: 0 7px 22px rgba(0, 0, 0, .18); transform: translateY(-1px); outline: none; }
.sh-copyable { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sh-contact-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; padding: 4px; border: 1px solid rgba(255, 107, 26, .38); border-radius: 5px; color: var(--ge-color-accent); background: rgba(255, 107, 26, .045); transition: color var(--ge-transition), border-color var(--ge-transition), background-color var(--ge-transition), transform var(--ge-transition); }
.sh-contact-row:hover .sh-contact-icon, .sh-contact-row:focus-visible .sh-contact-icon { border-color: var(--ge-color-accent); color: #fff; background: var(--ge-color-accent); transform: scale(1.04); }
.sh-contact-icon svg { display: block; width: 100%; height: 100%; }
.sh-contact-text { display: block; min-width: 0; }
.sh-contact-value { display: block; font-size: .8125rem; font-weight: 500; line-height: 1.25; white-space: nowrap; transition: color var(--ge-transition); }
.sh-copy-hint { position: absolute; z-index: 30; top: 50%; right: calc(100% + 9px); width: max-content; padding: 6px 9px; border: 1px solid rgba(255, 107, 26, .28); border-radius: 6px; color: #d8d8d8; background: rgba(15, 15, 15, .98); box-shadow: 0 10px 30px rgba(0, 0, 0, .34); font-size: .625rem; font-weight: 600; line-height: 1; letter-spacing: .02em; opacity: 0; pointer-events: none; transform: translate(5px, -50%); transition: opacity var(--ge-transition), transform var(--ge-transition); }
.sh-copy-hint::after { position: absolute; top: 50%; left: 100%; border: 5px solid transparent; border-left-color: rgba(15, 15, 15, .98); content: ''; transform: translateY(-50%); }
.sh-contact-row:hover .sh-copy-hint, .sh-contact-row:focus-visible .sh-copy-hint { opacity: 1; transform: translate(0, -50%); }
.sh-cta { display: inline-flex; min-height: 48px; box-sizing: border-box; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--ge-color-accent); border-radius: var(--ge-radius-sm); color: #fff !important; background: var(--ge-color-accent); font-size: .8125rem; font-weight: 700; line-height: 1.2; letter-spacing: .025em; text-decoration: none !important; text-transform: uppercase; white-space: nowrap; transition: background-color var(--ge-transition), border-color var(--ge-transition), box-shadow var(--ge-transition), transform var(--ge-transition); }
.sh-cta:hover { border-color: var(--ge-color-accent-hover); background: var(--ge-color-accent-hover); box-shadow: 0 10px 28px rgba(255, 107, 26, .22); transform: translateY(-2px); }
.sh-cta:focus-visible, .sh-contact-row:focus-visible { outline: 2px solid var(--ge-color-accent); outline-offset: 3px; }
.sh-toast { position: fixed; z-index: 10000; bottom: 40px; left: 50%; padding: 12px 24px; border-radius: 8px; opacity: 0; color: #fff; background: var(--ge-color-accent); font-family: var(--ge-font); font-size: .875rem; font-weight: 600; pointer-events: none; transform: translateX(-50%) translateY(20px); transition: opacity var(--ge-transition), transform var(--ge-transition); }
.sh-toast.sh-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.admin-bar .sh-header { top: 32px; }

@media (hover: hover) {
  .sh-logo:hover { background: rgba(255, 107, 26, .045); box-shadow: 0 8px 28px rgba(255, 107, 26, .08); transform: translateY(-2px); }
  .sh-logo:hover .sh-logo-icon { filter: drop-shadow(0 0 8px rgba(255, 107, 26, .4)); transform: scale(1.035); }
  .sh-logo:hover .sh-logo-divider { box-shadow: 0 0 10px rgba(255, 107, 26, .48); transform: scaleY(1.08); }
}

@media (max-width: 1380px) {
  body .sh-header .sh-inner { gap: 14px; padding-inline: 24px !important; }
  .sh-nav-item { padding-inline: 8px; font-size: .75rem; }
  .sh-right { gap: 14px; }
  .sh-cta { padding-inline: 16px; }
}

@media (max-width: 1120px) {
  .sh-contact-email-row { display: none; }
  .sh-logo-text { font-size: .8125rem; }
}

@media (max-width: 920px) {
  .sh-nav { display: none; }
  body .sh-header .sh-inner { padding-inline: 18px !important; }
  .sh-copy-hint { right: 0; top: calc(100% + 7px); transform: translateY(-4px); }
  .sh-copy-hint::after { display: none; }
  .sh-contact-row:hover .sh-copy-hint, .sh-contact-row:focus-visible .sh-copy-hint { transform: translateY(0); }
}

@media (max-width: 782px) { body.admin-bar .sh-header { top: 46px; } }

@media (max-width: 640px) {
  .sh-header { padding-right: 0; padding-left: 0; }
  .sh-contact-email-row { display: none; }
  body .sh-header .sh-inner { gap: 10px; padding: 11px 16px !important; }
  .sh-logo { min-width: 0; margin-right: auto; }
  .sh-right { flex: 0 1 auto; gap: 10px; }
  .sh-logo-icon { width: 50px; height: 29px; }
  .sh-logo-divider { height: 29px; }
  .sh-logo-text { font-size: .72rem; }
  .sh-contact-value { font-size: .75rem; }
  .sh-contact-row { padding-right: 5px; }
  .sh-contact-icon { width: 20px; height: 20px; flex-basis: 20px; }
  .sh-cta { min-height: 42px; padding-inline: 13px; font-size: .7rem; }
}

@media (max-width: 480px) {
  .sh-contact { display: none; }
  .sh-cta { max-width: 100%; min-width: 0; }
}

@media (max-width: 420px) {
  body .sh-header .sh-inner { gap: 8px; padding: 10px 12px !important; }
  .sh-logo { gap: 8px; padding: 4px; margin: -4px 0 -4px -4px; }
  .sh-logo-icon { width: 46px; height: 27px; }
  .sh-logo-divider { height: 27px; }
  .sh-logo-text { font-size: .66rem; }
  .sh-cta { padding-inline: 10px; font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-logo, .sh-logo-icon, .sh-logo-divider, .sh-nav-item, .sh-contact-row, .sh-cta, .sh-toast { transition: none !important; }
}

/* Calculator */
.mc-shell { width: min(1460px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 54px; }
.mc-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.mc-heading h1 { margin: 0; font-size: clamp(32px, 3vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.mc-heading p:not(.mc-eyebrow) { margin: 8px 0 0; color: var(--gray-600); font-size: 17px; }
.mc-eyebrow, .mc-card-kicker { margin: 0 0 5px; color: var(--orange-dark); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.mc-heading-note { display: flex; align-items: center; gap: 9px; color: var(--gray-600); font-size: 14px; margin-bottom: 6px; }
.mc-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #29a36a; box-shadow: 0 0 0 4px rgba(41, 163, 106, .12); }

.mc-product-tabs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.mc-product-tab { min-width: 0; min-height: 106px; padding: 12px 8px; border: 1px solid var(--gray-300); border-radius: 9px; background: var(--surface); color: var(--graphite-800); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 3px 12px rgba(21, 26, 31, .025); transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease; }
.mc-product-tab:hover { border-color: #adb4bd; transform: translateY(-1px); }
.mc-product-tab.is-active { border: 2px solid var(--orange); background: var(--orange-soft); color: var(--graphite-950); padding: 11px 7px; }
.mc-product-tab img { width: 64px; height: 54px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(21, 26, 31, .12)); transition: transform .18s ease; }
.mc-product-tab:hover img, .mc-product-tab.is-active img { transform: translateY(-1px) scale(1.035); }
.mc-product-tab span { font-size: 14px; font-weight: 700; text-align: center; line-height: 1.2; }

.mc-workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: 20px; align-items: stretch; }
.mc-card { background: var(--surface); border: 1px solid var(--gray-300); border-radius: var(--radius); box-shadow: var(--shadow); }
.mc-form-card { padding: 26px; }
.mc-card-title, .mc-spec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.mc-card-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.mc-card h2 { margin: 0; font-size: 23px; line-height: 1.2; }
.mc-type-badge { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 99px; background: var(--orange-soft); color: var(--orange-dark); font-size: 13px; font-weight: 800; }
.mc-clear-fields { min-height: 34px; padding: 0 11px; border: 1px solid var(--gray-300); border-radius: 7px; background: #fff; color: var(--gray-600); display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.mc-clear-fields:hover { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.mc-clear-fields svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mc-mode-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 13px 15px; border: 1px solid var(--gray-200); border-radius: 9px; background: #f8f9fa; }
.mc-mode-row[hidden] { display: none; }
.mc-mode-label { color: var(--graphite-700); font-size: 14px; font-weight: 800; }
.mc-mode-switch { display: inline-grid; grid-template-columns: repeat(2, auto); gap: 3px; padding: 3px; border-radius: 8px; background: var(--gray-200); }
.mc-mode-switch button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 6px; background: transparent; color: var(--gray-600); font-size: 13px; font-weight: 800; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.mc-mode-switch button.is-active { background: #fff; color: var(--orange-dark); box-shadow: 0 2px 8px rgba(20, 25, 31, .09); }
.mc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 18px; margin-top: 22px; }
.mc-fields-base { margin-top: 25px; padding-bottom: 21px; border-bottom: 1px solid var(--gray-200); }
.mc-field { display: grid; gap: 7px; min-width: 0; color: var(--graphite-700); font-size: 14px; font-weight: 700; }
.mc-field input, .mc-field select { width: 100%; min-height: 47px; border: 1px solid #cbd1d8; border-radius: 7px; background: #fff; color: var(--graphite-950); padding: 0 13px; transition: border-color .18s ease, box-shadow .18s ease; }
.mc-field input:hover, .mc-field select:hover { border-color: #9fa7b1; }
.mc-field input:focus, .mc-field select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 26, .1); outline: none; }
.mc-field input[aria-invalid="true"] { border-color: var(--danger); }
.mc-field input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.mc-custom-density[hidden] { display: none; }
.mc-form-footer { min-height: 45px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--gray-200); }
.mc-form-note, .mc-validation { margin: 0; font-size: 13px; }
.mc-form-note { color: var(--gray-500); }
.mc-validation { color: var(--danger); font-weight: 700; }
.mc-validation:not(:empty) + .mc-form-note { margin-top: 5px; }

.mc-result-card { overflow: hidden; background: var(--graphite-900); color: #fff; }
.mc-result-head { min-height: 83px; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mc-result-head .mc-card-kicker { color: #aeb5bd; }
.mc-result-head svg { width: 30px; fill: var(--orange); }
.mc-result-body { padding: 28px; }
.mc-total-label { color: #b5bbc3; font-size: 14px; font-weight: 700; }
.mc-total { margin: 2px 0 21px; color: var(--orange); font-size: clamp(42px, 4vw, 60px); font-weight: 900; line-height: 1.08; letter-spacing: -.045em; }
.mc-total span { font-size: .48em; letter-spacing: 0; }
.mc-result-rows { display: grid; border-top: 1px solid rgba(255, 255, 255, .1); }
.mc-result-rows > div { display: flex; justify-content: space-between; gap: 24px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mc-result-rows span { color: #bac0c7; }
.mc-result-rows strong { text-align: right; }
.mc-price-row { display: grid; grid-template-columns: 1fr 145px; gap: 12px; margin-top: 21px; }
.mc-result-card .mc-field { color: #cfd4da; }
.mc-result-card .mc-field input, .mc-result-card .mc-field select { border-color: #4a5058; background: #30353b; color: #fff; }
.mc-primary-btn { width: 100%; min-height: 51px; margin-top: 19px; border: 0; border-radius: 7px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; transition: background .18s ease, transform .18s ease; }
.mc-primary-btn:hover { background: var(--orange-dark); }
.mc-primary-btn:active { transform: translateY(1px); }
.mc-primary-btn:disabled { background: #666d75; color: #bec3c8; cursor: not-allowed; }
.mc-primary-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mc-cancel-edit { width: 100%; min-height: 42px; margin-top: 8px; border: 1px solid #59616a; border-radius: 7px; background: transparent; color: #d3d7dc; font-size: 13px; font-weight: 800; }
.mc-cancel-edit:hover { border-color: #fff; color: #fff; }
.mc-cancel-edit[hidden] { display: none; }

.mc-spec { margin-top: 20px; overflow: hidden; }
.mc-spec-head { padding: 22px 25px; border-bottom: 1px solid var(--gray-200); }
.mc-count { display: inline-flex; vertical-align: 3px; align-items: center; justify-content: center; min-width: 25px; height: 25px; padding: 0 7px; margin-left: 4px; border-radius: 99px; background: var(--gray-100); color: var(--gray-600); font-size: 13px; }
.mc-spec-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.mc-spec-actions button { min-height: 38px; border: 1px solid var(--gray-300); border-radius: 6px; background: #fff; color: var(--graphite-700); padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.mc-spec-actions button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mc-spec-actions button:hover:not(:disabled) { border-color: var(--orange); color: var(--orange-dark); }
.mc-spec-actions button.is-danger:hover:not(:disabled) { border-color: var(--danger); color: var(--danger); }
.mc-spec-actions button:disabled { opacity: .42; cursor: not-allowed; }
.mc-table-wrap { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 870px; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--gray-200); text-align: left; }
th { background: #f8f9fa; color: var(--gray-600); font-size: 12px; letter-spacing: .035em; text-transform: uppercase; }
td { color: var(--graphite-700); font-size: 14px; }
td strong { color: var(--graphite-950); }
.mc-row-actions { white-space: nowrap; }
.mc-edit-row, .mc-delete-row { width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--gray-500); }
.mc-edit-row:hover { background: var(--orange-soft); color: var(--orange-dark); }
.mc-delete-row:hover { background: #fff0ee; color: var(--danger); }
.mc-edit-row svg, .mc-delete-row svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mc-empty { min-height: 205px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gray-500); text-align: center; padding: 30px; }
.mc-empty[hidden] { display: none; }
.mc-empty svg { width: 46px; margin-bottom: 12px; fill: none; stroke: #aeb5bd; stroke-width: 1.7; }
.mc-empty strong { color: var(--graphite-700); font-size: 16px; }
.mc-empty span { margin-top: 4px; font-size: 14px; }
.mc-spec-total { min-height: 62px; padding: 0 25px; background: var(--graphite-900); color: #fff; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: clamp(30px, 7vw, 100px); }
.mc-spec-total[hidden] { display: none; }
.mc-spec-total span { font-weight: 800; }
.mc-spec-total strong { color: var(--orange); font-size: 20px; }
.mc-print-head, .mc-print-note { display: none; }

.mc-footer { width: min(1460px, calc(100% - 48px)); min-height: 72px; margin: 0 auto; color: var(--gray-500); display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--gray-300); font-size: 13px; }

.is-embedded .sh-header, .is-embedded .mc-footer { display: none; }
.is-embedded .mc-shell { padding-top: 22px; }

@media (max-width: 1320px) {
  .mc-product-tabs { grid-template-columns: repeat(3, 1fr); }
  .mc-product-tab { min-height: 94px; }
}

@media (max-width: 1020px) {
  .mc-workspace { grid-template-columns: 1fr; }
  .mc-result-card { min-height: 0; }
}

@media (max-width: 720px) {
  .mc-shell { width: min(100% - 24px, 1460px); padding: 25px 0 38px; }
  .mc-heading { display: block; }
  .mc-heading-note { margin-top: 18px; }
  .mc-heading h1 { font-size: 34px; }
  .mc-heading p:not(.mc-eyebrow) { font-size: 15px; }
  .mc-product-tabs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mc-product-tab { min-height: 88px; }
  .mc-product-tab img { width: 55px; height: 46px; }
  .mc-form-card, .mc-result-body { padding: 20px; }
  .mc-result-head { padding: 19px 20px; }
  .mc-card-title { align-items: center; }
  .mc-card-actions { align-items: flex-end; flex-direction: column; }
  .mc-mode-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .mc-mode-switch { width: 100%; }
  .mc-mode-switch button { width: 100%; }
  .mc-card h2 { font-size: 20px; }
  .mc-fields { grid-template-columns: 1fr; gap: 14px; }
  .mc-field input, .mc-field select { font-size: 16px; }
  .mc-price-row { grid-template-columns: 1fr 125px; }
  .mc-spec-head { display: block; padding: 19px 18px; }
  .mc-spec-actions { justify-content: flex-start; margin-top: 15px; }
  .mc-spec-total { grid-template-columns: 1fr 1fr; gap: 4px 20px; padding: 13px 18px; }
  .mc-spec-total span { grid-column: 1 / -1; }
  .mc-spec-total strong:last-child { text-align: right; }
  .mc-table-wrap { overflow: visible; padding: 0 12px 12px; }
  .mc-table-wrap table, .mc-table-wrap tbody, .mc-table-wrap tr, .mc-table-wrap td { display: block; width: 100%; }
  .mc-table-wrap table { min-width: 0; }
  .mc-table-wrap thead { display: none; }
  .mc-table-wrap tbody { display: grid; gap: 10px; }
  .mc-table-wrap tr { padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 8px; }
  .mc-table-wrap td { display: grid; grid-template-columns: minmax(92px, .42fr) 1fr; gap: 12px; padding: 7px 0; border: 0; text-align: right; }
  .mc-table-wrap td::before { content: attr(data-label); color: var(--gray-500); font-size: 12px; font-weight: 800; text-align: left; text-transform: uppercase; }
  .mc-table-wrap .mc-row-actions { display: flex; justify-content: flex-end; padding-top: 9px; border-top: 1px solid var(--gray-200); }
  .mc-table-wrap .mc-row-actions::before { display: none; }
  .mc-footer { width: calc(100% - 24px); flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  html, body { width: auto; min-width: 0; background: #fff; color: #111; font-size: 9px; }
  body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .sh-header, .mc-heading, .mc-product-tabs, .mc-workspace, .mc-spec-actions, .mc-empty, .mc-footer { display: none !important; }
  .mc-shell { width: 100%; padding: 0; }
  .mc-spec { margin: 0; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .mc-spec-head { display: none !important; }
  .mc-table-wrap { overflow: visible; padding: 0; }
  .mc-print-head { display: flex !important; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 8px; padding-bottom: 7px; border-bottom: 2px solid #ff6b1a; }
  .mc-print-head div { display: grid; gap: 1px; }
  .mc-print-head strong { font-size: 15px; letter-spacing: .04em; }
  .mc-print-head div span, .mc-print-head > span { color: #555; font-size: 8px; }
  .mc-print-note { display: block; margin: 7px 0 0; color: #555; font-size: 7.5px; line-height: 1.25; }

  .mc-table-wrap table { display: table !important; width: 100% !important; min-width: 0; table-layout: fixed; border-collapse: collapse; }
  .mc-table-wrap thead { display: table-header-group !important; }
  .mc-table-wrap tbody { display: table-row-group !important; }
  .mc-table-wrap tr { display: table-row !important; width: auto !important; padding: 0; border: 0; border-radius: 0; break-inside: avoid-page; page-break-inside: avoid; }
  .mc-table-wrap th, .mc-table-wrap td { display: table-cell !important; width: auto; padding: 4px 5px; border-bottom: 1px solid #d8dadd; color: #222; font-size: 8.5px; line-height: 1.2; text-align: left; vertical-align: top; }
  .mc-table-wrap th { background: #f0f1f2 !important; color: #444; font-size: 7.5px; letter-spacing: .025em; }
  .mc-table-wrap td::before { display: none !important; content: none !important; }
  .mc-table-wrap td strong { color: #111; }
  .mc-table-wrap td small { font-size: 7.5px; }
  .mc-table-wrap th:nth-child(1), .mc-table-wrap td:nth-child(1) { width: 4%; }
  .mc-table-wrap th:nth-child(2), .mc-table-wrap td:nth-child(2) { width: 14%; }
  .mc-table-wrap th:nth-child(3), .mc-table-wrap td:nth-child(3) { width: 42%; overflow-wrap: anywhere; }
  .mc-table-wrap th:nth-child(4), .mc-table-wrap td:nth-child(4) { width: 10%; }
  .mc-table-wrap th:nth-child(5), .mc-table-wrap td:nth-child(5) { width: 11%; }
  .mc-table-wrap th:nth-child(6), .mc-table-wrap td:nth-child(6) { width: 13%; }
  .mc-table-wrap th:last-child, .mc-table-wrap td:last-child, .mc-edit-row, .mc-delete-row { display: none !important; }

  .mc-spec-total { min-height: 34px; color: #000; background: #fff; border-top: 2px solid #222; padding: 0 5px; gap: 35px; }
  .mc-spec-total span { font-size: 9px; }
  .mc-spec-total strong { color: #111; font-size: 11px; }
}
