/* Google One Tap Login for WooCommerce - v3.0.4 */

.gotwoo-wrap {
  width: 100%;
  margin: 18px 0 8px;
  box-sizing: border-box;
}

.gotwoo-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #8a8f98;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gotwoo-divider::before,
.gotwoo-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}

.gotwoo-slot {
  position: relative;
  width: 100%;
  max-width: 400px;
  min-height: 44px;
  margin: 0 auto;
}

.gotwoo-placeholder,
.gotwoo-button {
  width: 100%;
}

.gotwoo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
  color: #3c4043;
  box-sizing: border-box;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.gotwoo-placeholder__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(60, 64, 67, 0.14);
  color: #4285f4;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.gotwoo-placeholder__text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 500;
}

.gotwoo-slot.is-ready .gotwoo-placeholder {
  opacity: 0;
  transform: scale(0.985);
}

.gotwoo-button {
  position: relative;
  z-index: 2;
  min-height: 44px;
}

.gotwoo-button > div {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  line-height: 0;
  border-radius: 999px;
  overflow: hidden;
}

.gotwoo-slot:not(.is-ready) .gotwoo-button > div {
  opacity: 0;
}

.gotwoo-slot.is-ready .gotwoo-button > div {
  opacity: 1;
  transition: opacity 0.18s ease;
}

.gotwoo-button iframe {
  display: block;
  border: 0;
  border-radius: 999px;
  clip-path: inset(0 round 999px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.gotwoo-message {
  display: none;
  margin: 8px auto 0;
  max-width: 400px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.gotwoo-message:not(:empty) {
  display: block;
}

.gotwoo-message--info {
  background: #e8f1ff;
  color: #194fb8;
}

.gotwoo-message--warning {
  background: #fff4d8;
  color: #7a5400;
}

.gotwoo-message--error {
  background: #fdecec;
  color: #b42318;
}

.gotwoo-checkout-wrap {
  width: 100%;
  max-width: 540px;
  margin: 0 auto 24px;
}

#gotwoo-one-tap-anchor {
  position: fixed;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

@media (max-width: 480px) {
  .gotwoo-wrap {
    margin: 14px 0 8px;
  }

  .gotwoo-placeholder {
    padding: 0 14px;
  }

  .gotwoo-placeholder__text {
    font-size: 15px;
  }
}
