/* Cookie Consent Popup Styles */
.cookie-consent-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: var(--card-bg, #ffffff);
  border-top: 1px solid var(--border-color, #e8f5f0);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(100%);
  opacity: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cookie-consent-popup.show {
  bottom: 0;
  transform: translateY(0);
  opacity: 1;
}
.cookie-consent-popup {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-consent-text {
  flex: 1;
}

.cookie-consent-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color, #1a1a1a);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.cookie-consent-description {
  font-size: 0.95rem;
  color: var(--text-color, #2c2c2c);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.cookie-consent-links {
  font-size: 0.875rem;
}

.cookie-policy-link {
  color: var(--primary-color, #2E8B57);
  text-decoration: none;
  transition: color 0.2s ease;
}
.cookie-policy-link:hover {
  color: var(--link-hover-color, rgb(33.3189189189, 100.6810810811, 63.0162162162));
  text-decoration: underline;
}

.separator {
  color: var(--text-color, #2c2c2c);
  margin: 0 0.5rem;
  opacity: 0.6;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-consent-actions .btn {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-consent-popup .btn {
  white-space: nowrap;
  min-width: 80px;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cookie-consent-popup .btn:focus {
  outline: none;
}
.cookie-consent-popup .btn:focus-visible {
  outline: 3px solid var(--primary-color, #2E8B57);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.3);
}
.cookie-consent-popup .btn:focus-within {
  outline: 2px solid var(--primary-color, #2E8B57);
  outline-offset: 1px;
}
.cookie-consent-popup .btn:active {
  transform: scale(0.98);
}
.cookie-consent-popup .btn.btn-primary {
  background-color: var(--primary-color, #2E8B57);
  border-color: var(--primary-color, #2E8B57);
  color: white;
  box-shadow: 0 2px 4px rgba(46, 139, 87, 0.2);
}
.cookie-consent-popup .btn.btn-primary:hover {
  background-color: rgb(33.3189189189, 100.6810810811, 63.0162162162);
  border-color: rgb(33.3189189189, 100.6810810811, 63.0162162162);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(46, 139, 87, 0.25);
}
.cookie-consent-popup .btn.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 2px rgba(46, 139, 87, 0.2);
}
.cookie-consent-popup .btn.btn-outline-secondary {
  color: var(--text-color, #2c2c2c);
  border-color: var(--border-color, #e8f5f0);
  background-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.cookie-consent-popup .btn.btn-outline-secondary:hover {
  background-color: var(--light-bg, #f8fffe);
  border-color: var(--primary-color, #2E8B57);
  color: var(--primary-color, #2E8B57);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.cookie-consent-popup .btn.btn-outline-secondary:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme=dark] .cookie-consent-popup {
  background: var(--card-bg, #21262d);
  border-top-color: var(--border-color, #30363d);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}
[data-theme=dark] .cookie-consent-popup .cookie-consent-title {
  color: var(--heading-color, #f0f6fc);
}
[data-theme=dark] .cookie-consent-popup .cookie-consent-description {
  color: var(--text-color, #e6edf3);
}
[data-theme=dark] .cookie-consent-popup .cookie-policy-link {
  color: var(--link-color, #58a6ff);
}
[data-theme=dark] .cookie-consent-popup .cookie-policy-link:hover {
  color: var(--link-hover-color, #79c0ff);
}
[data-theme=dark] .cookie-consent-popup .separator {
  color: var(--text-color, #e6edf3);
}
[data-theme=dark] .cookie-consent-popup .btn-outline-secondary {
  color: var(--text-color, #e6edf3);
  border-color: var(--border-color, #30363d);
}
[data-theme=dark] .cookie-consent-popup .btn-outline-secondary:hover {
  background-color: var(--light-bg, #161b22);
  border-color: var(--primary-color, #58a6ff);
  color: var(--primary-color, #58a6ff);
}
[data-theme=dark] .cookie-consent-popup .btn-outline-secondary:focus-visible {
  outline-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.3);
}
[data-theme=dark] .cookie-consent-popup .btn-primary:focus-visible {
  outline-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.3);
}
[data-theme=dark] .cookie-consent-popup #cookieAccept {
  background: linear-gradient(135deg, #58a6ff 0%, #1f6feb 100%);
  border: none;
}
[data-theme=dark] .cookie-consent-popup #cookieAccept:hover, [data-theme=dark] .cookie-consent-popup #cookieAccept:focus {
  background: linear-gradient(135deg, #1f6feb 0%, #0969da 100%);
}
[data-theme=dark] .cookie-consent-popup #cookieReject {
  background: rgba(110, 118, 129, 0.1);
  border: 1px solid rgba(110, 118, 129, 0.3);
  color: var(--text-color, #e6edf3);
}
[data-theme=dark] .cookie-consent-popup #cookieReject:hover, [data-theme=dark] .cookie-consent-popup #cookieReject:focus {
  background: rgba(110, 118, 129, 0.15);
  border-color: rgba(110, 118, 129, 0.5);
  color: var(--text-color, #e6edf3);
}

@media (max-width: 992px) {
  .cookie-consent-popup {
    padding: 1.25rem;
  }
  .cookie-consent-content {
    gap: 1.25rem;
  }
  .cookie-consent-title {
    font-size: 1.15rem;
  }
  .cookie-consent-description {
    font-size: 0.925rem;
    line-height: 1.5;
  }
}
@media (max-width: 768px) {
  .cookie-consent-popup {
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0;
  }
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.125rem;
    text-align: left;
  }
  .cookie-consent-text {
    flex: none;
  }
  .cookie-consent-actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.875rem;
  }
  .cookie-consent-popup .btn {
    flex: 1;
    min-width: 120px;
    max-width: 160px;
    padding: 0.625rem 1.125rem;
    margin: 0 !important;
  }
  .cookie-consent-popup .btn.btn-sm {
    padding: 0.625rem 1.125rem;
    font-size: 0.9rem;
    min-height: 44px;
    margin: 0 !important;
  }
  .cookie-consent-title {
    font-size: 1.1rem;
    margin-bottom: 0.625rem;
  }
  .cookie-consent-description {
    font-size: 0.9rem;
    margin-bottom: 0.875rem;
    line-height: 1.5;
  }
  .cookie-consent-links {
    font-size: 0.85rem;
  }
}
@media (max-width: 640px) {
  .cookie-consent-popup {
    padding: 0.875rem 1rem;
    margin: 0 0.5rem;
    border-radius: 8px 8px 0 0;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.2);
  }
  .cookie-consent-content {
    gap: 1rem;
  }
  .cookie-consent-actions {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
  }
  .cookie-consent-popup .btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.125rem;
    min-width: 130px;
    min-height: 48px;
    margin: 0 !important;
  }
  .cookie-consent-popup .btn.btn-sm {
    padding: 0.75rem 1.125rem;
    font-size: 0.9rem;
    min-height: 48px;
    margin: 0 !important;
  }
  .cookie-consent-popup .btn#cookieAccept {
    background: linear-gradient(135deg, var(--primary-color, #2E8B57) 0%, rgb(33.3189189189, 100.6810810811, 63.0162162162) 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.3);
  }
  .cookie-consent-popup .btn#cookieReject {
    background: rgba(108, 117, 125, 0.08);
    border: 1px solid rgba(108, 117, 125, 0.25);
    color: var(--text-color, #495057);
  }
  .cookie-consent-popup .btn#cookieReject:hover, .cookie-consent-popup .btn#cookieReject:focus {
    background: rgba(108, 117, 125, 0.12);
    border-color: rgba(108, 117, 125, 0.4);
  }
  .cookie-consent-popup .btn:focus-visible {
    outline-width: 2px;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.25);
  }
  .cookie-consent-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }
  .cookie-consent-description {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
}
@media (max-width: 480px) {
  .cookie-consent-popup {
    padding: 0.75rem 0.875rem;
    margin: 0 0.375rem;
    bottom: 0.375rem;
    left: 0.375rem;
    right: 0.375rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom) + 0.375rem);
  }
  .cookie-consent-content {
    gap: 0.875rem;
  }
  .cookie-consent-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.625rem;
    align-items: stretch;
    justify-content: center;
  }
  .cookie-consent-popup .btn {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    min-height: 52px;
    border-radius: 8px;
  }
  .cookie-consent-popup .btn.btn-sm {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    min-height: 52px;
    margin: 0 !important;
  }
  .cookie-consent-popup .btn#cookieAccept {
    background: linear-gradient(135deg, var(--primary-color, #2E8B57) 0%, rgb(33.3189189189, 100.6810810811, 63.0162162162) 100%);
    border: none;
    box-shadow: 0 3px 12px rgba(46, 139, 87, 0.35);
  }
  .cookie-consent-popup .btn#cookieAccept:hover, .cookie-consent-popup .btn#cookieAccept:focus {
    background: linear-gradient(135deg, rgb(33.3189189189, 100.6810810811, 63.0162162162) 0%, rgb(26.9783783784, 81.5216216216, 51.0243243243) 100%);
    box-shadow: 0 4px 16px rgba(46, 139, 87, 0.4);
  }
  .cookie-consent-popup .btn#cookieReject {
    background: rgba(108, 117, 125, 0.1);
    border: 1.5px solid rgba(108, 117, 125, 0.3);
    color: var(--text-color, #495057);
  }
  .cookie-consent-popup .btn#cookieReject:hover, .cookie-consent-popup .btn#cookieReject:focus {
    background: rgba(108, 117, 125, 0.15);
    border-color: rgba(108, 117, 125, 0.5);
    color: var(--text-color, #495057);
  }
  .cookie-consent-popup .btn:focus-visible {
    outline: 3px solid var(--primary-color, #2E8B57);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(46, 139, 87, 0.2), 0 4px 12px rgba(46, 139, 87, 0.15);
  }
  .cookie-consent-popup .btn:focus-within {
    outline: 2px solid var(--primary-color, #2E8B57);
    outline-offset: 2px;
  }
  .cookie-consent-popup .btn:active {
    transform: scale(0.96);
  }
  .cookie-consent-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
  }
  .cookie-consent-description {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
  }
  .cookie-consent-links {
    font-size: 0.8rem;
  }
  .cookie-consent-links .cookie-policy-link {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}
@media (max-width: 360px) {
  .cookie-consent-popup {
    padding: 0.625rem 0.75rem;
    margin: 0 0.25rem;
    bottom: 0.25rem;
    left: 0.25rem;
    right: 0.25rem;
  }
  .cookie-consent-content {
    gap: 0.75rem;
  }
  .cookie-consent-title {
    font-size: 0.95rem;
  }
  .cookie-consent-description {
    font-size: 0.8rem;
  }
  .cookie-consent-links {
    font-size: 0.75rem;
  }
  .cookie-consent-popup .btn {
    padding: 0.7rem 0.5rem;
    font-size: 0.85rem;
  }
  .cookie-consent-popup .btn:focus-visible {
    outline: 2px solid var(--primary-color, #2E8B57);
    outline-offset: 5px;
    box-shadow: 0 0 0 7px rgba(46, 139, 87, 0.25);
  }
}
@media (prefers-contrast: high) {
  .cookie-consent-popup {
    border-width: 2px;
  }
  .cookie-consent-popup .btn {
    border-width: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-popup {
    transition: opacity 0.01ms;
  }
  .cookie-consent-popup .btn:hover {
    transform: none;
  }
  .cookie-consent-popup .btn:active {
    transform: none;
  }
  .cookie-consent-popup .btn:focus-visible {
    transition: none;
  }
}
@media (hover: none) and (pointer: coarse) {
  .cookie-consent-popup .btn {
    min-height: 54px;
    padding: 1rem 1.25rem;
    font-weight: 700;
  }
  .cookie-consent-popup .btn.btn-sm {
    min-height: 54px;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
  }
  .cookie-consent-popup .btn#cookieAccept {
    background: linear-gradient(135deg, var(--primary-color, #2E8B57) 0%, rgb(33.3189189189, 100.6810810811, 63.0162162162) 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(46, 139, 87, 0.4);
    color: white;
  }
  .cookie-consent-popup .btn#cookieAccept:focus {
    box-shadow: 0 4px 14px rgba(46, 139, 87, 0.4), 0 0 0 4px rgba(46, 139, 87, 0.3);
    outline: 2px solid white;
    outline-offset: 2px;
  }
  .cookie-consent-popup .btn#cookieAccept:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.4);
    transition: all 0.1s ease;
  }
  .cookie-consent-popup .btn#cookieReject {
    background: rgba(108, 117, 125, 0.12);
    border: 1.5px solid rgba(108, 117, 125, 0.4);
    color: var(--text-color, #495057);
  }
  .cookie-consent-popup .btn#cookieReject:focus {
    outline: 2px solid var(--text-color, #495057);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(108, 117, 125, 0.2);
  }
  .cookie-consent-popup .btn#cookieReject:active {
    transform: scale(0.95);
    background: rgba(108, 117, 125, 0.18);
    transition: all 0.1s ease;
  }
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .cookie-consent-popup .btn:focus-visible {
    outline-width: 2px;
  }
}
