/* ============================================================
   AZTECH WINDOW CALCULATOR — Frontend Styles
   Cleaned Desktop + Mobile Version
   ============================================================ */

#aztec-wrap {
  --az-primary: #6886AA;
  --az-primary-d: #4d6a8f;
  --az-primary-l: #edf1f7;
  --az-dark: #28292D;
  --az-border: #dde1e8;
  --az-bg: #f7f8fa;
  --az-white: #ffffff;
  --az-text: #28292D;
  --az-muted: #6b7280;
  --az-danger: #ef4444;
  --az-success: #22c55e;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(104,134,170,.13);
  --font: 'DM Sans', Arial, Helvetica, sans-serif;
}

/* ============================================================
   Reset
   ============================================================ */

#aztec-wrap,
#aztec-wrap *,
#az-modal-bg,
#az-modal-bg *,
#az-toast {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

#aztec-wrap {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--az-text);
  background: var(--az-white);
  padding: 20px;
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
}


/* ============================================================
   Header
   ============================================================ */

#aztec-wrap .az-header {
  display: grid;
  grid-template-columns: 25% 60% 15%;
  align-items: center;
  gap: 0;
  padding-bottom: 14px;
  border-bottom: 2.5px solid var(--az-primary);
  margin-bottom: 18px;
}

#aztec-wrap .az-logo-wrap {
  display: inline-block;
  padding-right: 12px;
}

#aztec-wrap .az-header img {
  display: block;
  height: 75px;
  width: auto;
  max-width: 100%;
}

#aztec-wrap .az-logo-sub {
  display: block;
  font-size: 11px;
  color: var(--az-muted);
  margin-top: 3px;
  letter-spacing: .3px;
  width: 100% !important;
}

#aztec-wrap .az-disc-col {
  font-size: 12px;
  color: var(--az-muted);
  line-height: 1.6;
  padding: 2px 14px;
  border-left: 2px solid var(--az-border);
  border-right: 2px solid var(--az-border);
}

#aztec-wrap .az-disc-col b {
  color: var(--az-text);
}

#aztec-wrap .az-disc-col a {
  color: var(--az-primary);
  text-decoration: none;
}

#aztec-wrap .az-est {
  text-align: right;
  font-size: 13px;
  color: var(--az-muted);
  line-height: 1.9;
  padding-left: 12px;
}

#aztec-wrap .az-est b {
  color: var(--az-text);
  font-weight: 600;
}

/* ============================================================
   Table
   ============================================================ */

#aztec-wrap .az-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--az-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  background: var(--az-white);
}

#aztec-wrap table {
  width: 100% !important;
  min-width: 860px !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  font-size: 13.5px;
}

#aztec-wrap thead tr {
  background: var(--az-primary) !important;
}

#aztec-wrap thead td {
  padding: 10px 8px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: .45px;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  font-family: var(--font);
  border: none !important;
}

#aztec-wrap tbody tr {
  border-bottom: 1px solid var(--az-border);
  transition: background .1s;
}

#aztec-wrap tbody tr:last-child {
  border-bottom: none;
}

#aztec-wrap tbody tr:nth-child(even) {
  background: var(--az-bg);
}

#aztec-wrap tbody tr:hover {
  background: var(--az-primary-l);
}

#aztec-wrap tbody td {
  padding: 5px !important;
  vertical-align: middle !important;
  text-align: center !important;
  font-family: var(--font);
  border: none !important;
  border-bottom: 1px solid var(--az-border) !important;
}

#aztec-wrap .az-rnum {
  color: #c4c8ce;
  font-size: 11px;
  width: 24px;
  font-weight: 500;
}

#aztec-wrap .cw-num {
  width: 26px;
}

#aztec-wrap .cw-floor {
  width: 52px;
}

#aztec-wrap .cw-loc {
  width: 90px;
}

#aztec-wrap .cw-qty {
  width: 56px;
}

#aztec-wrap .cw-dim {
  width: 60px;
}

