/* SWA Login Google - front.css
   Visual-only, scoped styles. No theme/global overrides.
*/

.swa-google-entry {
  text-decoration: none !important;
  color: inherit;
}

.swa-google-entry .link-item,
.swa-google-entry .swa-google-title,
.swa-google-entry .swa-google-sub {
  visibility: visible !important;
  opacity: 1 !important;
}

.swa-google-entry .swa-google-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.03);
  flex: 0 0 auto;
}

.swa-google-entry .swa-google-svg {
  display: block;
}

.swa-google-entry .swa-google-title {
  display: block !important;
  font-weight: 700;
  font-size: 14px !important;
  line-height: 1.15;
  color: #111 !important;
}

.swa-google-entry .swa-google-sub {
  display: block !important;
  margin-top: 4px;
  font-size: 12px !important;
  line-height: 1.2;
  color: rgba(0,0,0,.62) !important;
}

/* Login / register: centered compact social button */
.swa-google-entry--login,
.swa-google-entry--register {
  float: none !important;
  display: inline-block !important;
  width: auto !important;
  max-width: 420px;
  margin: 14px auto 0 auto;
}

.swa-google-entry--login .link-item,
.swa-google-entry--register .link-item {
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  padding: 12px 18px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: auto;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.swa-google-entry--login:hover .link-item,
.swa-google-entry--register:hover .link-item,
.swa-google-entry--login:focus .link-item,
.swa-google-entry--register:focus .link-item {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.14);
}

.swa-google-entry--login .swa-google-title,
.swa-google-entry--register .swa-google-title {
  text-align: left;
  margin: 0;
}

/* Account: native-like tile */
.swa-google-entry--account {
  margin-bottom: 20px;
}

.swa-google-entry--account .link-item {
  min-height: 92px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.swa-google-entry--account:hover .link-item,
.swa-google-entry--account:focus .link-item {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.14);
}

.swa-google-entry--account .swa-google-title,
.swa-google-entry--account .swa-google-sub {
  text-align: center;
}

/* Checkout: compact CTA inside personal-information step */
.swa-google-entry--checkout {
  display: block;
  width: 100%;
  max-width: 430px;
  margin: 10px 0 12px 0;
}

.swa-google-entry--checkout .link-item {
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  padding: 12px 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: auto;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.swa-google-entry--checkout:hover .link-item,
.swa-google-entry--checkout:focus .link-item {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.14);
}

.swa-google-entry--checkout .swa-google-title,
.swa-google-entry--checkout .swa-google-sub {
  text-align: left;
}

/* Auth pages: scoped wrapper generated by the module. No global theme overrides. */
.swa-google-auth-wrap {
  width: 100%;
  text-align: center;
  clear: both;
}

.swa-google-auth-wrap .swa-google-entry--login,
.swa-google-auth-wrap .swa-google-entry--register {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Mobile */
@media (max-width: 480px) {
  .swa-google-entry--login,
  .swa-google-entry--register,
  .swa-google-entry--checkout {
    max-width: 100%;
  }

  .swa-google-entry--checkout .link-item {
    align-items: flex-start;
  }
}

/* Checkout fallback container injected by displayFooter when theme does not call checkout hooks */
.swa-google-checkout-fallback-wrap {
  margin: 10px 0 18px 0;
  width: 100%;
}

#checkout-personal-information-step .swa-google-checkout-fallback-wrap {
  clear: both;
}

#checkout-personal-information-step .swa-google-entry--checkout {
  margin-left: 0;
  margin-right: 0;
}


/* Hotfix 2: refine icon/label spacing and vertical alignment next to the Google logo */
.swa-google-entry--login .swa-google-link-item,
.swa-google-entry--register .swa-google-link-item,
.swa-google-entry--checkout .swa-google-link-item {
  gap: 10px !important;
}

.swa-google-entry--login .swa-google-ico,
.swa-google-entry--register .swa-google-ico,
.swa-google-entry--checkout .swa-google-ico {
  width: 40px !important;
  height: 40px !important;
}

.swa-google-entry--login .swa-google-link-item::after,
.swa-google-entry--register .swa-google-link-item::after,
.swa-google-entry--checkout .swa-google-link-item::after {
  margin-left: 2px !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  position: relative;
  top: 1px;
}

.swa-google-entry--checkout .link-item {
  padding-left: 18px !important;
  padding-right: 18px !important;
}


/* Hotfix 3: restore real visible label next to the Google icon.
   We stop depending on ::after because some theme/minifier combinations suppress pseudo text.
*/
.swa-google-entry .swa-google-link-item::after {
  content: none !important;
  display: none !important;
}

.swa-google-entry--login .swa-google-title,
.swa-google-entry--register .swa-google-title,
.swa-google-entry--checkout .swa-google-title {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-align: left !important;
  white-space: nowrap !important;
  margin: 0 0 0 2px !important;
  padding: 0 !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  overflow: visible !important;
  clip: auto !important;
  text-indent: 0 !important;
}

.swa-google-entry--login .swa-google-link-item,
.swa-google-entry--register .swa-google-link-item,
.swa-google-entry--checkout .swa-google-link-item {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #111 !important;
  text-align: left !important;
}

.swa-google-entry--checkout .swa-google-link-item {
  justify-content: flex-start !important;
}

.swa-google-entry--login .swa-google-ico,
.swa-google-entry--register .swa-google-ico,
.swa-google-entry--checkout .swa-google-ico {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  flex: 0 0 40px !important;
}

.swa-google-entry--login .swa-google-sub,
.swa-google-entry--register .swa-google-sub {
  display: none !important;
}
