/* Pasek zgody na ciasteczka – na dole strony */
#wg-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a1a;
  color: #eee;
  padding: 14px 20px;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.3);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}
#wg-cookie-bar .wg-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
#wg-cookie-bar .wg-cookie-text {
  flex: 1;
  min-width: 200px;
}
#wg-cookie-bar .wg-cookie-text a {
  color: #7eb8e0;
  text-decoration: underline;
}
#wg-cookie-bar .wg-cookie-text a:hover {
  color: #9dd;
}
#wg-cookie-bar .wg-cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
#wg-cookie-bar .wg-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
#wg-cookie-bar .wg-btn-accept {
  background: #0c4da2;
  color: #fff;
}
#wg-cookie-bar .wg-btn-accept:hover {
  background: #0a3d85;
}
#wg-cookie-bar .wg-btn-customize {
  background: transparent;
  color: #eee;
  border: 1px solid #666;
}
#wg-cookie-bar .wg-btn-customize:hover {
  border-color: #999;
  color: #fff;
}

/* Modal „Dostosuj” */
#wg-cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: inherit;
}
#wg-cookie-modal[aria-hidden="false"] {
  display: flex;
}
#wg-cookie-modal .wg-modal-box {
  background: #fff;
  color: #333;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
#wg-cookie-modal .wg-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  font-size: 18px;
  font-weight: 700;
}
#wg-cookie-modal .wg-modal-body {
  padding: 24px;
}
#wg-cookie-modal .wg-modal-body p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
}
#wg-cookie-modal .wg-cookie-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  gap: 16px;
}
#wg-cookie-modal .wg-cookie-item:last-child {
  border-bottom: none;
}
#wg-cookie-modal .wg-cookie-item label {
  flex: 1;
  font-size: 14px;
  cursor: pointer;
}
#wg-cookie-modal .wg-cookie-item .wg-toggle {
  width: 48px;
  height: 26px;
  border-radius: 26px;
  background: #ccc;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}
#wg-cookie-modal .wg-cookie-item .wg-toggle.wg-on {
  background: #0c4da2;
}
#wg-cookie-modal .wg-cookie-item .wg-toggle::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
#wg-cookie-modal .wg-cookie-item .wg-toggle.wg-on::after {
  transform: translateX(22px);
}
#wg-cookie-modal .wg-cookie-item.wg-disabled .wg-toggle {
  cursor: not-allowed;
  opacity: 0.8;
}
#wg-cookie-modal .wg-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
#wg-cookie-modal .wg-modal-footer .wg-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
#wg-cookie-modal .wg-btn-save {
  background: #0c4da2;
  color: #fff;
}
#wg-cookie-modal .wg-btn-save:hover {
  background: #0a3d85;
}
#wg-cookie-modal .wg-btn-close {
  background: #f0f0f0;
  color: #333;
}
#wg-cookie-modal .wg-btn-close:hover {
  background: #e0e0e0;
}
#wg-cookie-modal .wg-link-policy {
  margin-top: 12px;
  font-size: 13px;
}
#wg-cookie-modal .wg-link-policy a {
  color: #0c4da2;
  text-decoration: underline;
}

@media (max-width: 640px) {
  #wg-cookie-bar .wg-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  #wg-cookie-bar .wg-cookie-buttons {
    justify-content: center;
  }
}