#aztec-wrap .cw-inst {
  width: 96px;
}

#aztec-wrap .cw-shp {
  width: 86px;
}

#aztec-wrap .cw-grl {
  width: 58px;
}

#aztec-wrap .cw-clr {
  width: 72px;
}

#aztec-wrap .cw-glz {
  width: 72px;
}

#aztec-wrap .cw-prc {
  width: 94px;
}

#aztec-wrap .cw-del {
  width: 34px;
}

/* ============================================================
   Inputs
   ============================================================ */

#aztec-wrap select,
#aztec-wrap input[type="number"] {
  display: block !important;
  width: 100% !important;
  max-width: 100%;
  font-size: 13px !important;
  padding: 5px !important;
  border: 1px solid var(--az-border) !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  color: var(--az-text) !important;
  outline: none !important;
  font-family: var(--font) !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: normal !important;
  margin: 0 !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  transition: border-color .15s, box-shadow .15s;
}

#aztec-wrap select:focus,
#aztec-wrap input[type="number"]:focus {
  border-color: var(--az-primary) !important;
  box-shadow: 0 0 0 3px rgba(104,134,170,.18) !important;
}

#aztec-wrap .ac-qty {
  text-align: center;
  -moz-appearance: number-input !important;
  appearance: number-input !important;
}

#aztec-wrap input[type="checkbox"] {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  appearance: checkbox !important;
  -webkit-appearance: checkbox !important;
  cursor: pointer !important;
  accent-color: var(--az-primary);
}

#aztec-wrap select option {
  color: var(--az-text) !important;
  background: #ffffff !important;
}

/* ============================================================
   Price + Delete
   ============================================================ */

#aztec-wrap .az-price-cell,
#aztec-wrap .ac-row-price {
  color: var(--az-primary-d);
  font-weight: 700;
  white-space: nowrap;
}

#aztec-wrap .az-del {
  background: none;
  border: none;
  cursor: pointer;
  color: #d1d5db;
  font-size: 20px;
  line-height: 1;
  padding: 2px 5px;
  transition: color .12s, background .12s;
  border-radius: 5px;
}

#aztec-wrap .az-del:hover {
  color: var(--az-danger);
  background: #fff5f5;
}

/* ============================================================
   Buttons
   ============================================================ */

#aztec-wrap .az-btn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

#aztec-wrap .az-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 16px;
  border: 1.5px solid var(--az-border);
  border-radius: var(--radius) !important;
  background: var(--az-white);
  color: var(--az-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer !important;
  font-family: var(--font) !important;
  transition: all .15s;
  white-space: nowrap;
  line-height: 1.4 !important;
  text-decoration: none !important;
  margin: 0 !important;
}

#aztec-wrap .az-btn:hover {
  background: var(--az-bg);
  border-color: #bbbbbb;
}

#aztec-wrap .az-btn.primary {
  background: var(--az-primary);
  color: #ffffff;
  border-color: var(--az-primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(104,134,170,.28);
}

#aztec-wrap .az-btn.primary:hover {
  background: var(--az-primary-d);
  border-color: var(--az-primary-d);
}

#aztec-wrap .az-btn.danger {
  color: var(--az-danger);
  border-color: #fca5a5;
}

#aztec-wrap .az-btn.danger:hover {
  background: #fff5f5;
}

/* ============================================================
   Totals
   ============================================================ */

#aztec-wrap .az-totals {
  margin-left: auto;
  max-width: 320px;
  border: 1px solid var(--az-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--az-white);
}

#aztec-wrap .az-totals table {
  min-width: unset !important;
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 14px;
}

#aztec-wrap .az-totals tbody tr {
  background: var(--az-white) !important;
  border-bottom: 1px solid var(--az-border);
}

#aztec-wrap .az-totals tbody tr:hover {
  background: var(--az-white) !important;
}

#aztec-wrap .az-totals tbody tr:last-child {
  background: var(--az-primary) !important;
  border-bottom: none;
}

#aztec-wrap .az-totals tbody tr:last-child td {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 14px !important;
}

