/* Silktide Cookie Banner Styles */
.silktide-cookiebanner {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: fixed;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(1px);
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.silktide-cookiebanner__inner {
  background: white;
  border-radius: 12px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  position: relative;
}

.silktide-cookiebanner__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #1a1a1a;
}

.silktide-cookiebanner__description {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 24px 0;
  color: #4a4a4a;
}

.silktide-cookiebanner__buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.silktide-cookiebanner__button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.silktide-cookiebanner__button--accept {
  background: #533BE2;
  color: white;
}

.silktide-cookiebanner__button--accept:hover {
  background: #4a34cc;
}

/* Modified reject button colors - white background with blue text */
.silktide-cookiebanner__button--reject {
  background: white;
  color: #533BE2;
  border: 2px solid #533BE2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.silktide-cookiebanner__button--reject:hover {
  background: #f8f7ff;
}

.silktide-cookiebanner__button--preferences {
  background: #f5f5f5;
  color: #333;
}

.silktide-cookiebanner__button--preferences:hover {
  background: #e5e5e5;
}

.silktide-cookiebanner__preferences {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.silktide-cookiebanner__preferences-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #1a1a1a;
}

.silktide-cookiebanner__cookie-type {
  margin-bottom: 16px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
}

.silktide-cookiebanner__cookie-type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.silktide-cookiebanner__cookie-type-name {
  font-weight: 600;
  color: #1a1a1a;
}

.silktide-cookiebanner__toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.silktide-cookiebanner__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.silktide-cookiebanner__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.2s;
  border-radius: 24px;
}

.silktide-cookiebanner__slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

input:checked + .silktide-cookiebanner__slider {
  background-color: #533BE2;
}

input:checked + .silktide-cookiebanner__slider:before {
  transform: translateX(24px);
}

input:disabled + .silktide-cookiebanner__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.silktide-cookiebanner__cookie-type-description {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.silktide-cookiebanner__cookie-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #533BE2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(83, 59, 226, 0.3);
  z-index: 99998;
  transition: all 0.2s ease;
}

.silktide-cookiebanner__cookie-icon:hover {
  transform: scale(1.1);
}

.silktide-cookiebanner__cookie-icon svg {
  fill: white;
  width: 24px;
  height: 24px;
}

@media (max-width: 640px) {
  .silktide-cookiebanner__inner {
    margin: 20px;
    padding: 24px;
  }
  
  .silktide-cookiebanner__buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .silktide-cookiebanner__button {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 480px) {
  .silktide-cookiebanner__button {
    padding: 12px 16px;
    font-size: 14px;
    white-space: normal;
  }
}

/* Hidden state */
.silktide-cookiebanner.hidden {
  display: none;
}