.p1sa-social {
  --p1sa-green: #155b36;
  --p1sa-border: #d5dfd4;
  --p1sa-text: #173426;
  width: 100%;
  margin: 22px 0 0;
}

.p1sa-social--checkout {
  display: flex;
  width: 100%;
  max-width: none;
  margin: 14px 0 24px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.p1sa-social--checkout .p1sa-social__divider {
  display: block;
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.p1sa-social--checkout .p1sa-social__divider::before,
.p1sa-social--checkout .p1sa-social__divider::after {
  display: none;
}

.p1sa-social--checkout .p1sa-social__actions,
.p1sa-social--checkout .p1sa-social__actions--single {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.p1sa-social--checkout .p1sa-social__actions > *,
.p1sa-social--checkout .p1sa-social__actions--single > * {
  width: 190px;
  max-width: 190px;
}

.p1sa-social--checkout .p1sa-social__google {
  width: 190px;
  min-width: 190px;
}

.p1sa-social--checkout .p1sa-social__button {
  width: 190px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.p1sa-social--checkout .p1sa-social__icon--google {
  position: static;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 5px;
}

.p1sa-social--checkout .p1sa-social__icon--google svg {
  width: 18px;
  min-width: 18px;
  height: 18px;
}

.p1sa-social__divider {
  display: grid;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  color: #65736a;
  font-size: 13px;
  line-height: 1.4;
}

.p1sa-social__divider::before,
.p1sa-social__divider::after {
  height: 1px;
  content: "";
  background: var(--p1sa-border);
}

.p1sa-social__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.p1sa-social__actions--single {
  display: flex;
  justify-content: center;
}

.p1sa-social__actions--single > * {
  width: 100%;
  max-width: none;
}

.p1sa-social__button {
  position: relative;
  display: inline-flex;
  min-width: 0;
  min-height: 48px;
  padding: 11px 16px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--p1sa-text) !important;
  background: #fff;
  border: 1px solid var(--p1sa-border);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(19, 66, 39, .05);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.p1sa-social__label--short {
  display: none;
}

.p1sa-social__google {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  gap: 8px;
}

.p1sa-social__button--google {
  width: 100%;
  min-height: 54px;
  color: #3c4043 !important;
  background: #fff;
  border-color: #dadce0;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .12);
}

.p1sa-social__google-status {
  display: none;
  text-align: center;
}

.p1sa-social__google-status.is-visible {
  display: inline;
  padding: 0 10px;
  color: #65736a;
  font-size: 13px;
  line-height: 1.35;
}

.p1sa-social__button--google:is(:hover, :focus-visible) {
  color: #202124 !important;
  background: #f8f9fa;
  border-color: #c4c7c5;
  box-shadow: 0 2px 6px rgba(60, 64, 67, .18);
}

.p1sa-social__google.has-error {
  min-height: 48px;
  padding: 0;
  color: #7d2038;
  background: transparent;
  border: 0;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.p1sa-social__google.has-error .p1sa-social__google-status {
  display: block;
  padding: 9px 12px;
  background: #fff2f4;
  border: 1px solid #efc7cf;
  border-radius: 12px;
}

.p1sa-social__icon--google {
  position: absolute;
  left: 17px;
  display: grid;
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  place-items: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.p1sa-social__icon--google svg {
  width: 20px;
  min-width: 20px;
  height: 20px;
}

.p1sa-social__button--google .p1sa-social__spinner {
  position: absolute;
  right: 17px;
  border-color: rgba(66, 133, 244, .2);
  border-top-color: #4285f4;
}

.p1sa-social__button--google:disabled {
  cursor: wait;
  opacity: .72;
}

.p1sa-social__button:is(:hover, :focus-visible) {
  color: var(--p1sa-green) !important;
  border-color: #8eb59a;
  box-shadow: 0 8px 22px rgba(19, 66, 39, .1);
  transform: translateY(-1px);
}

.p1sa-social__button:focus-visible {
  outline: 3px solid rgba(21, 91, 54, .25);
  outline-offset: 2px;
}

.p1sa-social__button[aria-disabled="true"] {
  pointer-events: none;
  opacity: .72;
}

.p1sa-social__icon,
.p1sa-social__icon svg {
  display: block;
  width: 22px;
  min-width: 22px;
  height: 22px;
}

/* Keep Google's official light treatment on every login surface. */
.p1sa-social .p1sa-social__button--google,
.p1sa-social .p1sa-social__button--google:is(:hover, :focus-visible) {
  color: #3c4043 !important;
  background: #fff;
  border-color: #dadce0;
}

.p1sa-social .p1sa-social__button--google:is(:hover, :focus-visible) {
  color: #202124 !important;
  background: #f8f9fa;
  border-color: #c4c7c5;
  box-shadow: 0 2px 6px rgba(60, 64, 67, .18);
}

/* Checkout uses Google's light sign-in treatment instead of the shop green. */
.p1sa-social.p1sa-social--checkout .p1sa-social__button--google {
  color: #3c4043 !important;
  background: #fff;
  border-color: #dadce0;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .12);
}

.p1sa-social.p1sa-social--checkout .p1sa-social__button--google:is(:hover, :focus-visible) {
  color: #202124 !important;
  background: #f8f9fa;
  border-color: #c4c7c5;
  box-shadow: 0 2px 6px rgba(60, 64, 67, .18);
}

.p1sa-social.p1sa-social--checkout .p1sa-social__button--google:focus-visible {
  outline-color: rgba(66, 133, 244, .32);
}

.p1sa-social .p1sa-social__button--google .p1sa-social__icon--google {
  width: 20px;
  min-width: 20px;
  height: 20px;
}

.p1sa-social .p1sa-social__button--google .p1sa-social__icon--google svg {
  width: 20px;
  min-width: 20px;
  height: 20px;
}

/* Checkout keeps social providers compact and ready for a second button. */
.p1sa-social--checkout .p1sa-social__button--google .p1sa-social__icon--google {
  position: static;
  width: 20px;
  min-width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.p1sa-social--checkout .p1sa-social__button--google .p1sa-social__icon--google svg {
  width: 18px;
  min-width: 18px;
  height: 18px;
}

.p1sa-social.p1sa-social--checkout .p1sa-social__button--google .p1sa-social__spinner {
  border-color: rgba(66, 133, 244, .2);
  border-top-color: #4285f4;
}

.p1sa-social__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(21, 91, 54, .22);
  border-top-color: var(--p1sa-green);
  border-radius: 50%;
  animation: p1sa-spin .75s linear infinite;
}

.p1sa-social__button.is-loading .p1sa-social__spinner {
  display: block;
}

.p1sa-social__button.is-loading .p1sa-social__icon {
  display: none;
}

.p1sa-social__error {
  margin: 0 0 12px;
  padding: 12px 14px;
  color: #7d2038;
  background: #fff2f4;
  border: 1px solid #efc7cf;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.p1sa-social-profile__email[readonly] {
  color: #53675b;
  background: #f4f6f2;
  cursor: not-allowed;
}

.p1sa-social-profile__note {
  margin: 8px 0 0;
  color: #65736a;
  font-size: 13px;
  line-height: 1.5;
}

@keyframes p1sa-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 575.98px) {
  .p1sa-social.p1sa-social--checkout {
    display: flex;
    width: 100%;
    margin: 0;
    align-items: center;
    gap: 8px;
  }

  .p1sa-social.p1sa-social--checkout .p1sa-social__divider {
    display: block;
    width: auto;
    margin: 0;
    flex: 0 0 auto;
  }

  .p1sa-social.p1sa-social--checkout .p1sa-social__divider::before,
  .p1sa-social.p1sa-social--checkout .p1sa-social__divider::after {
    display: none;
  }

  .p1sa-social__actions {
    grid-template-columns: 1fr;
  }

  .p1sa-social__actions--single {
    display: grid;
  }

  .p1sa-social__actions--single > * {
    width: 100%;
    max-width: 100%;
  }

  .p1sa-social__button {
    width: 100%;
  }

  .p1sa-social.p1sa-social--checkout .p1sa-social__actions,
  .p1sa-social.p1sa-social--checkout .p1sa-social__actions--single {
    display: grid;
    width: calc(100% - 38px);
    min-width: 0;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .p1sa-social.p1sa-social--checkout .p1sa-social__actions--single {
    width: min(150px, calc(100% - 38px));
    grid-template-columns: 1fr;
  }

  .p1sa-social.p1sa-social--checkout .p1sa-social__actions > *,
  .p1sa-social.p1sa-social--checkout .p1sa-social__actions--single > *,
  .p1sa-social.p1sa-social--checkout .p1sa-social__google,
  .p1sa-social.p1sa-social--checkout .p1sa-social__button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .p1sa-social.p1sa-social--checkout .p1sa-social__button {
    min-height: 44px;
    padding: 8px 9px;
    gap: 7px;
    font-size: 13px;
    white-space: nowrap;
  }

  .p1sa-social.p1sa-social--checkout .p1sa-social__label--full {
    display: none;
  }

  .p1sa-social.p1sa-social--checkout .p1sa-social__label--short {
    display: inline;
  }

}

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

  .p1sa-social__spinner {
    animation-duration: 1.5s;
  }
}