#aztec-wrap .az-totals td {
  padding: 8px 14px !important;
  font-family: var(--font);
  text-align: left !important;
  border: none !important;
  border-bottom: 1px solid var(--az-border) !important;
}

#aztec-wrap .az-totals .tv {
  text-align: right !important;
  font-weight: 600;
}

#aztec-wrap .az-vol-row td {
  font-size: 11px;
  color: var(--az-muted);
  padding: 3px 14px !important;
  font-style: italic;
}

#aztec-wrap .az-min-charge-note {
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  white-space: nowrap;
}

/* ============================================================
   Modal
   ============================================================ */

#az-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(40,41,45,.6);
  z-index: 2147483647;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

#az-modal-bg.open {
  display: flex;
}

#az-modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 28px 24px;
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  font-family: var(--font);
  position: relative;
  margin: auto;
  flex-shrink: 0;
}

#az-modal .fg {
  margin-bottom: 12px;
}

#az-modal .fg label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--az-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

#az-modal .fg input,
#az-modal .fg textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid var(--az-border);
  border-radius: 6px;
  font-size: 15px;
  color: var(--az-text);
  outline: none;
  font-family: var(--font);
  background: var(--az-white);
  transition: border-color .15s, box-shadow .15s;
}

#az-modal .fg input:focus,
#az-modal .fg textarea:focus {
  border-color: var(--az-primary);
  box-shadow: 0 0 0 3px rgba(104,134,170,.15);
}

#az-modal .fg textarea {
  resize: vertical;
  height: 72px;
}

/* ============================================================
   Feedback
   ============================================================ */

.az-fb-q {
  background: #f7f8fa;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.az-fb-q .fb-num {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  background: var(--az-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

.az-fb-q .fb-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--az-text);
  line-height: 1.4;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.az-fb-q .fb-hint {
  font-size: 11px;
  color: var(--az-muted);
  margin: -6px 0 8px 29px;
  display: block;
}

.az-stars {
  display: flex;
  gap: 6px;
  margin-left: 29px;
}

.az-star {
  font-size: 30px;
  cursor: pointer;
  color: #e2e5ea;
  line-height: 1;
  transition: color .1s, transform .12s;
  user-select: none;
}

.az-star.on {
  color: #f59e0b;
}

.az-star:hover {
  transform: scale(1.18);
  color: #fbbf24;
}

.az-scale {
  display: flex;
  gap: 6px;
  margin-left: 29px;
}

.az-scale-btn {
  flex: 1;
  padding: 7px 4px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--az-border);
  border-radius: 8px;
  background: var(--az-white);
  cursor: pointer;
  text-align: center;
  transition: all .15s;
  font-family: var(--font);
  color: var(--az-text);
  min-width: 0;
}

.az-scale-btn:hover {
  border-color: var(--az-primary);
  color: var(--az-primary);
  background: var(--az-primary-l);
}

.az-scale-btn.sel {
  background: var(--az-primary);
  color: #ffffff;
  border-color: var(--az-primary);
}

.az-scale-labels {
  display: flex;
  justify-content: space-between;
  margin: 4px 29px 0;
  font-size: 10px;
  color: var(--az-muted);
}

.az-fb-q textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid var(--az-border);
  border-radius: 7px;
  font-size: 13.5px;
  height: 70px;
  resize: vertical;
  font-family: var(--font);
  color: var(--az-text);
  outline: none;
  background: var(--az-white);
  transition: border-color .15s;
  display: block;
}

/* ============================================================
   Success Modal
   ============================================================ */

.az-success {
  text-align: center;
  padding: 16px 0 8px;
}

.az-success .az-check {
  font-size: 54px;
  color: var(--az-success);
  margin-bottom: 10px;
  display: block;
}

.az-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--az-primary-d);
  margin-bottom: 8px;
}

.az-success p {
  font-size: 15px;
  color: var(--az-muted);
  line-height: 1.7;
}

