.gw-quote-popup {
  position: fixed;
  inset: 0;
  width: min(680px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  border: 1px solid #cbd6cd;
  border-radius: 16px;
  box-sizing: border-box;
  background: #fff;
  color: #111827;
  box-shadow: 0 20px 64px #10271f45;
}
.gw-quote-popup[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.gw-quote-popup::backdrop { background: #10271fb8; }
html:has(.gw-quote-popup[open]) { overflow: hidden; scrollbar-gutter: stable; }
.gw-quote-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #d6dfd5;
}
.gw-quote-popup-head h2 { margin: 0 0 4px; font-size: clamp(22px, 4vw, 30px); line-height: 1.2; }
.gw-quote-popup-head p { margin: 0; color: #4b5563; overflow-wrap: anywhere; font-size: 14px; }
.gw-quote-popup-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #cbd6cd;
  border-radius: 8px;
  background: #fff;
  color: #10271f;
  font: 26px/1 sans-serif;
  cursor: pointer;
}
.gw-quote-popup-body { overflow: auto; overscroll-behavior: contain; padding: 18px 22px; }
.gw-quote-popup-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 22px; border-top: 1px solid #d6dfd5; background: #f5f6f2; }
.gw-quote-popup-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #1f5a34;
  border-radius: 8px;
  background: #fff;
  color: #1f5a34;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.gw-quote-popup-contact a:last-child { background: #1f5a34; color: #fff; }
.gw-quote-popup-close:focus-visible, .gw-quote-popup-contact a:focus-visible { outline: 2px solid #1f5a34; outline-offset: 2px; }
@media (max-width: 600px) {
  .gw-quote-popup-head, .gw-quote-popup-body, .gw-quote-popup-contact { padding-inline: 14px; }
}
@media (min-width: 761px) {
  body:has(.gw-sota-header) .gw-mobile-contact {
    position: fixed;
    inset: auto 16px 16px auto;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
    min-height: 0;
    padding: 5px;
    border: 1px solid #41644c;
    border-radius: 12px;
    background: #10271f;
    box-shadow: 0 6px 24px #10271f33;
  }
  body:has(.gw-sota-header) .gw-mobile-contact > a {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 7px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }
  body:has(.gw-sota-header) .gw-mobile-contact > a:last-child { background: #b8f16b; color: #10271f; }
}
@media print { .gw-mobile-contact { display: none !important; } }
