/* Graywell client portal. Everything is scoped to .gwp so it cannot touch the rest of the site.
   Accent colour comes from --gw-accent (set from Settings > Graywell CRM). */
.gwp {
  --gw-accent-hover: color-mix(in srgb, var(--gw-accent) 82%, #000);
  --gw-accent-soft: color-mix(in srgb, var(--gw-accent) 9%, #fff);
  --gw-accent-line: color-mix(in srgb, var(--gw-accent) 28%, #fff);
  --gw-bg: #f4f6f5;
  --gw-surface: #fff;
  --gw-line: #e2e8e4;
  --gw-ink: #0f1b15;
  --gw-muted: #586860;
  --gw-side: #0c1713;
  --gw-side-ink: #b6c6bd;
  --gw-success: #047857; --gw-success-bg: #e6f6ef;
  --gw-warning: #8a5300; --gw-warning-bg: #fdf1dc;
  --gw-danger: #b42318; --gw-danger-bg: #fdebe9;
  --gw-info: #1d4ed8; --gw-info-bg: #e8effd;
  --gw-radius: 14px;
  --gw-shadow: 0 1px 2px rgba(15, 27, 21, .05), 0 4px 16px rgba(15, 27, 21, .04);
  --gw-side-w: 256px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gw-ink);
  -webkit-font-smoothing: antialiased;
}
body.gwp-body { margin: 0; background: var(--gw-bg, #f4f6f5); }
.gwp *, .gwp *::before, .gwp *::after { box-sizing: border-box; }
.gwp h1, .gwp h2, .gwp h3, .gwp h4 { font-family: inherit; color: var(--gw-ink); line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.gwp p { margin: 0 0 12px; }
.gwp a { color: var(--gw-accent); text-decoration: none; }
.gwp a:hover { color: var(--gw-accent-hover); text-decoration: underline; }
.gwp :focus-visible { outline: 2px solid var(--gw-accent); outline-offset: 2px; border-radius: 6px; }
.gwp .gw-icon { width: 20px; height: 20px; flex: none; }
.gwp .gw-muted { color: var(--gw-muted); }
.gw-skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.gw-skip:focus { left: 8px; }

/* ---------- App shell ---------- */
.gwp-app { min-height: 100vh; }
.gw-side {
  position: fixed; inset: 0 auto 0 0; width: var(--gw-side-w); background: var(--gw-side); color: var(--gw-side-ink);
  display: flex; flex-direction: column; padding: 20px 14px; overflow-y: auto; z-index: 40;
}
.gwp .gw-brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; }
.gwp .gw-brand:hover { color: #fff; text-decoration: none; }
.gw-brand img { max-height: 36px; max-width: 170px; width: auto; display: block; }
.gw-brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--gw-accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.gw-brand-center { justify-content: center; color: var(--gw-ink); padding-bottom: 8px; }
.gwp .gw-brand-center:hover { color: var(--gw-ink); }
.gw-nav { flex: 1; }
.gw-nav-group { margin-bottom: 18px; }
.gw-nav-label { margin: 0 0 6px !important; padding: 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #7d9087; }
.gwp .gw-nav-link {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; margin-bottom: 2px; border-radius: 10px;
  color: var(--gw-side-ink); font-weight: 500; text-decoration: none; position: relative; transition: background .15s, color .15s;
}
.gwp .gw-nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.gwp .gw-nav-link:active { background: rgba(255, 255, 255, .1); }
.gwp .gw-nav-link.is-active { background: rgba(255, 255, 255, .1); color: #fff; }
.gw-nav-link.is-active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: color-mix(in srgb, var(--gw-accent) 55%, #fff); }
.gwp .gw-nav-link:focus-visible { outline-color: #fff; }
.gw-side-foot { border-top: 1px solid rgba(255, 255, 255, .09); padding-top: 14px; margin-top: 8px; }
.gw-user { display: flex; align-items: center; gap: 12px; padding: 4px 8px 12px; min-width: 0; }
.gw-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.gw-user-text strong { color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-user-text span { font-size: 12.5px; color: #8fa398; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gw-accent-soft); color: var(--gw-accent); font-weight: 700; font-size: 13px; border: 1px solid var(--gw-accent-line); }
.gw-side .gw-avatar { background: color-mix(in srgb, var(--gw-accent) 55%, #0c1713); color: #fff; border-color: transparent; }

.gw-main-wrap { margin-left: var(--gw-side-w); min-height: 100vh; display: flex; flex-direction: column; }
.gw-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 18px 40px;
  background: rgba(244, 246, 245, .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--gw-line);
}
.gw-top-title { flex: 1; min-width: 0; }
.gw-top-title h1 { font-size: 22px; font-weight: 700; }
.gw-top-title p { margin: 2px 0 0; font-size: 14px; color: var(--gw-muted); }
.gw-top-user { display: none; }
.gw-menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--gw-line); background: var(--gw-surface); border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; color: var(--gw-ink); padding: 0; }
.gw-content { flex: 1; width: 100%; max-width: 1180px; padding: 32px 40px 48px; margin: 0; outline: none; }
.gw-foot { padding: 20px 40px 28px; font-size: 13px; color: var(--gw-muted); text-align: center; }
.gw-scrim { position: fixed; inset: 0; background: rgba(8, 16, 12, .5); z-index: 35; }

/* ---------- Buttons ---------- */
.gwp .gw-btn, .gwp .button, .gwp .wp-element-button, .gwp .woocommerce-button, .gwp button[type="submit"], .gwp input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px;
  border: 1px solid var(--gw-accent); background: var(--gw-accent); color: #fff; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
  cursor: pointer; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 27, 21, .12); transition: background .15s, transform .08s, box-shadow .15s;
}
.gwp .gw-btn:hover, .gwp .button:hover, .gwp .wp-element-button:hover, .gwp .woocommerce-button:hover, .gwp button[type="submit"]:hover { background: var(--gw-accent-hover); border-color: var(--gw-accent-hover); color: #fff; text-decoration: none; }
.gwp .gw-btn:active, .gwp .button:active, .gwp button[type="submit"]:active { transform: scale(.98); }
.gwp .gw-btn .gw-icon { width: 18px; height: 18px; }
.gwp .gw-btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.gwp .gw-btn-ghost, .gwp .button.alt-ghost { background: var(--gw-surface); color: var(--gw-ink); border-color: var(--gw-line); box-shadow: none; }
.gwp .gw-btn-ghost:hover { background: var(--gw-accent-soft); border-color: var(--gw-accent-line); color: var(--gw-accent); }
.gwp button[disabled], .gwp .button.disabled { opacity: .55; cursor: not-allowed; }
.gwp .gw-link { font-weight: 600; font-size: 14px; }
.gwp .gw-strong-link { font-weight: 600; color: var(--gw-ink); }
.gwp .gw-strong-link:hover { color: var(--gw-accent); }

/* ---------- Overview ---------- */
.gw-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.gw-hello { font-size: 26px; font-weight: 700; }
.gw-hero p { margin: 4px 0 0; }
.gw-alert { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 12px; border-radius: var(--gw-radius); border: 1px solid; }
.gw-alert > .gw-icon { width: 22px; height: 22px; }
.gw-alert-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.gw-alert-body span { font-size: 14px; }
.gw-alert-warning { background: var(--gw-warning-bg); border-color: #f0d49b; color: var(--gw-warning); }
.gw-alert-danger { background: var(--gw-danger-bg); border-color: #f4bcb6; color: var(--gw-danger); }
.gw-alert-info { background: var(--gw-info-bg); border-color: #bccdf6; color: var(--gw-info); }
.gw-alert-success { background: var(--gw-success-bg); border-color: #b4e3d0; color: var(--gw-success); }
.gw-alert-warning .gw-alert-body strong, .gw-alert-danger .gw-alert-body strong, .gw-alert-info .gw-alert-body strong { color: var(--gw-ink); }
.gw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.gwp .gw-kpi {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 2px 8px; padding: 20px; background: var(--gw-surface);
  border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); color: var(--gw-ink); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.gwp .gw-kpi:hover { border-color: var(--gw-accent-line); box-shadow: 0 6px 24px rgba(15, 27, 21, .08); text-decoration: none; color: var(--gw-ink); transform: translateY(-1px); }
.gw-kpi-icon { grid-column: 2; grid-row: 1; width: 36px; height: 36px; border-radius: 10px; background: var(--gw-accent-soft); color: var(--gw-accent); display: grid; place-items: center; }
.gw-kpi-warning .gw-kpi-icon { background: var(--gw-warning-bg); color: var(--gw-warning); }
.gw-kpi-success .gw-kpi-icon { background: var(--gw-success-bg); color: var(--gw-success); }
.gw-kpi-label { grid-column: 1; grid-row: 1; font-size: 13.5px; font-weight: 600; color: var(--gw-muted); align-self: center; }
.gw-kpi-value { grid-column: 1 / -1; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 8px; }
.gw-kpi-value .woocommerce-Price-amount { font: inherit; }
.gw-kpi-note { grid-column: 1 / -1; font-size: 13.5px; color: var(--gw-muted); }
.gw-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.gw-card, .gwp section.gw-card { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); padding: 4px 22px 10px; }
.gw-card-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 8px; }
.gw-card-head h3 { font-size: 16px; font-weight: 700; }
.gw-list { list-style: none; margin: 0; padding: 0; }
.gw-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--gw-line); }
.gw-list li:first-child { border-top: 0; }
.gw-list li > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.gw-list li strong, .gw-list li .gw-strong-link { font-weight: 600; }
.gw-list li .gw-muted { font-size: 13.5px; }
.gw-end { display: flex; align-items: center; gap: 12px; flex: none; }
.gw-amount { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gw-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 0 16px; color: var(--gw-muted); }
.gw-empty strong { color: var(--gw-ink); }
.gw-empty .gw-btn { margin-top: 8px; }
.gw-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 6px 0 14px; }
.gwp .gw-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--gw-line); border-radius: 12px; color: var(--gw-ink); text-decoration: none; transition: border-color .15s, background .15s; }
.gwp .gw-tile:hover { border-color: var(--gw-accent-line); background: var(--gw-accent-soft); text-decoration: none; color: var(--gw-ink); }
.gw-tile .gw-icon { color: var(--gw-accent); width: 24px; height: 24px; }
.gw-tile span { font-size: 13.5px; color: var(--gw-muted); }

/* ---------- Chips ---------- */
.gw-chip, .gwp .gwcrm-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; text-transform: none; }
.gw-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gw-chip-success { background: var(--gw-success-bg); color: var(--gw-success); }
.gw-chip-warning { background: var(--gw-warning-bg); color: var(--gw-warning); }
.gw-chip-danger { background: var(--gw-danger-bg); color: var(--gw-danger); }
.gw-chip-info { background: var(--gw-info-bg); color: var(--gw-info); }
.gw-chip-neutral { background: #eef1ef; color: #44544b; }

/* ---------- Tables (the tab pages) ---------- */
.gwp table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); margin: 0 0 24px; font-size: 14.5px; }
.gwp table th { text-align: left; padding: 12px 18px; background: #f8faf9; color: var(--gw-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--gw-line); }
.gwp table td { padding: 16px 18px; border-bottom: 1px solid var(--gw-line); vertical-align: middle; background: transparent; }
.gwp table tbody tr:last-child td, .gwp table tfoot tr:last-child td, .gwp table tfoot tr:last-child th { border-bottom: 0; }
.gwp table tbody tr:hover td { background: #fafcfb; }
.gwp table thead th:first-child { border-top-left-radius: calc(var(--gw-radius) - 1px); }
.gwp table thead th:last-child { border-top-right-radius: calc(var(--gw-radius) - 1px); }
.gwp table tbody tr:last-child td:first-child { border-bottom-left-radius: calc(var(--gw-radius) - 1px); }
.gwp table tbody tr:last-child td:last-child { border-bottom-right-radius: calc(var(--gw-radius) - 1px); }
.gwp table td:last-child { text-align: right; }
.gwp .gw-content h3 { font-size: 17px; font-weight: 700; margin: 8px 0 12px; }
.gwp .gw-content h2 { font-size: 20px; font-weight: 700; margin: 8px 0 12px; }

/* Cancel control: a quiet link that opens a small panel. */
.gwcrm-cancel { position: relative; display: inline-block; text-align: left; }
.gwcrm-cancel summary { list-style: none; cursor: pointer; color: var(--gw-muted); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; min-height: 36px; display: inline-flex; align-items: center; }
.gwcrm-cancel summary::-webkit-details-marker { display: none; }
.gwcrm-cancel summary:hover { color: var(--gw-danger); background: var(--gw-danger-bg); }
.gwcrm-cancel[open] summary { color: var(--gw-danger); background: var(--gw-danger-bg); }
.gwcrm-cancel form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 340px; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: 12px; box-shadow: 0 12px 40px rgba(15, 27, 21, .18); padding: 16px; font-size: 14px; }
.gwcrm-cancel form p { margin-bottom: 12px; }
.gwcrm-cancel form label { display: block; font-weight: 500; }
.gwcrm-cancel form input[type="checkbox"] { margin-right: 8px; accent-color: var(--gw-danger); }
.gwcrm-cancel .button, .gwcrm-cancel button { background: var(--gw-danger); border-color: var(--gw-danger); }
.gwcrm-cancel .button:hover, .gwcrm-cancel button:hover { background: #8f1c12; border-color: #8f1c12; }

/* ---------- Forms ---------- */
.gwp form { margin: 0; }
.gwp label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.gwp label .required { color: var(--gw-danger); text-decoration: none; }
.gwp .gw-content form br, .gwp .gw-auth-body form br { display: none; }
.gwp input[type="text"], .gwp input[type="email"], .gwp input[type="url"], .gwp input[type="tel"], .gwp input[type="password"], .gwp input[type="number"], .gwp select, .gwp textarea, .gwp .input-text {
  width: 100%; max-width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cfd8d3; border-radius: 10px; background: #fff; color: var(--gw-ink);
  font: inherit; box-shadow: inset 0 1px 1px rgba(15, 27, 21, .03); transition: border-color .15s, box-shadow .15s;
}
.gwp textarea { min-height: 140px; resize: vertical; }
.gwp input:hover, .gwp select:hover, .gwp textarea:hover { border-color: #aebcb4; }
.gwp input:focus, .gwp select:focus, .gwp textarea:focus { outline: none; border-color: var(--gw-accent); box-shadow: 0 0 0 3px var(--gw-accent-line); }
.gwp input[type="checkbox"], .gwp input[type="radio"] { accent-color: var(--gw-accent); width: 18px; height: 18px; vertical-align: -3px; }
.gwp form p, .gwp .form-row { margin: 0 0 18px; }
.gwp .gwcrm-support-form, .gwp .gwcrm-service-request { max-width: 640px; }
.gwcrm-support-form, .gwcrm-service-request, .woocommerce-EditAccountForm, .woocommerce-address-fields { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); padding: 24px; margin-bottom: 24px; }
.gwp .gwcrm-support-form .input-text, .gwp .gwcrm-support-form select { max-width: none; }
.gwp .woocommerce-EditAccountForm { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; max-width: 760px; }
.gwp .woocommerce-EditAccountForm > * { grid-column: 1 / -1; }
.gwp .woocommerce-EditAccountForm .form-row-first { grid-column: 1; }
.gwp .woocommerce-EditAccountForm .form-row-last { grid-column: 2; }
.gwp .woocommerce-EditAccountForm fieldset { border: 0; border-top: 1px solid var(--gw-line); margin: 8px 0 0; padding: 18px 0 0; }
.gwp .woocommerce-EditAccountForm legend { font-weight: 700; padding: 0 8px 0 0; font-size: 16px; }
.gwp .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.gwp .woocommerce-address-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
.gwp .woocommerce-address-fields { max-width: 760px; }
.gwp .woocommerce-address-fields .form-row { float: none; width: auto; }
.gwp em, .gwp .description { color: var(--gw-muted); font-style: normal; font-size: 13.5px; }

/* ---------- Notices ---------- */
.gwp .woocommerce-message, .gwp .woocommerce-info, .gwp .woocommerce-error, .gwp .gwcrm-sr-notice, .gwp .gwcrm-notice,
.gwp .wc-block-components-notice-banner {
  display: flex; align-items: center; gap: 12px; list-style: none; margin: 0 0 20px; padding: 14px 18px; border-radius: var(--gw-radius);
  border: 1px solid var(--gw-line); background: var(--gw-surface); color: var(--gw-ink); font-size: 14.5px; box-shadow: none;
}
.gwp .woocommerce-message::before, .gwp .woocommerce-info::before, .gwp .woocommerce-error::before { content: none; }
.gwp .woocommerce-message, .gwp .gwcrm-sr-success, .gwp .wc-block-components-notice-banner.is-success { background: var(--gw-success-bg); border-color: #b4e3d0; }
.gwp .woocommerce-info, .gwp .wc-block-components-notice-banner.is-info { background: var(--gw-info-bg); border-color: #bccdf6; }
.gwp .woocommerce-error, .gwp .gwcrm-sr-error, .gwp .gwcrm-notice-error, .gwp .wc-block-components-notice-banner.is-error { background: var(--gw-danger-bg); border-color: #f4bcb6; }
.gwp .woocommerce-error li { list-style: none; }
.gwp .woocommerce-message .button, .gwp .woocommerce-info .button { margin-left: auto; order: 2; min-height: 36px; padding: 0 14px; font-size: 14px; }
.gwp .wc-block-components-notice-banner svg { display: none; }

/* ---------- Invoice view, orders, addresses ---------- */
.gwp .gwcrm-invoice { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); padding: 28px; max-width: 820px; }
.gwp .gwcrm-invoice table { box-shadow: none; }
.gwp .gwcrm-invoice table td:last-child, .gwp .gwcrm-invoice table th:last-child { text-align: right; }
.gwp .gwcrm-invoice-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.gwp .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gwp .woocommerce-Addresses .u-column1, .gwp .woocommerce-Addresses .u-column2, .gwp .woocommerce-Addresses .col-1, .gwp .woocommerce-Addresses .col-2 {
  float: none; width: auto; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); padding: 20px 22px;
}
.gwp .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gwp .woocommerce-Address-title h2, .gwp .woocommerce-Address-title h3 { font-size: 16px; margin: 0; }
.gwp address { font-style: normal; color: var(--gw-muted); line-height: 1.7; }
.gwp .woocommerce-order-details, .gwp .woocommerce-customer-details { margin-bottom: 24px; }
.gwp mark { background: var(--gw-accent-soft); color: var(--gw-accent); padding: 1px 6px; border-radius: 6px; }

/* ---------- Sign in ---------- */
.gwp-auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background:
  radial-gradient(900px 400px at 15% -10%, var(--gw-accent-soft), transparent 70%), radial-gradient(700px 360px at 100% 110%, var(--gw-accent-soft), transparent 70%), var(--gw-bg); }
.gw-auth-card { width: 100%; max-width: 440px; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: 20px; box-shadow: 0 20px 60px rgba(15, 27, 21, .10); padding: 36px 36px 28px; }
.gw-auth-body h2 { font-size: 22px; font-weight: 700; margin: 12px 0 8px; text-align: center; }
.gw-auth-body > p, .gw-auth-body .gwcrm-login > p { color: var(--gw-muted); }
.gw-auth-body form button, .gw-auth-body form .button { width: 100%; }
.gw-auth-body .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.gw-auth-body .lost_password { text-align: center; }
.gw-auth-foot { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--gw-muted); }
.gw-auth-body .u-columns, .gw-auth-body .col2-set { display: block; }
.gw-auth-body .u-column1, .gw-auth-body .u-column2, .gw-auth-body .col-1, .gw-auth-body .col-2 { float: none; width: auto; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .gw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gw-side { transform: translateX(-100%); transition: transform .22s ease; box-shadow: none; width: min(300px, 86vw); }
  .gw-menu-open .gw-side { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .4); }
  .gw-menu-open body { overflow: hidden; }
  .gw-main-wrap { margin-left: 0; }
  .gw-menu-btn { display: inline-flex; }
  .gw-top { padding: 12px 16px; }
  .gw-top-title h1 { font-size: 19px; }
  .gw-top-title p { display: none; }
  .gw-top-user { display: block; }
  .gw-content { padding: 20px 16px 40px; }
  .gw-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .gwp .shop_table_responsive { background: transparent; border: 0; box-shadow: none; }
  .gwp .shop_table_responsive thead { position: absolute; left: -9999px; }
  .gwp .shop_table_responsive tbody, .gwp .shop_table_responsive tr, .gwp .shop_table_responsive td { display: block; width: 100%; }
  .gwp .shop_table_responsive tr { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); margin-bottom: 12px; padding: 4px 0; }
  .gwp .shop_table_responsive td { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: right; padding: 10px 16px; border-bottom: 1px solid var(--gw-line); border-radius: 0 !important; }
  .gwp .shop_table_responsive td::before { content: attr(data-title); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gw-muted); text-align: left; }
  .gwp .shop_table_responsive td:last-child { border-bottom: 0; }
  .gwp .shop_table_responsive td:not([data-title]) { justify-content: flex-end; }
  .gwp .shop_table_responsive td:not([data-title])::before { content: none; }
  .gwp .shop_table_responsive tbody tr:hover td { background: transparent; }
  .gwcrm-cancel form { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .gw-kpis { grid-template-columns: 1fr; }
  .gw-tiles { grid-template-columns: 1fr; }
  .gwp .woocommerce-Addresses, .gwp .woocommerce-EditAccountForm, .gwp .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
  .gwp .woocommerce-EditAccountForm .form-row-last { grid-column: 1; }
  .gw-alert { flex-wrap: wrap; }
  .gw-alert .gw-btn { width: 100%; }
  .gw-auth-card { padding: 28px 22px 22px; }
  .gw-hero .gw-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gwp * { transition: none !important; }
}

@media print {
  .gw-side, .gw-top, .gw-foot, .gw-scrim, .gwcrm-invoice-actions { display: none !important; }
  .gw-main-wrap { margin: 0; }
  .gw-content { padding: 0; max-width: none; }
  body.gwp-body { background: #fff; }
  .gwp .gwcrm-invoice { border: 0; box-shadow: none; padding: 0; }
}

/* Sign-in extras */
.gwp .gw-brand-center { color: var(--gw-ink); }
.gwp .gw-brand-center .gw-brand-name { font-size: 18px; }
.gwp .gw-auth-body input[type="email"] { max-width: none !important; }
.gw-pw { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gw-line); }
.gw-pw summary { cursor: pointer; text-align: center; color: var(--gw-muted); font-weight: 600; font-size: 14px; list-style: none; padding: 8px; border-radius: 8px; }
.gw-pw summary::-webkit-details-marker { display: none; }
.gw-pw summary:hover { color: var(--gw-accent); }
.gw-pw[open] summary { margin-bottom: 12px; }

.gwp td .gw-btn + .gw-btn { margin-left: 6px; }
.gwp .gw-alert:focus, .gwp .woocommerce-message:focus, .gwp .woocommerce-error:focus { outline: none; }
.gwp .gw-content > h3, .gwp .gw-content > form + h3 { margin-top: 20px; }
.gwp .gwcrm-cancel button[type="submit"], .gwp .gwcrm-cancel .button { background: var(--gw-danger); border-color: var(--gw-danger); }
.gwp .gwcrm-cancel button[type="submit"]:hover, .gwp .gwcrm-cancel .button:hover { background: #8f1c12; border-color: #8f1c12; }
.gwp table tfoot th, .gwp table tfoot td { background: #f8faf9; font-weight: 600; }
.gwp table tfoot tr:last-child td, .gwp table tfoot tr:last-child th { font-size: 16px; color: var(--gw-ink); }

/* ---------- Team ---------- */
.gw-team, .gwp .gw-content > .gw-card { margin-bottom: 16px; max-width: 860px; }
.gw-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gw-person > div { display: flex; flex-direction: column; min-width: 0; }
.gw-person .gw-muted { overflow: hidden; text-overflow: ellipsis; }
.gwp form.gw-inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.gwp form.gw-inline select { min-height: 36px; padding: 4px 10px; width: auto; }
.gw-invite { max-width: 460px; padding-bottom: 8px; }
.gw-note { padding: 4px 0 14px; font-size: 13.5px; }
.gw-side .gw-switch { padding: 0 12px 14px; }
.gw-side .gw-switch label { color: #7d9087; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 4px; }
.gw-side .gw-switch select { min-height: 40px; background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .15); }
.gw-side .gw-switch option { color: #0f1b15; }
.screen-reader-text { position: absolute; left: -9999px; }
@media (max-width: 720px) { .gw-list li { flex-wrap: wrap; } .gw-people .gw-end { width: 100%; justify-content: flex-start; flex-wrap: wrap; } }
.gw-page-card { max-width: 560px; padding: 20px 24px; }
.gw-page-card h2 { font-size: 20px; margin: 4px 0 12px; }
.gwp .gw-list li > .gw-person { flex-direction: row; align-items: center; }
.gwp .gw-btn.gw-btn-ghost, .gwp button.gw-btn-ghost { background: var(--gw-surface); color: var(--gw-ink); border-color: var(--gw-line); box-shadow: none; }
.gwp .gw-btn.gw-btn-ghost:hover, .gwp button.gw-btn-ghost:hover { background: var(--gw-accent-soft); border-color: var(--gw-accent-line); color: var(--gw-accent); }
.gwp .gwcrm-cancel summary { white-space: nowrap; }

/* ---------- Requests ---------- */
.gw-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.gw-tabs { display: inline-flex; background: #e9eeeb; border-radius: 10px; padding: 4px; gap: 2px; }
.gwp a.gw-tab { padding: 8px 16px; border-radius: 8px; color: var(--gw-muted); font-weight: 600; font-size: 14px; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.gwp a.gw-tab:hover { color: var(--gw-ink); text-decoration: none; }
.gwp a.gw-tab.is-active { background: var(--gw-surface); color: var(--gw-ink); box-shadow: 0 1px 2px rgba(15, 27, 21, .1); }
.gw-requests { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 860px; }
.gwp a.gw-request { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); color: var(--gw-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.gwp a.gw-request:hover { border-color: var(--gw-accent-line); box-shadow: 0 6px 24px rgba(15, 27, 21, .08); text-decoration: none; }
.gw-request-main { display: flex; flex-direction: column; min-width: 0; }
.gw-request-main strong { font-size: 15.5px; }
.gw-request-main .gw-muted { font-size: 13.5px; }
.gw-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gw-accent); margin-right: 8px; vertical-align: 1px; }
.gw-lead { font-size: 20px; margin: 4px 0 16px; }
.gw-type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 980px; }
.gwp a.gw-type { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); color: var(--gw-ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.gwp a.gw-type:hover { border-color: var(--gw-accent-line); transform: translateY(-1px); text-decoration: none; }
.gw-type .gw-icon { width: 26px; height: 26px; color: var(--gw-accent); }
.gw-type span { font-size: 13.5px; color: var(--gw-muted); }
.gw-card-form { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); padding: 24px; max-width: 760px; margin-bottom: 20px; }
.gw-card-form h3 { margin-top: 0 !important; }
.gw-field .gw-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.gw-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.gwp label.gw-check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; min-height: 36px; }
.gwp span.description { display: block; margin-top: 6px; }
.gw-fineprint { font-size: 13px; color: var(--gw-muted); }
.gwp input[type="file"] { width: 100%; padding: 10px; border: 1px dashed #b7c4bc; border-radius: 10px; background: #fafcfb; font: inherit; }
.gw-thread-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px !important; max-width: 860px; margin-bottom: 16px; }
.gw-thread-head h2 { font-size: 20px; margin: 0 0 4px !important; }
.gw-thread-head p { margin: 0; font-size: 14px; }
.gw-details { max-width: 860px; margin-bottom: 16px; padding: 4px 22px 14px !important; }
.gw-details summary { cursor: pointer; font-weight: 700; padding: 14px 0 6px; font-size: 16px; }
.gw-dl { margin: 0; display: grid; gap: 0; }
.gw-dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--gw-line); font-size: 14.5px; }
.gw-dl dt { color: var(--gw-muted); font-weight: 600; }
.gw-dl dd { margin: 0; word-break: break-word; }
.gw-thread { display: grid; gap: 14px; max-width: 860px; margin: 8px 0 20px; }
.gw-msg { display: flex; gap: 12px; align-items: flex-start; }
.gw-msg .gw-avatar { margin-top: 2px; }
.gw-msg.is-staff .gw-avatar { background: var(--gw-accent); color: #fff; border-color: transparent; }
.gw-msg-body { flex: 1; min-width: 0; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: 4px var(--gw-radius) var(--gw-radius) var(--gw-radius); padding: 12px 16px; box-shadow: var(--gw-shadow); }
.gw-msg.is-staff .gw-msg-body { background: var(--gw-accent-soft); border-color: var(--gw-accent-line); }
.gw-msg.is-internal .gw-msg-body { background: var(--gw-warning-bg); border-color: #f0d49b; }
.gw-msg-body header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.gw-msg-body time { margin-left: auto; font-size: 12.5px; color: var(--gw-muted); }
.gw-msg-text p { margin: 0 0 8px; word-break: break-word; }
.gw-msg-text p:last-child { margin-bottom: 0; }
.gw-files { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gwp a.gw-file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: 10px; font-size: 14px; color: var(--gw-ink); text-decoration: none; max-width: 100%; }
.gwp a.gw-file:hover { border-color: var(--gw-accent-line); color: var(--gw-accent); text-decoration: none; }
.gw-file span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-reply .gw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 0; }
@media (max-width: 900px) { .gw-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .gw-type-grid, .gw-checks { grid-template-columns: 1fr; } .gw-dl > div { grid-template-columns: 1fr; gap: 2px; } .gw-msg .gw-avatar { display: none; } .gw-thread-head { flex-direction: column; } }

/* ---------- Cart, checkout, pay and order-received (classic WooCommerce markup) ---------- */
.gw-auth-card.gw-auth-wide { max-width: 980px; }
.gw-store .woocommerce { max-width: none; }
.gw-store h2, .gw-store h3 { font-size: 17px; font-weight: 700; margin: 0 0 14px; }
.gw-store .col2-set { display: block; width: auto; float: none; }
.gw-store .col2-set .col-1, .gw-store .col2-set .col-2 { float: none; width: auto; }

/* Tables: cart lines, order review, order details */
.gw-store table.shop_table { width: 100%; border: 0; border-collapse: collapse; margin: 0 0 20px; background: transparent; }
.gw-store table.shop_table th, .gw-store table.shop_table td { padding: 14px 12px; border: 0; border-bottom: 1px solid var(--gw-line); text-align: left; vertical-align: middle; background: transparent; }
.gw-store table.shop_table thead th { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gw-muted); }
.gw-store table.shop_table tfoot th { font-weight: 600; }
.gw-store table.shop_table tfoot td, .gw-store table.shop_table td.product-subtotal, .gw-store table.shop_table td.product-total { text-align: right; }
.gw-store table.shop_table tr.order-total th, .gw-store table.shop_table tr.order-total td { font-size: 17px; font-weight: 700; border-bottom: 0; }
.gw-store .product-thumbnail img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--gw-line); display: block; }
.gw-store .product-name a { font-weight: 600; color: var(--gw-ink); }
.gw-store .product-name a:hover { color: var(--gw-accent); }
.gw-store a.remove { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--gw-danger) !important; background: var(--gw-danger-bg); font-size: 18px; line-height: 1; text-decoration: none; }
.gw-store a.remove:hover { background: var(--gw-danger); color: #fff !important; text-decoration: none; }
.gw-store .quantity .qty { width: 80px; min-height: 40px; text-align: center; }

/* Cart: lines on the left, totals on the right */
.gw-store .woocommerce-cart-form { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); padding: 8px 18px 18px; margin-bottom: 24px; }
.gw-store .woocommerce-cart-form table.shop_table { margin-bottom: 0; }
.gw-store td.actions { padding: 16px 0 0 !important; border-bottom: 0 !important; }
.gw-store td.actions .coupon { display: inline-flex; gap: 8px; align-items: center; float: left; flex-wrap: wrap; }
.gw-store td.actions .coupon label { display: none; }
.gw-store td.actions .coupon .input-text { width: 200px; }
.gw-store td.actions > button[name="update_cart"] { float: right; background: var(--gw-surface); color: var(--gw-ink); border-color: var(--gw-line); box-shadow: none; }
.gw-store td.actions > button[name="update_cart"]:hover:not([disabled]) { background: var(--gw-accent-soft); border-color: var(--gw-accent-line); color: var(--gw-accent); }
.gw-store .cart-collaterals { display: flex; justify-content: flex-end; }
.gw-store .cart_totals { width: 100%; max-width: 440px; float: none; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); padding: 20px 22px 22px; }
.gw-store .cart_totals table.shop_table { margin-bottom: 8px; }
.gw-store .wc-proceed-to-checkout { padding: 0; }
.gw-store .wc-proceed-to-checkout .checkout-button, .gw-store #place_order { width: 100%; min-height: 50px; font-size: 16px; float: none; }
.gw-store .return-to-shop { margin-top: 16px; }