/* ============================================================
   Toast
   ============================================================ */

#az-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28292D;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 999999;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-family: var(--font);
  max-width: 320px;
  line-height: 1.4;
}

/* ============================================================
   Tablet
   ============================================================ */

@media (max-width: 900px) {
  #aztec-wrap {
    padding: 16px 12px;
  }

  #aztec-wrap .az-header {
    grid-template-columns: 28% 48% 24%;
  }

  #aztec-wrap .az-header img {
    height: 58px;
  }

  #aztec-wrap .az-btn {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* ============================================================
   Mobile Clean Card Layout
   ============================================================ */

@media (max-width: 767px) {
  #aztec-wrap {
    padding: 12px 10px;
    max-width: 100%;
  }

  #aztec-wrap .az-header {
    display: block;
    padding-bottom: 14px;
    margin-bottom: 16px;
  }

  #aztec-wrap .az-logo-wrap {
    display: block;
    padding-right: 0;
    margin-bottom: 10px;
  }

  #aztec-wrap .az-header img {
    height: 42px;
    max-width: 220px;
  }

  #aztec-wrap .az-logo-sub {
    font-size: 10.5px;
    margin-top: 4px;
  }

  #aztec-wrap .az-disc-col {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--az-border);
    border-bottom: 1px solid var(--az-border);
    padding: 10px 0;
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.55;
  }

  #aztec-wrap .az-est {
    text-align: left;
    font-size: 12px;
    line-height: 1.6;
    padding-left: 0;
  }

  #aztec-wrap .az-table-wrap {
    border: none;
    box-shadow: none;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    margin-bottom: 14px;
  }

  #aztec-wrap table,
  #aztec-wrap thead,
  #aztec-wrap tbody,
  #aztec-wrap tr,
  #aztec-wrap td {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  #aztec-wrap thead {
    display: none !important;
  }

  #aztec-wrap tbody {
    display: block;
  }

  #aztec-wrap tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px 10px;
    background: #ffffff !important;
    border: 1.5px solid var(--az-border);
    border-top: 4px solid var(--az-primary);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(104,134,170,.12);
    padding: 52px 12px 14px;
    margin-bottom: 14px;
  }

  #aztec-wrap tbody tr:hover,
  #aztec-wrap tbody tr:nth-child(even) {
    background: #ffffff !important;
  }

  #aztec-wrap tbody td {
    border: none !important;
    padding: 0 !important;
    text-align: left !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #aztec-wrap tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--az-muted);
    text-transform: uppercase;
    letter-spacing: .45px;
    line-height: 1.1;
    margin-bottom: 5px;
  }

  #aztec-wrap tbody td.az-rnum {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px !important;
    height: 28px;
    min-width: 28px !important;
    background: var(--az-primary);
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
  }

  #aztec-wrap tbody td.az-rnum::before {
    display: none !important;
    content: none !important;
  }

  #aztec-wrap tbody td.cw-del {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto !important;
    min-width: 0 !important;
  }

  #aztec-wrap tbody td.cw-del::before {
    display: none !important;
    content: none !important;
  }

  #aztec-wrap .az-del {
    width: 32px;
    height: 32px;
    background: #fff5f5;
    color: var(--az-danger);
    border-radius: 50%;
    font-size: 22px;
    line-height: 28px;
    padding: 0;
  }

  #aztec-wrap tbody td.cw-loc,
  #aztec-wrap tbody td.cw-inst,
  #aztec-wrap tbody td.cw-shp,
  #aztec-wrap tbody td.cw-clr,
  #aztec-wrap tbody td.cw-glz,
  #aztec-wrap tbody td.cw-prc {
    grid-column: span 2;
  }

  #aztec-wrap tbody td.cw-grl {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  #aztec-wrap select,
  #aztec-wrap input[type="number"] {
    width: 100% !important;
    font-size: 16px !important;
    padding: 10px 9px !important;
    border-radius: 8px !important;
    min-height: 42px;
  }

  #aztec-wrap input[type="checkbox"] {
    width: 24px !important;
    height: 24px !important;
    margin-top: 4px !important;
  }

  #aztec-wrap .az-price-cell,
  #aztec-wrap .ac-row-price {
    background: var(--az-primary-l);
    border: 1px solid #d6e0ee !important;
    border-radius: 8px;
    padding: 10px 12px !important;
    color: var(--az-primary-d);
    font-size: 16px;
    font-weight: 800;
    text-align: right !important;
  }

  #aztec-wrap .az-price-cell::before,
  #aztec-wrap .ac-row-price::before {
    text-align: left;
  }

  #aztec-wrap .az-btn-row {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 16px;
  }

  #aztec-wrap .az-btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 12px 16px;
    min-height: 46px;
  }

  #aztec-wrap #ac-submit-btn {
    order: 1;
  }

  #aztec-wrap #ac-save-pdf-btn {
    order: 2;
  }

  #aztec-wrap #ac-add-btn {
    order: 3;
  }

  #aztec-wrap #ac-reset-btn {
    order: 4;
  }

  #aztec-wrap .az-totals {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    border-radius: 12px;
  }

  #aztec-wrap .az-totals table,
  #aztec-wrap .az-totals tbody,
  #aztec-wrap .az-totals tr,
  #aztec-wrap .az-totals td {
    display: revert;
  }

  #aztec-wrap .az-totals table {
    display: table !important;
    width: 100% !important;
  }

  #aztec-wrap .az-totals tbody {
    display: table-row-group !important;
  }

  #aztec-wrap .az-totals tr {
    display: table-row !important;
  }

  #aztec-wrap .az-totals td {
    display: table-cell !important;
    padding: 10px 14px !important;
    font-size: 14px;
  }

  #aztec-wrap .az-totals td::before {
    display: none !important;
    content: none !important;
  }

  #aztec-wrap .az-totals .tv {
    text-align: right !important;
  }

  #aztec-wrap .az-min-charge-note {
    display: block;
    margin-left: 0;
    margin-top: 4px;
    white-space: normal;
  }

  #aztec-wrap .az-footnote {
    max-width: 100% !important;
    margin-left: 0 !important;
    text-align: left !important;
    padding: 0 4px;
  }

  #az-min-warn {
    margin-left: 0 !important;
    max-width: 100% !important;
  }

  #az-modal-bg {
    padding: 12px;
    align-items: flex-start;
  }

  #az-modal {
    padding: 22px 16px;
    max-width: 100%;
    margin-top: 20px;
    border-radius: 12px;
  }

  #az-modal .fg input,
  #az-modal .fg textarea {
    font-size: 16px;
    padding: 11px 12px;
  }

  .az-fb-q {
    padding: 13px;
  }

  .az-stars,
  .az-scale {
    margin-left: 0;
  }

  .az-scale-labels {
    margin: 5px 0 0;
  }

  .az-fb-q .fb-hint {
    margin-left: 0;
  }

  #az-toast {
    left: 12px;
    right: 12px;
    bottom: 14px;
    max-width: none;
    text-align: center;
  }
}

