/* Lagalegar síður, dagatalsval, stillingar og fullur skjár á myndavél */
.affiliation-note {
  margin: 4px 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(13, 79, 85, 0.06);
  color: #365358;
  font-size: 0.83rem;
  line-height: 1.5;
}
.affiliation-note a,
.inline-link {
  color: #0d4f55;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.legal-card {
  background: #fffdf7;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(9, 34, 38, 0.07);
}
.legal-card h2 {
  margin: 18px 0 6px;
  font-size: 0.98rem;
}
.legal-card h2:first-child {
  margin-top: 0;
}
.legal-card p,
.legal-card li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #37545a;
}
.legal-card ul {
  margin: 0 0 8px;
  padding-left: 18px;
}
.legal-updated {
  margin-top: 14px;
  font-size: 0.78rem !important;
  color: #6a8286 !important;
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 18px 12px 26px;
}
.app-footer button {
  border: 0;
  background: none;
  color: #4c6a6f;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin: 14px 0 8px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(13, 79, 85, 0.06);
}
.settings-row small {
  display: block;
  font-size: 0.78rem;
  color: #4c6a6f;
}
.settings-row button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 0;
  background: #0d4f55;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.settings-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  font-size: 0.88rem;
  color: #37545a;
}
.settings-check input {
  width: 20px;
  height: 20px;
}

.calendar-when {
  font-weight: 700;
  color: #12343a;
}
.calendar-note {
  font-size: 0.82rem;
  color: #4c6a6f;
}
.calendar-choice {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid #cfdcda;
  background: #fff;
  color: #12343a;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.calendar-choice.quiet {
  background: transparent;
  font-weight: 500;
  color: #4c6a6f;
}
.modal-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  text-align: left;
}
.modal-links button {
  border: 0;
  background: none;
  color: #0d4f55;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-align: left;
  cursor: pointer;
}

#cameraFullscreen {
  margin-left: auto;
}
/* Stýringar myndavélar mega brjóta á smáum skjám í stað þess að flæða út */
.camera-controls {
  flex-wrap: wrap;
}
.camera-controls > span {
  min-width: 0;
  flex: 1 1 auto;
}
.camera-controls button {
  flex: 0 1 auto;
  white-space: nowrap;
}
@media (max-width: 380px) {
  #cameraFullscreen {
    margin-left: 0;
  }
  .camera-controls button {
    flex: 1 1 46%;
  }
}
.camera-overlay-note {
  margin: 0;
  padding: 0 14px 12px;
  color: #cfe4e4;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}
.camera-viewer.camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  margin: 0;
  border-radius: 0;
  background: #041a1d;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.camera-viewer.camera-overlay .camera-frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #041a1d;
}
.camera-viewer.camera-overlay .camera-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.camera-viewer.camera-overlay .camera-controls {
  background: rgba(4, 26, 29, 0.9);
  color: #eaf5f4;
  padding: 10px 14px;
}
body.camera-overlay-open {
  overflow: hidden;
}
.camera-viewer:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #041a1d;
}
.camera-viewer:fullscreen .camera-frame {
  flex: 1;
}
.camera-viewer:fullscreen .camera-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
