.hkpm {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  color: #00305d;
}

.hkpm--visible {
  display: flex;
}

.hkpm-panel {
  position: relative;
  width: min(100%, 820px);
  background: #fff;
  box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.22);
}

.hkpm-header {
  padding: 20px 24px;
  border-bottom: 1px solid #8a8a8a;
}

.hkpm-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.hkpm-header p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.hkpm-header a,
.hkpm-actions a {
  color: #00305d;
  text-decoration: none;
}

.hkpm-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #00305d;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.hkpm-services {
  margin: 0;
  padding: 16px 24px;
  list-style: none;
  border-bottom: 1px solid #8a8a8a;
}

.hkpm-service {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 16px;
}

.hkpm-service:last-child {
  margin-bottom: 0;
}

.hkpm-service strong {
  display: inline-block;
  margin-right: 4px;
}

.hkpm-service span,
.hkpm-service p {
  color: #555;
  font-size: 13px;
}

.hkpm-service p {
  margin: 3px 0 0;
}

.hkpm-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 28px;
}

.hkpm-switch input {
  position: absolute;
  opacity: 0;
}

.hkpm-slider {
  position: absolute;
  inset: 0;
  border: 1px solid #00305d;
  border-radius: 999px;
  background: #5a5a5a;
  cursor: pointer;
}

.hkpm-slider::before {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 18px;
  height: 18px;
  content: "";
  border-radius: 50%;
  background: #fff;
  transition: transform 0.16s ease;
}

.hkpm-switch input:checked + .hkpm-slider {
  background: #fff;
}

.hkpm-switch input:checked + .hkpm-slider::before {
  transform: translateX(18px);
  background: #2f5f8f;
}

.hkpm-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
}

.hkpm-button {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid #00305d;
  background: #fff;
  color: #00305d;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.hkpm-button:hover,
.hkpm-button:focus {
  background: #00305d;
  color: #fff;
}

.hkpm-links {
  grid-column: 1 / -1;
  text-align: right;
}

.hkpm-external-media {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: #d7e1e7;
}

.hkpm-external-media__poster {
  display: flex;
  min-height: inherit;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
}

.hkpm-external-media__poster::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, 0.66);
}

.hkpm-external-media__notice {
  position: relative;
  z-index: 1;
  width: min(92%, 430px);
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  color: #00305d;
  text-align: center;
}

.hkpm-external-media__notice p {
  margin: 10px 0;
  font-size: 19px;
  font-weight: 700;
}

.hkpm-external-media__notice label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 15px;
}

.hkpm-video-consent-all {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  color: #00305d;
  font-size: 15px;
  font-weight: 400;
}

.hkpm-external-media__play {
  width: 88px;
  height: 68px;
  border: 0;
  border-radius: 12px;
  background: #ff0000;
  cursor: pointer;
}

.hkpm-external-media__play:hover,
.hkpm-external-media__play:focus {
  background: #cc0000;
}

.hkpm-external-media__play::before {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  content: "";
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #fff;
}

.hkpm-external-media__iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

@media (max-width: 640px) {
  .hkpm-actions {
    grid-template-columns: 1fr;
  }

  .hkpm-button {
    width: 100%;
  }
}
