.hc-cookie-banner {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 9999;
  margin: 0 auto;
  max-width: 960px;
  max-height: 85dvh;
  overflow-y: auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
  padding: 16px;
  color: #0f172a;
  font-family: inherit;
}

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

@media (min-width: 640px) {
  .hc-cookie-banner {
    bottom: 20px;
    left: 24px;
    right: 24px;
    padding: 20px 24px;
  }
}

.hc-cookie-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 0;
}

.hc-cookie-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.hc-cookie-header {
  padding-right: 28px;
}

.hc-cookie-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
}

.hc-cookie-intro {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.hc-cookie-policy-link {
  color: var(--primary-color, #d70018);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .hc-cookie-title {
    font-size: 15px;
  }
  .hc-cookie-intro {
    font-size: 13px;
  }
}

.hc-cookie-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hc-cookie-details[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .hc-cookie-details {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

.hc-cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.hc-cookie-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 2px;
}

.hc-cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hc-cookie-track {
  display: block;
  width: 38px;
  height: 22px;
  border-radius: 9999px;
  background: #cbd5e1;
  transition: background-color 0.2s ease;
}

.hc-cookie-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.hc-cookie-switch input:checked + .hc-cookie-track {
  background: var(--primary-color, #d70018);
}

.hc-cookie-switch input:checked ~ .hc-cookie-thumb {
  transform: translateX(16px);
}

.hc-cookie-opt-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
}

.hc-cookie-opt-desc {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #64748b;
}

.hc-cookie-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.hc-cookie-btn-link {
  margin-right: auto;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: var(--primary-color, #d70018);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.hc-cookie-btn-link[hidden] {
  display: none !important;
}

.hc-cookie-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

@media (min-width: 640px) {
  .hc-cookie-btn {
    height: 38px;
    padding: 0 18px;
    font-size: 13px;
  }
}

.hc-cookie-btn[hidden] {
  display: none !important;
}

.hc-cookie-btn--muted {
  border: 0;
  background: #f1f5f9;
  color: #0f172a;
}

.hc-cookie-btn--muted:hover {
  background: #e2e8f0;
}

.hc-cookie-btn--outline {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

.hc-cookie-btn--outline:hover {
  background: #f8fafc;
}

.hc-cookie-btn--primary {
  border: 0;
  background: var(--primary-color, #d70018);
  color: #ffffff;
}

.hc-cookie-btn--primary:hover {
  opacity: 0.9;
}

.hc-footer-cookie-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hc-policy-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 12px 0 20px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.hc-policy-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.hc-policy-table th,
.hc-policy-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.hc-policy-table th:last-child,
.hc-policy-table td:last-child {
  border-right: 0;
}

.hc-policy-table tbody tr:last-child td {
  border-bottom: 0;
}

.hc-policy-table thead th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.hc-policy-table code {
  background: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}