.ods-provider-controls {
  width: 100%;
  max-width: 420px;
  margin-right: auto;
  margin-bottom: 1.35rem;
  margin-left: auto;
}

.ods-provider-controls__error,
.ods-provider-controls__notice {
  max-width: 420px;
  margin: 0 auto 0.9rem;
}

.ods-provider-controls__notice {
  color: var(--ods-color-muted, #5f6873);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.ods-provider-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.ods-provider-controls .ods-provider-button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0;
  overflow: hidden;
  color: #1f1f1f;
  background: #ffffff;
  border: 1px solid #747775;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.ods-provider-controls .ods-provider-button:hover {
  color: #1f1f1f;
  background: #f5f7fa;
  border-color: #5f6368;
  text-decoration: none;
}

.ods-provider-controls .ods-provider-button:focus-visible {
  outline: 3px solid rgba(24, 44, 120, 0.42);
  outline-offset: 2px;
}

.ods-provider-controls .ods-provider-button:active {
  color: #1f1f1f;
  background: #e9edf3;
  border-color: #4c5155;
}

.ods-provider-controls .ods-provider-button[aria-disabled='true'] {
  color: #73777f;
  background: #f2f3f5;
  border-color: #c5c7ca;
  cursor: not-allowed;
  opacity: 0.68;
  pointer-events: none;
}

.ods-provider-button__icon {
  display: flex;
  grid-column: 1;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  min-width: 52px;
}

.ods-provider-button__icon img {
  display: block;
  flex: none;
}

.ods-provider-button[data-provider='google'] .ods-provider-button__icon img {
  width: 28px;
  height: 28px;
}

.ods-provider-button[data-provider='apple'] .ods-provider-button__icon img {
  width: auto;
  height: 32px;
}

.ods-provider-button__label {
  grid-column: 2;
  min-width: 0;
  padding: 0.65rem 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.ods-provider-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 1.15rem auto 0;
  color: var(--ods-color-muted, #5f6873);
  font-size: 0.78rem;
  font-weight: 650;
  text-transform: uppercase;
}

.ods-provider-divider::before,
.ods-provider-divider::after {
  height: 1px;
  flex: 1;
  content: '';
  background: #dfe3e8;
}

@media (prefers-reduced-motion: reduce) {
  .ods-provider-controls .ods-provider-button {
    transition: none;
  }
}
