.vz-promo-modal {
  --vz-promo-blue: #0092d0;
  --vz-promo-yellow: #FDE910;
  --vz-promo-text: #111;
  --vz-promo-muted: #6b7280;
  --vz-promo-line: #e5e7eb;
  --vz-promo-input-border: #d0d5dd;
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.vz-promo-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vz-promo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  cursor: pointer;
}

.vz-promo-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  width: min(860px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 32px));
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.32s ease;
}

.vz-promo-modal.is-open .vz-promo-modal__dialog {
  transform: translateY(0) scale(1);
}

.vz-promo-modal__main {
  display: contents;
}

.vz-promo-modal__dialog--media-only {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  width: auto;
  max-width: min(920px, calc(100vw - 32px));
  max-height: min(90vh, calc(100vh - 32px));
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.vz-promo-modal__dialog--media-only .vz-promo-modal__main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
}

.vz-promo-modal__dialog--media-only .vz-promo-modal__media {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  width: auto;
  max-width: min(920px, calc(100vw - 32px));
  max-height: min(78vh, calc(100vh - 120px));
  background: #fff;
  overflow: hidden;
}

.vz-promo-modal__dialog--media-only .vz-promo-modal__media picture {
  position: static;
  display: block;
  width: auto;
  height: auto;
  max-width: min(920px, calc(100vw - 32px));
  max-height: min(78vh, calc(100vh - 120px));
}

.vz-promo-modal__dialog--media-only .vz-promo-modal__media img {
  position: static;
  display: block;
  width: auto;
  height: auto;
  max-width: min(920px, calc(100vw - 32px));
  max-height: min(78vh, calc(100vh - 120px));
  object-fit: contain;
  object-position: center;
}

.vz-promo-modal__dialog--media-only:not(.vz-promo-modal__dialog--has-promo) .vz-promo-modal__media,
.vz-promo-modal__dialog--media-only:not(.vz-promo-modal__dialog--has-promo) .vz-promo-modal__media picture,
.vz-promo-modal__dialog--media-only:not(.vz-promo-modal__dialog--has-promo) .vz-promo-modal__media img {
  max-height: min(90vh, calc(100vh - 32px));
}

.vz-promo-modal.is-success .vz-promo-modal__dialog {
  display: block;
  width: min(420px, calc(100vw - 32px));
  max-width: min(420px, calc(100vw - 32px));
  min-height: 0;
  max-height: min(90vh, calc(100vh - 32px));
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.vz-promo-modal.is-success .vz-promo-modal__main,
.vz-promo-modal.is-success .vz-promo-modal__media,
.vz-promo-modal.is-success .vz-promo-modal__content,
.vz-promo-modal.is-success .vz-promo-modal__promo-bar,
.vz-promo-modal.is-success .vz-promo-modal__link,
.vz-promo-modal__main[hidden] {
  display: none !important;
}

.vz-promo-modal.is-success .vz-promo-modal__success {
  display: flex !important;
}

.vz-promo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vz-promo-modal__close:hover {
  background: #fff;
}

.vz-promo-modal__content {
  display: flex;
  flex-direction: column;
  padding: 28px 32px 30px;
  overflow: auto;
  color: var(--vz-promo-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.vz-promo-modal__title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.vz-promo-modal__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 8px;
  background: var(--vz-promo-yellow);
}

.vz-promo-modal__body {
  font-size: 15px;
  line-height: 1.35;
}

.vz-promo-modal__body > *:first-child {
  margin-top: 0;
}

.vz-promo-modal__media {
  position: relative;
  min-height: 100%;
  background: #eef3f7;
}

.vz-promo-modal__media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.vz-promo-modal__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.vz-promo-modal__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
  overflow: hidden;
}

.vz-promo-modal__close {
  z-index: 5;
}

.vz-promo-modal__promo-bar {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px 18px;
  background: #fff;
  border-top: 1px solid #e8eef3;
}

.vz-promo-modal__promo {
  position: relative;
  z-index: 4;
  width: 100%;
  box-sizing: border-box;
  margin-top: 18px;
}

.vz-promo-modal__promo-bar .vz-promo-modal__promo {
  margin-top: 0;
}

.vz-promo-modal__content .vz-promo-modal__promo {
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
}

.vz-promo-modal__promo-offer {
  width: 100%;
}

.vz-promo-modal__promo-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.vz-promo-modal__promo-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.vz-promo-modal__promo-code {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--vz-promo-input-border);
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.2;
  box-sizing: border-box;
  outline: none;
  cursor: text;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vz-promo-modal__promo-code:focus {
  border-color: #98a2b3;
  box-shadow: 0 0 0 3px rgba(152, 162, 179, 0.18);
}

.vz-promo-modal__promo-code.is-error {
  border-color: #e11d48;
  background: #fff;
  color: #111;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.vz-promo-modal__promo-btn {
  appearance: none;
  border: 0;
  flex: 0 0 auto;
  min-width: 180px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 10px;
  background: var(--vz-promo-yellow);
  color: #111;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  white-space: nowrap;
}

.vz-promo-modal__promo-btn:hover {
  filter: brightness(0.96);
}

.vz-promo-modal__promo-btn:active {
  transform: translateY(1px);
}

.vz-promo-modal__promo-btn.is-loading,
.vz-promo-modal__promo-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.vz-promo-modal__promo-error {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #e11d48;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.vz-promo-modal__promo-error[hidden] {
  display: none !important;
}

.vz-promo-modal__success {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 36px 28px;
  background: #fff;
  animation: vz-promo-success-in 0.35s ease;
}

.vz-promo-modal__success[hidden] {
  display: none !important;
}

.vz-promo-modal__success-inner {
  text-align: center;
  max-width: 320px;
}

.vz-promo-modal__success-icon {
  display: inline-flex;
  margin-bottom: 16px;
  animation: vz-promo-pop 0.45s ease 0.05s both;
}

.vz-promo-modal__success-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.vz-promo-modal__success-code {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 14px;
  border: 1.5px dashed #0092d0;
  background: #f0f9fd;
  color: #0092d0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vz-promo-modal__success-text {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.45;
  color: #6b7280;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.vz-promo-modal__success-btn {
  appearance: none;
  border: 0;
  min-height: 46px;
  padding: 0 28px;
  border-radius: 10px;
  background: var(--vz-promo-yellow);
  color: #111;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.vz-promo-modal__success-btn:hover {
  filter: brightness(0.96);
}

@keyframes vz-promo-success-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vz-promo-pop {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Default structured promo blocks (editable HTML) */
.vz-promo-block {
  position: relative;
  margin: 0;
  padding: 14px 0 14px 14px;
  border-bottom: 1px solid var(--vz-promo-line);
}

.vz-promo-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: var(--vz-promo-blue);
}

.vz-promo-block__lead {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.vz-promo-block__value {
  margin: 0 0 2px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--vz-promo-text);
}

.vz-promo-block__value span {
  color: var(--vz-promo-blue);
}

.vz-promo-block__note {
  margin: 0;
  font-size: 14px;
  color: var(--vz-promo-muted);
}

.vz-promo-footer {
  margin: 0;
  padding-top: 16px;
}

.vz-promo-footer__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vz-promo-footer__label::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 6px;
  background: var(--vz-promo-yellow);
}

