#cookiescript_injected_wrapper {
  display: none !important;
}

#klaro .legacy_bottom {
  font-family: var(--font-family-body, sans-serif) !important;
  max-width: 100%;
  width: 100%;
  margin: auto;
  padding: 2rem;
  border-radius: 0px !important;
  background: #F7F7FF !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: fixed;
  bottom:0px !important;
  left: 0px !important;
  top: unset;
  transform: unset;
  z-index: 9999;
}

#klaro .legacy_bottom .cm-modal.cm-klaro{
  bottom:0px;
  left: 0px;
}

#klaro  .legacy_bottom:focus {
  outline: none !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
}

#klaro  .legacy_bottom h2,
#klaro  .legacy_bottom .h2,
#klaro  .legacy_bottom h1,
#klaro  .legacy_bottom .cookie-title {
  font-size: 2.125rem !important;
  font-weight: 400 !important;
  margin-bottom: 1rem;
  color: var(--primary, #002147);
  line-height: 1.2;
  text-align: left;
}

#klaro  .legacy_bottom p,
#klaro  .legacy_bottom .eu-cookie-compliance-category-description,
#klaro  .legacy_bottom .cookie-description {
  font-size: 1rem;
  line-height: 1.875rem !important;
  margin: 0.5rem 0 1rem;
  text-align: left;
  color: var(--primary-text, #333);
}

#klaro  .legacy_bottom a {
  color: var(--primary-dark, #0056b3);
  text-decoration: underline;
}

#klaro  .legacy_bottom .manage-cookie-preferences {
  display: none !important;
}

#klaro  .legacy_bottom .cn-ok {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.75rem !important;
  width: 100% !important;
  margin-top: 1.5rem !important;
}

#klaro  .legacy_bottom .cn-buttons {
  display: contents !important;
}

#klaro  .legacy_bottom .cn-body > .eu-cookie-compliance-categories {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.5rem !important;
  margin: 1.5rem 0 !important;
  padding: 0 !important;
  border: none !important;
}

#klaro  .legacy_bottom .cn-body > .eu-cookie-compliance-categories .eu-cookie-compliance-category {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

#klaro  .legacy_bottom .cn-body > .eu-cookie-compliance-categories label {
  margin: 0 !important;
  font-size: 0.9rem !important;
  color: var(--primary-text, #333) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

#klaro  .legacy_bottom .cn-body > .eu-cookie-compliance-categories .cookie-buttons-wrapper {
  display: none !important;
}

#klaro  .legacy_bottom .cm-btn,
#klaro  .legacy_bottom button,
#klaro  .legacy_bottom .cookie-btn,
#klaro  .legacy_bottom input[type="button"],
#klaro  .legacy_bottom a.button {
  font-family: var(--font-family-body, sans-serif) !important;
  padding: 15px 35px !important;
  border-radius: 30px !important;
  border: none !important;
  cursor: pointer;
  margin: 0 !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease;
  width: auto !important;
  flex: 0 0 auto !important;
  display: inline-block !important;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap !important;
}

#klaro  .legacy_bottom .cm-btn-success,
#klaro  .legacy_bottom button[name="agree"],
#klaro  .legacy_bottom .accept-btn {
  background: var(--primary, #0056b3) !important;
  color: #fff !important;
  order: 1;
}

#klaro  .legacy_bottom .cm-btn-danger:hover,
#klaro  .legacy_bottom .cm-btn-success:hover,
#klaro  .legacy_bottom .accept-btn:hover {
  background: var(--primary-dark, #003d82) !important;
}

#klaro  .legacy_bottom .cm-btn-danger,
#klaro  .legacy_bottom button[name="decline"],
#klaro  .legacy_bottom .decline-btn {
  background: var(--primary, #444) !important;
  color: #fff !important;
  order: 2;
}

#klaro  .legacy_bottom .cm-btn-accept-all {
  background: var(--secondary, #f5f5f5) !important;
  color: var(--secondary-text, #333) !important;
  border: 1px solid #ddd !important;
  order: 0;
}

#klaro  .legacy_bottom .cm-btn-accept-all:hover {
  background: #e0e0e0 !important;
}

