.sawa-weg-open {
  overflow: hidden;
}

.sawa-weg-modal[hidden] {
  display: none !important;
}

.sawa-weg-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
  font-family: inherit;
}

.sawa-weg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 14, 24, 0.78);
  backdrop-filter: blur(7px);
}

.sawa-weg-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  box-sizing: border-box;
  padding: 34px;
  border: 1px solid rgba(124, 196, 235, 0.25);
  border-radius: 22px;
  background: #071b2a;
  color: #f6f8fa;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  text-align: right;
}

.sawa-weg-content h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.25;
}

.sawa-weg-content p {
  margin: 0 0 18px;
  color: #bad0dd;
  font-size: 16px;
  line-height: 1.8;
}

.sawa-weg-content .sawa-weg-notice {
  padding: 14px 16px;
  border: 1px solid rgba(247, 189, 43, 0.35);
  border-radius: 12px;
  background: rgba(247, 189, 43, 0.08);
  color: #f5d883;
}

.sawa-weg-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.sawa-weg-close:hover,
.sawa-weg-close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: 2px solid #75c5ee;
  outline-offset: 2px;
}

.sawa-weg-actions {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}

.sawa-weg-button {
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #102e42;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.sawa-weg-button:hover {
  transform: translateY(-1px);
  border-color: rgba(117, 197, 238, 0.65);
}

.sawa-weg-button:focus-visible {
  outline: 3px solid rgba(117, 197, 238, 0.7);
  outline-offset: 2px;
}

.sawa-weg-button.is-primary {
  border-color: #70bfe8;
  background: #147caf;
}

.sawa-weg-button.is-warning {
  border-color: rgba(247, 189, 43, 0.45);
  background: rgba(247, 189, 43, 0.1);
  color: #f7d779;
}

.sawa-weg-button.is-link {
  min-height: auto;
  border: 0;
  background: transparent;
  color: #83c8eb;
}

.sawa-weg-preview-badge {
  position: fixed;
  z-index: 2147482999;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(247, 189, 43, 0.5);
  border-radius: 999px;
  background: #071b2a;
  color: #fff;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  font-size: 13px;
}

.sawa-weg-preview-badge a {
  color: #f7bd2b;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .sawa-weg-modal {
    align-items: end;
    padding: 10px;
  }

  .sawa-weg-dialog {
    max-height: calc(100vh - 20px);
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .sawa-weg-content p {
    font-size: 15px;
  }

  .sawa-weg-preview-badge {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sawa-weg-button {
    transition: none;
  }
}

