.slm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  padding: 20px;
}

.slm-overlay[hidden] {
  display: none;
}

.slm-modal {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 360px;
  border-radius: 6px;
  padding: 32px 28px 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.slm-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.slm-close:hover {
  color: #000;
}

.slm-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e2e2;
}

.slm-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 4px;
  font-size: 14px;
  cursor: pointer;
  color: #666;
  border-bottom: 2px solid transparent;
}

.slm-tab-btn.is-active {
  color: #222;
  font-weight: 600;
  border-bottom-color: #222;
}

.slm-form label {
  display: block;
  font-size: 13px;
  color: #333;
  margin-bottom: 14px;
}

.slm-form input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.slm-form input:focus {
  outline: none;
  border-color: #888;
}

.slm-submit {
  width: 100%;
  padding: 10px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.slm-submit:hover {
  background: #000;
}

.slm-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.slm-message {
  min-height: 18px;
  font-size: 13px;
  margin: 0 0 8px;
}

.slm-message.is-error {
  color: #c0392b;
}

.slm-message.is-success {
  color: #27ae60;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
