.pe-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #0A1F44;
  color: #fff;
  padding: 16px;
  border-top: 4px solid #FF6B2C;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.pe-consent p {
  margin: 0;
  flex: 1;
  line-height: 1.5;
  font-size: 14px;
  min-width: 300px;
}

.pe-consent button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pe-accept {
  background: #FF6B2C;
  color: #fff;
}

.pe-accept:hover {
  background: #e55a24;
}

.pe-reject {
  background: #334155;
  color: #fff;
}

.pe-reject:hover {
  background: #475569;
}

.pe-manage {
  background: transparent;
  color: #fff;
  text-decoration: underline;
  padding: 10px 8px;
}

.pe-manage:hover {
  color: #FF6B2C;
}

/* Cookie Management Icon */
.pe-cookie-manage {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  cursor: pointer;
}

.pe-cookie-icon {
  background: linear-gradient(135deg, #0A1F44 0%, #1e3a8a 100%);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(10, 31, 68, 0.3);
  transition: all 0.3s ease;
  border: 2px solid #FF6B2C;
}

.pe-cookie-icon:hover {
  background: linear-gradient(135deg, #FF6B2C 0%, #e55a24 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 44, 0.4);
}

.pe-cookie-icon svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Custom Modal for Cookie Customization */
.pe-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pe-consent-modal {
  background: #0A1F44;
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid #FF6B2C;
  animation: slideUp 0.3s ease;
}

.pe-modal-header {
  margin-bottom: 20px;
}

.pe-modal-header h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.pe-modal-header p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.pe-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.pe-checkbox-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.pe-checkbox-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 44, 0.3);
}

.pe-checkbox-item.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pe-checkbox-item.disabled:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.pe-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.pe-checkbox-item.disabled .pe-checkbox-label {
  cursor: not-allowed;
}

.pe-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #FF6B2C;
  flex-shrink: 0;
}

.pe-checkbox-item.disabled input[type="checkbox"] {
  cursor: not-allowed;
}

.pe-checkbox-content {
  flex: 1;
}

.pe-checkbox-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: #fff;
}

.pe-checkbox-content span {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
}

.pe-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.pe-modal-save {
  background: #FF6B2C;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pe-modal-save:hover {
  background: #e55a24;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 44, 0.3);
}

.pe-modal-cancel {
  background: #334155;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pe-modal-cancel:hover {
  background: #475569;
}

@media (max-width: 640px) {
  .pe-consent {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
  }
  
  .pe-consent p {
    min-width: unset;
    margin-bottom: 12px;
  }
  
  .pe-consent div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .pe-consent button {
    flex: 1;
    min-width: 80px;
  }
  
  .pe-cookie-manage {
    bottom: 16px;
    right: 16px;
  }
  
  .pe-cookie-icon {
    width: 44px;
    height: 44px;
  }
  
  .pe-cookie-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .pe-consent-modal {
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .pe-modal-header h2 {
    font-size: 20px;
  }
  
  .pe-modal-actions {
    flex-direction: column;
  }
  
  .pe-modal-save,
  .pe-modal-cancel {
    width: 100%;
  }
}