/* ==========================================================================
   data-popup.css
   Copyright acceptance popup for TIMSS & PIRLS data pages.
   Pairs with data-popup.js. Visual values are carried over unchanged from the
   inline styles used on the TIMSS 2023 and PIRLS 2021 pages.

   All selectors are prefixed .isc-copyright- / #isc-copyright- so nothing
   collides with the host page's theme. A few declarations carry !important
   where the legacy Bootstrap themes are most likely to bleed in (headings,
   links, buttons).
   ========================================================================== */

#isc-copyright-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .55);
  z-index: 2147483000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

#isc-copyright-overlay.isc-copyright-open {
  display: flex;
}

.isc-copyright-modal {
  position: relative;
  background: rgb(255, 255, 255);
  max-width: 660px;
  width: 100%;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.isc-copyright-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none !important;
  background: none !important;
  font-size: 28px;
  line-height: 1;
  color: rgb(150, 150, 150);
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
  box-shadow: none;
}

.isc-copyright-close:hover,
.isc-copyright-close:focus {
  color: rgb(90, 90, 90);
}

.isc-copyright-body {
  padding: 34px 40px 30px;
  overflow-y: auto;
}

h2.isc-copyright-title {
  margin: 0 0 22px !important;
  font-size: 27px !important;
  line-height: 1.2;
  font-weight: 700;
  color: rgb(199, 49, 40) !important;
  font-family: inherit;
  text-transform: none !important;
  text-align: left;
}

.isc-copyright-intro {
  margin: 0 0 22px;
  font-size: 19px;
  line-height: 1.75;
  color: rgb(88, 89, 91);
  font-family: inherit;
}

.isc-copyright-linkrow {
  margin: 0 0 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.isc-copyright-icon {
  flex: 0 0 auto;
  display: inline-flex;
  color: rgb(58, 109, 168);
}

a.isc-copyright-pdf {
  font-size: 18px;
  color: rgb(58, 109, 168) !important;
  text-decoration: none !important;
  font-family: inherit;
  letter-spacing: .2px;
}

a.isc-copyright-pdf:hover,
a.isc-copyright-pdf:focus {
  text-decoration: underline !important;
}

.isc-copyright-agree {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 4px;
  font-size: 17px;
  line-height: 1.2;
  font-family: inherit;
  border: 1px solid rgb(206, 212, 218);
  background: rgb(255, 255, 255);
  color: rgb(45, 45, 45);
  cursor: pointer;
  text-transform: none;
}

.isc-copyright-agree:hover {
  background: rgb(244, 245, 246);
}

.isc-copyright-agree[disabled],
.isc-copyright-agree[aria-disabled="true"] {
  border: 1px solid rgb(225, 228, 231);
  background: rgb(248, 249, 250);
  color: rgb(168, 171, 175);
  cursor: not-allowed;
}

.isc-copyright-hint {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgb(130, 130, 130);
  font-family: inherit;
  font-style: italic;
}

.isc-copyright-hint[hidden] {
  display: none;
}

/* Keyboard focus stays visible even if the host theme suppresses outlines. */
.isc-copyright-modal :focus-visible {
  outline: 2px solid rgb(58, 109, 168);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .isc-copyright-body {
    padding: 28px 22px 24px;
  }
  h2.isc-copyright-title {
    font-size: 23px !important;
  }
  .isc-copyright-intro {
    font-size: 17px;
  }
}