#klaro  .legacy_bottom .eu-cookie-compliance-categories,
#klaro  .legacy_bottom .cookie-categories-panel {
  display: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  animation: slideDown 0.3s ease;
  text-align: left;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

#klaro  .legacy_bottom .eu-cookie-compliance-categories.visible,
#klaro  .legacy_bottom .cookie-categories-panel.visible {
  display: block !important;
}

#klaro  .legacy_bottom .eu-cookie-compliance-category,
#klaro  .legacy_bottom .cookie-category-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0.75rem 0;
  gap: 0.5rem;
  padding-left: 20px;
}

#klaro  .legacy_bottom .eu-cookie-compliance-category label,
#klaro  .legacy_bottom .cookie-category-item label {
  margin: 0 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--primary-text, #333);
  cursor: pointer;
}

#klaro  .legacy_bottom input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

#klaro  .legacy_bottom .eu-cookie-compliance-categories .cookie-buttons-wrapper,
#klaro  .legacy_bottom .cookie-categories-panel .cookie-buttons-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

#klaro  .legacy_bottom .eu-cookie-compliance-categories .cm-btn,
#klaro  .legacy_bottom .cookie-categories-panel .cm-btn {
  grid-column: unset !important;
  grid-row: unset !important;
}

#klaro  .legacy_bottom .cm-btn-back,
#klaro  .legacy_bottom .back-btn {
  background: var(--secondary, #f5f5f5) !important;
  color: var(--secondary-text, #333) !important;
  border: 1px solid #ddd !important;
}

#klaro  .legacy_bottom .cm-btn-back:hover,
#klaro  .legacy_bottom .back-btn:hover {
  background: #e0e0e0 !important;
}

@media (max-width: 480px) {
  #klaro  .legacy_bottom .eu-cookie-compliance-buttons,
  #klaro  .legacy_bottom .cookie-buttons-wrapper {
    max-width: 100%;
  }
  
  #klaro  .legacy_bottom h2,
  #klaro  .legacy_bottom .h2 {
    font-size: 1.75rem !important;
  }
}



















#klaro .legacy_bottom .cm-purposes {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  justify-content: center !important;
  align-items: flex-start !important;
  margin: 1rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#klaro .legacy_bottom .cm-purpose {
  display: block !important;
  margin: 0 !important;
  padding: 1rem !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  min-width: 250px !important;
  flex: 1 !important;
  position: relative !important;
  min-height: 120px;
}


#klaro .legacy_bottom .cm-toggle-all{
  min-height: 60px;
}

#klaro .legacy_bottom .cm-purpose > input[type="checkbox"] {
  position: absolute !important;
  left: 1rem !important;
  top: 1rem !important;
  margin: 0 !important;
  width: 18px !important;
  height: 18px !important;
}

#klaro .legacy_bottom .cm-purpose > .cm-list-label {
  display: block !important;
  padding-left: 3rem !important;
  margin-bottom: 0.5rem !important;
  cursor: pointer !important;
  text-align: left !important;
}

#klaro .legacy_bottom .cm-services .cm-list-label{
  display: block !important;
  padding-left: 3rem !important;
  margin-bottom: 0.5rem !important;
  cursor: pointer !important;
  text-align: left !important;
}

/* Naprawione tytuły */
#klaro .legacy_bottom .cm-list-title {
  display: block !important;
  font-weight: bold !important;
  margin-bottom: 0.25rem !important;
  font-size: 1rem !important;
  color: #333 !important;
}

#klaro .legacy_bottom .cm-required {
  display: block !important;
  font-size: 0.8rem !important;
  color: red !important;
  margin-bottom: 0.5rem !important;
  content: "*";
}

#klaro .legacy_bottom .cm-switch {
  position: absolute !important;
  right: 1rem !important;
  top: 1rem !important;
  margin: 0 !important;
}

