/*
Theme Name: Buzz To The Rescues Child
Theme URI: http://buzzgroupinc.com
Description: The Buzz Pet Rescue Child Theme is built to be completely customizable for Pet Rescues. It injects the Buzz Plugins using custom shortcodes designed to specifically support Pet Rescues on the Buzz platform.
Version: 1.0.1
Author: Buzz Group, Inc.
Author URI: http://www.buzzgroupinc.com
Template: buzz-rescues
Text Domain: buzz
*/

html, body, div, p, th, td, table, a{font-size:14px;line-height:24px;}a img.alignright{ float:right;margin:0.5em 0 1.25em 1.25em;}a img.alignnone{ margin:0.5em 1.25em 1.25em 0;}a img.alignleft{ float:left;margin:0.5em 1.25em 1.25em 0;}a img.aligncenter{ display:block;margin:inherit auto;}.wp-caption{ background:rgba(255,255,255,0.1);border:1px solid rgba(0,0,0,0.1);max-width:100%;padding:1em;text-align:center;}.wp-caption.alignnone{ margin:0.5em 1.25em 1.25em 0;}.wp-caption.alignleft{ margin:0.5em 1.25em 1.25em 0;}.wp-caption.alignright{ margin:0.5em 0 1.25em 1.25em;}.wp-caption img{ border:0;height:auto;margin:0;max-width:100%;padding:0;}.wp-caption p.wp-caption-text{ font-size:0.8em;line-height:1.25em;margin:0;padding:0 0.3em 0.5em;}.screen-reader-text{ clip:rect(1px, 1px, 1px, 1px);position:absolute;height:1px;width:1px;overflow:hidden;}.screen-reader-text:focus{ background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0, 0, 0, 0.6);clip:auto !important;color:#21759b;display:block;font-size:14px;font-size:0.875rem;font-weight:bold;height:auto;left:5px;line-height:normal;padding:1em 1.75em;text-decoration:none;top:0.5em;z-index:100000;}.alignright{ float:right;margin:0 0 1.65em 1.65em;}.alignleft{ float:left;margin:1.65em 1.65em 1.65em 0;}.aligncenter{ display:block;text-align:center;margin:0 auto 1em auto;}.size-auto, .size-full, .size-large, .size-medium, .size-thumbnail{ max-width:100%;height:auto;}body.logged-in, .logged-in #nav-expander, .logged-in nav.nav, .logged-in header#header{ top:32px;}body.Bzl-coachella .Bzl-Hd-topbar{padding:0.65em 0;}body.single-dog .give-form .give-donation-amount.form-row-wide{float:none!important;}body.Bzl-denver .Bzl-dog-post .rel .spl_needs_emotional{margin-right:1.75em!important;width:96%!important;}body.Bzl-denver .Bzl-dog-post .rel #dog_sponsor_box{margin-right:1.75em!important;}#Bzl-dog-muskogee-single .Bzl-dog-single-gallery.Bzl-popup-gallery{position:relative;}#Bzl-dog-muskogee-single .Bzl-dog-single-gallery.Bzl-popup-gallery{display:block;box-shadow:-500px 0 0 0 #010054;}#Bzl-dog-miami-single .Bzl-dog-post .Bzl-dog-single-info{background:url('assets/img/detail-logo-bg.png') left bottom no-repeat;}#Bzl-dog-miami-single .Bzl-dog-post .Bzl-dog-single-gallery.Bzl-popup-gallery{background:url('assets/img/miami-stamp.png') left bottom no-repeat;}@media screen and (min-width:320px) and (max-width:767px) and (orientation:portrait){#Bzl-dog-miami-single .Bzl-dog-post .Bzl-dog-single-gallery.Bzl-popup-gallery{background:none;}}ul#wp-admin-bar-root-default li#wp-admin-bar-enable-jquery-migrate-helper{display:none!important;}#Bzl-mega-footer .col-12 .mf-sidebar-header{margin-top:1.65em;}#Bzl-mega-footer .col-12 .mf-sidebar-header{margin-top:3em;}#Bzl-mega-footer .col-12 .text-center h5.text-center,#Bzl-mega-footer .col-12 .text-center a.btn{display:none;}#Bzl-mega-footer .give-tributes-dedicate-donation{text-align:center !important;padding:1.06em 1.65em !important;}#lostNfound .fl-tabs-labels{text-align:center !important;}#lostNfound .fl-tabs-labels .fl-tabs-label{float:none !important;display:inline-block !important;}#lostNfound .buzz-dogs-shortcode .Bzl-dog-post .Bzl-dog-meta .row>div{min-height:35px !important;}.page #lostNfound .buzz-dogs-shortcode.pTB6{padding:0 !important;}