/* ============================================================
   Small Mobile
   ============================================================ */

@media (max-width: 420px) {
  #aztec-wrap {
    padding: 10px 8px;
  }

  #aztec-wrap tbody tr {
    grid-template-columns: 1fr;
    padding: 52px 12px 14px;
  }

  #aztec-wrap tbody td.cw-floor,
  #aztec-wrap tbody td.cw-loc,
  #aztec-wrap tbody td.cw-qty,
  #aztec-wrap tbody td.cw-dim,
  #aztec-wrap tbody td.cw-inst,
  #aztec-wrap tbody td.cw-shp,
  #aztec-wrap tbody td.cw-grl,
  #aztec-wrap tbody td.cw-clr,
  #aztec-wrap tbody td.cw-glz,
  #aztec-wrap tbody td.cw-prc {
    grid-column: span 1;
  }

  #aztec-wrap .az-header img {
    height: 38px;
    max-width: 190px;
  }

  #aztec-wrap select,
  #aztec-wrap input[type="number"] {
    font-size: 16px !important;
  }

  #aztec-wrap .az-price-cell,
  #aztec-wrap .ac-row-price {
    text-align: left !important;
  }
}

/* ============================================================
   Print Safety
   ============================================================ */

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    background: #ffffff !important;
  }

  #aztec-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffffff !important;
    color: #28292D !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #aztec-wrap .az-table-wrap {
    overflow: visible !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
  }

  #aztec-wrap table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: collapse !important;
  }

  #aztec-wrap thead {
    display: table-header-group !important;
  }

  #aztec-wrap tbody {
    display: table-row-group !important;
  }

  #aztec-wrap tbody tr {
    display: table-row !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #aztec-wrap tbody td,
  #aztec-wrap thead td {
    display: table-cell !important;
    padding: 6px !important;
    border: 1px solid #dde1e8 !important;
    color: #28292D !important;
    text-align: center !important;
  }

  #aztec-wrap thead td {
    background: #6886AA !important;
    color: #ffffff !important;
  }

  #aztec-wrap tbody td::before {
    display: none !important;
    content: none !important;
  }

  #aztec-wrap .az-btn-row,
  #aztec-wrap .cw-del,
  #az-modal-bg,
  #az-toast {
    display: none !important;
  }

  #aztec-wrap .az-totals {
    max-width: 320px !important;
    margin-left: auto !important;
    box-shadow: none !important;
  }
}


