.wgsl {
  margin: 1.25rem 0;
}

.wgsl__separator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #1b1b1b;
  font-size: 0.875rem;
  text-transform: lowercase;
}

.wgsl__separator::before,
.wgsl__separator::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}

.wgsl__separator::before {
  background: linear-gradient(to right, transparent, currentColor);
}

.wgsl__separator::after {
  background: linear-gradient(to left, transparent, currentColor);
}

.wgsl__consent {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
}
ul.wgsl-accounts__facts.wgsl-accounts__facts--data {
    line-height: 13px;
    margin-bottom: 10px;
}
.wgsl__buttons {
  display: grid;
  gap: 0.5rem;
}

.wgsl__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid #dadce0;
  border-radius: 0.375rem;
  background: #fff;
  color: #1f1f1f;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.wgsl__button:hover,
.wgsl__button:focus {
  background: #f7f8f9;
  border-color: #c6c9cc;
  color: #1f1f1f;
  text-decoration: none;
}

.wgsl__button:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.wgsl__button--facebook {
  border-color: #1877f2;
  color: #1877f2;
}

.wgsl__button--facebook:hover,
.wgsl__button--facebook:focus {
  background: #f0f5ff;
  border-color: #1877f2;
  color: #1877f2;
}

.wgsl__button--store,
.wgsl__button--store:hover,
.wgsl__button--store:focus,
.wgsl__button--store.active {
  border-color: #ff6413;
}

.wgsl__button--store:hover,
.wgsl__button--store:focus {
  border-color: #e75000;
  background: #e75000;
}

.wgsl__icon {
  display: inline-flex;
  flex: 0 0 auto;
}
/* 
button#wgsl-store-login {
    padding: 0 !important;
} 
*/
.wgsl__icon svg {
  display: block;
}
.wgsl__icon--store {
  width: 3.75rem;
  padding: 0.1875rem;
}

