/* 8scope Cookie Lite: form consent checkbox only */

.eightscope-consent{
    margin: 10px 0;
    display: block;
    width: 100%;
    clear: both;
}

.eightscope-consent{
    display: block !important;
    width: 100%;
}

.eightscope-consent label{
  display:flex;
  align-items:flex-start;
  gap:12px;
  line-height:1.45;
}

.eightscope-consent input[type="checkbox"]{
  width:20px;
  height:20px;
  min-width:20px;
  min-height:20px;
  margin-top:2px;
  accent-color:#0c89e9;
}

.eightscope-consent .eightscope-consent-text a{
  color: var(--ecl-consent-link-color, #2271b1);
}

.eightscope-consent.eightscope-consent-theme-dark .eightscope-consent-text,
.eightscope-consent.eightscope-consent-theme-dark label{
  color:#ffffff;
}

.eightscope-consent.eightscope-consent-theme-light .eightscope-consent-text,
.eightscope-consent.eightscope-consent-theme-light label{
  color:#111827;
}

/* CF7 consent checkbox: force new line */
.wpcf7 form .eightscope-consent{display:block}

/* Hide existing consent in replace mode (JS adds class) */
.eightscope-consent-hidden{display:none!important;visibility:hidden!important}

/* --- Banner CSS --- */

.ecl-banner {
  position: fixed;
  z-index: 999999;
  background-color: #ffffff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1e1e1e;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ecl-banner-content {
  font-size: 14px;
}

.ecl-banner a {
  color: #2271b1;
  text-decoration: underline;
}

.ecl-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ecl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.ecl-btn:hover {
  opacity: 0.9;
}

.ecl-btn-accept {
  background-color: #2271b1;
  color: #ffffff;
}

.ecl-btn-deny {
  background-color: #f0f0f1;
  color: #1e1e1e;
  border: 1px solid #c3c4c7;
}

/* Styles */
.ecl-style-bottom_wide {
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f0f1;
}
.ecl-style-bottom_wide .ecl-banner-content {
  flex: 1;
  margin-right: 20px;
}
@media (max-width: 782px) {
  .ecl-style-bottom_wide {
    flex-direction: column;
    align-items: flex-start;
  }
  .ecl-style-bottom_wide .ecl-banner-content {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

.ecl-style-bottom_left {
  left: 20px;
  bottom: 20px;
  width: 340px;
  border-radius: 8px;
  max-width: calc(100% - 40px);
}

.ecl-style-bottom_right {
  right: 20px;
  bottom: 20px;
  width: 340px;
  border-radius: 8px;
  max-width: calc(100% - 40px);
}

.ecl-style-bottom_center {
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  width: 340px;
  border-radius: 8px;
  max-width: calc(100% - 40px);
}

.ecl-style-center,
.ecl-style-middle {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  border-radius: 12px;
  max-width: calc(100% - 40px);
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.ecl-style-veil_center_popup {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  border-radius: 12px;
  max-width: calc(100% - 40px);
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.28);
  z-index: 1000000;
}

.ecl-banner-veil {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.ecl-scroll-locked {
  overflow: hidden !important;
}

/* RTL Support */
.rtl .ecl-banner {
  direction: rtl;
}
.rtl .ecl-style-bottom_wide .ecl-banner-content {
  margin-right: 0;
  margin-left: 20px;
}
@media (max-width: 782px) {
  .rtl .ecl-style-bottom_wide .ecl-banner-content {
    margin-left: 0;
  }
}

.ecl-cookie-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999998;
  width: 48px;
  height: 48px;
  border: 0 !important;
  border-radius: 50%;
  background: #0c89e9;
  color: #fff;
  font-size: 0;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}

.ecl-cookie-fab svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor !important;
  stroke: none !important;
}

.ecl-cookie-fab svg path {
  fill: currentColor !important;
  stroke: none !important;
}

.ecl-cookie-fab:hover {
  opacity: 0.92;
}

.ecl-cookie-fab.ecl-cookie-fab-pos-bottom_right {
  right: 16px;
  left: auto;
}

.ecl-cookie-fab.ecl-cookie-fab-pos-bottom_left {
  left: 16px;
  right: auto;
}

.ecl-cookie-fab.ecl-cookie-fab-size-small {
  width: 40px;
  height: 40px;
}

.ecl-cookie-fab.ecl-cookie-fab-size-small svg {
  width: 18px;
  height: 18px;
}

.ecl-cookie-fab.ecl-cookie-fab-size-medium {
  width: 48px;
  height: 48px;
}

.ecl-cookie-fab.ecl-cookie-fab-size-medium svg {
  width: 22px;
  height: 22px;
}

.ecl-cookie-fab.ecl-cookie-fab-size-small svg{
    height: 30px;
    width: 30px;
}

.ecl-cookie-fab.ecl-cookie-fab-size-small{
    padding: 0;
    border-radius: 50%;
}