/* ============================================================
   Feedback Modal
   ============================================================ */

#az-modal .az-feedback-modal {
  width: 100%;
}

#az-modal .az-feedback-head {
  text-align: center;
  padding: 2px 0 18px;
  border-bottom: 1px solid #edf0f4;
  margin-bottom: 16px;
}

#az-modal .az-feedback-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6886AA, #4d6a8f);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  box-shadow: 0 8px 20px rgba(104, 134, 170, .25);
}

#az-modal .az-feedback-head h3 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  color: #28292D;
  margin: 0 0 5px;
}

#az-modal .az-feedback-head p {
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
  margin: 0;
}

#az-modal .az-feedback-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#az-modal .az-fb-q {
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 15px 16px;
  margin: 0;
}

#az-modal .fb-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: #28292D;
  line-height: 1.4;
  margin-bottom: 12px;
}

#az-modal .fb-num {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6886AA;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: -2px;
}

#az-modal .fb-hint {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin: -4px 0 10px 33px;
  line-height: 1.35;
}

/* Stars */

#az-modal .az-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 33px;
}

#az-modal .az-star {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #d9dee7;
  cursor: pointer;
  font-size: 31px;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  transition: color .12s ease, transform .12s ease;
}

#az-modal .az-star:hover,
#az-modal .az-star.hovered {
  color: #f59e0b;
  transform: translateY(-1px) scale(1.08);
}

#az-modal .az-star.on {
  color: #f59e0b;
}

/* Scale Buttons */

#az-modal .az-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-left: 33px;
}

#az-modal .az-scale-btn {
  min-height: 38px;
  border: 1.5px solid #dde1e8;
  border-radius: 9px;
  background: #ffffff;
  color: #28292D;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}

#az-modal .az-scale-btn:hover {
  border-color: #6886AA;
  background: #edf1f7;
  color: #4d6a8f;
}

#az-modal .az-scale-btn.sel {
  background: #6886AA;
  border-color: #6886AA;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(104, 134, 170, .22);
}

#az-modal .az-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 7px 0 0 33px;
  font-size: 11px;
  color: #6b7280;
}

/* Textareas */

#az-modal .az-fb-q textarea {
  width: 100%;
  min-height: 78px;
  padding: 11px 12px;
  border: 1.5px solid #dde1e8;
  border-radius: 9px;
  background: #ffffff;
  color: #28292D;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  outline: none;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#az-modal .az-fb-q textarea:focus {
  border-color: #6886AA;
  box-shadow: 0 0 0 3px rgba(104, 134, 170, .15);
}

