.promo-modal-open {
  overflow: hidden;
}

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 10, 32, .72);
}

.promo-modal.is-visible {
  display: flex;
}

.promo-modal__dialog {
  position: relative;
  width: min(92vw, 82vh, 680px);
  aspect-ratio: 1 / 1;
  max-height: 88vh;
  overflow: hidden;
  border-radius: 8px;
  background: #011C4B;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.promo-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 17, 46, .84);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.promo-modal__close:hover,
.promo-modal__close:focus {
  background: #028ABE;
  outline: none;
}

.promo-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #011C4B;
}

.promo-modal__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 54px 24px 26px;
  text-align: center;
  background: linear-gradient(180deg, rgba(1, 28, 75, 0) 0%, rgba(1, 28, 75, .78) 72%, rgba(1, 28, 75, .9) 100%);
}

.promo-modal__title {
  margin: 0 0 8px;
  color: #011C4B;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0;
}

.promo-modal__subtitle {
  margin: 0 auto 18px;
  max-width: 560px;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.5;
}

.promo-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: calc(100% - 32px);
  padding: 11px 24px;
  border-radius: 999px;
  background: #25D366;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  font-weight: 700;
  text-decoration: none;
}

.promo-modal__cta:hover,
.promo-modal__cta:focus {
  background: #128C7E;
  color: #fff !important;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .promo-modal {
    padding: 14px;
  }

  .promo-modal__dialog {
    width: 100%;
  }

  .promo-modal__content {
    padding: 46px 14px 20px;
  }
}

.promo-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f4f7fb;
}

.promo-auth__card {
  width: min(100%, 380px);
  padding: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .12);
}

.promo-auth__card h1 {
  margin: 0 0 8px;
  color: #011C4B;
  font-size: 1.65rem;
}

.promo-auth__card p {
  margin: 0 0 20px;
  color: #64748b;
}

.promo-auth__error {
  min-height: 22px;
  margin-top: 12px;
  color: #b91c1c;
  font-weight: 700;
}

.promo-dashboard.is-locked .promo-dashboard__shell {
  display: none;
}

.promo-dashboard:not(.is-locked) .promo-auth {
  display: none;
}

.promo-dashboard {
  min-height: 100vh;
  background: #f4f7fb;
  color: #1f2937;
  font-family: "Nunito Sans", Arial, sans-serif;
}

.promo-dashboard * {
  box-sizing: border-box;
}

.promo-dashboard__shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.promo-dashboard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.promo-dashboard__top h1 {
  margin: 0 0 6px;
  color: #011C4B;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}

.promo-dashboard__top p {
  margin: 0;
  color: #64748b;
}

.promo-dashboard__home {
  color: #028ABE;
  font-weight: 700;
  text-decoration: none;
}

.promo-dashboard__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.promo-dashboard__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 22px;
}

.promo-dashboard__panel,
.promo-dashboard__preview {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
}

.promo-dashboard__panel {
  padding: 24px;
}

.promo-dashboard__preview {
  padding: 18px;
}

.promo-field {
  display: block;
  margin-bottom: 16px;
}

.promo-field span,
.promo-switch span {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-weight: 700;
}

.promo-field input,
.promo-field textarea,
.promo-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #111827;
  font: inherit;
}

.promo-field textarea {
  min-height: 96px;
  resize: vertical;
}

.promo-field input:focus,
.promo-field textarea:focus,
.promo-field select:focus {
  border-color: #028ABE;
  box-shadow: 0 0 0 3px rgba(2, 138, 190, .16);
  outline: none;
}

.promo-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 700;
}

.promo-switch input {
  width: 18px;
  height: 18px;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.promo-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #028ABE;
  border-radius: 6px;
  background: #028ABE;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.promo-button:hover,
.promo-button:focus {
  background: #003667;
  border-color: #003667;
  outline: none;
}

.promo-button--secondary {
  background: #fff;
  color: #004483;
}

.promo-button--secondary:hover,
.promo-button--secondary:focus {
  background: #eaf6fb;
  color: #003667;
}

.promo-preview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #011C4B;
}

.promo-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #011C4B;
}

.promo-preview-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 16px 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(1, 28, 75, 0) 0%, rgba(1, 28, 75, .78) 72%, rgba(1, 28, 75, .9) 100%);
}

.promo-preview-card__body h2 {
  margin: 0 0 7px;
  color: #011C4B;
  font-size: 1.35rem;
}

.promo-preview-card__body p {
  margin: 0 0 14px;
  color: #475569;
}

.promo-status {
  margin-top: 14px;
  color: #047857;
  font-weight: 700;
}

.promo-dashboard__wide {
  margin-top: 22px;
}

.promo-section-heading {
  margin-bottom: 18px;
}

.promo-section-heading h2 {
  margin: 0 0 6px;
  color: #011C4B;
  font-size: 1.45rem;
  font-weight: 800;
}

.promo-section-heading p {
  margin: 0;
  max-width: 760px;
  color: #64748b;
}

.promo-image-manager {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .65fr);
  gap: 22px;
  align-items: start;
}

.promo-site-image-preview {
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
}

.promo-site-image-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.promo-image-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  max-height: 430px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
}

.promo-image-option {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
}

.promo-image-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.promo-image-option img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #011C4B;
}

.promo-image-option span {
  display: block;
  min-height: 38px;
  padding: 8px 9px 2px;
  color: #334155;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.promo-image-option small {
  display: block;
  padding: 0 9px 9px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 800;
}

.promo-image-option:has(input:checked) {
  border-color: #028ABE;
  box-shadow: 0 0 0 3px rgba(2, 138, 190, .18);
}

.promo-image-option:hover {
  border-color: rgba(2, 138, 190, .55);
}

@media (max-width: 900px) {
  .promo-dashboard__top,
  .promo-dashboard__grid {
    display: block;
  }

  .promo-dashboard__home {
    display: inline-block;
    margin-top: 14px;
  }

  .promo-dashboard__links {
    justify-content: flex-start;
  }

  .promo-dashboard__preview {
    margin-top: 18px;
  }

  .promo-image-manager {
    display: block;
  }

  .promo-site-image-preview {
    margin-top: 18px;
  }

  .promo-image-picker {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    max-height: 360px;
  }
}
