/* Existing programming-course access dialog styles, reused without the coding layout. */
.access-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 16, 32, 0.58);
  box-sizing: border-box;
}

.access-modal-panel {
  position: relative;
  width: min(440px, 100%);
  box-sizing: border-box;
  border-radius: 12px;
  background: #ffffff;
  color: #17253e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  padding: 28px;
  text-align: left;
}

.access-modal-panel-auth {
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.access-modal-panel-auth .access-layout {
  margin-top: 18px;
}

.access-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  border: 0 !important;
  border-radius: 8px;
  background: #eef3f8 !important;
  color: #17253e !important;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.access-modal-close:hover,
.access-modal-close:focus {
  background: #dfeaf4 !important;
  outline: 2px solid #87bfff;
  outline-offset: 2px;
  transform: none;
}

.access-modal-kicker {
  margin: 0 0 8px;
  color: #0077cc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.access-modal-panel h2 {
  margin: 0 40px 10px 0;
  color: #0e1e40;
  font-size: 1.7rem;
  line-height: 1.16;
  text-align: left;
}

.access-modal-copy {
  margin: 0 0 20px;
  color: #44546a;
  font-size: 0.98rem;
  line-height: 1.55;
}

body.dark-mode .access-modal-panel .card.section button,
body.light-mode .access-modal-panel .card.section button {
  background: #172033 !important;
  color: #ffffff !important;
}

body.dark-mode .access-modal-panel .card-payment button,
body.light-mode .access-modal-panel .card-payment button {
  border: 1px solid #ba8743 !important;
  background: #fffaf1 !important;
  color: #7a531d !important;
}

body.dark-mode .access-modal-panel .google-btn,
body.light-mode .access-modal-panel .google-btn {
  background: #ffffff !important;
  color: #172033 !important;
}

@media (max-width: 520px) {
  .access-modal-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .access-modal-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 14px 14px 10px 10px;
    padding: 24px 20px;
  }

  .access-modal-panel h2 {
    font-size: 1.45rem;
  }
}
