.cky-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999990;
}

.cky-overlay.cky-hide {
  display: none;
}

.cky-consent-container {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 999991;
  width: min(calc(100% - 2rem), 440px);
}

.cky-consent-container.cky-hide {
  display: none;
}

.cky-consent-bar {
  background: #fff;
  border: 1px solid #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 1.5rem;
}

.cky-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #212121;
  line-height: 1.3;
}

.cky-notice-des {
  color: #212121;
  font-size: 0.875rem;
  line-height: 1.55;
}

.cky-notice-des p {
  margin: 0;
}

.cky-notice-des a {
  color: #1b6db4;
  text-decoration: underline;
}

.cky-notice-btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.cky-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  border: 1px solid #1b6db4;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.cky-btn:hover {
  opacity: 0.88;
}

.cky-btn-customize,
.cky-btn-reject,
.cky-btn-preferences {
  color: #1b6db4;
  background: transparent;
}

.cky-btn-accept {
  color: #fff;
  background: #1b6db4;
}

.cky-btn-revisit-wrapper {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 999991;
}

.cky-btn-revisit-wrapper.cky-revisit-hide {
  display: none;
}

.cky-btn-revisit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #1b6db4;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(27, 109, 180, 0.35);
}

.cky-btn-revisit img {
  width: 22px;
  height: 22px;
}

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

.cky-modal.cky-hide {
  display: none;
}

.cky-preference-center {
  width: min(100%, 640px);
  max-height: min(90vh, 720px);
  background: #fff;
  border: 1px solid #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cky-preference-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f4f4f4;
}

.cky-preference-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #212121;
}

.cky-btn-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.cky-btn-close img {
  width: 14px;
  height: 14px;
}

.cky-preference-body-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cky-preference-content-wrapper {
  color: #212121;
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.cky-preference-content-wrapper p {
  margin: 0 0 0.75rem;
}

.cky-preference-content-wrapper p:last-child {
  margin-bottom: 0;
}

.cky-accordion {
  border: 1px solid #ebebeb;
  border-radius: 6px;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.cky-accordion-item {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.cky-accordion-chevron {
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.cky-chevron-right {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #212121;
  border-bottom: 2px solid #212121;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.cky-accordion.is-open .cky-chevron-right {
  transform: rotate(45deg);
}

.cky-accordion-header-wrapper {
  flex: 1;
  min-width: 0;
}

.cky-accordion-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cky-accordion-btn {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #212121;
  cursor: pointer;
  text-align: left;
}

.cky-always-active {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1b6db4;
}

.cky-switch {
  margin-left: auto;
}

.cky-switch input {
  width: 42px;
  height: 22px;
  accent-color: #1b6db4;
  cursor: pointer;
}

.cky-switch input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cky-accordion-header-des {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #212121;
}

.cky-accordion-header-des p {
  margin: 0;
}

.cky-accordion-body {
  display: none;
  padding: 0 1rem 1rem 2.25rem;
}

.cky-accordion.is-open .cky-accordion-body {
  display: block;
}

.cky-audit-table {
  background: #f4f4f4;
  border: 1px solid #ebebeb;
  border-radius: 4px;
  padding: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
}

.cky-cookie-des-table {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
}

.cky-cookie-des-table:last-child {
  margin-bottom: 0;
}

.cky-cookie-des-table li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.cky-cookie-des-table li div:first-child {
  font-weight: 600;
}

.cky-footer-wrapper {
  border-top: 1px solid #f4f4f4;
  padding: 1rem 1.5rem 1.25rem;
}

.cky-prefrence-btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 639px) {
  .cky-consent-container,
  .cky-btn-revisit-wrapper {
    bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .cky-notice-btn-wrapper,
  .cky-prefrence-btn-wrapper {
    flex-direction: column;
  }

  .cky-btn {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .cky-consent-container.has-revisit-offset {
    bottom: 4.5rem;
  }
}
