/* Arkansas Glass Repair — light helpers only. Core look comes from style4d80.css */

.header-info a {
    color: inherit;
    text-decoration: none;
}

.header-info a:hover {
    text-decoration: underline;
}

/* Keep QA hero hook without breaking the visible image */
#dr_slide1 {
    display: block;
}

#dr_slide1 img {
    display: block;
    width: 100%;
    height: auto;
}

.map iframe {
    max-width: 100%;
}

/* Local review avatars when no photo is stored */
.agr-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-block;
    background: #2b4c7f;
    color: #fff;
    font-family: Oswald, 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
    text-transform: uppercase;
}

/* Trustindex widget assets are resolved via theme.trustindex-widget-css (no hardcoded paths here). */
.agr-reviews.ti-widget.ti-goog {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.agr-reviews.ti-widget.ti-goog .ti-widget-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.agr-reviews.ti-widget.ti-goog .ti-reviews-container {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.agr-reviews.ti-widget.ti-goog .ti-reviews-container-wrapper {
    overflow-x: hidden;
    scroll-behavior: smooth;
    align-items: stretch !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.agr-reviews.ti-widget.ti-goog .ti-reviews-container-wrapper::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.agr-reviews.ti-widget.ti-goog .ti-review-item {
    display: flex !important;
    align-self: stretch !important;
    min-width: 0;
}

.agr-reviews.ti-widget.ti-goog .ti-review-item > .ti-inner {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0;
    box-sizing: border-box !important;
}

.agr-reviews.ti-widget.ti-goog .ti-review-content:not(.is-expanded) {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4;
    overflow: hidden !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
}

.agr-reviews.ti-widget.ti-goog .ti-read-more {
    margin-top: auto !important;
    white-space: normal !important;
}

.agr-reviews.ti-widget.ti-goog .ti-prev,
.agr-reviews.ti-widget.ti-goog .ti-next {
    cursor: pointer;
}

.agr-reviews.ti-widget.ti-goog .ti-review-content.is-expanded {
    -webkit-line-clamp: unset !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
}

/* Mobile: Trustindex-style centered 275px card carousel with side peek. */
@media (max-width: 767px) {
    .agr-reviews.ti-widget.ti-goog .ti-widget-container,
    .agr-reviews.ti-widget.ti-goog .ti-widget-container.ti-col-4 {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
    }

    .agr-reviews.ti-widget.ti-goog .ti-widget-container:not(.ti-col-1) .ti-footer,
    .agr-reviews.ti-widget.ti-goog .ti-col-4 .ti-footer {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 0 20px !important;
        text-align: center;
    }

    .agr-reviews.ti-widget.ti-goog .ti-widget-container:not(.ti-col-1) .ti-reviews-container,
    .agr-reviews.ti-widget.ti-goog .ti-col-4 .ti-reviews-container {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .agr-reviews.ti-widget.ti-goog .ti-reviews-container-wrapper {
        margin: 0 !important;
        padding-top: 5px !important;
        padding-bottom: 1px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: calc(50% - 137.5px);
        width: 100% !important;
    }

    .agr-reviews.ti-widget.ti-goog .ti-reviews-container-wrapper::before,
    .agr-reviews.ti-widget.ti-goog .ti-reviews-container-wrapper::after {
        content: "";
        flex: 0 0 calc(50% - 137.5px);
        display: block;
    }

    .agr-reviews.ti-widget.ti-goog .ti-col-4 .ti-review-item,
    .agr-reviews.ti-widget.ti-goog .ti-widget-container:not(.ti-col-1) .ti-review-item {
        flex: 0 0 275px !important;
        max-width: 275px !important;
        width: 275px !important;
        padding: 0 8px !important;
        scroll-snap-align: center;
        box-sizing: border-box !important;
    }

    .agr-reviews.ti-widget.ti-goog .ti-review-item:hover {
        transform: none !important;
    }

    .agr-reviews.ti-widget.ti-goog .ti-review-item > .ti-inner {
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .agr-reviews.ti-widget.ti-goog .ti-review-content,
    .agr-reviews.ti-widget.ti-goog .ti-name,
    .agr-reviews.ti-widget.ti-goog .ti-read-more span {
        white-space: normal !important;
        word-break: normal !important;
    }

    .agr-reviews.ti-widget.ti-goog .ti-controls-line {
        display: block !important;
        margin: 20px auto !important;
    }
}

@media (min-width: 768px) {
    .agr-reviews.ti-widget.ti-goog .ti-controls-line {
        display: none !important;
    }
}

/* Gallery — lean on NextGEN CSS; only keep responsive tweaks */
.ngg-gallery-thumbnail img {
    width: 100%;
    max-width: 240px;
    height: 160px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .ngg-gallery-thumbnail-box,
    .ngg-gallery-thumbnail-box.ngg-4-columns {
        width: 50% !important;
    }
}

@media (max-width: 480px) {
    .ngg-gallery-thumbnail-box,
    .ngg-gallery-thumbnail-box.ngg-4-columns {
        width: 100% !important;
    }
}

/* CMS forms — lean on Gravity Forms CSS; only fix theme conflicts */
.gform_wrapper {
    clear: both;
}

.gform_wrapper ul.gform_fields,
.gform_wrapper ul.gform_fields > li {
    list-style: none !important;
}

/*
 * Theme sets input { width:100%; border:none }. Use flex so Phone/Email and
 * Best Time / How Found sit side-by-side like the HTTrack Gravity Forms layout.
 */
@media only screen and (min-width: 641px) {
    .gform_wrapper ul.gform_fields.top_label {
        display: flex !important;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .gform_wrapper ul.gform_fields.top_label > li.gfield {
        width: 100%;
        float: none !important;
        clear: none !important;
    }

    .gform_wrapper ul.gform_fields.top_label > li.gfield.gf_left_half,
    .gform_wrapper ul.gform_fields.top_label > li.gfield.gf_right_half {
        width: 50% !important;
        max-width: 50% !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    .gform_wrapper ul.gform_fields.top_label > li.gfield.gf_left_half .ginput_container input.medium,
    .gform_wrapper ul.gform_fields.top_label > li.gfield.gf_right_half .ginput_container input.medium,
    .gform_wrapper ul.gform_fields.top_label > li.gfield.gf_left_half .ginput_container select.medium,
    .gform_wrapper ul.gform_fields.top_label > li.gfield.gf_right_half .ginput_container select.medium,
    .gform_wrapper ul.gform_fields.top_label > li.gfield.gf_left_half .ginput_container textarea.medium,
    .gform_wrapper ul.gform_fields.top_label > li.gfield.gf_right_half .ginput_container textarea.medium {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.gform_wrapper .ginput_complex.ginput_container.gf_name_has_2 {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 0;
    width: 100% !important;
}

.gform_wrapper .ginput_complex.ginput_container.gf_name_has_2 > span {
    display: block !important;
    vertical-align: top;
    width: 50% !important;
    max-width: 50% !important;
    box-sizing: border-box !important;
    padding-right: 8px;
}

.gform_wrapper .ginput_complex.ginput_container.gf_name_has_2 > span:last-child {
    padding-right: 0;
    padding-left: 8px;
}

.gform_wrapper .ginput_complex.ginput_container.gf_name_has_2 > span input {
    width: 100% !important;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="password"],
.gform_wrapper input[type="number"],
.gform_wrapper textarea,
.gform_wrapper select {
    border: 1px solid #ccc;
    background: #fff;
}

.gform_wrapper .gform_footer input[type="submit"].gform_button,
.gform_wrapper .gform_footer input.gform_button {
    width: auto !important;
    max-width: none !important;
    background: #2b4c7f;
    color: #fff;
    border: 0;
    border-radius: 0;
    padding: 8px 20px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    margin: 0 16px 16px 0;
}

.gform_wrapper .gform_footer input[type="submit"].gform_button:hover,
.gform_wrapper .gform_footer input.gform_button:hover {
    background: #1f3a63;
    color: #fff;
}

.gform_wrapper .validation_error,
.gform_wrapper .validation_message {
    color: #790000;
    margin: 8px 0;
}

.quote {
    overflow: hidden;
}

.quote:after {
    content: "";
    display: table;
    clear: both;
}

.entry-content img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

/* Estimate / interior banners — frame like HTTrack storefront shot */
.entry-content > p > img.aligncenter.size-full {
    border: 4px solid #494846;
    box-sizing: border-box;
}

.entry-content .agr-reviews,
.entry-content .ti-widget {
    margin: 0 0 24px;
}

.sidebar .textwidget img,
.sidebar-promo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.sidebar .textwidget a {
    display: block;
    max-width: 100%;
}

.main-right .sidebar {
    margin-top: 0;
}

.entry-content iframe {
    display: block;
    max-width: 100%;
}

.entry-content h3 a {
    color: #144081;
}

.featured-image {
    margin: 0 0 24px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

/* Simple lightbox overlay */
.agr-lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.agr-lb-overlay img {
    max-width: 100%;
    max-height: 90vh;
    height: auto;
}

.agr-lb-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.agr-lb-prev,
.agr-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    border: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    padding: 12px 14px;
    cursor: pointer;
}

.agr-lb-prev {
    left: 16px;
}

.agr-lb-next {
    right: 16px;
}

.entry-content .row > [class*="col-"] > ul {
    margin-bottom: 0;
}

.map iframe {
    border: 3px solid #2c4c7f !important;
}

.entry-content iframe {
    max-width: 100%;
}

.entry-content > h2 {
    margin: 0 0 18px;
}

@media (max-width: 767px) {
    ul.two-col li {
        width: 100%;
        float: none;
    }
}