#Bzl-dog-montreal-single.Bzl-dog-single.BGprime .Bzl-dog-post .Bzl-dog-single-info .spl_needs_head small, #Bzl-dog-montreal-single.Bzl-dog-single.BGprime .Bzl-dog-post .give-donation-amount.form-row-wide span.give-currency-symbol, #Bzl-dog-montreal-single.Bzl-dog-single.BGprime .Bzl-dog-post .give-donation-amount.form-row-wide span.give-donation-total-label, #Bzl-dog-montreal-single.Bzl-dog-single.BGprime .Bzl-dog-post .give-donation-amount.form-row-wide span.give-final-total-amount, #Bzl-dog-montreal-single.Bzl-dog-single.BGprime .Bzl-dog-post .give-donation-amount.form-row-wide input#give-amount, #Bzl-dog-montreal-single.Bzl-dog-single.BGprime .Bzl-dog-post form.give-form .give-input, #Bzl-dog-montreal-single.Bzl-dog-single.BGprime .hr-separator > span, #give-final-total-wrap > span {
    color: #373f44!important;
}

/* Стили для пагинации */
.pagenav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem 0;
    clear: both;
}

.pagenav .alignleft {
    float: none;
    margin: 0;
}

.pagenav .alignright {
    float: none;
    margin: 0;
}

.pagenav a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #fff !important;
    text-decoration: none;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
}

.pagenav a:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Для случаев когда нет одной из кнопок */
.pagenav .alignleft:empty {
    display: none;
}

.pagenav .alignright:empty {
    display: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .pagenav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pagenav a {
        display: block;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}

/* Фикс для страницы редактирования собак на мобильных устройствах */
@media only screen and (max-width: 767px) {
    /* Блокировать flex контейнеры */
    body.post-type-dog .flex-wrap-3,
    body.post-type-dog .flex-wrap-2,
    body.post-type-dog .flex-wrap-64,
    body.post-type-dog .profile-wrap .flex-wrap-3L {
        display: block !important;
    }
    
    /* Сделать flex-box блочными на мобильных */
    body.post-type-dog .flex-wrap-3 > .flex-box,
    body.post-type-dog .flex-wrap-2 > .flex-box,
    body.post-type-dog .flex-wrap-64 > .flex-box,
    body.post-type-dog .profile-wrap .flex-wrap-3L > .flex-box {
        display: block !important;
        width: 100% !important;
        flex: none !important;
        margin-left: 0 !important;
        margin-bottom: 1em;
    }
    
    /* Убрать выравнивание по правому краю на мобильных */
    body.post-type-dog .flex-wrap-3 > .flex-box.text-right,
    body.post-type-dog .flex-wrap-2 > .flex-box.text-right {
        text-align: left !important;
    }
    
    /* Убрать margin-left у dogCurTag на мобильных */
    body.post-type-dog .dogCurTag {
        margin-left: 0 !important;
        margin-top: 0.5em;
        margin-bottom: 0.5em;
        display: block !important;
    }
    
    /* Исправить стрелку dogCurTag на мобильных */
    body.post-type-dog .dogCurTag::before {
        display: none !important;
    }
    
    body.post-type-dog .dogCurTag::after {
        display: none !important;
    }
    
    /* Убрать специфичные границы */
    body.post-type-dog .dogCurTag {
        border-style: solid !important;
        border-radius: 4px !important;
    }
}

/* Gravity Forms contract page compatibility (legacy markup) */
#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper .gform_body li.gfield,
#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper .gform_body .gfield {
    width: 100% !important;
    float: none !important;
    display: block !important;
    max-width: 98% !important;
}

