.mhs-cookie-root {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

.mhs-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
}

.mhs-cookie-banner[hidden] {
  display: none !important;
}

.mhs-cookie-banner-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.mhs-cookie-copy {
  min-width: 0;
}

.mhs-cookie-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #12213f;
}

.mhs-cookie-text {
  margin: 0;
  color: #314261;
  font-size: 14px;
  line-height: 1.45;
}

.mhs-cookie-actions,
.mhs-cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mhs-cookie-btn {
  border: 1px solid #aab8d3;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.mhs-cookie-btn-light {
  background: #f8fbff;
  color: #173462;
}

.mhs-cookie-btn-primary {
  background: #1456c0;
  border-color: #1456c0;
  color: #ffffff;
}

.mhs-cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(11, 17, 34, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.mhs-cookie-modal-backdrop[hidden] {
  display: none !important;
}

.mhs-cookie-modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 28px);
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #d8dee8;
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.24);
  padding: 18px;
}

.mhs-cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mhs-cookie-modal-header h3 {
  margin: 0;
  font-size: 22px;
  color: #112245;
}

.mhs-cookie-close {
  border: 0;
  background: #eef4ff;
  color: #20447b;
  font-size: 16px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.mhs-cookie-modal-text {
  margin: 12px 0 16px;
  color: #2f3f5f;
}

.mhs-cookie-category-list {
  border: 1px solid #dde5f2;
  border-radius: 12px;
}

.mhs-cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
}

.mhs-cookie-category + .mhs-cookie-category {
  border-top: 1px solid #e8edf7;
}

.mhs-cookie-category-text {
  display: grid;
  gap: 2px;
}

.mhs-cookie-category-text strong {
  color: #12213f;
  font-size: 15px;
}

.mhs-cookie-category-text small {
  color: #4b5c79;
  font-size: 13px;
}

.mhs-cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1456c0;
}

.mhs-cookie-modal-actions {
  margin-top: 16px;
}

.mhs-cookie-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #1f4d98;
  font-size: 13px;
}

.mhs-cookie-status.is-error {
  color: #b02135;
}

@media (max-width: 768px) {
  .mhs-cookie-banner-body {
    flex-direction: column;
    align-items: stretch;
  }

  .mhs-cookie-actions {
    width: 100%;
  }

  .mhs-cookie-btn {
    flex: 1 1 100%;
  }
}
