#cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1rem 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#cookie-banner.cc-visible {
  opacity: 1;
  pointer-events: all;
}

#cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 58, 68, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: -1;
}

.cc-inner {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px -8px rgba(15, 58, 68, 0.3), 0 4px 16px -4px rgba(15, 58, 68, 0.15);
  border: 1px solid rgba(226, 238, 240, 0.8);
  padding: 1.75rem;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90dvh;
  overflow-y: auto;
}

#cookie-banner.cc-visible .cc-inner {
  transform: translateY(0);
}

.cc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cc-logo {
  width: 36px;
  height: 36px;
  background: #EEF9F4;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1D5E6C;
  flex-shrink: 0;
}

.cc-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1D5E6C;
  flex: 1;
  letter-spacing: -0.015em;
  margin: 0;
}

.cc-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F8FFFE;
  border: 1px solid #E2EEF0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.cc-close:hover {
  background: #EEF9F4;
  color: #1D5E6C;
}

.cc-desc {
  font-size: 0.875rem;
  color: #718096;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.cc-link {
  color: #1D5E6C;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 0;
}

.cc-cat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 0;
  border-bottom: 1px solid #F0F4F8;
  cursor: pointer;
}

.cc-cat-row:last-child {
  border-bottom: none;
}

.cc-cat-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-cat-custom {
  width: 20px;
  height: 20px;
  border-radius: 0.375rem;
  border: 1.5px solid #E2EEF0;
  background: #ffffff;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cc-cat-row input:checked + .cc-cat-custom {
  background: #3DC878;
  border-color: #3DC878;
}

.cc-cat-row input:checked + .cc-cat-custom::after {
  content: '';
  display: block;
  width: 11px;
  height: 7px;
  border-left: 2.5px solid #ffffff;
  border-bottom: 2.5px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.cc-cat-row input:disabled + .cc-cat-custom {
  background: #3DC878;
  border-color: #3DC878;
  opacity: 0.7;
}

.cc-cat-row input:disabled + .cc-cat-custom::after {
  content: '';
  display: block;
  width: 11px;
  height: 7px;
  border-left: 2.5px solid #ffffff;
  border-bottom: 2.5px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.cc-cat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cc-cat-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1D5E6C;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cc-required-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #3DC878;
  background: #EEF9F4;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.cc-cat-desc {
  font-size: 0.8125rem;
  color: #718096;
  line-height: 1.5;
}

.cc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

@media (min-width: 480px) {
  .cc-actions {
    flex-direction: row;
  }
}

.cc-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.cc-btn-decline {
  background: #F8FFFE;
  color: #718096;
  border: 1.5px solid #E2EEF0;
}

.cc-btn-decline:hover {
  background: #EEF9F4;
  color: #1D5E6C;
}

.cc-btn-custom {
  background: #EEF9F4;
  color: #1D5E6C;
  border: 1.5px solid rgba(61, 200, 120, 0.25);
}

.cc-btn-custom:hover {
  background: #D4F0E4;
}

.cc-btn-accept {
  background: #3DC878;
  color: #0F3A44;
}

.cc-btn-accept:hover {
  background: #52d68a;
  box-shadow: 0 4px 16px -4px rgba(61, 200, 120, 0.4);
}

.cc-save-row {
  display: none;
  margin-top: 0.75rem;
}

.cc-btn-save {
  width: 100%;
  background: #1D5E6C;
  color: #ffffff;
}

.cc-btn-save:hover {
  background: #2A7A8A;
}

.cc-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #F0F4F8;
}

.cc-footer-links .cc-link {
  font-size: 0.8125rem;
  color: #A0AEC0;
  font-weight: 500;
  text-decoration: none;
}

.cc-footer-links .cc-link:hover {
  color: #1D5E6C;
}

.cookie-media-placeholder {
  background: #F8FFFE;
  border: 1.5px dashed #E2EEF0;
  border-radius: 1rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-placeholder-inner {
  text-align: center;
  padding: 2rem;
  max-width: 280px;
}

.cookie-placeholder-inner svg {
  margin: 0 auto 1rem;
  color: #D4F0E4;
}

.cookie-placeholder-inner p {
  font-size: 0.875rem;
  color: #718096;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.cookie-placeholder-inner button {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1D5E6C;
  background: #EEF9F4;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.cookie-placeholder-inner button:hover {
  background: #D4F0E4;
}

@media (prefers-reduced-motion: reduce) {
  #cookie-banner,
  .cc-inner,
  .cc-details {
    transition: none;
  }
}
