.wts-service-popup {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: auto;
  padding: 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #d9e9f9;
  border-radius: 24px;
  background: linear-gradient(145deg, #edf6ff 0, #fff 48%);
  color: #142c44;
  font-family: inherit;
  box-shadow: 0 28px 90px rgb(12 43 75 / 25%);
}
.wts-service-popup::backdrop { background: rgb(15 35 56 / 50%); backdrop-filter: blur(4px); }
.wts-service-popup-open { overflow: hidden; }
.wts-service-popup-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; padding-right: 30px; font-weight: 800; font-size: 15px; }
.wts-service-popup-brand svg { flex-shrink: 0; width: 30px; height: 30px; color: #137fec; }
.wts-service-popup .wts-service-popup-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #526579; font-size: 28px; line-height: 1; cursor: pointer; }
.wts-service-popup .wts-service-popup-close:hover { background: #e4effa; }
.wts-service-popup-eyebrow { margin: 0 0 10px; color: #0969c5; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wts-service-popup h2 { margin: 0; font-size: clamp(26px, 5vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.wts-service-popup-description { margin: 14px 0 26px; color: #526579; font-size: 15px; line-height: 1.65; }
.wts-service-popup label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.wts-service-popup select {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 48px 12px 14px;
  border: 1px solid #bccddd;
  border-radius: 10px;
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23526579' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  color: #142c44;
  font: inherit;
  font-size: 16px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.wts-service-popup-hint { margin: 12px 0 26px; color: #526579; font-size: 12px; line-height: 1.6; }
.wts-service-popup-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wts-service-popup-actions button { min-height: 48px; border: 0; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.wts-service-popup-later { padding: 10px 0; background: transparent; color: #526579; }
.wts-service-popup-later:hover { color: #0969c5; }
.wts-service-popup-submit { min-width: 138px; padding: 12px 24px; background: #0969c5; color: #fff; }
.wts-service-popup-submit:hover { background: #0758a6; }
.wts-service-popup-submit:disabled { background: #e4edf5; color: #60758b; cursor: not-allowed; }
.wts-service-popup :is(button, select):focus-visible { outline: 3px solid #137fec; outline-offset: 3px; }
@media (max-width: 480px) {
  .wts-service-popup { width: min(420px, calc(100% - 32px)); padding: 22px 20px; border-radius: 20px; }
  .wts-service-popup::backdrop { background: rgb(15 35 56 / 32%); backdrop-filter: blur(2px); }
  .wts-service-popup-brand { margin-bottom: 20px; padding-right: 42px; gap: 8px; font-size: 13px; }
  .wts-service-popup-brand svg { width: 26px; height: 26px; }
  .wts-service-popup-eyebrow { display: none; }
  .wts-service-popup h2 { font-size: 24px; }
  .wts-service-popup-description { margin: 10px 0 18px; font-size: 14px; line-height: 1.5; }
  .wts-service-popup select { min-height: 48px; }
  .wts-service-popup-hint { margin: 10px 0 18px; }
  .wts-service-popup-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .wts-service-popup-actions button { min-width: 0; overflow-wrap: anywhere; }
  .wts-service-popup-later { text-align: left; }
  .wts-service-popup-submit { padding-inline: 12px; }
}
@media (max-height: 500px) {
  .wts-service-popup { padding-block: 20px; }
  .wts-service-popup-brand { margin-bottom: 16px; }
  .wts-service-popup-eyebrow { display: none; }
  .wts-service-popup-description, .wts-service-popup-hint { margin-block: 10px 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .wts-service-popup[open] { animation: wts-service-popup-enter .22s ease-out; }
  @keyframes wts-service-popup-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
}
