.dw-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dw-popup.is-visible {
  display: flex;
}

.dw-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 29, 0.72);
  backdrop-filter: blur(3px);
}

.dw-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.dw-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background-color: #ffd900 !important;
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
  span{
		margin-top:-5px;
		display: block;
	}
}

.dw-popup__close:hover,
.dw-popup__close:focus-visible {
  background-color: #ffd900 !important;
   outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.dw-popup__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.dw-popup__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dw-popup__content {
  padding: 32px 28px 28px;
}

.dw-popup__content.dw-popup__center{
	text-align: center;
}

.dw-popup__title {
  margin: 0 40px 16px 0;
  color: #0f1720;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  font-family: Roboto Condensed, Impact, sans-serif;
  font-style: italic;
  font-weight: 700;
}

.dw-popup__text {
  color: #334155;
  font-size: 16px;
  line-height: 1.6;
}

.dw-popup__text > *:first-child {
  margin-top: 0;
}

.dw-popup__text > *:last-child {
  margin-bottom: 0;
}

.dw-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.dw-popup__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #0f1720;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dw-popup__button:hover,
.dw-popup__button:focus-visible {
  transform: translateY(-1px);
  opacity: 0.92;
}

body.dw-popup-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .demo-page {
    padding: 24px 16px 56px;
  }

  .demo-hero,
  .demo-content {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .demo-copy,
  .demo-content p {
    font-size: 16px;
  }

  .dw-popup {
    padding: 16px;
  }

  .dw-popup__dialog {
    width: 100%;
    max-height: calc(100vh - 32px);
    border-radius: 20px;
  }

  .dw-popup__content {
    padding: 24px 20px 20px;
  }

  .dw-popup__title {
    margin-right: 32px;
    font-size: 28px;
  }
}
