.ap-google-auth[hidden],
.ap-google-auth [hidden],
.ap-google-dialog [hidden] {
  display: none !important;
}

.ap-google-auth {
  margin: 24px 0;
  color: #1f2937;
}

.ap-google-button {
  min-height: 44px;
  display: flex;
  justify-content: center;
  max-width: 100%;
}

.ap-google-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  color: #52606d;
  font-size: 13px;
}

.ap-google-separator::before,
.ap-google-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #d9e2ec;
}

.ap-google-status {
  margin: 12px 0 0;
  color: #52606d;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ap-google-status.is-error {
  color: #a61b1b;
}

.ap-google-flow {
  margin-top: 18px;
  padding: 20px;
  background: #f3f8fc;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
}

.ap-google-flow h3 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 20px;
  line-height: 1.3;
}

.ap-google-flow > p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ap-google-form {
  display: grid;
  gap: 16px;
}

.ap-google-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.ap-google-field input,
.ap-google-field select {
  box-sizing: border-box;
  min-height: 44px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #a7bacb;
  border-radius: 7px;
  background: #fff;
  color: #1f2937;
  font: 400 16px Roboto, sans-serif;
}

.ap-google-policy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
}

.ap-google-policy input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.ap-google-policy a {
  color: #005c9f;
  text-decoration: underline;
}

.ap-google-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.ap-google-action {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #0065b3;
  border-radius: 24px;
  background: #0065b3;
  color: #fff;
  font: 600 14px Roboto, sans-serif;
  cursor: pointer;
}

.ap-google-action.is-secondary {
  color: #005c9f;
  background: #fff;
}

.ap-google-action:hover:not(:disabled) {
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}

.ap-google-action:focus-visible,
.ap-google-field input:focus-visible,
.ap-google-field select:focus-visible,
.ap-google-policy input:focus-visible {
  outline: 3px solid #fedb00;
  outline-offset: 3px;
}

.ap-google-action:disabled {
  opacity: .6;
  cursor: wait;
}

.ap-google-dialog {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .55);
  font-family: Roboto, sans-serif;
}

.ap-google-dialog-panel {
  box-sizing: border-box;
  width: min(440px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 28px;
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  background: #fff;
  color: #1f2937;
}

.ap-google-dialog-panel h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.ap-google-dialog-panel > p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
}

.ap-google-dialog .ap-google-actions {
  justify-content: flex-end;
  margin-top: 22px;
}

@media (max-width: 420px) {
  .ap-google-flow,
  .ap-google-dialog-panel {
    padding: 18px;
  }
}
