/* AVDB Social Login buttons
 *
 * SPECIFICITY NOTE - do not "simplify" the .avdbsl-block prefixes below.
 * Themes routinely ship a broad link rule (".content a", ".page-content a" and
 * friends, 0,1,1) and some modules inject one into the page BODY, after every
 * linked stylesheet. A bare ".avdbsl-btn" (0,1,0) loses its `color` to those -
 * which is how a black-on-black Apple button happens. Every rule that sets a
 * text colour is therefore scoped as ".avdbsl-block .avdbsl-btn..." (0,2,0) so
 * it outranks them without resorting to !important.
 */
.avdbsl-block {
    max-width: 420px;
    margin: 1.5rem auto;
}

/* Two flex rules rather than a centred label with a matching background: the
   background trick only disappears the line when the page behind it really is
   white, and this block is dropped into whatever the theme puts there. */
.avdbsl-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: #8a8a8a;
    font-size: 0.85rem;
    text-transform: uppercase;
}
.avdbsl-divider:before,
.avdbsl-divider:after,
.avdbsl-heading:before,
.avdbsl-heading:after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e5e5e5;
}
.avdbsl-block .avdbsl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 1rem;
    margin-bottom: 0.6rem;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background: #fff;
    color: #3c4043;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: box-shadow 0.15s ease, background 0.15s ease;
}
.avdbsl-block .avdbsl-btn:hover,
.avdbsl-block .avdbsl-btn:focus {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #3c4043;
}
.avdbsl-block .avdbsl-btn:focus-visible {
    outline: 2px solid #1877F2;
    outline-offset: 2px;
}
.avdbsl-block .avdbsl-btn .avdbsl-ic {
    display: inline-flex;
    line-height: 0;
}
.avdbsl-block .avdbsl-btn-facebook {
    border-color: #1877F2;
    background: #1877F2;
    color: #fff;
}
.avdbsl-block .avdbsl-btn-facebook:hover,
.avdbsl-block .avdbsl-btn-facebook:focus {
    color: #fff;
    background: #166fe0;
}
.avdbsl-block .avdbsl-btn-facebook .avdbsl-ic svg path {
    fill: #fff;
}

/* Apple's brand guidelines: solid black, white mark, white label. The mark is
   drawn with currentColor so it always tracks the label colour - which is
   exactly why the colour rule above must not be allowed to lose. */
.avdbsl-block .avdbsl-btn-apple {
    border-color: #000;
    background: #000;
    color: #fff;
}
.avdbsl-block .avdbsl-btn-apple:hover,
.avdbsl-block .avdbsl-btn-apple:focus {
    color: #fff;
    background: #1a1a1a;
}
.avdbsl-block .avdbsl-btn-apple:focus-visible {
    outline-color: #000;
}

#checkout-personal-information-step .avdbsl-block {
    max-width: none;
    margin: 16px 0 24px;
}
#checkout-personal-information-step .avdbsl-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 16px;
    padding: 0 24px;
    color: #232323;
    font-size: 14px;
    font-weight: 700;
}
#checkout-personal-information-step .avdbsl-block .avdbsl-btn {
    min-height: 45px;
    margin-bottom: 0;
}
#checkout-personal-information-step .avdbsl-block .avdbsl-divider {
    margin: 16px 0 0;
}
@media (max-width: 767px) {
    #checkout-personal-information-step .avdbsl-block .avdbsl-btn,
    #checkout-personal-information-step .avdbsl-block .avdbsl-divider {
        width: calc(100% - 48px);
        max-width: 299px;
        margin-left: auto;
        margin-right: auto;
    }
    #checkout-personal-information-step .avdbsl-block .avdbsl-btn {
        min-height: 35px;
        padding-top: 0;
        padding-bottom: 0;
    }
}
@media (min-width: 768px) {
    #checkout-personal-information-step .avdbsl-block {
        margin-top: 24px;
    }
    #checkout-personal-information-step .avdbsl-heading {
        margin-bottom: 24px;
    }
    #checkout-personal-information-step .avdbsl-block .avdbsl-btn,
    #checkout-personal-information-step .avdbsl-block .avdbsl-divider {
        width: 50%;
        margin-left: 25%;
    }
}

.avdbsl-confirm .avdbsl-card {
    padding: 15px 30px;
    box-shadow: 0 2px 11px rgba(0, 0, 0, 0.1);
}
.avdbsl-confirm .avdbsl-intro {
    margin: 8px 0 20px;
}
.avdbsl-confirm .custom-checkbox {
    display: flex;
    align-items: flex-start;
}
.avdbsl-confirm .custom-checkbox label {
    margin: 0;
    font-size: 14px;
}
.avdbsl-confirm .form-footer {
    margin-top: 20px;
}
.avdbsl-confirm .avdbsl-cancel {
    margin-top: 14px;
}
