/* WD Cookie Lite Styles */

/* Banner Base */
#wdcl-banner {
  position: fixed;
  background: #ffffff;
  color: #000;
  padding: 20px;
  z-index: 99999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: none;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

/* Popup Mode */
.wdcl-popup {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000 !important;
  border-top: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
}

.wdcl-popup .wdcl-wrap {
  background: #ffffff;
  border-radius: 16px;
  max-width: 450px;
  width: 22%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  border: 1px solid #e9ecef;
  padding: 25px;
  margin: 20px;
}

/* Banner Positions */
.wdcl-banner-bottom-right {
  bottom: 0;
  left: auto;
  right: 0;
  padding: 20px;
}

.wdcl-banner-bottom-left {
  bottom: 0;
  left: 0;
  right: auto;
  padding: 20px;
}

.wdcl-banner-bottom-center {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px;
}

.wdcl-banner-top-right {
  top: 0;
  left: auto;
  right: 0;
  padding: 20px;
  border-top: none;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wdcl-banner-top-left {
  top: 0;
  left: 0;
  right: auto;
  padding: 20px;
  border-top: none;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wdcl-banner-top-center {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px;
  border-top: none;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wdcl-wrap {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0px;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: flex-start;
}

/* Simple Banner Styles */
.wdcl-simple .wdcl-title {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wdcl-cookie-icon {
  font-size: 22px;
}

.wdcl-simple .wdcl-subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  margin-bottom: 20px;
}

.wdcl-simple .wdcl-subtitle a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.wdcl-simple .wdcl-subtitle a:hover {
  text-decoration: underline;
}

/* Advanced Banner Styles */
.wdcl-advanced {
  line-height: 1.4;
  font-size: 14px;
  font-weight: 400;
  color: #000;
}

.wdcl-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.wdcl-btn {
    padding: 5px 30px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
}

.wdcl-btn-primary {
  background: #007bff;
  color: #ffffff;
  border: 1px solid #007bff;
}

.wdcl-btn-primary:hover {
  background: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.4);
}

.wdcl-btn-secondary {
  background: transparent;
  color: #007bff;
  border: 1px solid #007bff;
}

.wdcl-btn-secondary:hover {
  background: #007bff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Modal */
#wdcl-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.wdcl-dialog {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  border: 1px solid #e9ecef;
}

.wdcl-head {
  padding: 25px 25px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
  font-size: 20px;
  color: #000;
  text-align: center;
}

.wdcl-body {
  padding: 25px;
}

.wdcl-body label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 16px;
  color: #000;
  padding: 12px 0;
  border-bottom: 1px solid #f8f9fa;
}

.wdcl-body label:last-child {
  border-bottom: none;
}

.wdcl-body input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #007bff;
}

.wdcl-foot {
  padding: 20px 25px 25px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  background: #f8f9fa;
}

/* FAB – Manage Cookies button */
.wdcl-fab {
  position: fixed;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 99998;
  background: #007bff;
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
  transition: all 0.2s ease;
  color: #fff;
}

/* FAB positions - these will be overridden by dynamic CSS */
.wdcl-fab[data-position="bottom-right"] {
  right: 15px;
  bottom: 80px;
}

.wdcl-fab[data-position="bottom-left"] {
  left: 15px;
  bottom: 80px;
}

.wdcl-fab[data-position="top-right"] {
  right: 15px;
  top: 80px;
}

.wdcl-fab[data-position="top-left"] {
  left: 15px;
  top: 80px;
}

.wdcl-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,123,255,0.4);
  background: #0056b3;
}

.wdcl-fab:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.wdcl-fab svg {
  width: 20px;
  height: 20px;
  display: block;
}

.wdcl-fab .wdcl-fab-label {
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  background: #000;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font: 12px/1.3 system-ui, Arial;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Label positions based on FAB position */
.wdcl-fab[data-position="bottom-right"] .wdcl-fab-label,
.wdcl-fab[data-position="top-right"] .wdcl-fab-label {
  right: 56px;
}

.wdcl-fab[data-position="bottom-left"] .wdcl-fab-label,
.wdcl-fab[data-position="top-left"] .wdcl-fab-label {
  left: 56px;
}

.wdcl-fab:hover .wdcl-fab-label {
  opacity: 1;
}

.wdcl-fab[data-position="bottom-right"]:hover .wdcl-fab-label,
.wdcl-fab[data-position="top-right"]:hover .wdcl-fab-label {
  transform: translateY(50%) translateX(-4px);
}

.wdcl-fab[data-position="bottom-left"]:hover .wdcl-fab-label,
.wdcl-fab[data-position="top-left"]:hover .wdcl-fab-label {
  transform: translateY(50%) translateX(4px);
}

/* Privacy policy link inline */
.wdcl-privacy-link-inline {
  margin-top: 10px;
  text-align: center;
}

.wdcl-privacy-link-inline a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.wdcl-privacy-link-inline a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  .wdcl-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .wdcl-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  
  .wdcl-btn {
    width: 100%;
    justify-content: center;
  }
  
  .wdcl-dialog {
    width: 95%;
    margin: 15px;
    max-height: 80vh;
  }
  
  .wdcl-banner-content {
    text-align: center;
  }
  
  #wdcl-banner {
    width: 100% !important;
    padding: 15px;
  }
  
  .wdcl-popup .wdcl-wrap {
    width: 90%;
    margin: 10px;
    padding: 20px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  #wdcl-banner {
    background: #1a1a1a;
    color: #ffffff;
    border-top-color: #000;
  }
  
  .wdcl-dialog {
    background: #2d2d2d;
    border-color: #444;
  }
  
  .wdcl-head {
    background: #2d2d2d;
    color: #ffffff;
    border-bottom-color: #444;
  }
  
  .wdcl-body {
    color: #ffffff;
  }
  
  .wdcl-body label {
    border-bottom-color: #444;
  }
  
  .wdcl-foot {
    background: #1a1a1a;
    border-top-color: #444;
  }
  
  .wdcl-btn-secondary {
    color: #007bff;
    border-color: #007bff;
  }
  
  .wdcl-btn-secondary:hover {
    background: #007bff;
    color: #ffffff;
  }
}

/* הגנת טפסי אלמנטור */
.wdcl-form-privacy {
  margin-bottom: 15px !important;
}

.wdcl-form-privacy label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
}

.wdcl-form-privacy input[type="checkbox"] {
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  width: 16px !important;
  height: 16px !important;
}

.wdcl-form-privacy span {
  color: #333 !important;
}

.wdcl-form-privacy a {
  color: #007bff !important;
  text-decoration: underline !important;
}

.wdcl-form-privacy a:hover {
  color: #0056b3 !important;
}

.wdcl-form-privacy.wdcl-error {
  border: 2px solid #dc3545 !important;
  border-radius: 8px !important;
  padding: 10px !important;
  background-color: #fff5f5 !important;
}

.wdcl-form-privacy.wdcl-error label {
  color: #dc3545 !important;
}

.wdcl-form-privacy.wdcl-error input[type="checkbox"] {
  border-color: #dc3545 !important;
}
