:root {
  --ujk-banner-bg: rgba(30, 41, 59, 0.98);
  --ujk-banner-text: #ffffff;
  --ujk-btn-border: #ffffff;
  --ujk-btn-text: #ffffff;
  --ujk-btn-bg: #000000;
}

.ujk-cookies,
.ujk-cookies *,
.ujk-cookies-modal,
.ujk-cookies-modal * {
  box-sizing: border-box;
}

.ujk-cookies {
  position: fixed;
  z-index: 99999;
  background-color: var(--ujk-banner-bg);
  color: var(--ujk-banner-text);
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.4;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ujk-cookies.ujk-width-90 {
  width: 90%;
  max-width: 1550px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
}

.ujk-cookies.ujk-width-90.ujk-pos-bottom {
  bottom: 12px;
}

.ujk-cookies.ujk-width-90.ujk-pos-top {
  top: 12px;
}

.ujk-cookies.ujk-width-90.ujk-hidden.ujk-pos-bottom {
  transform: translate(-50%, calc(100% + 30px));
}

.ujk-cookies.ujk-width-90.ujk-hidden.ujk-pos-top {
  transform: translate(-50%, calc(-100% - 30px));
}

.ujk-cookies.ujk-width-90 .ujk-cookies-container {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 1rem;
}

.ujk-cookies.ujk-width-100 {
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 0;
}

.ujk-cookies.ujk-width-100.ujk-pos-bottom {
  bottom: 0;
}

.ujk-cookies.ujk-width-100.ujk-pos-top {
  top: 0;
}

.ujk-cookies.ujk-width-100.ujk-hidden.ujk-pos-bottom {
  transform: translateY(100%);
}

.ujk-cookies.ujk-width-100.ujk-hidden.ujk-pos-top {
  transform: translateY(-100%);
}

.ujk-cookies.ujk-width-100 .ujk-cookies-container {
  width: 100%;
  max-width: 96%;
  padding: 0.5rem 1.25rem;
}

.ujk-cookies.ujk-width-container {
  left: 0;
  right: 0;
  width: 100%;
}

.ujk-cookies.ujk-width-container.ujk-pos-bottom {
  bottom: 0;
}

.ujk-cookies.ujk-width-container.ujk-pos-top {
  top: 0;
}

.ujk-cookies.ujk-width-container.ujk-hidden.ujk-pos-bottom {
  transform: translateY(100%);
}

.ujk-cookies.ujk-width-container.ujk-hidden.ujk-pos-top {
  transform: translateY(-100%);
}

.ujk-cookies.ujk-width-container .ujk-cookies-container {
  max-width: 1200px;
  padding: 0.6rem 1.25rem;
}

.ujk-cookies.ujk-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ujk-cookies-container {
  margin: 0 auto;
}

.ujk-cookies-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
}

.ujk-cookies-text {
  flex: 1 1 auto;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
}

.ujk-cookies-text p {
  margin: 0;
  line-height: 1.4;
  font-size: inherit;
}

.ujk-cookies-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.ujk-cookies-text a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.ujk-cookies-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.ujk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ujk-banner-btn {
  min-height: 38px;
  min-width: 44px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 0;
  white-space: nowrap;
}

.ujk-banner-btn svg {
  flex-shrink: 0;
}

.ujk-banner-btn:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.ujk-cookies.ujk-style-outline .ujk-banner-btn {
  background-color: transparent;
  color: var(--ujk-btn-text);
  border: 1px solid var(--ujk-btn-border);
}

.ujk-cookies.ujk-style-outline .ujk-banner-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--ujk-btn-border);
}

.ujk-cookies.ujk-style-solid .ujk-banner-btn {
  background-color: var(--ujk-btn-bg);
  color: var(--ujk-btn-text);
  border: 1px solid var(--ujk-btn-border);
}

.ujk-cookies.ujk-style-solid .ujk-banner-btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.ujk-cookies-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.ujk-cookies-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.ujk-cookies-box {
  position: relative;
  z-index: 1;
  background: #ffffff;
  color: #1e293b;
  padding: 1.5rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.ujk-cookies-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.ujk-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.ujk-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.ujk-modal-close:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.ujk-modal-close:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 2px;
}

.ujk-modal-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1.25rem 0;
  line-height: 1.5;
}