#klaro .legacy_bottom .cm-switch .slider {
  margin-right: 20px;
  margin-left: 20px;
}
#klaro .legacy_bottom .cm-services .cm-switch .slider {
  margin-right: 20px;
  margin-left: 10px;
}

#klaro .legacy_bottom .cm-services {
  width: 50% !important;
  /* margin-top: -30px !important; */
  clear: both !important;
  margin-left: 25%;
  z-index: 9999;
  position: relative;
}

#klaro .legacy_bottom .cm-caret {
  text-align: center !important;
  margin: 0.5rem 0 !important;
}

#klaro .legacy_bottom .cm-caret a {
  font-size: 0.9rem !important;
  color: var(--primary-dark, #0056b3) !important;
  text-decoration: none !important;
}

#klaro .legacy_bottom .cm-content {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#klaro .legacy_bottom .cm-service {
  position: relative !important;
  padding: 0.75rem 0 0.75rem 2rem !important;
  border-top: 1px solid #f0f0f0 !important;
  margin: 0 !important;
}

#klaro .legacy_bottom .cm-service:first-child {
  border-top: none !important;
}

#klaro .legacy_bottom .cm-service input[type="checkbox"] {
  position: absolute !important;
  left: 0 !important;
  top: 0.75rem !important;
  margin: 0 !important;
  width: 18px !important;
  height: 18px !important;
}


/* Opisy */
#klaro .legacy_bottom .cm-list-description {
  font-size: 0.85rem !important;
  color: #666 !important;
  line-height: 1.4 !important;
  margin: 0.25rem 0 !important;
}

#klaro .legacy_bottom .purposes {
  font-size: 0.8rem !important;
  color: #888 !important;
  margin: 0.25rem 0 !important;
  font-style: italic !important;
}

/* Responsywność */
@media (max-width: 768px) {
  #klaro .legacy_bottom  .cm-purposes {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  #klaro .legacy_bottom  .cm-purpose {
    width: 100% !important;
  }
}

#klaro .legacy_bottom .cm-list-description{
  display: none;
}

#klaro .legacy_bottom .cm-purpose > .cm-list-label,
#klaro .legacy_bottom .cm-service .cm-list-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  padding-left: 2.5rem !important;
  margin-bottom: 0.5rem !important;
  text-align: left !important;
}

#klaro .legacy_bottom .cm-list-title {
  display: inline !important;
  font-weight: bold !important;
  margin-bottom: 0 !important;
  font-size: 1rem !important;
  color: #333 !important;
}

#klaro .legacy_bottom .cm-required {
  display: inline !important;
  font-size: 0.8rem !important;
  color: #666 !important;
  margin-bottom: 0 !important;
  margin-left: 0.5rem !important;
  white-space: nowrap !important;
}

/* Przełącznik po prawej stronie - poprawione pozycjonowanie */
#klaro .legacy_bottom .cm-switch {
  position: absolute !important;
  right: 1rem !important;
  top: 1rem !important;
  margin: 0 !important;
}

/* Dla services - również naprawiamy układ */
#klaro .legacy_bottom .cm-service .cm-list-label {
  padding-left: 2rem !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

#klaro .legacy_bottom .cm-list-title{
  padding-left: 30px;
}

#klaro .legacy_bottom .cm-service .cm-list-title {
  display: inline !important;
  margin-bottom: 0 !important;
  padding-left: 20px;
}

#klaro .legacy_bottom .cm-service .cm-required {
  /* display: inline !important;
  margin-left: 0.5rem !important;
  margin-bottom: 0 !important;
  content: "*" !important;
  color: red !important; */
  display: none !important;
}

/* Opisy pod spodem */
#klaro .legacy_bottom .cm-list-description,
#klaro .legacy_bottom .purposes {
  width: 100% !important;
  margin-top: 0.25rem !important;
  padding-left: 0 !important;
  padding-top: 15px;
}

#klaro .legacy_bottom .purposes{
  display: none !important;
}

#klaro .cm-footer-buttons{
  justify-content: flex-start;
}

#klaro .cm-footer-buttons .cm-btn{
  margin-right: 20px !important; 
}

