/**
Theme Name: SML 2026
Author: Shannon Dunn
Author URI: http://www.juusui.com
Description: Astra child theme for Standard Meter Lab
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sml-2026
Template: astra
*/


/* ---------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------- TEXT
------------------------------------------------------------------------------------------------------ */
h2:not(.elementor-heading-title),
h3:not(.elementor-heading-title),
h4:not(.elementor-heading-title) {
    margin-bottom: 25px;
}


@media (min-width: 1025px) {
    .sml-hide-desktop {
        display: none;
    }
}

@media (max-width: 1024px) {
    .sml-hide-mobile {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .sml-hide-tablet {
        display: none;
    }
}

@media (max-width: 767px) {
    .sml-hide-phone {
        display: none;
    }
}

.elementor-widget-text-editor p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------- HEADER
------------------------------------------------------------------------------------------------------ */
.ast-builder-menu,
.ast-main-header-bar-alignment,
.main-navigation,
.main-header-menu {
    width: 100%
}

.main-header-menu {
    justify-content: space-between;
}

.ast-builder-grid-row.ast-grid-center-col-layout {
    grid-template-columns: auto;
}

.ast-header-sticked .ast-builder-grid-row.ast-grid-center-col-layout {
    grid-template-columns: 1fr auto;
}

.ast-sticky-below-shrink .ast-sticky-shrunk .site-navigation {
    line-height: 1;
}

.site-header-below-section-left {
    display: none;
    opacity: 0;
    transition: 500ms ease;
}

.ast-header-sticked .site-header-below-section-left {
    display: block;
    opacity: 1;
}

@media (min-width: 1025px) {
    .site-header-below-section-right {
        display: none;
        opacity: 0;
        transition: 500ms ease;
    }

    .ast-header-sticked .site-header-below-section-right {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .custom-logo-link,
    .custom-logo {
        display: block;
        height: 100% !important;
    }

    .site-header-below-section-left {
        display: block;
    }
}


/* nav button */
.ast-builder-menu-1 .sml-nav-button.menu-item > .menu-link,
[CLASS*="-sticky-header-active"] .ast-builder-menu-1 .main-header-menu > .sml-nav-button.menu-item > .menu-link {
    background-color: #871638;
    color: #fff;
}

.ast-builder-menu-1 .sml-nav-button.menu-item > .menu-link:hover,
[CLASS*="-sticky-header-active"] .ast-builder-menu-1 .main-header-menu > .sml-nav-button.menu-item > .menu-link:hover {
    background-color: #22523b;
}

/* badges */
.header-widget-area[data-section="sidebar-widgets-header-widget-1"] {
    align-items: center;
    display: flex;
    gap: 20px;
}

.header-widget-area[data-section="sidebar-widgets-header-widget-1"] .widget {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .ast-header-break-point .header-widget-area[data-section="sidebar-widgets-header-widget-1"] {
        display: flex;
    }
}

/* ---------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------- FOOTER
------------------------------------------------------------------------------------------------------ */
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
    background-image: url(/wp-content/uploads/2026/04/bg-line-gradient-03.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 120%;
}

/* ---------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------- BLOG
------------------------------------------------------------------------------------------------------ */
.blog .site-content .ast-container,
.single-post .site-content .ast-container,
.single-post .site-content .ast-article-single,
.single-post .site-content .content-area {
    margin: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}

/* ---------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------ FORMS
------------------------------------------------------------------------------------------------------ */
input,
select,
textarea,
button {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
}

.gform_fields {
    list-style-type: none;
    margin-left: 0;
}

.gsection_title {
    font-size: 30px;
}

.gfield--type-section {
    border-bottom-color: #ccc;
    margin-top: 50px;
}

.gfield {
    margin-bottom: 20px;
    padding-right: 10px;
}

.gfield--width-half {
    width: 50%;
    float: left;
}

.gfield_label,
.gform-field-label--type-sub {
    color: #000;
    font-size: 16px;
}

.gfield_required {
    color: #999;
    font-size: 14px;
    padding-left: 5px;
}

fieldset.gfield {
    border: 0;
    padding: 0;
}

.ginput_container_address,
.ginput_container_name {
    justify-content: stretch;
    display: flex;
    gap: 10px;
}

.ginput_container .address_zip,
.ginput_container .address_country,
.ginput_container .name_first,
.ginput_container .name_last {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

input:not([type="button"]):not([type="submit"]):not([type="reset"]) {
    width: 100%;
}

.pp-gravity-form .gform_wrapper .gform_footer input[type=submit],
.gform_wrapper .button {
    background-color: #871638;
    border-radius: 0;
    color: #fff;
    font-family: "Montserrat", Sans-serif;
    font-size: 21px;
    text-transform: uppercase;
    transition: 500ms ease;
    width: auto !important;
}

.pp-gravity-form .gform_wrapper .gform_footer input[type=submit]:hover,
.pp-gravity-form .gform_wrapper .gform_footer input[type=submit]:focus,
.gform_wrapper .button:hover,
.gform_wrapper .button:focus {
    background-color: #22523b;
}


h2.gform_submission_error {
    background-color: #FEE;
    border: 1px solid #f00;
    color: #C00;
    font-size: 18px;
    padding: 25px;
}

.gfield_validation_message {
    list-style-type: none;
    color: #f00;
}

.gform-ul-reset {
    margin: 0;
}

.gform_validation_container {
    display: none;
}

/* consent */
.sml-form-consent {
    margin-top: 50px;
}

.sml-form-consent legend.gfield_label {
    font-weight: 700;
    margin: 25px 0 10px 0;
    padding: 0;
}

.sml-form-consent .ginput_container_consent {
    align-items: center;
    display: flex;
    gap: 5px;
}

.sml-form-consent .ginput_container_consent input[type=checkbox] {
    flex: 0 0 20px;
}

/* quote */
.sml-quote-add-items legend.gfield_label {
    font-weight: 700;
    margin: 25px 0 10px 0;
    padding: 0;
}

.sml-quote-add-items .gfield_radio {
    display: flex;
    gap: 25px;
}

.sml-quote-add-items .gfield_radio .gchoice {
    align-items: center;
    display: flex;
    gap: 5px;
}

.sml-quote-add-items .gfield_radio .gchoice .gfield-choice-input {
    flex: 0 0 20px;
}

/* quote add single item start */
.sml-quote-add-item-start {
    margin-top: 50px;
}

.sml-quote-add-item-start .gfield_label {
    font-weight: 700;
    margin: 25px 0 10px 0;
    padding: 0;
}

.gpnf-nested-entries {
    color: #475569;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.gpnf-nested-entries th,
.gpnf-nested-entries td {
    padding: 5px !important;
}

.gpnf-add-entry {
    background-color: #333;
    border-radius: 0;
    font-size: 14px;
    margin-top: 20px;
    padding: 8px 16px;
}

.gpnf-add-entry:hover {
    background-color: #666;
}

.gpnf-row-actions .edit-button,
.gpnf-row-actions .delete-button {
    margin-left: 10px;
}

/* quote add item modal */
.gpnf-modal .gpnf-modal-header {
    background-color: #871638 !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.gpnf-modal.gpnf-modal-2-17 .tingle-btn--default {
    background-color: #333;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
}

.gpnf-modal.gpnf-modal-2-17 .tingle-btn--default:hover {
    background-color: #666;
}

.gpnf-modal.gpnf-modal-2-17 .tingle-btn--primary {
    background-color: #871638;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
}

.gpnf-modal.gpnf-modal-2-17 .tingle-btn--primary:hover {
    background-color: #22523b;
}

.gpnf-modal.gpnf-modal-2-17 .tingle-btn--danger {
    background-color: #000;
    border-radius: 0;
    font-family: 'Montserrat', sans-serif;
}

.gpnf-modal.gpnf-modal-2-17 .tingle-btn--danger:hover {
    background-color: #111;
}

/* quote upload */
.sml-quote-upload {
    margin-top: 50px;
}

.sml-quote-upload .gfield_label {
    font-weight: 700;
}

.sml-quote-upload .ginput_container_fileupload {
    border: none;
    padding: 0;
}

.sml-quote-upload .gform_drop_area {
    align-items: center;
    background-color: #fafafa;
    border: 2px dashed #ccc;
    border-radius: 4px;
    color: #555;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    padding: 20px;
    position: relative;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sml-quote-upload .gform_drop_area:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.sml-quote-upload .gform_drop_area.gform_drag_over {
    background-color: #e6f7ff;
    border-color: #1e8cbe;
}

.sml-quote-upload .gform_button_select_files {
    background-color: #333;
    font-size: 14px;
    margin-top: 20px;
    padding: 8px 16px;
}

.sml-quote-upload .gform_button_select_files:hover {
    background-color: #666;
}

.sml-quote-upload .gform_drop_instructions {
    font-size: 14px;
    margin-bottom: 5px;
}

.sml-quote-upload .ginput_preview {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    margin-top: 10px;
    padding: 8px;
}

.sml-quote-upload .ginput_preview .ginput_preview_remove {
    color: #a00;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    text-decoration: underline;
}

.sml-quote-upload .gform_drop_area * {
    box-sizing: border-box;
}

/* ---------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------ GLOBAL MISC
------------------------------------------------------------------------------------------------------ */
.ast-separate-container {
    background-color: #fff !important;
}

.sml-list-with-headline .elementor-icon-list-text b {
    font-family: 'Montserrat', Helvetica, sans-serif;
    font-size: 21px;
}
