/**
 * Allied theme fixes (partner carousel dots, footer Facebook embed).
 * Loaded after allied-bundle.css — bundle references missing HTTrack font paths for slick dots.
 */

/* Hero carousel — keep "Buy Now" on one line below ~370px (55% width + large padding wraps text) */
@media screen and (max-width: 369px) {
    .nea_productslick .product_section .prd_box .cart_btn a,
    .cart_btn a {
        white-space: nowrap;
        width: auto;
        max-width: 100%;
        display: inline-block;
        padding: 10px 18px !important;
        font-size: 12px;
        line-height: 1.2;
        box-sizing: border-box;
    }

    .nea_productslick .product_section .prd_box .cart_btn a:hover,
    .cart_btn a:hover {
        padding: 10px 18px !important;
    }
}

/* Partner carousel — circular dots like alliednea.com (replaces missing slick-dots icon font) */
.part_sld_mr .slick-dots li {
    margin: 0 6px;
}

.part_sld_mr .slick-dots li button {
    width: auto;
    height: auto;
    padding: 0;
}

.part_sld_mr .slick-dots li button::before {
    display: none !important;
}

.part_sld_mr .slick-dots .sd-dot-js {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 2px solid #a62322;
    border-radius: 50%;
    background: transparent;
    box-sizing: border-box;
    font-size: 0;
    line-height: 0;
    vertical-align: middle;
}

.part_sld_mr .slick-dots .sd-dot-js .path1,
.part_sld_mr .slick-dots .sd-dot-js .path2 {
    display: none !important;
}

.part_sld_mr .slick-dots li.slick-active .sd-dot-js::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a62322;
}

.partner_area {
    padding-bottom: 5rem;
}

/* Facebook Page plugin in footer (SDK injects .fb-page.fb_iframe_widget with inline 300px heights) */
.yoderbilt_greenhouse_footer_fb .facebook_area .fb-page,
.yoderbilt_greenhouse_footer_fb .facebook_area .fb-page.fb_iframe_widget,
.yoderbilt_greenhouse_footer_fb .facebook_area .fb_iframe_widget,
.yoderbilt_greenhouse_footer_fb .facebook_area .fb-page span,
.yoderbilt_greenhouse_footer_fb .facebook_area .fb_iframe_widget span {
    max-width: 100% !important;
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
}

.yoderbilt_greenhouse_footer_fb .facebook_area .fb-page iframe,
.yoderbilt_greenhouse_footer_fb .facebook_area .fb_iframe_widget iframe {
    max-width: 100% !important;
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
}

.yoderbilt_greenhouse_footer_fb .allied-follow-embed {
    min-height: 230px;
    max-height: 230px;
}

/* reCAPTCHA v3 — invisible; disclosure text only (no v2 widget, no inline badge) */
.contact_form .captcha_area,
.contact_form .g-recaptcha {
    display: none !important;
}

/* Footer useful links — current page */
footer#yoderbilt_greenhouse_footer .foot_useful_links li.active a,
footer#yoderbilt_greenhouse_footer .foot_useful_links li.active a:before {
    color: #a62322 !important;
}

/* Go-to-top above reCAPTCHA v3 floating badge (both bottom-right) */
body:has(.grecaptcha-badge) .scrolltop {
    bottom: 88px !important;
    z-index: 2147483646 !important;
}

body:has(.grecaptcha-badge) .scrolltop .scroll {
    z-index: 2147483647 !important;
}

/* Contact sidebar hours — tight lines like alliednea.com (bundle uses table-cell on p) */
.contact_page_section .cnt_hrs {
    display: block;
    margin-bottom: 20px;
}

.contact_page_section .cnt_hrs > p {
    display: block !important;
    margin: 0 0 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    width: 100%;
}

.contact_page_section .cnt_hrs .diff_hrs {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    line-height: 1.35;
    width: 100%;
}

/* Message Us form — tighter vertical spacing between rows (columns unchanged) */
.contact_page_section .contact_form form.cms-allied-form .form-group {
    margin-bottom: 0.8rem;
}

.contact_page_section .contact_form form.cms-allied-form .row.rsn_clbk .form-group,
.contact_page_section .contact_form form.cms-allied-form .form-group.message {
    margin-bottom: 0.65rem;
}

.contact_page_section .contact_form form.cms-allied-form .invalid-feedback {
    margin-top: 0.15rem;
    margin-bottom: 0;
}

.contact_page_section .contact_form form.cms-allied-form .cnt_submit {
    margin: 0;
}

/* Form success / error messages (contact & CMS forms on Allied pages) */
.contact_page_section .form-toast-stack,
.contact_form .form-toast-stack {
    margin-bottom: 1rem;
}

.contact_page_section .form-success,
.contact_form .form-success {
    background: #edf8f4;
    border: 1px solid #3d9b6f;
    border-left: 4px solid #3d9b6f;
    color: #1f5c42;
    border-radius: 4px;
    padding: 0.85rem 1rem;
}

.contact_page_section .form-errors,
.contact_form .form-errors {
    background: #fff1f1;
    border: 1px solid #d9534f;
    border-left: 4px solid #a62322;
    color: #8b3131;
    border-radius: 4px;
    padding: 0.85rem 1rem;
}

.contact_page_section .form-toast-title,
.contact_form .form-toast-title {
    margin: 0 0 0.25rem;
    font-weight: 700;
    font-size: 1rem;
}

.contact_page_section .form-toast-message,
.contact_form .form-toast-message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.contact_page_section .form-toast-body,
.contact_form .form-toast-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.contact_page_section .form-toast-close,
.contact_form .form-toast-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
