/* AUDIOWAX Calculator V7 — visual-only layer.
   Purpose: reclaim the permanent Help column, add an on-demand Help drawer,
   and keep the validated V6/D247 commercial engine untouched. */

/* The calculator now uses the full content width. */
.quote .grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.quote .left,
#left-column {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* Top actions: Help sits beside the existing total price. */
.awx-top-actions {
  width: auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
}

.awx-help-button {
  appearance: none;
  border: 1px solid rgba(240, 128, 64, 0.72);
  background: transparent;
  color: #f08040;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 7px;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.awx-help-button:hover,
.awx-help-button:focus-visible,
.awx-help-button[aria-expanded="true"] {
  background: #f08040;
  color: #111;
  border-color: #f08040;
  outline: none;
}

.awx-help-button:active {
  transform: translateY(1px);
}

/* Overlay + drawer. They sit over the calculator and never resize it. */
.awx-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482990;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity .22s ease;
  backdrop-filter: blur(2px);
}

.awx-help-overlay[hidden] {
  display: none !important;
}

.awx-help-overlay.is-open {
  opacity: 1;
}

.awx-help-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2147483000;
  width: min(460px, 92vw);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #151515;
  color: #f2f2f2;
  border-left: 1px solid rgba(240, 128, 64, 0.36);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.42);
  transform: translateX(102%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .24s ease, visibility 0s linear .24s;
  font-family: Poppins, sans-serif;
}

.awx-help-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform .24s ease;
}

.awx-help-drawer-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.awx-help-eyebrow {
  margin-bottom: 4px;
  color: #f08040;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.awx-help-drawer h2 {
  margin: 0;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
}

.awx-help-close {
  appearance: none;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -4px -4px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}

.awx-help-close:hover,
.awx-help-close:focus-visible {
  border-color: #f08040;
  background: rgba(240, 128, 64, 0.10);
  color: #f08040;
  outline: none;
}

.awx-help-drawer-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 34px;
  scrollbar-width: thin;
  scrollbar-color: rgba(240,128,64,.65) rgba(255,255,255,.06);
}

/* Neutralize the old note-box appearance inside Help only. */
.awx-help-note,
#awxHelpDrawer #helpNote {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-family: Poppins, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.72 !important;
}

#awxHelpDrawer #helpNote b,
#awxHelpDrawer #helpNote strong {
  color: #fff;
  font-weight: 700;
}

#awxHelpDrawer #helpNote a {
  color: #f08040 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.awx-help-open {
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .awx-top-actions {
    gap: 8px !important;
  }

  .awx-help-button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .awx-help-drawer {
    width: min(100vw, 430px);
  }

  .awx-help-drawer-header {
    padding: 20px 18px 16px;
  }

  .awx-help-drawer-content {
    padding: 18px 18px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .awx-help-overlay,
  .awx-help-drawer,
  .awx-help-button,
  .awx-help-close {
    transition: none !important;
  }
}
