/**
 * WGM Motors – baner i panel zgody na pliki cookies (spójny z layoutem strony).
 */
#wgmCookieBanner {
  position: fixed;
  z-index: 100000;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #e8e8e8;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  border-top: 3px solid #FF0000;
  font-family: "Open Sans", "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}
#wgmCookieBanner.wgm-visible {
  display: block;
}
#wgmCookieBanner .wgm-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  justify-content: space-between;
}
#wgmCookieBanner.wgm-cookie-banner--compact .wgm-cookie-inner {
  align-items: center;
}
#wgmCookieBanner p {
  margin: 0 0 8px;
  flex: 1 1 280px;
  max-width: 720px;
}
#wgmCookieBanner a {
  color: #FF0000;
  text-decoration: underline;
}
#wgmCookieBanner a:hover {
  color: #b30000;
}
.wgm-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.wgm-cookie-actions button {
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.wgm-btn-cookie-accept {
  background: linear-gradient(180deg, #FF3B3B 0%, #FF0000 100%);
  color: #ffffff;
}
.wgm-btn-cookie-reject {
  background: transparent;
  color: #ccc;
  border: 1px solid #555 !important;
}
.wgm-btn-cookie-settings {
  background: #333;
  color: #fff;
}
.wgm-cookie-actions button:hover {
  opacity: 0.92;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#wgmCookieModalOverlay {
  position: fixed;
  z-index: 100001;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#wgmCookieModalOverlay.wgm-visible {
  display: flex;
}
#wgmCookieModal {
  background: #fff;
  color: #222;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
#wgmCookieModal h2 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  padding: 20px 20px 0;
  color: #1a1a1a;
}
#wgmCookieModal .wgm-modal-body {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.55;
}
#wgmCookieModal .wgm-cookie-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
#wgmCookieModal .wgm-cookie-row:last-of-type {
  border-bottom: none;
}
#wgmCookieModal .wgm-cookie-row label {
  cursor: pointer;
  font-weight: 600;
}
#wgmCookieModal .wgm-cookie-row small {
  display: block;
  font-weight: 400;
  color: #666;
  margin-top: 4px;
}
#wgmCookieModal .wgm-modal-footer {
  padding: 16px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
#wgmCookieModal .wgm-modal-footer button {
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.wgm-footer-legal {
  margin-bottom: 8px;
  font-size: 13px;
}
.wgm-footer-legal a {
  color: inherit;
  text-decoration: underline;
}
.wgm-footer-legal .wgm-footer-sep {
  margin: 0 6px;
  opacity: 0.7;
}
.wgm-footer-cookie-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.wgm-footer-cookie-btn:hover {
  color: #FF0000;
}
.tagshop.wgm-tagshop-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  background: #f5f5f5;
  border-radius: 8px;
  color: #666;
  font-size: 14px;
  padding: 16px;
  text-align: center;
}
