/**
 * PrestaHU
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Commercial License
 * you can't distribute, modify or sell this code
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file
 * If you need help please contact info@presta.hu
 *
 * @author    PrestaHU <info@presta.hu>
 * @copyright PrestaHU
 * @license   commercial
 */

.pshusociallogin {
  --pshusl-gap: 0.5rem;
  --pshusl-height: 44px;
  --pshusl-radius: 4px;
  --pshusl-google-bg: #ffffff;
  --pshusl-google-ink: #1f1f1f;
  --pshusl-google-line: #747775;
  --pshusl-google-hover: #f2f2f2;
  --pshusl-facebook-bg: #1877f2;
  --pshusl-facebook-ink: #ffffff;
  --pshusl-facebook-hover: #0f63d0;
  --pshusl-apple-bg: #000000;
  --pshusl-apple-ink: #ffffff;
  --pshusl-apple-hover: #333333;
  margin: 1rem 0;
}

.pshusociallogin__list {
  display: flex;
  flex-direction: column;
  gap: var(--pshusl-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pshusociallogin--row .pshusociallogin__list,
.pshusociallogin--icon .pshusociallogin__list,
.pshusociallogin--compact .pshusociallogin__list {
  flex-direction: row;
  flex-wrap: wrap;
}

.pshusociallogin--row.pshusociallogin--full .pshusociallogin__item {
  flex: 1 1 13rem;
  min-width: 0;
}

.pshusociallogin__item {
  margin: 0;
}

.pshusociallogin__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--pshusl-height);
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--pshusl-radius);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 120ms ease-out, opacity 120ms ease-out;
}

.pshusociallogin__btn:hover,
.pshusociallogin__btn:focus {
  text-decoration: none;
}

.pshusociallogin__btn:focus-visible {
  outline: 2px solid var(--pshusl-ring, currentColor);
  outline-offset: 2px;
}

.pshusociallogin--icon .pshusociallogin__btn {
  width: var(--pshusl-height);
  height: var(--pshusl-height);
  padding: 0;
}

.pshusociallogin--compact .pshusociallogin__btn {
  width: auto;
}

.pshusociallogin__btn--google {
  --pshusl-ring: var(--pshusl-google-ink);
  border-color: var(--pshusl-google-line);
  background-color: var(--pshusl-google-bg);
  color: var(--pshusl-google-ink);
}

.pshusociallogin__btn--google:hover,
.pshusociallogin__btn--google:focus {
  background-color: var(--pshusl-google-hover);
  color: var(--pshusl-google-ink);
}

.pshusociallogin__btn--facebook {
  --pshusl-ring: var(--pshusl-facebook-bg);
  background-color: var(--pshusl-facebook-bg);
  color: var(--pshusl-facebook-ink);
}

.pshusociallogin__btn--facebook:hover,
.pshusociallogin__btn--facebook:focus {
  background-color: var(--pshusl-facebook-hover);
  color: var(--pshusl-facebook-ink);
}

.pshusociallogin__btn--apple {
  --pshusl-ring: var(--pshusl-apple-bg);
  background-color: var(--pshusl-apple-bg);
  color: var(--pshusl-apple-ink);
}

.pshusociallogin__btn--apple:hover,
.pshusociallogin__btn--apple:focus {
  background-color: var(--pshusl-apple-hover);
  color: var(--pshusl-apple-ink);
}

.pshusociallogin__btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

.pshusociallogin__logo {
  flex: none;
  width: 20px;
  height: 20px;
}

.pshusociallogin__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pshusociallogin__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pshusociallogin__or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  text-align: center;
}

.pshusociallogin__or::before,
.pshusociallogin__or::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px solid currentColor;
  opacity: 0.2;
}

.pshusociallogin__privacy {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

.pshusociallogin-popup:not([open]) {
  display: none;
}

.pshusociallogin-popup {
  box-sizing: border-box;
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 1.5rem;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  background-color: var(--bs-body-bg, #ffffff);
  color: var(--bs-body-color, inherit);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.pshusociallogin-popup::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.pshusociallogin-popup__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pshusociallogin-popup__title {
  margin: 0;
}

.pshusociallogin-popup__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -0.625rem -0.625rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.pshusociallogin-popup__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.pshusociallogin-popup .pshusociallogin {
  margin-bottom: 0;
}

.pshusociallogin-popup__email {
  display: block;
  width: 100%;
}

.pshusociallogin-popup__create {
  margin: 1rem 0 0;
  text-align: center;
}

.pshusociallogin-accounts__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.pshusociallogin-accounts__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pshusociallogin-accounts__logo {
  flex: none;
  width: 32px;
  height: 32px;
}

.pshusociallogin-accounts__body {
  flex: 1 1 14rem;
  min-width: 0;
}

.pshusociallogin-accounts__name {
  margin: 0 0 0.25rem;
}

.pshusociallogin-accounts__state,
.pshusociallogin-accounts__note {
  margin: 0;
}

.pshusociallogin-accounts__note {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.pshusociallogin-accounts__actions {
  flex: 0 1 auto;
  max-width: 100%;
}

.pshusociallogin-accounts__actions form {
  margin: 0;
}

@media (max-width: 575px) {
  .pshusociallogin-accounts__actions {
    flex-basis: 100%;
  }

  .pshusociallogin-accounts__actions .btn {
    width: 100%;
  }
}

.pshusociallogin-complete__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.pshusociallogin-confirm__cancel {
  margin-top: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .pshusociallogin__btn {
    transition: none;
  }
}
