/* === COOKIE CONSENT BANNER v4 — Balanced Floating === */

/* Container */
#dcb {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999999;
  display: -webkit-flex; display: flex;
  -webkit-justify-content: center; justify-content: center;
  padding: 0 24px 24px;
  pointer-events: none;
  opacity: 0;
  -webkit-transform: translateY(30px);
  transform: translateY(30px);
  -webkit-transition: opacity .6s cubic-bezier(.16,1,.3,1), -webkit-transform .6s cubic-bezier(.16,1,.3,1);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
#dcb.dcb-show {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  pointer-events: auto;
}

/* No overlay */
.dcb-overlay { display: none; }

/* Floating card */
.dcb-box {
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 12px 40px rgba(0,0,0,.1),
    0 4px 12px rgba(0,0,0,.05);
  width: 100%; max-width: 440px;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  box-sizing: border-box;
}

/* Content */
.dcb-content { margin-bottom: 20px; }
.dcb-title {
  font-size: 15px; font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}
.dcb-text {
  font-size: 13px; color: #777;
  line-height: 1.55;
}
.dcb-privacy {
  color: #2d8b4e;
  text-decoration: none;
  border-bottom: 1px dotted rgba(45,139,78,.4);
  -webkit-transition: border-color .2s;
  transition: border-color .2s;
}
.dcb-privacy:hover { border-bottom-style: solid; border-bottom-color: #2d8b4e; }

/* Actions — horizontal on Screen 1 */
.dcb-actions {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  gap: 16px;
}

/* Accept button */
.dcb-btn-accept {
  -webkit-flex: 1; flex: 1;
  background: #2d8b4e; color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 12px 20px;
  border: none; border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  -webkit-transition: background .2s, -webkit-transform .1s;
  transition: background .2s, transform .1s;
}
.dcb-btn-accept:hover { background: #34a05a; }
.dcb-btn-accept:active {
  -webkit-transform: scale(.98);
  transform: scale(.98);
}

/* Subtle link */
.dcb-link-subtle {
  color: #999;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-transition: color .2s;
  transition: color .2s;
}
.dcb-link-subtle:hover { color: #555; text-decoration: underline; }

/* === Screen 2 — Settings === */
.dcb-s2-head {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.dcb-back {
  color: #2d8b4e;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}
.dcb-back:hover { text-decoration: underline; }
.dcb-s2-title { font-size: 15px; font-weight: 600; color: #222; }

/* Categories */
.dcb-cats { margin-bottom: 18px; }
.dcb-cat {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
  cursor: pointer;
}
.dcb-cat:last-child { border-bottom: none; }

.dcb-cat-info { -webkit-flex: 1; flex: 1; }
.dcb-cat-info strong {
  font-size: 13px; color: #333;
  display: block; margin-bottom: 1px; font-weight: 600;
}
.dcb-cat-desc { font-size: 12px; color: #aaa; line-height: 1.4; }

/* Toggle */
.dcb-toggle {
  -webkit-appearance: none; appearance: none;
  width: 42px; min-width: 42px; height: 24px;
  border-radius: 12px;
  background: #ddd;
  position: relative;
  cursor: pointer;
  -webkit-flex-shrink: 0; flex-shrink: 0;
  border: none; outline: none;
  -webkit-transition: background .2s;
  transition: background .2s;
}
.dcb-toggle:checked { background: #2d8b4e; }
.dcb-toggle:disabled { opacity: .4; cursor: default; }
.dcb-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  -webkit-transition: -webkit-transform .2s cubic-bezier(.16,1,.3,1);
  transition: transform .2s cubic-bezier(.16,1,.3,1);
}
.dcb-toggle:checked::after {
  -webkit-transform: translateX(18px);
  transform: translateX(18px);
}

/* Screen 2 actions — stacked */
#dcb-s2 .dcb-actions {
  -webkit-flex-direction: column; flex-direction: column;
  gap: 4px;
}
#dcb-s2 .dcb-btn-accept {
  width: 100%;
  -webkit-flex: none; flex: none;
}
#dcb-s2 .dcb-link-subtle {
  padding: 6px 0;
}

/* Footer cookie link */
#dcb-footer {
  text-align: center;
  padding: 10px 16px;
  background: transparent;
}
#dcb-footer a {
  color: #bbb;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-transition: color .2s;
  transition: color .2s;
}
#dcb-footer a:hover { color: #888; text-decoration: underline; }

/* === Mobile === */
@media screen and (max-width: 520px) {
  #dcb { padding: 0 12px 12px; }
  .dcb-box {
    max-width: 100%;
    padding: 20px;
    border-radius: 14px;
  }
  .dcb-actions {
    -webkit-flex-direction: column; flex-direction: column;
    gap: 6px;
  }
  .dcb-btn-accept {
    width: 100%;
    -webkit-flex: none; flex: none;
    padding: 13px 20px;
  }
  .dcb-link-subtle { padding: 6px 0; }
}
