.order-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2200;
}

.order-modal.is-open {
  display: block;
}

.order-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 24, 0.42);
}

.order-modal-card {
  position: absolute;
  left: 50%;
  top: 33vh;
  transform: translate(-50%, -33%);
  width: min(620px, calc(100vw - 1.5rem));
  padding: 1rem;
  overflow: hidden;
  z-index: 1;
}

.order-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.order-modal-heading {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.order-modal-close-btn {
  border: 1px solid #bcc9d7;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  background: #ffffff;
  color: #1f3347;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.order-modal-close-btn:hover {
  background: #eff4f9;
}

.order-modal-close-btn:focus {
  outline: 2px solid #7fa9d1;
  outline-offset: 1px;
}

.order-modal-note {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.45;
  color: #4c6278;
}

.order-email-fieldset {
  display: grid;
  gap: 0.35rem;
}

.organizer-submit-modal-card .order-email-fieldset {
  gap: 0.42rem;
  margin-bottom: 0.25rem;
}

.popular-event-request-modal-card .order-email-fieldset {
  gap: 0.42rem;
  margin-bottom: 0.7rem;
}

.order-email-fieldset .field-label {
  text-transform: none;
  letter-spacing: 0.02em;
}

.popular-event-request-help {
  margin: -0.12rem 0 0;
  color: #50667a;
  font-size: 0.78rem;
  line-height: 1.35;
}

.order-email-input {
  width: 100%;
  min-width: 0;
  padding: 0.72rem 0.82rem;
  border: 1px solid #c7d4e1;
  border-radius: 10px;
  background: #ffffff;
  color: #13293d;
  font: inherit;
}

.organizer-notes-input {
  min-height: 5.5rem;
  resize: vertical;
  margin-bottom: 0.6rem;
}

.popular-event-request-message {
  min-height: 5.2rem;
  resize: vertical;
}

.order-email-input.error {
  border-color: #c44d4d;
  background: #fff6f6;
}

.order-email-input:focus {
  outline: 2px solid rgba(20, 134, 192, 0.25);
  outline-offset: 1px;
  border-color: #1486c0;
}

.order-email-input.error:focus {
  outline-color: rgba(160, 35, 35, 0.18);
  border-color: #a02323;
}

.order-email-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #4a5f74;
}

.order-inline-modal {
  position: absolute;
  inset: -1px;
  display: none;
  border-radius: inherit;
  overflow: hidden;
  z-index: 3;
}

.order-inline-modal.is-open {
  display: block;
}

.order-inline-modal-backdrop {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(9, 16, 24, 0.52);
  backdrop-filter: blur(2px);
}

.order-inline-modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100% - 1.25rem));
  padding: 0.95rem;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 0.8rem;
  z-index: 1;
}

.order-inline-modal.has-preview .order-inline-modal-card {
  width: min(860px, calc(100% - 1.25rem));
  max-height: calc(100% - 1.25rem);
  overflow: auto;
}

.order-review-expand-overlay {
  z-index: 4;
}

.order-review-expand-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, calc(100% - 1rem));
  height: min(100%, calc(100% - 1rem));
  padding: 0.85rem;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.65rem;
  z-index: 1;
}

.order-review-expand-wrap {
  min-width: 0;
  min-height: 0;
  border: 1px dashed #c7d1dd;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfdff 0%, #f2f5f8 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  padding: 0.6rem;
}

.order-inline-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.order-inline-modal-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  color: #102b46;
}

.order-inline-modal-note {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #22384d;
}

.order-inline-modal-status {
  margin: -0.1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #355069;
}

.order-inline-modal-status[hidden] {
  display: none;
}

.order-inline-modal-status.is-error {
  color: #a02323;
}

.fulfillment-warning-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #bcc8d6;
  border-radius: 10px;
  overflow: hidden;
}

.fulfillment-warning-mode-toggle[hidden],
.fulfillment-warning-mode-summary[hidden] {
  display: none;
}

