/* Cookie consent — Hanumant Hospital */
.cc-banner,
.cc-banner *,
.cc-modal,
.cc-modal * {
  box-sizing: border-box;
}

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99990;
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  color: #1c2b33;
  border: 1px solid #d7e2e8;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(12, 28, 36, 0.22);
  padding: 18px 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.cc-banner__text {
  flex: 1 1 260px;
  min-width: 220px;
  color: #5b6b73;
}
.cc-banner__text strong {
  display: block;
  color: #1c2b33;
  font-size: 15px;
  margin-bottom: 2px;
}

.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cc-btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.cc-btn--primary {
  background: #00a6ca;
  border-color: #00a6ca;
  color: #ffffff;
}
.cc-btn--primary:hover {
  background: #0086a3;
  border-color: #0086a3;
}
.cc-btn--ghost {
  background: #ffffff;
  border-color: #c9d6dc;
  color: #1c2b33;
}
.cc-btn--ghost:hover {
  background: #f2f7f9;
}
.cc-link {
  color: #0086a3;
  font-size: 13px;
  text-decoration: underline;
  padding: 9px 2px;
}

/* ---- Preferences modal ---- */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}
.cc-modal.cc-open {
  display: block;
}
.cc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 28, 36, 0.55);
}
.cc-modal__dialog {
  position: relative;
  max-width: 640px;
  max-height: 84vh;
  overflow: auto;
  margin: 6vh auto 0;
  background: #ffffff;
  color: #1c2b33;
  border-radius: 12px;
  padding: 24px 26px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.cc-modal__dialog h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #1c2b33;
}
.cc-modal__dialog .cc-modal__intro {
  color: #5b6b73;
  margin: 0 0 16px;
}

.cc-cat {
  border: 1px solid #d7e2e8;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.cc-cat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cc-cat__name {
  font-weight: bold;
  color: #1c2b33;
}
.cc-cat__state {
  font-size: 12px;
  color: #5b6b73;
  white-space: nowrap;
}
.cc-cat p {
  margin: 8px 0 0;
  color: #5b6b73;
  font-size: 13px;
}

/* toggle switch */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}
.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #c9d6dc;
  border-radius: 24px;
  transition: background 0.15s ease;
}
.cc-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.cc-switch input:checked + .cc-slider {
  background: #00a6ca;
}
.cc-switch input:checked + .cc-slider::before {
  transform: translateX(20px);
}
.cc-switch input:disabled + .cc-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* cookie table */
.cc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}
.cc-table th,
.cc-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #e5edf1;
  vertical-align: top;
}
.cc-table th {
  color: #5b6b73;
  font-weight: bold;
  white-space: nowrap;
}

.cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.cc-controls {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99980;
  display: flex;
  gap: 8px;
  align-items: center;
}

.cc-settings {
  background: #ffffff;
  color: #1c2b33;
  border: 1px solid #d7e2e8;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 2px 10px rgba(12, 28, 36, 0.15);
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}
.cc-settings:hover {
  background: #f2f7f9;
}

.cc-notice {
  display: block;
  background: #eef7fa;
  border: 1px solid #cfe6ee;
  border-left: 4px solid #00a6ca;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
  color: #1c2b33;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}
.cc-notice a {
  color: #0086a3;
}

@media (max-width: 480px) {
  .cc-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 14px;
  }
  .cc-banner__actions {
    width: 100%;
  }
  .cc-banner__actions .cc-btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .cc-modal__dialog {
    margin: 2vh 8px 0;
    padding: 18px;
  }
}
