/* ============================================================
   OlstaCORP | WooCommerce Social Login
   Single canonical design for login/register and Account Details.
   Loaded independently AFTER theme and saved account CSS.
   ============================================================ */

/* Reset provider defaults and render clean cards in both contexts. */
body.woocommerce-account .woocommerce .wc-social-login a.button-social-login,
body.woocommerce-account .woocommerce .wc-social-login a.button-social-login:link,
body.woocommerce-account .woocommerce .wc-social-login a.button-social-login:visited {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 116px !important;
    margin: 0 !important;
    padding: 16px 10px !important;
    background: #ffffff !important;
    background-image: none !important;
    color: #172d42 !important;
    border: 1px solid #dce4eb !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 9px rgba(23,45,66,.06) !important;
    font: 700 12px/1.45 inherit !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: normal !important;
    opacity: 1 !important;
}
body.woocommerce-account .woocommerce .wc-social-login a.button-social-login:hover {
    border-color: var(--olstacorp-accent, var(--olsta-account-accent, #fdb819)) !important;
    box-shadow: 0 5px 16px rgba(23,45,66,.11) !important;
    transform: translateY(-2px);
}
body.woocommerce-account .woocommerce .wc-social-login a.button-social-login:focus-visible {
    outline: 3px solid var(--olstacorp-accent, var(--olsta-account-accent, #fdb819)) !important;
    outline-offset: 2px;
}
/* Override the icon-font and coloured squares supplied by WooCommerce Social Login. */
body.woocommerce-account .woocommerce .wc-social-login a.button-social-login > span.si {
    display: block !important;
    position: static !important;
    float: none !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
}
body.woocommerce-account .woocommerce .wc-social-login a.button-social-login > span.si::before,
body.woocommerce-account .woocommerce .wc-social-login a.button-social-login > span.si::after {
    display: none !important;
    content: none !important;
}
body.woocommerce-account .woocommerce .wc-social-login a.button-social-login > span.si-facebook {
    background-image: url("https://cdn.simpleicons.org/facebook/1877F2") !important;
}
body.woocommerce-account .woocommerce .wc-social-login a.button-social-login > span.si-google {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.25 5.48-4.76 7.18l7.73 6C44.42 38.03 46.98 31.88 46.98 24.55z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59A14.4 14.4 0 0 1 9.75 24c0-1.59.27-3.13.76-4.59l-7.98-6.2A23.9 23.9 0 0 0 0 24c0 3.87.93 7.51 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.91-5.8l-7.73-6c-2.15 1.45-4.92 2.3-8.18 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.97 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") !important;
}
body.woocommerce-account .woocommerce .wc-social-login a.button-social-login > span.si-paypal {
    background-image: url("https://commons.wikimedia.org/wiki/Special:Redirect/file/PayPal_2024_%28Icon%29.svg") !important;
}

/* Account Details has room for three equal provider cards. */
body.woocommerce-account .woocommerce .wc-social-login-link-account {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
}
/* The login column is narrower: avoid squashing logos and labels. */
body.woocommerce-account .woocommerce form.woocommerce-form-login .wc-social-login {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 16px !important;
}
body.woocommerce-account .woocommerce form.woocommerce-form-login .wc-social-login > p {
    margin: 0 0 4px !important;
}
body.woocommerce-account .woocommerce form.woocommerce-form-login .wc-social-login a.button-social-login {
    flex-direction: row !important;
    justify-content: flex-start !important;
    min-height: 68px !important;
    gap: 16px !important;
    padding: 12px 16px !important;
    text-align: left !important;
    font-size: 13px !important;
}
body.woocommerce-account .woocommerce form.woocommerce-form-login .wc-social-login a.button-social-login > span.si {
    flex-basis: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
}
@media (max-width: 600px) {
    body.woocommerce-account .woocommerce .wc-social-login-link-account {
        grid-template-columns: 1fr !important;
    }
    body.woocommerce-account .woocommerce .wc-social-login-link-account a.button-social-login {
        flex-direction: row !important;
        justify-content: flex-start !important;
        min-height: 68px !important;
        text-align: left !important;
    }
}
