/* Cookie Consent Banner & Preferences Panel — mishpahacalcalit.co.il */

#mc-cc-banner {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 9999;
  background: var(--ink, #181B2C);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  font-family: var(--sans, 'Heebo', Arial, sans-serif);
  font-size: .9rem;
  direction: rtl;
}

.mc-cc-banner__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.mc-cc-banner__text {
  flex: 1 1 320px;
  margin: 0;
  line-height: 1.5;
  color: #ddd;
}

.mc-cc-banner__text a {
  color: var(--gold-soft, #D9B669);
  text-decoration: underline;
}

.mc-cc-banner__actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Shared button base */
.mc-cc-btn {
  font-family: var(--sans, 'Heebo', Arial, sans-serif);
  font-size: .875rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: .45rem 1.1rem;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
  transition: opacity .15s;
}
.mc-cc-btn:hover { opacity: .85; }

.mc-cc-btn--accept {
  background: var(--plus, #2F7A33);
  color: #fff;
  border-color: var(--plus, #2F7A33);
}

.mc-cc-btn--reject {
  background: transparent;
  color: #ccc;
  border-color: #555;
}

.mc-cc-btn--outline {
  background: transparent;
  color: var(--gold-soft, #D9B669);
  border-color: var(--gold-soft, #D9B669);
}

/* Preferences panel overlay */
#mc-cc-panel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  direction: rtl;
  font-family: var(--sans, 'Heebo', Arial, sans-serif);
  padding: 1rem;
}

.mc-cc-panel__box {
  background: var(--paper, #FBF6E9);
  color: var(--ink, #181B2C);
  border-radius: 12px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}

.mc-cc-panel__box h2 {
  margin: 0 0 .75rem;
  font-size: 1.3rem;
  font-family: var(--serif, 'Frank Ruhl Libre', Georgia, serif);
}

.mc-cc-panel__box p {
  margin: 0 0 1.25rem;
  font-size: .9rem;
  color: var(--ink-soft, #4A4F6B);
  line-height: 1.6;
}

.mc-cc-cats {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.mc-cc-cat {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  cursor: pointer;
  padding: .6rem .75rem;
  border-radius: 6px;
  border: 1px solid var(--rule, #E2D6B5);
  background: var(--card, #fff);
}

.mc-cc-cat input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--plus, #2F7A33);
  cursor: pointer;
  flex-shrink: 0;
}

.mc-cc-cat--disabled {
  opacity: .6;
  cursor: not-allowed;
}

.mc-cc-panel__actions {
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.mc-cc-panel__actions .mc-cc-btn--accept {
  background: var(--plus, #2F7A33);
  border-color: var(--plus, #2F7A33);
  color: #fff;
}

.mc-cc-panel__actions .mc-cc-btn--outline {
  border-color: var(--rule-strong, #C4B488);
  color: var(--ink-soft, #4A4F6B);
}

/* Footer cookie preferences button — looks like a link */
.footer-cookie-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-cookie-btn:hover { opacity: .75; }

/* Privacy notice in forms */
.privacy-notice {
  background: var(--paper-2, #F4EDD9);
  border-right: 3px solid var(--gold, #B58A2D);
  border-radius: 0 6px 6px 0;
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  font-size: .83rem;
  color: var(--ink-soft, #4A4F6B);
  line-height: 1.6;
  direction: rtl;
}

.privacy-notice p { margin: 0 0 .4rem; }
.privacy-notice p:last-child { margin-bottom: 0; }

.privacy-notice a {
  color: var(--gold, #B58A2D);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .mc-cc-banner__inner { flex-direction: column; align-items: flex-start; }
  .mc-cc-banner__actions { width: 100%; }
  .mc-cc-btn { flex: 1 1 auto; text-align: center; }
}
