/* VMHS Cookie Consent Banner & Preferences Modal */
.vmhs-cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  padding: 1.25rem 1.75rem;
  border-radius: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: vmhsSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

@keyframes vmhsSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vmhs-cookie-banner__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vmhs-cookie-banner__icon {
  font-size: 1.4rem;
  color: #B7670F;
  flex-shrink: 0;
}

.vmhs-cookie-banner__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.vmhs-cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

.vmhs-cookie-banner__text a {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vmhs-cookie-banner__text a:hover {
  color: #fef08a;
}

.vmhs-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.vmhs-cookie-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.vmhs-cookie-btn--primary {
  background: #B7670F;
  color: #ffffff;
  border-color: #B7670F;
}

.vmhs-cookie-btn--primary:hover {
  background: #9d5609;
  border-color: #9d5609;
  color: #ffffff;
}

.vmhs-cookie-btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.15);
}

.vmhs-cookie-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.vmhs-cookie-btn--text {
  background: transparent;
  color: #94a3b8;
  border-color: transparent;
  padding: 0.45rem 0.6rem;
}

.vmhs-cookie-btn--text:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Modal for Customizing Preferences */
.vmhs-cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: vmhsFadeIn 0.2s ease;
}

@keyframes vmhsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vmhs-cookie-modal {
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  animation: vmhsPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vmhsPop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.vmhs-cookie-modal__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vmhs-cookie-modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vmhs-cookie-modal__close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #64748b;
  padding: 0.25rem;
}

.vmhs-cookie-modal__body {
  padding: 1.25rem 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.vmhs-cookie-modal__group {
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.vmhs-cookie-modal__group:last-child {
  border-bottom: none;
}

.vmhs-cookie-modal__label {
  font-weight: 600;
  font-size: 0.925rem;
  margin-bottom: 0.15rem;
  color: #0f172a;
}

.vmhs-cookie-modal__desc {
  font-size: 0.825rem;
  color: #64748b;
  margin: 0;
}

.vmhs-cookie-modal__footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

@media (max-width: 640px) {
  .vmhs-cookie-banner {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 1rem;
  }
  .vmhs-cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .vmhs-cookie-btn {
    width: 100%;
  }
}

/* Floating Cookie Setting Icon on the Left Side of Public Pages */
.vmhs-cookie-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
  font-family: 'DM Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
  text-decoration: none;
}

.vmhs-cookie-trigger:hover,
.vmhs-cookie-trigger:focus-visible {
  background: rgba(183, 103, 15, 0.95);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px -4px rgba(183, 103, 15, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.vmhs-cookie-trigger:active {
  transform: translateY(0) scale(0.98);
}

.vmhs-cookie-trigger__icon {
  font-size: 1.15rem;
  line-height: 1;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vmhs-cookie-trigger:hover .vmhs-cookie-trigger__icon,
.vmhs-cookie-trigger:focus-visible .vmhs-cookie-trigger__icon {
  color: #ffffff;
  transform: rotate(20deg) scale(1.1);
}

.vmhs-cookie-trigger__text {
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .vmhs-cookie-trigger {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    padding: 7px 12px;
    font-size: 12px;
  }
}