.fulfillment-warning-mode-btn {
  min-height: 44px;
  border: 0;
  border-right: 1px solid #bcc8d6;
  padding: 0.64rem 0.7rem;
  background: linear-gradient(180deg, #fbfcfe 0%, #edf2f7 100%);
  color: #24394f;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.fulfillment-warning-mode-btn:last-child {
  border-right: 0;
}

.fulfillment-warning-mode-btn.is-selected {
  background: #eef5ff;
  box-shadow: inset 0 0 0 2px #2f80ff;
  color: #0f6fff;
}

.fulfillment-warning-mode-btn:first-child.is-selected {
  border-radius: 9px 0 0 9px;
}

.fulfillment-warning-mode-btn:last-child.is-selected {
  border-radius: 0 9px 9px 0;
}

.fulfillment-warning-preview {
  min-height: 150px;
  border: 1px solid #d6e0ea;
  border-radius: 10px;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0.65rem;
}

.fulfillment-warning-preview[hidden] {
  display: none;
}

.fulfillment-warning-preview-image {
  width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: contain;
  display: block;
}

.fulfillment-warning-preview-image[hidden] {
  display: none;
}

.fulfillment-warning-preview-status {
  margin: 0;
  color: #425a72;
  font-size: 0.84rem;
  text-align: center;
}

.fulfillment-warning-preview-status.is-error {
  color: #a02323;
}

.fulfillment-warning-preview-status[hidden] {
  display: none;
}

.fulfillment-warning-mode-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  border: 1px solid #d1deea;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%);
  color: #2b435b;
  font-size: 0.84rem;
  line-height: 1.42;
}

.fulfillment-warning-mode-summary p {
  min-height: 2.84em;
  margin: 0;
}

.fulfillment-warning-info-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #1476b8;
  color: #ffffff;
  font-weight: 800;
  font-style: normal;
}

.order-inline-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.reset-confirm-form {
  gap: 0.9rem;
}

.reset-confirm-actions {
  justify-content: flex-end;
}

.order-options {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
  border: 1px solid #d6e0ea;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  box-shadow: 0 12px 28px rgba(14, 31, 48, 0.06);
}

.order-options-title {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b7186;
}

.order-options-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.order-option-list {
  display: grid;
  gap: 0.7rem;
}

.order-download-page-size {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  min-width: 0;
}

.order-download-page-size-group {
  gap: 0.9rem;
  min-height: auto;
  flex-wrap: nowrap;
}

.order-download-page-size-option {
  font-size: 0.84rem;
  color: #44586d;
  white-space: nowrap;
}

.order-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem 0.95rem;
  border: 1px solid #d5dfe9;
  border-radius: 14px;
  background: #f8fbfd;
}

.order-option-fallback {
  background: #fbfcfd;
  border-color: #dbe4ed;
}

.order-option-featured {
  border-color: #7ea5cf;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 100%);
  box-shadow: inset 0 0 0 1px rgba(70, 112, 160, 0.12);
}

.order-option-premium {
  border-color: #b7d4c0;
  background: linear-gradient(180deg, #f7fcf8 0%, #eef8f1 100%);
  box-shadow: inset 0 0 0 1px rgba(57, 121, 76, 0.08);
}

.order-option-copy {
  display: grid;
  gap: 0.26rem;
}

.order-option-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.order-option-title {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.25;
  color: #13293d;
}

.order-option-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: #1d5f98;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.order-option-description {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.42;
  color: #44586d;
}

.order-option-btn {
  min-width: 168px;
  min-height: 42px;
  padding: 0 0.95rem;
  border: 1px solid #b9c8d8;
  border-radius: 10px;
  background: #ffffff;
  color: #153350;
  font-weight: 700;
  cursor: pointer;
}

.order-option-btn:hover {
  background: #f2f7fb;
}

.order-option-btn-primary {
  border-color: #0b4f75;
  background: #0b4f75;
  color: #ffffff;
}

.order-option-btn-primary:hover {
  background: #0a4465;
}

.order-option-btn-premium {
  border-color: #3c7f4f;
  background: #3c7f4f;
  color: #ffffff;
}

.order-option-btn-premium:hover {
  background: #316842;
}

.order-option-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.order-options-trust {
  margin: -0.05rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #617689;
}

