/*
 * PivotLab - lateral_load_calculator (views/pages/lateral_load_calculator.php): the old view's <style> block, scoped under
 * [data-pl-view="lateral_load_calculator"], with its nested rules as the old file had them. The old `main` rule is
 * the site's .site-main, and only while this page is in it.
 */

.site-main:has([data-pl-view="lateral_load_calculator"]) {
    border-radius: 30px 30px 0 0;
}

[data-pl-view="lateral_load_calculator"] {
    overflow: hidden;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: row;

    @media (max-width: 991px) {
        overflow: initial; /* 1 */
        border-radius: 30px 30px 0 0;
        flex-direction: column;
    }

    .section-title {
        font-size: 14px;
        font-weight: 400;
        text-align: center;
        @media (max-width: 991px) {
        }
    }

    .img-container {
        background-color: #EFEFF0;
        max-height: 400px;
        aspect-ratio: 16 / 8;
        flex-shrink: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 0 16px;
        @media (max-width: 991px) {
            padding: 32px 16px;
        }

        @media (min-width: 992px) {
            max-height: 100%;
            aspect-ratio: auto;
            width: 50%;
        }

        img {
            max-width: 600px;
            width: 100%;
            aspect-ratio: 2 / 1;
        }
    }

    .pivot-content-wrapper {
        background-color: #09090b;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        height: 100%;
        @media (min-width: 992px) {
            justify-content: center;
            overflow: hidden;
            width: 50%;
        }

    }

    .pivot-content {
        color: #fff;
        background-color: #09090b;
        padding: 32px;
        overflow-y: auto;

        @media (max-width: 991px) {
            overflow-y: initial;
            padding: 32px 16px;
        }

        .pivot-inner {
            max-width: 700px;
            margin: 0 auto;
        }

    }

    .input-group-flex-img-txt-field {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #ccc2;
        border-radius: 10px;
        padding: 15px;

        @media (max-width: 991px) {
            border: 1px solid #ccc2;
        }

        @media (max-width: 375px) {
            img {
                width: 32px !important;
                height: 32px !important;
            }

            .title {
                font-size: 12px !important;
            }
        }


        .title {
            padding: 0 16px;
            @media (max-width: 991px) {
                font-size: 14px;
            }
        }
    }

    .input-group-flex-img-txt-field.white-bg {
        border: none !important;

        .title {
            color: #212529 !important;
        }

        .input-affix {
            border: 1px solid #ccc2;
        }
    }

    .input-affix {
        background-color: #fff;
        border-radius: 5px;
        border: 1px solid #fff;
        display: inline-flex;
        align-items: center;
        padding: 4px 6px;
        max-width: 110px;

        @media (max-width: 991px) {
            width: 100px;
        }

        input {
            border: none;
            width: 100%;
        }

        input:focus {
            outline: none !important;
            border: none !important;
        }

        .txt {
            font-size: 13px;
            color: var(--bs-body-color);
        }
    }

    .letter-position {
        color: #FF7648;
        background-color: #FFD5C7;
        border-radius: 6px;
        width: 26px;
        height: 26px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .switch-sm {
        @media (max-width: 991px) {
            font-size: 13px;
        }
    }

    button.btn {
        width: 100%;
        max-width: 300px;
    }

    .btn-outline-light {
        border-color: #ccc2;
    }

    .btn-outline-light:not(:hover) {
        background: #ffffff12;
    }

    .accordion-item {
        background-color: #ffffff12;
        border-color: #ccc2;
        color: #fff;

        @media (max-width: 991px) {
            .input-group-flex-img-txt-field .title {
                font-size: 12px;
            }
        }

    }
    .accordion-button {
        background: transparent;
         color: #fff;
    }

    .accordion-button::after {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    }

    .accordion-button:focus {
        box-shadow: none !important;
    }

    .accordion-collapse {
        border-color: #ccc2;
    }

    .calc-results {
        background-color: #fff;
        border-radius: 5px;
        padding: 16px 20px;

        p {
            color: #212529;
            text-align: center;
        }

        .input-group-flex-img-txt-field {
            justify-content: flex-start;
            width: 100%;

            .end {
                margin-left: auto;
                p {
                    color: #212529;
                    margin-bottom: 0;
                    font-size: 13px;
                    @media (max-width: 375px) {
                        font-size: 12px;
                    }
                }
            }
        }
    }

}


