/* ── Cookie Consent Banner ── */
.cky-consent-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999999;
  max-width: 420px;
  width: calc(100% - 40px);
  box-sizing: border-box;
}

.cky-consent-bar {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.cky-title {
  font-size: 16px;
  font-weight: 700;
  color: #212121;
  margin: 0 0 10px;
  line-height: 1.3;
}

.cky-notice-des p {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 16px;
}

.cky-notice-btn-wrapper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.cky-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1;
  transition: opacity .15s;
  font-family: inherit;
}

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

.cky-btn-customize,
.cky-btn-reject {
  color: #6B4FD0;
  background: transparent;
  border-color: #6B4FD0;
}

.cky-btn-accept {
  color: #fff;
  background: #6B4FD0;
  border-color: #6B4FD0;
}

.cky-btn-preferences {
  color: #8065E5;
  background: transparent;
  border-color: #8065E5;
}

/* ── Modal overlay ── */
.cky-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(0,0,0,.5);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.cky-modal.cky-modal-open {
  display: flex;
}

/* ── Preference center dialog ── */
.cky-preference-center {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  overflow: hidden;
}

.cky-preference-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.cky-preference-title {
  font-size: 16px;
  font-weight: 700;
  color: #212121;
  margin: 0;
}

.cky-btn-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  line-height: 1;
  padding: 4px;
}

.cky-btn-close:hover { color: #111; }

/* ── Body scroll area ── */
.cky-preference-body-wrapper {
  overflow-y: auto;
  flex: 1;
  padding: 20px 24px;
}

.cky-preference-content-wrapper p {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  margin: 0 0 8px;
}

.cky-show-desc-btn {
  background: none;
  border: none;
  color: #8065E5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin: 4px 0 16px;
  font-family: inherit;
}

/* ── Accordion ── */
.cky-accordion {
  border-bottom: 1px solid #e8e8e8;
}

.cky-accordion:first-child { border-top: 1px solid #e8e8e8; }

.cky-accordion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.cky-accordion-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #212121;
  padding: 12px 0;
  text-align: left;
  font-family: inherit;
  flex: 1;
}

.cky-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(-45deg);
  transition: transform .2s;
  flex-shrink: 0;
  margin-bottom: -2px;
}

.cky-accordion.open .cky-chevron {
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.cky-always-active {
  font-size: 12px;
  font-weight: 600;
  color: #2e7d32;
  flex-shrink: 0;
  padding-right: 4px;
}

.cky-accordion-body {
  display: none;
  padding: 0 0 16px;
}

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

.cky-accordion-des {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ── Footer ── */
.cky-footer-wrapper {
  padding: 16px 24px;
  border-top: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.cky-prefrence-btn-wrapper {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .cky-consent-container {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    width: 100%;
  }
  .cky-consent-bar { border-radius: 8px 8px 0 0; }
  .cky-notice-btn-wrapper { flex-direction: column; }
  .cky-btn { text-align: center; }
  .cky-prefrence-btn-wrapper { justify-content: stretch; }
  .cky-prefrence-btn-wrapper .cky-btn { flex: 1; text-align: center; }
}
