/* Cookie Consent Overlay */
.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  backdrop-filter: blur(2px);
}

/* Cookie Consent Banner Styles - Modal Design */
.cookie-consent-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-family: inherit;
  direction: rtl;
  max-width: 600px;
  width: auto;
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-consent-inner {
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  position: relative;
}

.cookie-consent-close {
  position: absolute;
  top: 12px;
  left: 12px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  line-height: 30px;
  text-align: center;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-consent-close:hover {
  background: #e0e0e0;
  color: #000;
}

.cookie-consent-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 8px;
  color: #333;
}

.cookie-consent-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.cookie-consent-text a {
  color: #007bff;
  text-decoration: underline;
}

.cookie-consent-text a:hover {
  color: #0056b3;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  direction: rtl;
}

.cookie-btn {
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.cookie-btn-primary {
  background-color: #007bff;
  color: #ffffff;
}

.cookie-btn-primary:hover {
  background-color: #0056b3;
}

.cookie-btn-secondary {
  background-color: #e0e0e0;
  color: #333333;
}

.cookie-btn-secondary:hover {
  background-color: #d0d0d0;
}

.cookie-consent-footer {
  text-align: center;
  font-size: 12px;
  margin-top: 8px;
}

.cookie-manage-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #007bff;
  text-decoration: underline;
  font-size: 12px;
}

.cookie-manage-link:hover {
  color: #0056b3;
}

/* Responsive Design */
@media (max-width: 600px) {
  .cookie-consent-banner {
    max-width: 95%;
    width: auto;
    min-width: 95%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .cookie-consent-inner {
    width: 100%;
    padding: 20px 16px;
  }

  .cookie-consent-title {
    font-size: 16px;
    padding-right: 40px;
  }

  .cookie-consent-text {
    font-size: 13px;
  }

  .cookie-consent-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  .cookie-consent-close {
    left: 8px;
    top: 8px;
    width: 28px;
    height: 28px;
    line-height: 26px;
    font-size: 18px;
  }
}

/* Cookie Consent Floating Button (for Privacy Policy page) */
.cookie-consent-floating-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9997;
  background-color: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
  transition: all 0.3s ease;
  direction: rtl;
  font-family: inherit;
}

.cookie-consent-floating-btn:hover {
  background-color: #0056b3;
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.5);
  transform: translateY(-2px);
}

.cookie-consent-floating-btn:active {
  transform: translateY(0);
}

/* Responsive Design for Floating Button */
@media (max-width: 600px) {
  .cookie-consent-floating-btn {
    bottom: 15px;
    left: 15px;
    padding: 10px 20px;
    font-size: 13px;
  }
}