#az-modal .az-fb-q textarea::placeholder {
  color: #9ca3af;
}

/* Actions */

#az-modal .az-feedback-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  padding-top: 16px;
  margin-top: 2px;
  border-top: 1px solid #edf0f4;
}

#az-modal .az-feedback-skip {
  border-color: transparent !important;
  color: #8b95a5 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

#az-modal .az-feedback-skip:hover {
  color: #28292D !important;
  background: #f7f8fa !important;
}

#az-modal .az-feedback-submit {
  min-width: 180px;
}

#az-modal .az-feedback-submit:disabled {
  opacity: .65;
  cursor: not-allowed !important;
}

/* ============================================================
   Success Modal
   ============================================================ */

#az-modal .az-success {
  text-align: center;
  padding: 12px 4px 6px;
}

#az-modal .az-success .az-check {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

#az-modal .az-success h3 {
  font-size: 21px;
  font-weight: 800;
  color: #28292D;
  margin: 0 0 8px;
}

#az-modal .az-success p {
  font-size: 15px;
  line-height: 1.65;
  color: #6b7280;
  margin: 0;
}

#az-modal .az-success-email {
  margin: 16px 0 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e6ebf2;
}

#az-modal .az-success-email span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 4px;
}

#az-modal .az-success-email strong {
  display: block;
  color: #28292D;
  font-size: 14px;
  overflow-wrap: anywhere;
}

#az-modal .az-success #ac-ok {
  min-width: 160px;
  justify-content: center;
}

/* ============================================================
   Feedback Mobile
   ============================================================ */

@media (max-width: 540px) {
  #az-modal .az-feedback-head {
    padding-bottom: 15px;
    margin-bottom: 14px;
  }

  #az-modal .az-feedback-icon {
    width: 44px;
    height: 44px;
    font-size: 21px;
  }

  #az-modal .az-feedback-head h3 {
    font-size: 18px;
  }

  #az-modal .az-fb-q {
    padding: 14px;
    border-radius: 11px;
  }

  #az-modal .fb-label {
    gap: 8px;
    font-size: 13.5px;
  }

  #az-modal .fb-hint,
  #az-modal .az-stars,
  #az-modal .az-scale,
  #az-modal .az-scale-labels {
    margin-left: 0;
  }

  #az-modal .az-stars {
    justify-content: space-between;
    gap: 4px;
  }

  #az-modal .az-star {
    width: 36px;
    height: 36px;
    font-size: 32px;
  }

  #az-modal .az-scale {
    gap: 6px;
  }

  #az-modal .az-scale-btn {
    min-height: 40px;
  }

  #az-modal .az-feedback-actions {
    flex-direction: column-reverse;
    gap: 9px;
  }

  #az-modal .az-feedback-actions .az-btn {
    width: 100%;
  }

  #az-modal .az-feedback-submit {
    min-width: 0;
  }

  #az-modal .az-feedback-skip {
    padding: 10px 12px !important;
  }
}


/* ============================================================
   v8.0.0 ADDITIONS — add to END of calculator.css
   (or replace the matching sections below)
   ============================================================ */

/* ── Field tooltip (W/H auto-clamp notification) ── */
#aztec-wrap .cw-dim {
  position: relative; /* tooltip anchors to this td */
}
/* .az-ftip is created dynamically by JS, styled inline — no extra CSS needed */


/* ── Buttons: barrel / pill shape  ── */

/* Reset the old square-on-hover behaviour */
.az-btn:hover {
  background: rgb(232, 240, 254) !important;
  color: #28292D !important;
  border-color: #b8c9f0 !important;
  border-radius: 24px !important;        /* keep barrel on hover */
  transform: translateY(-1px) !important;
  padding: 9px 16px !important;
}

#aztec-wrap .az-btn {
  border-radius: 24px !important;        /* pill shape */
  border: 1.5px solid #dde1e8 !important;
  background: #fff !important;
  color: #4b5563 !important;
  font-weight: 600 !important;
}

