.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(135deg, #1f0644 0%, #2a0a5c 100%);
  border-top: 3px solid #00a2ff;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
  z-index: 999999;
  padding: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: none !important;
  visibility: hidden;
  will-change: transform, opacity;
}

.cookie-popup.show {
  transform: translateY(0);
  opacity: 1;
  display: block !important;
  visibility: visible;
  animation: slideUpAnimation 0.4s ease-out forwards;
}

.cookie-popup.hiding {
  transform: translateY(100%);
  opacity: 0;
  animation: slideDownAnimation 0.3s ease-in forwards;
}

@keyframes slideUpAnimation {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDownAnimation {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 0; 
}

.cookie-text {
  flex: 1;
  min-width: 300px;
  min-height: 0; 
}

.cookie-text h4 {
  color: #00a2ff;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  font-family: 'Josefin Sans', sans-serif;
  line-height: 1.2;
}

.cookie-text p {
  color: #a1aed4;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  word-wrap: break-word;
}

.cookie-text a {
  color: #00a2ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cookie-text a:hover {
  color: #0088cc;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  min-height: 0;
}

.cookie-accept,
.cookie-decline {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Josefin Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-height: 44px; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-accept {
  background: linear-gradient(135deg, #00a2ff 0%, #0088cc 100%);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 162, 255, 0.3);
}

.cookie-accept:hover {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  box-shadow: 0 5px 20px rgba(0, 162, 255, 0.4);
  transform: translateY(-1px);
}

.cookie-decline {
  background: transparent;
  color: #a1aed4;
  border: 2px solid #a1aed4;
}

.cookie-decline:hover {
  background: #a1aed4;
  color: #1f0644;
  transform: translateY(-1px);
}

.cookie-popup {
  position: fixed !important;
  z-index: 999999 !important;
}

#cookie-popup {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999 !important;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }
  
  .cookie-text {
    min-width: auto;
    width: 100%;
  }
  
  .cookie-text h4 {
    font-size: 18px;
  }
  
  .cookie-text p {
    font-size: 13px;
  }
  
  .cookie-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }
  
  .cookie-accept,
  .cookie-decline {
    padding: 12px 20px;
    font-size: 13px;
    min-width: 120px;
    min-height: 48px; 
  }
}

@media (max-width: 480px) {
  .cookie-content {
    padding: 15px;
  }
  
  .cookie-text h4 {
    font-size: 16px;
  }
  
  .cookie-text p {
    font-size: 12px;
  }
  
  .cookie-buttons {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  
  .cookie-accept,
  .cookie-decline {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 320px) {
  .cookie-content {
    padding: 12px;
  }
  
  .cookie-text {
    min-width: 0;
  }
  
  .cookie-text h4 {
    font-size: 15px;
  }
  
  .cookie-text p {
    font-size: 11px;
  }
}

.cookie-table {
  margin: 20px 0;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.cookie-table .table {
  margin-bottom: 0;
  background: #ffffff;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
}

.cookie-table .table thead {
  background: linear-gradient(135deg, #1f0644 0%, #2a0a5c 100%);
}

.cookie-table .table thead th {
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 15px 12px;
  border: none;
  text-align: left;
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cookie-table .table thead th:first-child {
  border-top-left-radius: 8px;
}

.cookie-table .table thead th:last-child {
  border-top-right-radius: 8px;
}

.cookie-table .table tbody tr {
  background: #ffffff;
  transition: background-color 0.3s ease;
}

.cookie-table .table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.cookie-table .table tbody tr:hover {
  background: #e3f2fd;
}

.cookie-table .table tbody td {
  padding: 12px;
  border: none;
  border-bottom: 1px solid #e9ecef;
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: middle;
}

.cookie-table .table tbody tr:last-child td {
  border-bottom: none;
}

.cookie-table .table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.cookie-table .table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.cookie-table .table tbody td:first-child {
  font-weight: 600;
  color: #1f0644;
  font-family: 'Josefin Sans', sans-serif;
}

.cookie-table .table tbody td:nth-child(2) {
  color: #555555;
}

.cookie-table .table tbody td:last-child {
  color: #00a2ff;
  font-weight: 500;
  text-align: center;
}

/* Cookie Preferences Panel Styles */
.cookie-preferences-panel {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.cookie-preferences-panel h5 {
  color: #1f0644;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: 'Josefin Sans', sans-serif;
}

.cookie-category {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  transition: box-shadow 0.3s ease;
}

.cookie-category:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-category h6 {
  color: #1f0644;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Josefin Sans', sans-serif;
}

.cookie-category p {
  color: #555555;
  font-size: 14px;
  margin-bottom: 0;
  line-height: 1.5;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.browser-instructions {
  background: #f8f9fa;
  border-left: 4px solid #00a2ff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
}

.browser-instructions h5 {
  color: #1f0644;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'Josefin Sans', sans-serif;
}

.browser-instructions ul li {
  color: #555555;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.browser-instructions ul li strong {
  color: #1f0644;
  font-weight: 600;
}

.legal-note {
  background: linear-gradient(135deg, rgba(31, 6, 68, 0.05) 0%, rgba(42, 10, 92, 0.05) 100%);
  border: 1px solid rgba(0, 162, 255, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
}

.legal-note p {
  color: #2c3e50;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}

.legal-note strong {
  color: #1f0644;
  font-weight: 600;
}

@media (max-width: 768px) {
  .cookie-table {
    font-size: 12px;
  }
  
  .cookie-table .table thead th {
    padding: 10px 8px;
    font-size: 12px;
  }
  
  .cookie-table .table tbody td {
    padding: 8px;
    font-size: 12px;
  }
  
  .cookie-preferences-panel {
    padding: 15px;
  }
  
  .cookie-category {
    padding: 12px;
  }
  
  .browser-instructions {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .cookie-table .table thead th {
    padding: 8px 6px;
    font-size: 11px;
  }
  
  .cookie-table .table tbody td {
    padding: 6px;
    font-size: 11px;
  }
  
  .cookie-table .table tbody td:first-child {
    font-size: 12px;
  }
} 