.telecom-license-backdrop[hidden] {
  display: none;
}

.telecom-license-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(5px);
}

.telecom-license-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border-radius: 18px;
  background: #f8fafc;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  outline: none;
}

.telecom-license-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.telecom-license-header h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  line-height: 1.4;
}

.telecom-license-header p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.telecom-license-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.telecom-license-close:hover,
.telecom-license-close:focus-visible {
  border-color: #059669;
  color: #047857;
  outline: 3px solid rgba(16, 185, 129, 0.18);
}

.telecom-license-image-scroll {
  max-height: calc(100vh - 132px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #e5e7eb;
}

.telecom-license-image-scroll img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.footer-bottom > .telecom-license-trigger,
.footer-copyright > .telecom-license-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.footer-bottom > .telecom-license-trigger:hover,
.footer-copyright > .telecom-license-trigger:hover,
.footer-bottom > .telecom-license-trigger:focus-visible,
.footer-copyright > .telecom-license-trigger:focus-visible {
  color: #a7f3d0;
}

.footer-bottom > .telecom-license-trigger:focus-visible,
.footer-copyright > .telecom-license-trigger:focus-visible {
  border-radius: 3px;
  outline: 2px solid #34d399;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .telecom-license-backdrop {
    align-items: end;
    padding: 12px;
  }

  .telecom-license-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 16px;
  }

  .telecom-license-header {
    padding: 14px 14px 12px;
  }

  .telecom-license-header h2 {
    font-size: 17px;
  }

  .telecom-license-image-scroll {
    max-height: calc(100vh - 112px);
  }

  .footer-copyright > .telecom-license-trigger {
    display: block;
    margin: 6px auto 0;
    font-size: 12px;
    text-align: center;
  }
}
