.wip-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.wip-modal.is-open {
  display: flex;
}

.wip-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.wip-modal__content {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.wip-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  border: none;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  line-height: 1;
}

.wip-modal__body {
  display: none;
}

.wip-modal__body.is-active {
  display: block;
}

#wip-form {
  display: grid;
  gap: 1rem;
}

#wip-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 0.9rem;
  color: #222;
}

#wip-form input {
  margin-top: 0.25rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.wip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: #cc1939;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.wip-button--wide {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

#wip-form .wip-button--wide {
  justify-self: center;
}

.wip-button:hover {
  background: #fff;
  color: #cc1939;
  border-color: #cc1939;
}

.wip-modal__qr {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 1rem auto 2rem;
  display: block;
}

.wip-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 0.5rem;
}

.is-hidden {
  display: none !important;
}

.wip-modal__message {
  margin-bottom: 1rem;
  color: #b91c1c;
  font-weight: 600;
  display: none;
}

.wip-modal__message.is-visible {
  display: block;
}

.wip-modal-trigger {
  cursor: pointer;
}
