/* AGC Quote Download: "Download quote (PDF)" block in the My Quote drawer. Scoped to .agc-qd */

.agc-quote-drawer .agc-qd {
  padding: 16px 22px 0;
  border-top: 1px solid #ececec;
  background: #fafafa;
}
.agc-quote-drawer .agc-qd[hidden] { display: none; }

.agc-quote-drawer .agc-qd .agc-qd-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.agc-quote-drawer .agc-qd .agc-qd-label {
  display: block;
  margin: 0;
  font: 600 13px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #2a2a2a;
}
.agc-quote-drawer .agc-qd .agc-qd-email {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  padding: 10px 12px;
  font: 400 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #0a0a0a;
  background: #fff;
}
.agc-quote-drawer .agc-qd .agc-qd-email:focus {
  outline: none;
  border-color: #FFD200;
  box-shadow: 0 0 0 3px rgba(255, 210, 0, .3);
}
.agc-quote-drawer .agc-qd .agc-qd-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.agc-quote-drawer .agc-qd .agc-qd-btn {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background: #FFD200;
  color: #0a0a0a;
  font: 700 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease;
}
.agc-quote-drawer .agc-qd .agc-qd-btn:hover:not(:disabled),
.agc-quote-drawer .agc-qd .agc-qd-btn:focus-visible { background: #FFC400; color: #0a0a0a; }
.agc-quote-drawer .agc-qd .agc-qd-btn:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 2px; }
.agc-quote-drawer .agc-qd .agc-qd-btn:disabled { opacity: .7; cursor: progress; }

.agc-quote-drawer .agc-qd .agc-qd-note {
  margin: 8px 0 0;
  font: 400 12px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #5c5c5c;
}
.agc-quote-drawer .agc-qd .agc-qd-note a { color: #0a0a0a; text-decoration: underline; }

.agc-quote-drawer .agc-qd .agc-qd-msg {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  font: 400 13px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: anywhere;
}
.agc-quote-drawer .agc-qd .agc-qd-msg[hidden] { display: none; }
.agc-quote-drawer .agc-qd .agc-qd-msg.ok  { background: #e6f7ec; color: #14532d; }
.agc-quote-drawer .agc-qd .agc-qd-msg.err { background: #fdecea; color: #a92e2e; }
.agc-quote-drawer .agc-qd .agc-qd-msg-line { margin-top: 4px; }
.agc-quote-drawer .agc-qd .agc-qd-msg a,
.agc-quote-drawer .agc-qd .agc-qd-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  cursor: pointer;
}

/* Self-service first: the "Submit quote" form button is hidden; "Clear all" stays under the download block. */
.agc-quote-drawer.agc-qd-on .agc-quote-next { display: none; }
.agc-quote-drawer .agc-qd:not([hidden]) + .agc-quote-actions {
  border-top: 0;
  padding-top: 14px;
  justify-content: flex-start;
}
