/**
 * Funder UI - Modern floating cookie notice (RTL)
 */

.funder-cookie-consent-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 24px;
  pointer-events: none;
  direction: rtl;
  font-family: Arial, 'Open Sans Hebrew', 'Segoe UI', sans-serif;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.4s ease, opacity 0.35s ease;
}

.funder-cookie-consent-banner.funder-cookie-consent-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.funder-cookie-consent-banner.funder-cookie-consent-hidden {
  display: none !important;
}

.funder-cookie-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: auto;
}

.funder-cookie-consent-banner.funder-cookie-consent-visible .funder-cookie-consent-backdrop {
  opacity: 1;
}

.funder-cookie-consent-card {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  max-width: 780px;
  width: 100%;
  background: #fff;
  color: #2d2d2d;
  border-radius: 22px;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 20px 24px;
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.funder-cookie-consent-banner.funder-cookie-consent-visible .funder-cookie-consent-card {
  transform: translateY(0);
  opacity: 1;
}

.funder-cookie-consent-banner.funder-cookie-consent-exiting .funder-cookie-consent-backdrop {
  opacity: 0;
}

.funder-cookie-consent-banner.funder-cookie-consent-exiting .funder-cookie-consent-card {
  transform: translateY(calc(100% + 32px));
  opacity: 0;
}

.funder-cookie-consent-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}

.funder-cookie-consent-icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.funder-cookie-consent-icon img {
  width: 68px;
  height: 68px;
  display: block;
  object-fit: contain;
}

.funder-cookie-consent-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #2d2d2d;
  text-align: right;
}

.funder-cookie-consent-link {
  color: #6aa82f;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.funder-cookie-consent-link:hover {
  color: #5c9728;
}

.funder-cookie-consent-link:focus {
  outline: none;
}

.funder-cookie-consent-link:focus-visible {
  outline: 2px solid #6aa82f;
  outline-offset: 2px;
  border-radius: 2px;
}

.funder-cookie-consent-more-link {
  display: block;
  margin-top: 4px;
  text-decoration: none;
}

.funder-cookie-consent-more-text {
  text-decoration: underline;
}

.funder-cookie-consent-more-arrow {
  text-decoration: none;
}

.funder-cookie-consent-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #6aa82f;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(106, 168, 47, 0.3);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.funder-cookie-consent-btn:hover {
  background: #5c9728;
  box-shadow: 0 4px 14px rgba(92, 151, 40, 0.38);
}

.funder-cookie-consent-btn:active {
  transform: scale(0.98);
}

.funder-cookie-consent-btn:focus {
  outline: none;
}

.funder-cookie-consent-btn:focus-visible {
  outline: 2px solid #6aa82f;
  outline-offset: 2px;
}

/* Mobile */
@media (max-width: 767px) {
  .funder-cookie-consent-banner {
    padding: 0 12px 16px;
  }

  .funder-cookie-consent-card {
    padding: 16px 18px;
    border-radius: 18px;
  }

  .funder-cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .funder-cookie-consent-icon {
    align-self: center;
  }

  .funder-cookie-consent-text {
    font-size: 14px;
    text-align: center;
  }

  .funder-cookie-consent-btn {
    width: 100%;
    padding: 10px 16px;
  }
}
