.uksdp-overlay[hidden] { display: none !important; }
.uksdp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 17, 29, .78);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.uksdp-dialog {
  box-sizing: border-box;
  position: relative;
  width: min(var(--uksdp-width, 520px), 94vw);
  max-height: 94dvh;
  max-height: 94vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.uksdp-image {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  flex: 0 1 auto;
  max-height: calc(94vh - 18px);
  object-fit: contain;
  border-radius: 6px;
}
.uksdp-dialog:has(.uksdp-cta) .uksdp-image { max-height: calc(94vh - 82px); }
.uksdp-close {
  box-sizing: border-box;
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d7dfe8;
  border-radius: 5px;
  background: rgba(255, 255, 255, .96);
  color: #17324f;
  font: 700 25px/1 Arial, sans-serif;
  cursor: pointer;
}
.uksdp-close:hover, .uksdp-close:focus-visible { background: #eef6fd; outline-color: #1684cf; }
.uksdp-cta {
  display: block;
  box-sizing: border-box;
  padding: 13px 15px;
  text-align: center;
  color: #fff !important;
  background: #167ac2;
  text-decoration: none !important;
  border-radius: 0 0 6px 6px;
  font: 700 15px/1.35 system-ui, sans-serif;
}
.uksdp-cta:hover, .uksdp-cta:focus-visible { background: #0d639f; color: #fff !important; }
body.uksdp-open { overflow: hidden !important; }
@media (max-width: 600px) {
  .uksdp-overlay { padding: 10px; }
  .uksdp-dialog { width: min(var(--uksdp-width, 520px), 96vw); }
  .uksdp-close { width: 30px; height: 30px; }
}