#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper .gfield_checkbox li label,
#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper .gfield_checkbox .gchoice label,
#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper .gfield_radio li label,
#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper .gfield_radio .gchoice label {
    padding-left: 3.25em;
    max-width: 100%;
}

#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper .gf_stylespro .gfsp_ios input[type="checkbox"]:not(old) + label:before,
#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper .gf_stylespro .gfsp_ios input[type="checkbox"]:not(old) + label::before,
#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper .gf_stylespro .gfsp_ios input[type="radio"]:not(old) + label:before,
#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper .gf_stylespro .gfsp_ios input[type="radio"]:not(old) + label::before {
    margin-left: -3.25em;
}

/* Keep contract signatures responsive without upscaling the native canvas size. */
#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper .gfield_signature_container,
#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper [id$="_toolbar"] {
    width: min(100%, 300px) !important;
    max-width: 100% !important;
}

#Bzl-afv-forms.Bzl-contract-forms .gform_wrapper.gform_legacy_markup_wrapper .gfield_signature_container canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}

/* Keep single dog breadcrumb content below the fixed desktop header. */
@media only screen and (min-width: 768px) {
    body.single-dog section.Bzl-breadcrumb {
        padding-top: 5.5rem !important;
    }

    body.single-dog.admin-bar section.Bzl-breadcrumb {
        padding-top: 7.5rem !important;
    }
}

/* Gravity Forms Styles Pro: keep native checkbox/radio inputs hidden (GF updates may re-enable them via legacy/theme CSS). */
.gform_wrapper .gf_stylespro input[type="checkbox"]:not(old),
.gform_wrapper .gf_stylespro input[type="radio"]:not(old),
.gform_wrapper .gf_stylespro input.gfield-choice-input[type="checkbox"],
.gform_wrapper .gf_stylespro input.gfield-choice-input[type="radio"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Styles Pro default style intentionally uses native inputs; keep them visible. */
.gform_wrapper .gf_stylespro .gfsp_default input[type="checkbox"],
.gform_wrapper .gf_stylespro .gfsp_default input[type="radio"],
.gform_wrapper .gf_stylespro .gfsp_default input.gfield-choice-input[type="checkbox"],
.gform_wrapper .gf_stylespro .gfsp_default input.gfield-choice-input[type="radio"] {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    position: static !important;
    left: auto !important;
}

/* Styles Pro + Gravity Forms Theme Framework: ensure inline choice labels always reserve space for the custom control.
   GF markup/classes can change after editing/saving a form (e.g., gform-field-label--type-inline), which may remove the
   padding that Styles Pro's ::before/::after UI relies on and cause overlap. */
.gform_wrapper .gf_stylespro:not(.gfsp_default) input[type="checkbox"]:not(old) + label.gform-field-label--type-inline,
.gform_wrapper .gf_stylespro:not(.gfsp_default) input[type="radio"]:not(old) + label.gform-field-label--type-inline,
.gform_wrapper .gf_stylespro:not(.gfsp_default) input.gfield-choice-input[type="checkbox"] + label.gform-field-label--type-inline,
.gform_wrapper .gf_stylespro:not(.gfsp_default) input.gfield-choice-input[type="radio"] + label.gform-field-label--type-inline {
    display: block;
    position: relative;
    padding-left: 3.25em !important;
    box-sizing: border-box;
}

/* Gravity Forms theme framework sets a max-width on choice labels; undo it for Styles Pro toggle styles to prevent clipped/misaligned labels. */
.gform_wrapper.gravity-theme .gf_stylespro .gfsp_ios .gfield-choice-input + label,
.gform_wrapper.gravity-theme .gf_stylespro .gfsp_toggle .gfield-choice-input + label,
.gform_wrapper.gravity-theme .gf_stylespro .gfsp_draw .gfield-choice-input + label,
.gform_wrapper.gravity-theme .gf_stylespro .gfsp_dot .gfield-choice-input + label,
.gform_wrapper.gravity-theme .gf_stylespro .gfsp_flip .gfield-choice-input + label {
    max-width: none !important;
}

/* GFStylesPro iOS radios: keep the visual control close to the label text.
   Some theme/layout rules center the label text while the iOS pseudo-control stays at the far left.
   This switches to inline-flex + gap and disables float-based pseudo layout (radio-only). */
.gform_wrapper.gravity-theme form.gf_stylespro .gfsp_ios input[type="radio"]:not(old) + label,
.gform_wrapper.gravity-theme form.gf_stylespro .gfsp_ios input.gfield-choice-input[type="radio"] + label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.6em !important;
    width: fit-content !important;
    max-width: none !important;
    text-align: left !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
}

