/* =========================================================
   PRACTICE MODALS / POPOVERS
   Progress modal, delete modal, help modal, accommodation popovers
   ========================================================= */

body.bb-modal-open {
  overflow: hidden;
}

/* =========================================================
   PRACTICE PROGRESS MODAL
   ========================================================= */

.bb-practice-progress-modal[hidden] {
  display: none !important;
}

.bb-practice-progress-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
}

.bb-practice-progress-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.bb-practice-progress-dialog {
  position: relative;
  width: min(1060px, calc(100vw - 48px));
  margin: 14vh auto 0;
  background: #fff;
  border-radius: 22px;
  padding: 34px 36px 28px;
  z-index: 1;
}

.bb-practice-progress-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.bb-practice-progress-dialog h2 {
  margin: 0 60px 24px 0;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
}

.bb-practice-progress-dialog p {
  margin: 0 0 40px 0;
  font-size: 21px;
  line-height: 1.45;
}

.bb-practice-progress-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}

.bb-practice-progress-cancel {
  border: 0;
  background: transparent;
  color: #2d4cc8;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.bb-practice-progress-startover {
  border: 1px solid #111;
  border-radius: 999px;
  background: #ffd400;
  padding: 14px 34px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================
   DELETE PRACTICE CONFIRMATION MODAL
   ========================================================= */

.bb-delete-practice-modal[hidden] {
  display: none !important;
}

.bb-delete-practice-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
}

.bb-delete-practice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
}

.bb-delete-practice-dialog {
  position: absolute;
  border-radius: 22px;
  background: #242426;
  color: #fff;
  box-sizing: border-box;
  padding: 20px 20px 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bb-delete-practice-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.bb-delete-practice-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.bb-delete-practice-yes,
.bb-delete-practice-no {
  min-width: 64px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.bb-delete-practice-yes {
  border: 2px solid #1f6fff;
  box-shadow: inset 0 0 0 2px #1f6fff;
}

.bb-delete-practice-no {
  border: 1.6px solid #fff;
}

.bb-delete-practice-yes:hover,
.bb-delete-practice-no:hover {
  opacity: 0.92;
}

/* =========================================================
   DON'T SEE YOUR TEST HERE MODAL
   ========================================================= */

.bb-dont-see-test-modal[hidden] {
  display: none !important;
}

.bb-dont-see-test-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
}

.bb-dont-see-test-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.bb-dont-see-test-dialog {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, calc(100vw - 40px));
  height: calc(100vh - 56px);
  background: #f6f6f6;
  border-radius: 14px;
  box-sizing: border-box;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
}

.bb-dont-see-test-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 400;
  color: #111;
}

.bb-dont-see-test-x {
  position: absolute;
  top: 22px;
  right: 24px;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.bb-dont-see-test-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d5d5d5;
}

.bb-dont-see-test-expand,
.bb-dont-see-test-collapse {
  border: 0;
  background: transparent;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.bb-dont-see-test-divider {
  width: 1px;
  height: 26px;
  background: #d0d0d0;
}

.bb-dont-see-test-content {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-top: 8px;
  padding-right: 10px;
}

.bb-dont-see-test-item {
  border-bottom: 1px solid #d5d5d5;
}

.bb-dont-see-test-item-head {
  width: 100%;
  min-height: 92px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 0 12px 0 28px;
  cursor: pointer;
}

.bb-dont-see-test-item-title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 400;
  color: #111;
}

.bb-dont-see-test-item-icon {
  width: 28px;
  text-align: center;
  font-size: 30px;
  line-height: 1;
  color: #222;
  flex: 0 0 auto;
}

.bb-dont-see-test-item-body {
  padding: 0 18px 24px 18px;
}

.bb-dont-see-test-item-box {
  background: #ececec;
  padding: 28px 30px;
}

.bb-dont-see-test-item-box p {
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.55;
  color: #111;
}

.bb-dont-see-test-item-box p:last-child {
  margin-bottom: 0;
}

.bb-dont-see-test-footer {
  display: flex;
  justify-content: center;
  padding-top: 18px;
}

.bb-dont-see-test-close {
  min-width: 104px;
  height: 52px;
  border-radius: 999px;
  border: 1.5px solid #111;
  background: #f4d400;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================
   ACCOMMODATION INFO POPOVER
   ========================================================= */

.bb-accommodation-info-btn {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.bb-accommodation-info-btn:focus {
  outline: none;
}

.bb-accommodation-info-btn:focus-visible .bb-accommodation-info {
  outline: 2px solid #3553d8;
  outline-offset: 2px;
}

.bb-accommodation-popover[hidden] {
  display: none !important;
}

.bb-accommodation-popover {
  position: fixed;
  z-index: 7000;
  width: 262px;
  background: #595959;
  color: #fff;
  border-radius: 10px;
  padding: 16px 16px 14px;
  box-sizing: border-box;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.bb-accommodation-popover-title {
  margin: 0 0 12px 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}

.bb-accommodation-popover-body {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
  color: #fff;
}

.bb-accommodation-popover-body p {
  margin: 0 0 12px 0;
}

.bb-accommodation-popover-body p:last-child {
  margin-bottom: 0;
}

.bb-accommodation-popover-body a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.bb-accommodation-popover-body a:hover {
  text-decoration: underline;
}
