/* Explore offers — offer detail popup.
 * Layout: centered header title + close, soft body with offer title and
 * labelled sections, right-aligned close button. Styled with landing tokens.
 */
.offer-modal .modal-dialog {
  max-width: 680px;
}

.offer-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(20, 20, 20, .18);
}

.modal-backdrop {
  background: var(--vnpay-black);
}

.modal-backdrop.show {
  opacity: .6;
}

.offer-modal .modal-header {
  position: relative;
  justify-content: center;
  min-height: 72px;
  padding: 16px 72px;
  border-bottom: 1px solid var(--vnpay-gray-border);
}

.offer-modal-header-title {
  margin: 0;
  color: var(--vnpay-black);
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.offer-modal-close {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--vnpay-bg-soft);
  color: var(--vnpay-black);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  transition: background-color var(--motion-fast, 180ms) ease, color var(--motion-fast, 180ms) ease;
}

.offer-modal-close:hover {
  background: var(--vnpay-gray-bg);
  color: var(--vnpay-blue);
}

.offer-modal-close:focus-visible,
.offer-modal-dismiss:focus-visible,
.offer-card > a:focus-visible {
  outline: 3px solid rgba(4, 91, 167, .35);
  outline-offset: 3px;
}

.offer-modal .modal-body {
  padding: 36px 48px 40px;
  background: var(--vnpay-bg-soft);
}

.offer-modal-section + .offer-modal-section {
  margin-top: 24px;
}

.offer-modal-section h3 {
  margin: 0 0 6px;
  color: var(--vnpay-black);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.offer-modal-section p {
  margin: 0;
  color: var(--vnpay-body);
  font-size: 16px;
  line-height: 26px;
}

.offer-modal-section p strong {
  color: var(--vnpay-black);
}

.offer-modal .modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--vnpay-gray-border);
}

.offer-modal-dismiss {
  min-width: 120px;
  min-height: 44px;
  margin: 0;
  padding: 10px 28px;
  font-size: 16px;
  line-height: 24px;
}

.offer-card > a,
.offer-card-img {
  cursor: pointer;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  transition: transform var(--motion-fast, 180ms) ease, box-shadow var(--motion-fast, 180ms) ease;
}

.offer-card-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

@media (max-width: 575.98px) {
  .offer-modal .modal-dialog {
    margin: 16px;
  }

  .offer-modal .modal-dialog-centered {
    min-height: calc(100% - 32px);
  }

  .offer-modal .modal-dialog-scrollable {
    height: calc(100% - 32px);
  }

  .offer-modal .modal-content {
    border-radius: 20px;
  }

  .offer-modal .modal-header {
    min-height: 60px;
    padding: 12px 60px;
  }

  .offer-modal-header-title {
    font-size: 18px;
  }

  .offer-modal-close {
    right: 12px;
  }

  .offer-modal .modal-body {
    padding: 24px 20px 28px;
  }

  .offer-modal .modal-footer {
    padding: 12px 16px;
  }
}
