/* בסיס כללי לבאנר עוגיות ולחלון ההעדפות */

/* אנימציית הופעה – שימוש ב-margin במקום transform כדי לא לדרוס מיקום center */
.smartcc-banner {
  box-sizing: border-box;
  opacity: 0;
  margin-bottom: -20px;
  animation: smartcc-slide-up 0.3s ease forwards;
}

@keyframes smartcc-slide-up {
  to {
    opacity: 1;
    margin-bottom: 0;
  }
}

.smartcc-banner-text {
  margin: 0;
}

.smartcc-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Reset buttons to prevent theme interference */
.smartcc-banner .smartcc-btn,
.smartcc-preferences-modal .smartcc-btn,
.smartcc-iframe-placeholder .smartcc-btn,
.smartcc-privacy-buttons .smartcc-btn {
  all: initial;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  line-height: 1.4;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid transparent;
  border-style: solid;
  display: inline-block;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}

.smartcc-banner .smartcc-btn:focus-visible,
.smartcc-preferences-modal .smartcc-btn:focus-visible,
.smartcc-iframe-placeholder .smartcc-btn:focus-visible,
.smartcc-privacy-buttons .smartcc-btn:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.5);
  outline-offset: 2px;
}

/* הצבעים המדויקים מגיעים מה-css הדינמי */

/* מודל העדפות */

.smartcc-preferences-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  animation: smartcc-fade-in 0.2s ease forwards;
}

@keyframes smartcc-fade-in {
  to {
    opacity: 1;
  }
}

.smartcc-preferences-inner {
  box-sizing: border-box;
  position: relative;
}

/* כפתור סגירה */
.smartcc-modal-close {
  position: absolute;
  top: 10px;
  left: 10px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  color: inherit;
  opacity: 0.5;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.smartcc-modal-close:hover,
.smartcc-modal-close:focus-visible {
  opacity: 1;
}

.smartcc-pref-group {
  margin-bottom: 12px;
}

.smartcc-pref-group label {
  cursor: pointer;
  display: block;
}

/* רספונסיביות בסיסית */

@media (max-width: 767px) {
  .smartcc-banner {
    max-width: 100%;
  }
}

/* כפתור שורטקוד reopen */

button.smartcc-btn.smartcc-btn-preferences[onclick] {
  border-radius: 999px;
}

/* prefers-reduced-motion */

@media (prefers-reduced-motion: reduce) {
  .smartcc-banner,
  .smartcc-preferences-modal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .smartcc-cookie-badge {
    transition: none;
  }
}