.gform_wrapper.gravity-theme form.gf_stylespro .gfsp_ios input[type="radio"]:not(old) + label:before,
.gform_wrapper.gravity-theme form.gf_stylespro .gfsp_ios input[type="radio"]:not(old) + label::before,
.gform_wrapper.gravity-theme form.gf_stylespro .gfsp_ios input.gfield-choice-input[type="radio"] + label:before,
.gform_wrapper.gravity-theme form.gf_stylespro .gfsp_ios input.gfield-choice-input[type="radio"] + label::before {
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}



/* GF Multi Column plugin: on some setups flex layout breaks GFStylesPro iOS radios on desktop.
   This hotfix disables the flex layout for all GFStylesPro forms (desktop breakpoint) to keep
   radio controls aligned consistently. */
@media (min-width: 641px) {
    .gform_wrapper.gravity-theme form.gf_stylespro .gfmc-container {
        display: block !important;
    }

    .gform_wrapper.gravity-theme form.gf_stylespro .gfmc-container > .gfmc-field {
        display: block !important;
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Gravity Forms honeypot field: keep it hidden even if theme/plugin CSS changes after form edits.
   This field often shows the message "This field is for validation purposes and should be left unchanged." */
body .gform_wrapper .gform_validation_container,
body .gform_wrapper .gform_validation_container * ,
body .gform_wrapper .gfield.gform_validation_container {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Gravity Forms multipage footer: keep Next/Submit on the right (and Previous on the left when present).
   Some theme/plugin CSS floats the buttons, which ignores text-align rules. */
body .gform_wrapper.gravity-theme .gform_page_footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    text-align: initial !important;
}

body .gform_wrapper.gravity-theme .gform_page_footer .gform_previous_button,
body .gform_wrapper.gravity-theme .gform_page_footer .gform_next_button,
body .gform_wrapper.gravity-theme .gform_page_footer .gform_button,
body .gform_wrapper.gravity-theme .gform_page_footer input[type="submit"] {
    float: none !important;
}

body .gform_wrapper.gravity-theme .gform_page_footer .gform_previous_button {
    margin-right: auto !important;
}

@media (max-width: 640px) {
    body .gform_wrapper.gravity-theme .gform_page_footer {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    body .gform_wrapper.gravity-theme .gform_page_footer .gform_previous_button,
    body .gform_wrapper.gravity-theme .gform_page_footer .gform_next_button,
    body .gform_wrapper.gravity-theme .gform_page_footer .gform_button,
    body .gform_wrapper.gravity-theme .gform_page_footer input[type="submit"] {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 767px) {
    body .gpnf-dialog.ui-dialog {
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gform_fields li.gfield,
    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gfield_checkbox li,
    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gfield_radio li,
    body .gpnf-dialog.ui-dialog .gform_wrapper.gform_validation_error .gform_body ul li.gfield.gfield_error:not(.gf_left_half):not(.gf_right_half),
    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gform_fields li.gfmc-column {
        display: inline-block !important;
        width: 48% !important;
        margin: 1% 3.85% 0 0 !important;
        vertical-align: top !important;
        clear: none !important;
    }

    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gform_fields li.gfield:nth-child(even),
    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gfield_checkbox li:nth-child(even),
    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gfield_radio li:nth-child(even),
    body .gpnf-dialog.ui-dialog .gform_wrapper.gform_validation_error .gform_body ul li.gfield.gfield_error:not(.gf_left_half):not(.gf_right_half):nth-child(even),
    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gform_fields li.gfmc-column:nth-child(even) {
        margin-right: 0 !important;
    }

    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gform_fields li.gfield.fieldWide,
    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gform_fields .gfmc-column.gfmc-row-1-col-2-of-2 li.gfield,
    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gform_fields .gfmc-column.gfmc-row-1-col-2-of-2 li.gfield.gfield_error:not(.gf_left_half):not(.gf_right_half),
    body .gpnf-dialog.ui-dialog .gform_wrapper.gform_validation_error .gform_body ul.gform_fields .gfmc-column li.gfield,
    body .gpnf-dialog.ui-dialog .gform_wrapper.gform_validation_error .gform_body ul.gform_fields .gfmc-column li.gfield.gfield_error:not(.gf_left_half):not(.gf_right_half) {
        display: block !important;
        width: 100% !important;
        margin: 1% 0 0 !important;
    }

    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gform_fields li.gfmc-column ul {
        margin: 0 !important;
        padding: 0 !important;
    }

    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gform_fields li.gfmc-column ul li.gfield,
    body .gpnf-dialog.ui-dialog .gform_wrapper ul.gform_fields .gfmc-column li.gfield,
    body .gpnf-dialog.ui-dialog .gform_wrapper.gform_validation_error .gform_body ul.gform_fields .gfmc-column li.gfield.gfield_error:not(.gf_left_half):not(.gf_right_half) {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    body .gpnf-dialog.ui-dialog .gform_wrapper .gform_page_footer {
        display: block !important;
        text-align: right !important;
    }

    body .gpnf-dialog.ui-dialog .gform_wrapper .gform_page_footer .gform_previous_button,
    body .gpnf-dialog.ui-dialog .gform_wrapper .gform_page_footer .gform_next_button,
    body .gpnf-dialog.ui-dialog .gform_wrapper .gform_page_footer .gform_button,
    body .gpnf-dialog.ui-dialog .gform_wrapper .gform_page_footer input[type="submit"] {
        width: auto !important;
    }

    body .gpnf-dialog.ui-dialog .gform_wrapper .gform_page_footer .gform_previous_button {
        float: left !important;
        margin: 0 !important;
    }

    body .gpnf-dialog.ui-dialog .gform_wrapper .gform_page_footer .gform_next_button,
    body .gpnf-dialog.ui-dialog .gform_wrapper .gform_page_footer .gform_button,
    body .gpnf-dialog.ui-dialog .gform_wrapper .gform_page_footer input[type="submit"] {
        float: none !important;
        margin: 0 0 0 0.65em !important;
    }

    #Bzl-afv-forms .gpnf-nested-entries-container,
    #Bzl-afv-forms .gpnf-nested-entries-container .gpnf-nested-entries {
        overflow: visible !important;
    }
}

/* User Provided Updates */

body #give_purchase_form_wrap span.give-final-total-amount {color: #434044!important;}
#Bzl-content .woocommerce {max-width: 1400px; margin: 1em auto;}


/** ==== PAW IT FORWARD ===== **/
.pif_wrapper {display: flex; position: relative;}
.pif_item {display:block; border: 1px solid rgba(0,0,0,0.1); padding: 1.25em;-webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05);box-shadow: 0 2px 5px 0 rgba(0,0,0,0.05); -webkit-border-radius:4px;border-radius:4px;}
.pif_item h5, .pif_item p {text-align: center;}