.vz-promo-footer__title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.2;
}

.vz-promo-footer__gift {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--vz-promo-blue);
  line-height: 1.1;
}

.vz-promo-modal__body p {
  margin: 0 0 8px;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .vz-promo-modal__dialog {
    width: min(720px, calc(100vw - 28px));
    max-height: min(560px, calc(100vh - 28px));
    grid-template-columns: minmax(0, 1.1fr) minmax(200px, 0.9fr);
  }

  .vz-promo-modal__content {
    padding: 24px 24px 26px;
  }
}

@media (max-width: 767px) {
  .vz-promo-modal {
    padding: 10px;
    align-items: flex-start;
  }

  .vz-promo-modal__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 32vh) minmax(0, 1fr);
    width: min(420px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    margin-top: 8px;
  }

  .vz-promo-modal__dialog--media-only {
    width: auto;
    max-width: min(420px, calc(100vw - 20px));
    margin-top: 8px;
  }

  .vz-promo-modal__dialog--media-only .vz-promo-modal__media {
    min-height: 0;
    max-width: min(420px, calc(100vw - 20px));
    max-height: min(70vh, calc(100vh - 140px));
  }

  .vz-promo-modal__dialog--media-only .vz-promo-modal__media picture,
  .vz-promo-modal__dialog--media-only .vz-promo-modal__media img {
    position: static;
    max-width: min(420px, calc(100vw - 20px));
    max-height: min(70vh, calc(100vh - 140px));
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .vz-promo-modal__promo-row {
    flex-direction: row;
    gap: 10px;
  }

  .vz-promo-modal__promo-btn {
    min-width: 120px;
    padding: 0 16px;
    font-size: 14px;
  }

  .vz-promo-modal__promo-code {
    font-size: 16px;
    min-height: 48px;
    padding: 0 12px;
  }

  .vz-promo-modal__promo-bar {
    padding: 12px 14px 14px;
    width: 100%;
  }

  .vz-promo-modal__media {
    min-height: 180px;
    order: -1;
  }

  .vz-promo-modal__media picture,
  .vz-promo-modal__media img {
    position: absolute;
  }

  .vz-promo-modal__content {
    padding: 20px 18px 22px;
  }

  .vz-promo-modal__title {
    font-size: 30px;
    margin-bottom: 12px;
  }

  .vz-promo-block {
    padding: 12px 0 12px 12px;
  }

  .vz-promo-block__lead {
    font-size: 15px;
  }

  .vz-promo-block__value {
    font-size: 32px;
  }
}

body.vz-promo-modal-lock {
  overflow: hidden;
}