/* Checkout and pay: details on the left, order summary on the right */
.gw-store form.checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); column-gap: 28px; align-items: start; }
.gw-store form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.gw-store form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 12px; }
.gw-store form.checkout #order_review { grid-column: 2; grid-row: 2; }
.gw-store #customer_details .col-1, .gw-store #customer_details .col-2,
.gw-store #order_review, .gw-store .woocommerce-checkout-review-order { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); padding: 22px; margin-bottom: 20px; }
.gw-store .woocommerce-billing-fields__field-wrapper, .gw-store .woocommerce-shipping-fields__field-wrapper, .gw-store .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.gw-store .woocommerce-billing-fields__field-wrapper .form-row, .gw-store .woocommerce-shipping-fields__field-wrapper .form-row { float: none; width: auto; grid-column: 1 / -1; }
.gw-store .form-row-first { grid-column: 1 !important; }
.gw-store .form-row-last { grid-column: 2 !important; }
.gw-store .select2-container .select2-selection--single { min-height: 46px; border: 1px solid #cfd8d3; border-radius: 10px; }
.gw-store .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 14px; }
.gw-store .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.gw-store .woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 16px; }
.gw-store form.checkout_coupon { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); padding: 18px 22px; margin-bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.gw-store form.checkout_coupon p { margin: 0; float: none; width: auto; }