#aztec-wrap .az-btn:hover {
  background: rgb(232, 240, 254) !important;
  border-color: #b8c9f0 !important;
  color: #28292D !important;
  border-radius: 24px !important;
}

#aztec-wrap .az-btn.primary {
  background: var(--az-primary) !important;
  border-color: var(--az-primary) !important;
  color: #fff !important;
  border-radius: 24px !important;
}

#aztec-wrap .az-btn.primary:hover {
  background: var(--az-primary-d) !important;
  border-color: var(--az-primary-d) !important;
  color: #fff !important;
  border-radius: 24px !important;
}

#aztec-wrap .az-btn.danger {
  border-radius: 24px !important;
}

/* ── Modal — remove underlines from all text elements ── */

#az-modal h2,
#az-modal h3,
#az-modal p,
#az-modal label,
#az-modal .fg label,
#az-modal span,
#az-modal div {
  text-decoration: none !important;
}

#az-modal .fg label {
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: .4px !important;
  color: #6b7280 !important;
  display: block !important;
  margin-bottom: 4px !important;
}

/* Mobile: barrel buttons stay pill-shaped */
@media (max-width: 767px) {
  #aztec-wrap .az-btn {
    border-radius: 24px !important;
  }
  #aztec-wrap .az-btn:hover {
    border-radius: 24px !important;
  }
}


/* ============================================================
   v8.0.0 ADDITIONS — add to END of calculator.css
   (or replace the matching sections below)
   ============================================================ */

/* ── Field tooltip (W/H auto-clamp notification) ── */
#aztec-wrap .cw-dim {
  position: relative; /* tooltip anchors to this td */
}
/* .az-ftip is created dynamically by JS, styled inline — no extra CSS needed */


/* ── Buttons: barrel / pill shape  ── */

/* Reset the old square-on-hover behaviour */
.az-btn:hover {
  background: rgb(232, 240, 254) !important;
  color: #28292D !important;
  border-color: #b8c9f0 !important;
  border-radius: 24px !important;        /* keep barrel on hover */
  transform: translateY(-1px) !important;
  padding: 9px 16px !important;
}

#aztec-wrap .az-btn {
  border-radius: 24px !important;        /* pill shape */
  border: 1.5px solid #dde1e8 !important;
  background: #fff !important;
  color: #4b5563 !important;
  font-weight: 600 !important;
}

#aztec-wrap .az-btn:hover {
  background: rgb(232, 240, 254) !important;
  border-color: #b8c9f0 !important;
  color: #28292D !important;
  border-radius: 24px !important;
}

#aztec-wrap .az-btn.primary {
  background: var(--az-primary) !important;
  border-color: var(--az-primary) !important;
  color: #fff !important;
  border-radius: 24px !important;
}

#aztec-wrap .az-btn.primary:hover {
  background: var(--az-primary-d) !important;
  border-color: var(--az-primary-d) !important;
  color: #fff !important;
  border-radius: 24px !important;
}

#aztec-wrap .az-btn.danger {
  border-radius: 24px !important;
}

/* ── Modal — remove underlines from all text elements ── */

#az-modal h2,
#az-modal h3,
#az-modal p,
#az-modal label,
#az-modal .fg label,
#az-modal span,
#az-modal div {
  text-decoration: none !important;
}

#az-modal .fg label {
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: .4px !important;
  color: #6b7280 !important;
  display: block !important;
  margin-bottom: 4px !important;
}

/* Mobile: barrel buttons stay pill-shaped */
@media (max-width: 767px) {
  #aztec-wrap .az-btn {
    border-radius: 24px !important;
  }
  #aztec-wrap .az-btn:hover {
    border-radius: 24px !important;
  }
}

/* Feedback modal — disabled state for Submit button (class kept for this) */
#az-modal .az-feedback-submit:disabled {
  opacity: .55;
  cursor: not-allowed !important;
  pointer-events: none;
}