.ujk-cookies-categories {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.ujk-cookie-category {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  transition: border-color 0.2s;
}

.ujk-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
}

.ujk-cat-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ujk-cat-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  cursor: pointer;
}

.ujk-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  line-height: 1;
}

.ujk-badge-required {
  background: #e2e8f0;
  color: #475569;
}

.ujk-cat-text {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.ujk-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0;
}

.ujk-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.ujk-slider {
  position: absolute;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 26px;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ujk-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.ujk-switch input:checked + .ujk-slider {
  background-color: #0056b3;
}

.ujk-switch input:checked + .ujk-slider::before {
  transform: translateX(22px);
}

.ujk-switch input:focus-visible + .ujk-slider {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}

.ujk-slider-disabled,
.ujk-switch input:disabled + .ujk-slider {
  background-color: #94a3b8;
  opacity: 0.7;
  cursor: not-allowed;
}

.ujk-cookies-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.ujk-modal-btn {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0;
}

.ujk-modal-btn-primary {
  background-color: #0056b3;
  color: #ffffff;
  border: 1px solid #0056b3;
}

.ujk-modal-btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ujk-modal-btn-secondary {
  background-color: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.ujk-modal-btn-secondary:hover {
  background-color: #e2e8f0;
}

.ujk-modal-btn-outline {
  background-color: transparent;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.ujk-modal-btn-outline:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.ujk-cookies-open-modal,
.ujk-cookies-open-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 24px;
}

.ujk-cookies-open-modal:focus-visible,
.ujk-cookies-open-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .ujk-cookies.ujk-width-90 {
    width: 94%;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
  }

  .ujk-cookies-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0.75rem;
  }

  .ujk-cookies-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.45rem;
  }

  .ujk-banner-btn {
    width: 100%;
    min-height: 42px;
  }

  .ujk-cookies-modal-footer {
    flex-direction: column;
  }

  .ujk-cookies-modal-footer .ujk-btn {
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  .ujk-cookies-box {
    background: #0f172a;
    color: #f8fafc;
    border-color: #334155;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  }

  .ujk-modal-title {
    color: #f8fafc;
  }

  .ujk-modal-desc {
    color: #94a3b8;
  }

  .ujk-modal-close {
    color: #94a3b8;
  }

  .ujk-modal-close:hover {
    color: #f8fafc;
    background-color: #1e293b;
  }

  .ujk-cookie-category {
    background: #1e293b;
    border-color: #334155;
  }

  .ujk-cat-name {
    color: #f8fafc;
  }

  .ujk-cat-text {
    color: #94a3b8;
  }

  .ujk-badge-required {
    background: #334155;
    color: #cbd5e1;
  }

  .ujk-slider {
    background-color: #475569;
  }

  .ujk-slider::before {
    background-color: #f8fafc;
  }

  .ujk-slider-disabled,
  .ujk-switch input:disabled + .ujk-slider {
    background-color: #475569;
    opacity: 0.5;
  }

  .ujk-cookies-modal-footer {
    border-top-color: #334155;
  }

  .ujk-modal-btn-outline {
    color: #f8fafc;
    border-color: #475569;
  }

  .ujk-modal-btn-outline:hover {
    background-color: #1e293b;
    border-color: #64748b;
  }
}

@media (prefers-contrast: more) {
  .ujk-cookies {
    border: 2px solid #ffffff;
  }

  .ujk-banner-btn {
    border-width: 2px !important;
  }

  .ujk-cookies-box {
    border: 3px solid #000000;
  }

  .ujk-cookie-category {
    border: 2px solid #000000;
  }

  .ujk-slider {
    border: 2px solid #000000;
  }

  .ujk-btn:focus-visible,
  .ujk-switch input:focus-visible + .ujk-slider,
  .ujk-modal-close:focus-visible {
    outline-width: 4px !important;
  }
}

@media (forced-colors: active) {
  .ujk-cookies,
  .ujk-cookies-box,
  .ujk-cookie-category,
  .ujk-slider {
    border: 2px solid CanvasText !important;
  }

  .ujk-btn {
    border: 2px solid ButtonText !important;
  }

  .ujk-switch input:checked + .ujk-slider {
    background-color: Highlight !important;
  }
}
