/* Remowe v2.1.1: stable social authorization surfaces for OCTemplates Deals */
.remowe-deals-auth-surface {
  width: 100%;
  margin: 0 0 20px;
  box-sizing: border-box;
}
.remowe-deals-auth-surface *,
.remowe-deals-auth-surface *::before,
.remowe-deals-auth-surface *::after { box-sizing: border-box; }

.remowe-deals-auth-surface__card {
  width: 100%;
  padding: 16px;
  border: 1px solid #dfe8f7;
  border-radius: 16px;
  background: linear-gradient(180deg,#f8fbff 0%,#f4f8ff 100%);
  box-shadow: 0 8px 24px rgba(15,52,104,.045);
}
.remowe-deals-auth-surface__separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #93a0b3;
  font-size: 12px;
  line-height: 1;
}
.remowe-deals-auth-surface__separator::before,
.remowe-deals-auth-surface__separator::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: #dfe8f7;
}
.remowe-deals-auth-surface__head { margin: 0 0 12px; }
.remowe-deals-auth-surface__head strong {
  display: block;
  margin: 0 0 3px;
  color: #082252;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}
.remowe-deals-auth-surface__head span {
  display: block;
  color: #71819b;
  font-size: 12px;
  line-height: 1.45;
}
.remowe-deals-auth-surface__providers {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  align-items: stretch;
}
.remowe-deals-auth-provider {
  min-width: 0;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
.remowe-deals-auth-provider:last-child:nth-child(odd) { grid-column: 1 / -1; }
.remowe-deals-auth-provider > button,
.remowe-deals-auth-provider .ocrf-auth-hub-provider-button,
.remowe-deals-auth-provider .remowe-social-provider-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transform: none !important;
}
.remowe-deals-auth-provider > button:hover,
.remowe-deals-auth-provider .ocrf-auth-hub-provider-button:hover,
.remowe-deals-auth-provider .remowe-social-provider-button:hover {
  transform: none !important;
}

/* Native provider roots stay in the DOM so their original JS works, but never render. */
.remowe-deals-auth-surface__sources {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}
.remowe-deals-auth-source { display: block !important; }

/* Hide provider blocks created by the providers' generic view events. We use our own context-specific proxies. */
.remowe-deals-auth-legacy-hidden { display: none !important; }

.remowe-deals-auth-surface.is-empty { display: none !important; }

/* Registration */
#account-register .remowe-deals-auth-surface--register {
  max-width: 100%;
  margin: 0 0 20px;
}

/* Login page */
#account-login .remowe-deals-auth-surface--login {
  margin: 18px 0 0;
}

/* Deals login popup */
#loginModal .remowe-deals-auth-surface--popup {
  margin: 18px 0 0;
}
#loginModal .remowe-deals-auth-surface--popup .remowe-deals-auth-surface__card {
  padding: 14px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#loginModal .remowe-deals-auth-surface--popup .remowe-deals-auth-surface__head {
  margin-bottom: 10px;
  text-align: center;
}
#loginModal .remowe-deals-auth-surface--popup .remowe-deals-auth-surface__providers {
  grid-template-columns: 1fr;
  gap: 8px;
}
#loginModal .remowe-deals-auth-surface--popup .remowe-deals-auth-provider:last-child:nth-child(odd) {
  grid-column: auto;
}

@media (max-width: 767px) {
  .remowe-deals-auth-surface { margin-bottom: 16px; }
  .remowe-deals-auth-surface__card {
    padding: 14px;
    border-radius: 15px;
  }
  .remowe-deals-auth-surface__providers {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .remowe-deals-auth-provider:last-child:nth-child(odd) { grid-column: auto; }
  .remowe-deals-auth-surface__head strong { font-size: 15px; }
  .remowe-deals-auth-surface__head span { font-size: 11px; }
  #account-register .remowe-deals-auth-surface--register,
  #account-login .remowe-deals-auth-surface--login { width: 100%; }
}


/* Yandex button visual parity */
.remowe-deals-auth-provider--yandex > button,
.remowe-deals-auth-provider--yandex .ocrf-auth-hub-provider-button,
.remowe-deals-auth-provider--yandex .remowe-social-provider-button {
  background: #111111 !important;
  color: #ffffff !important;
  border: 1px solid #111111 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.remowe-deals-auth-provider--yandex > button:hover,
.remowe-deals-auth-provider--yandex .ocrf-auth-hub-provider-button:hover,
.remowe-deals-auth-provider--yandex .remowe-social-provider-button:hover,
.remowe-deals-auth-provider--yandex > button:focus,
.remowe-deals-auth-provider--yandex .ocrf-auth-hub-provider-button:focus,
.remowe-deals-auth-provider--yandex .remowe-social-provider-button:focus {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
}
.remowe-deals-auth-provider--yandex img,
.remowe-deals-auth-provider--yandex svg {
  flex: 0 0 auto;
}
