/* Tax / formula sheet viewers shown inside Quiz Maker containers */

.cft-quiz-sheets-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
  border-radius: 14px;
  background: rgba(6, 72, 82, 0.68);
  border: 1px solid rgba(63, 238, 230, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.cft-quiz-sheets-title {
  color: rgba(232, 255, 252, 0.92);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 6px;
}

.cft-quiz-sheets-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(63, 238, 230, 0.5);
  background: linear-gradient(90deg, #3feee6, #7af0ea 55%, #ff85a5) !important;
  color: #064852 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cft-quiz-sheets-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.cft-quiz-sheets-btn[disabled] {
  cursor: default;
  opacity: 0.55;
  filter: grayscale(0.2);
  box-shadow: none;
  transform: none;
}

.cft-quiz-sheets-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.cft-quiz-sheets-overlay.open {
  display: flex;
}

.cft-quiz-sheets-modal {
  width: min(980px, 100%);
  height: min(82vh, 820px);
  border-radius: 18px;
  background: rgba(6, 72, 82, 0.95);
  border: 1px solid rgba(63, 238, 230, 0.35);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cft-quiz-sheets-modal-head {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(63, 238, 230, 0.2);
}

.cft-quiz-sheets-modal-title {
  color: rgba(232, 255, 252, 0.95);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cft-quiz-sheets-close {
  border: 1px solid rgba(63, 238, 230, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(232, 255, 252, 0.95);
  border-radius: 10px;
  min-height: 38px;
  min-width: 38px;
  cursor: pointer;
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-weight: 800;
}

.cft-quiz-sheets-modal-body {
  flex: 1 1 auto;
  background: transparent;
}

.cft-quiz-sheets-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