.wgsl__icon--store img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Zablokowane do czasu zaznaczenia zgody */
.wgsl__button--locked {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.wgsl__note {
  margin: 0.75rem 0 0;
  color: #6c757d;
  font-size: 0.8125rem;
}

/* Wariant do ciasnych miejsc: wysuwany panel w nagłówku, krok w kasie */

.wgsl--compact {
  margin: 1rem 0 0;
}

.wgsl--compact .wgsl__separator {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
}

.wgsl--compact .wgsl__buttons {
  grid-template-columns: 1fr;
}

.wgsl--compact .wgsl__button {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.wgsl--compact .wgsl__consent {
  font-size: 0.8125rem;
}

.wgsl--compact .wgsl__note {
  display: none;
}

/* Ikony w stopce — obok "Zaloguj się", bez etykiet, białe kółka na ciemnym tle */

.wgsl-footer-icons {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-left: 0.65rem;
  vertical-align: middle;
}

.wgsl-footer-icon {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wgsl-footer-icon::before {
    position: absolute;
    z-index: -1;
    inset: 0 2px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #ffffff3b;
    content: "";
    border-radius: 5px 10px 5px 10px;
    transform: skewX(12deg);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.wgsl-footer-icon:hover,
.wgsl-footer-icon:focus-visible {
  transform: translateY(-0.15rem);
  filter: brightness(1.3);
}

.wgsl-footer-icon:hover::before,
.wgsl-footer-icon:focus-visible::before {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.35);
}

.wgsl-footer-icon__glyph {
  display: inline-flex;
  width: 1.05rem;
  height: 1.05rem;
  align-items: center;
  justify-content: center;
}

.wgsl-footer-icon__glyph svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wgsl-footer-icon--store {
  padding: 0.3rem;
}

.wgsl-footer-icon--store .wgsl-footer-icon__glyph {
  width: 100%;
  height: 100%;
}

.wgsl-footer-icon--store .wgsl-footer-icon__glyph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .wgsl-footer-icon,
  .wgsl-footer-icon::before {
    transition: none;
  }
}

/* Tryb podglądu */

.wgsl__badge {
  display: block;
  margin: 0.75rem 0 0;
  padding: 0.375rem 0.5rem;
  border: 1px dashed #f0ad4e;
  border-radius: 0.25rem;
  background: #fff8ec;
  color: #8a5a00;
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
}

.wgsl-dialog {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wgsl-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.wgsl-dialog__box {
  position: relative;
  width: min(30rem, 100%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
  color: #1f1f1f;
}

.wgsl-dialog__box:focus {
  outline: none;
}

.wgsl-dialog__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
}

.wgsl-dialog__intro {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.wgsl-dialog__steps {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.wgsl-dialog__steps li + li {
  margin-top: 0.5rem;
}

.wgsl-accounts {
  width: min(100%, 62rem);
  margin: 0 auto;
  color: #222;
}

.wgsl-accounts__intro {
  max-width: 50rem;
  margin: 0 0 2rem;
  color: #666d77;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.wgsl-accounts__list {
  margin: 0;
  padding: 0;
  border: solid #dedede;
  border-width: 1px 0;
  list-style: none;
}

.wgsl-accounts__item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.25rem 0;
}

.wgsl-accounts__item + .wgsl-accounts__item {
  border-top: 1px solid #dedede;
}

.wgsl-accounts__icon {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
}

.wgsl-accounts__icon svg {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}

.wgsl-accounts__details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.125rem;
}

.wgsl-accounts__name {
  font-size: 1rem;
  font-weight: 700;
}

.wgsl-accounts__status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.375rem;
  color: #737984;
  font-size: 0.8125rem;
  font-weight: 600;
}

.wgsl-accounts__status::before {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: #aeb3ba;
  content: '';
}

.wgsl-accounts__status--on {
  color: #167449;
}

.wgsl-accounts__status--on::before {
  background: #198754;
}

.wgsl-accounts__meta {
  color: #737984;
  font-size: 0.8125rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wgsl-accounts__action {
  grid-column: 2;
}

.wgsl-accounts__action > .btn {
  display: inline-flex;
  width: auto;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-weight: 600;
}

.wgsl-accounts__unavailable {
  color: #858b94;
  font-size: 0.8125rem;
  font-weight: 500;
}

.wgsl-accounts__section {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid #dedede;
}

.wgsl-accounts__section-title {
  margin: 0 0 1.25rem;
  color: #222;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.wgsl-accounts__facts {
  max-width: 50rem;
  margin: 0;
  padding: 0;
  color: #555d68;
  font-size: 0.9rem;
  line-height: 1.55;
  list-style: none;
}

.wgsl-accounts__facts strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #222;
  font-size: 0.9375rem;
}

.wgsl-accounts__facts a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #9aa0a8;
  text-underline-offset: 0.18em;
}

.wgsl-accounts__facts a:hover,
.wgsl-accounts__facts a:focus-visible {
  color: #d71920;
  text-decoration-color: currentColor;
}

.wgsl-accounts__facts--actions {
  display: grid;
  gap: 1.25rem;
}

.wgsl-accounts__facts--actions > li {
  display: grid;
  margin: 0;
  padding: 0 0 1rem;
  align-content: start;
  border-bottom: 1px solid #e5e5e5;
  transition: border-color 180ms ease, transform 180ms ease;
}

.wgsl-accounts__facts--data {
  padding-left: 1.125rem;
  list-style: disc;
}

.wgsl-accounts__facts--data > li {
  margin: 0;
  padding: 0.2rem 0;
}

.wgsl-accounts__note {
  max-width: 50rem;
  margin: 0 0 1rem;
  color: #69717c;
  font-size: 0.875rem;
  line-height: 1.65;
}

.wgsl-accounts > .alert {
  margin-bottom: 1rem;
  border-radius: 0;
}

@media (hover: hover) {
  .wgsl-accounts__facts--actions > li:hover {
    border-color: #b8bbc0;
    transform: translateY(-2px);
  }
}

@media (min-width: 576px) {
  .wgsl__buttons {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (min-width: 768px) {
  .wgsl[data-wgsl-position="checkout"] .wgsl__buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wgsl[data-wgsl-position="checkout"] .wgsl__button {
    min-width: 0;
  }

  .wgsl[data-wgsl-position="checkout"] .wgsl__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  .wgsl-accounts {
    padding-bottom: 1.5rem;
  }

  .wgsl-accounts__item {
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    padding: 1.35rem 0;
  }

  .wgsl-accounts__action {
    grid-column: auto;
    padding-left: 2rem;
  }

  .wgsl-accounts__action > .btn {
    min-width: 7rem;
    padding-inline: 1.25rem;
  }

  .wgsl-accounts__unavailable {
    min-width: 10rem;
    text-align: right;
  }

  .wgsl-accounts__section {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    column-gap: 2.5rem;
    margin-top: 3.25rem;
    padding-top: 2.25rem;
  }

  .wgsl-accounts__section-title {
    margin: 0;
  }

  .wgsl-accounts__section > :not(.wgsl-accounts__section-title) {
    grid-column: 2;
  }

  .wgsl-accounts__facts--actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wgsl-accounts__facts--actions > li {
    transition: none;
  }

  .wgsl-accounts__facts--actions > li:hover {
    transform: none;
  }
}