.receipt-upload-lock {
  overflow: hidden;
}

.receipt-upload-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  align-items: end;
  padding: 18px 14px max(18px, env(safe-area-inset-bottom));
  background: rgba(8, 25, 22, .52);
  backdrop-filter: blur(10px);
}

.receipt-upload-dialog {
  width: min(100%, 460px);
  max-height: calc(100dvh - max(36px, env(safe-area-inset-top)) - max(22px, env(safe-area-inset-bottom)));
  margin: 0 auto;
  overflow: auto;
  color: #133f38;
  background: #fffdf8;
  border: 1px solid rgba(19, 63, 56, .14);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(8, 25, 22, .26);
  -webkit-overflow-scrolling: touch;
}

.receipt-upload-head,
.receipt-upload-body,
.receipt-upload-actions {
  padding-inline: 20px;
}

.receipt-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}

.receipt-upload-head small,
.receipt-upload-consent,
.receipt-upload-help,
.receipt-upload-selected {
  color: #697b77;
}

.receipt-upload-head h2 {
  margin: 4px 0 0;
  font: 800 24px/1.1 Inter, Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.receipt-upload-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  color: currentColor;
  background: rgba(19, 63, 56, .08);
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.receipt-upload-body {
  display: grid;
  gap: 14px;
  padding-block: 18px 10px;
}

.receipt-upload-picker {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 16px;
  border: 1px solid rgba(19, 63, 56, .16);
  border-radius: 16px;
  background: rgba(19, 63, 56, .045);
  cursor: pointer;
}

.receipt-upload-picker strong {
  font-size: 17px;
}

.receipt-upload-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.receipt-upload-picker:focus-within {
  outline: 3px solid rgba(227, 107, 70, .26);
  outline-offset: 2px;
}

.receipt-upload-consent,
.receipt-upload-help,
.receipt-upload-selected {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.receipt-upload-selected {
  min-height: 20px;
  color: #133f38;
  font-weight: 700;
}

.receipt-upload-status {
  min-height: 22px;
  margin: 0;
  color: #d9613d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.receipt-upload-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-block: 8px 20px;
}

.receipt-upload-actions button {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  font: 800 15px/1 Inter, Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.receipt-upload-submit {
  color: #fff;
  background: #e36b46;
}

.receipt-upload-submit:disabled {
  cursor: default;
  opacity: .55;
}

.receipt-upload-later {
  color: #133f38;
  background: rgba(19, 63, 56, .08);
}

.receipt-upload-success .receipt-upload-body {
  padding-bottom: 18px;
}

@media (min-width: 720px) {
  .receipt-upload-backdrop {
    align-items: center;
  }
}

@media (max-width: 360px) {
  .receipt-upload-head,
  .receipt-upload-body,
  .receipt-upload-actions {
    padding-inline: 16px;
  }

  .receipt-upload-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  .receipt-upload-backdrop {
    background: rgba(0, 0, 0, .62);
  }

  .receipt-upload-dialog {
    color: #f7f3ea;
    background: #13342f;
    border-color: rgba(247, 243, 234, .14);
  }

  .receipt-upload-head small,
  .receipt-upload-consent,
  .receipt-upload-help {
    color: #b4c2be;
  }

  .receipt-upload-close,
  .receipt-upload-later,
  .receipt-upload-picker {
    color: #f7f3ea;
    background: rgba(247, 243, 234, .08);
  }

  .receipt-upload-picker {
    border-color: rgba(247, 243, 234, .16);
  }

  .receipt-upload-selected {
    color: #f7f3ea;
  }
}

.receipt-upload-backdrop[data-theme="dark"] {
  background: rgba(0, 0, 0, .62);
}

.receipt-upload-backdrop[data-theme="dark"] .receipt-upload-dialog {
  color: #f7f3ea;
  background: #13342f;
  border-color: rgba(247, 243, 234, .14);
}

.receipt-upload-backdrop[data-theme="dark"] .receipt-upload-head small,
.receipt-upload-backdrop[data-theme="dark"] .receipt-upload-consent,
.receipt-upload-backdrop[data-theme="dark"] .receipt-upload-help {
  color: #b4c2be;
}

.receipt-upload-backdrop[data-theme="dark"] .receipt-upload-close,
.receipt-upload-backdrop[data-theme="dark"] .receipt-upload-later,
.receipt-upload-backdrop[data-theme="dark"] .receipt-upload-picker {
  color: #f7f3ea;
  background: rgba(247, 243, 234, .08);
}

.receipt-upload-backdrop[data-theme="dark"] .receipt-upload-picker {
  border-color: rgba(247, 243, 234, .16);
}

.receipt-upload-backdrop[data-theme="dark"] .receipt-upload-selected {
  color: #f7f3ea;
}
