#priceAlertModalOverlay.delete-account-overlay {
  z-index: 1400;
  padding: max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

#priceAlertModalOverlay .price-alert-modal-card {
  position: relative;
  width: min(520px, calc(100vw - 2rem));
  max-height: min(88vh, 720px);
  padding: 0;
  gap: 0;
  text-align: left;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid rgba(10, 132, 255, 0.14);
  background: linear-gradient(
      180deg,
      rgba(10, 132, 255, 0.07) 0%,
      rgba(255, 255, 255, 0) 22%
    ),
    rgba(255, 255, 255, 0.97);
  box-shadow:
    0 28px 64px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#priceAlertModalOverlay .price-alert-modal-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #0a84ff, rgba(0, 194, 194, 0.65));
}

.price-alert-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}

.price-alert-modal-header-main {
  min-width: 0;
}

.price-alert-modal-eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-strong, #0a84ff);
}

.price-alert-modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.price-alert-modal-route {
  flex-shrink: 0;
  margin: 2px 0 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  background: rgba(10, 132, 255, 0.08);
  color: var(--blue-strong, #0a84ff);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-alert-modal-copy {
  margin: 0;
  padding: 0 18px 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.price-alert-modal-error {
  margin: 0 18px 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(180, 35, 24, 0.2);
  background: rgba(254, 242, 242, 0.95);
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
}

.price-alert-modal-error.hidden {
  display: none;
}

.price-alert-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 18px 12px;
  -webkit-overflow-scrolling: touch;
}

.price-alert-modal-section + .price-alert-modal-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.price-alert-modal-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.price-alert-modal-section-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.price-alert-modal-section-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  text-align: right;
}

.price-alert-modal-grid {
  display: grid;
  gap: 10px;
}

.price-alert-modal-grid--primary {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.price-alert-modal-grid--filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-alert-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.price-alert-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.price-alert-field input[type='number'],
.price-alert-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  border: 1px solid rgba(124, 149, 193, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.price-alert-field input[type='number'] {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.price-alert-field select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 1px),
    calc(100% - 12px) calc(50% + 1px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.price-alert-field input[type='number']:hover,
.price-alert-field select:hover {
  border-color: rgba(10, 132, 255, 0.34);
}

.price-alert-field input[type='number']:focus-visible,
.price-alert-field select:focus-visible {
  outline: none;
  border-color: rgba(10, 132, 255, 0.62);
  box-shadow: var(--focus-ring);
}

.price-alert-airline-filter {
  margin-top: 10px;
}

.price-alert-airline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 7.5rem;
  margin-top: 5px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(124, 149, 193, 0.2);
  background: rgba(248, 250, 252, 0.88);
  overflow: auto;
}

.price-alert-airline-list .caption {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.price-alert-airline-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 5px 7px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.price-alert-airline-option:hover {
  background: rgba(10, 132, 255, 0.06);
}

.price-alert-airline-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #0a84ff;
  flex-shrink: 0;
}

.price-alert-airline-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-alert-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.98)
  );
}

.price-alert-modal-actions .secondary,
.price-alert-modal-actions .primary {
  min-width: 108px;
  min-height: 40px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
}

.alerts-panel-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.alerts-delete-all {
  flex-shrink: 0;
  white-space: nowrap;
}

.alert-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.price-alert-modal-open {
  overflow: hidden;
}

[data-theme='dark'] #priceAlertModalOverlay .price-alert-modal-card {
  border-color: rgba(74, 165, 255, 0.2);
  background: linear-gradient(
      180deg,
      rgba(74, 165, 255, 0.12) 0%,
      rgba(14, 18, 29, 0) 24%
    ),
    rgba(14, 18, 29, 0.96);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme='dark'] .price-alert-modal-title {
  color: #f2f7ff;
}

[data-theme='dark'] .price-alert-modal-copy,
[data-theme='dark'] .price-alert-modal-section-note {
  color: rgba(190, 204, 228, 0.86);
}

[data-theme='dark'] .price-alert-modal-route {
  border-color: rgba(74, 165, 255, 0.28);
  background: rgba(74, 165, 255, 0.12);
  color: #93c5fd;
}

[data-theme='dark'] .price-alert-field input[type='number'],
[data-theme='dark'] .price-alert-field select {
  border-color: rgba(112, 150, 210, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #edf4ff;
}

[data-theme='dark'] .price-alert-field select {
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
}

[data-theme='dark'] .price-alert-airline-list {
  border-color: rgba(112, 150, 210, 0.24);
  background: rgba(15, 23, 42, 0.62);
}

[data-theme='dark'] .price-alert-airline-option {
  color: #edf4ff;
}

[data-theme='dark'] .price-alert-modal-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(14, 18, 29, 0.4),
    rgba(14, 18, 29, 0.96)
  );
}

@media (max-width: 560px) {
  .price-alert-modal-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .price-alert-modal-route {
    align-self: flex-start;
  }

  .price-alert-modal-grid--primary,
  .price-alert-modal-grid--filters,
  .price-alert-airline-list {
    grid-template-columns: 1fr;
  }

  .price-alert-modal-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .price-alert-modal-section-note {
    text-align: left;
  }
}