/* Payment methods */
.gw-store #payment { background: transparent; border-radius: 0; }
.gw-store #payment ul.payment_methods, .gw-store #payment ul.wc_payment_methods { list-style: none; margin: 0 0 16px; padding: 0; border: 0; display: grid; gap: 10px; }
.gw-store #payment li.wc_payment_method { border: 1px solid var(--gw-line); border-radius: 12px; padding: 14px 16px; background: #fff; margin: 0; }
.gw-store #payment li.wc_payment_method > label { display: inline; font-size: 15px; }
.gw-store #payment li.wc_payment_method > input:checked + label { color: var(--gw-accent); }
.gw-store #payment div.payment_box { background: var(--gw-bg); border-radius: 10px; padding: 14px; margin: 12px 0 0; color: var(--gw-ink); }
.gw-store #payment div.payment_box::before { content: none; }
.gw-store #payment div.form-row { padding: 0; margin-bottom: 0; }
.gw-store .woocommerce-terms-and-conditions-wrapper { margin: 0 0 14px; font-size: 14px; color: var(--gw-muted); }
.gw-store .woocommerce-privacy-policy-text p { font-size: 13px; color: var(--gw-muted); }
.gw-store .blockUI.blockOverlay { border-radius: var(--gw-radius); }

/* Order received */
.gw-store ul.woocommerce-order-overview { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.gw-store ul.woocommerce-order-overview li { margin: 0; padding: 14px 16px; background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: 12px; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--gw-muted); border-right: 1px solid var(--gw-line); }
.gw-store ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--gw-ink); }
.gw-store .woocommerce-order-details, .gw-store .woocommerce-customer-details { background: var(--gw-surface); border: 1px solid var(--gw-line); border-radius: var(--gw-radius); box-shadow: var(--gw-shadow); padding: 20px 22px; }
.gw-store .woocommerce-notice--success { font-weight: 600; }

@media (max-width: 900px) {
  .gw-store form.checkout { display: block; }
  .gw-store td.actions .coupon, .gw-store td.actions > button[name="update_cart"] { float: none; }
  .gw-store td.actions > button[name="update_cart"] { margin-top: 12px; width: 100%; }
  .gw-store .cart_totals { max-width: none; }
}
@media (max-width: 720px) {
  .gw-store .woocommerce-billing-fields__field-wrapper, .gw-store .woocommerce-shipping-fields__field-wrapper { display: block; }
  .gw-store .product-thumbnail { display: none !important; }
  .gw-store td.actions .coupon .input-text { width: 100%; }
  .gw-store table.shop_table_responsive td { text-align: right; padding: 10px 16px; }
  .gw-store table.shop_table_responsive td.product-remove { justify-content: flex-end; }
}
