span {
    align-items: stretch;
    text-align: left;
}

/* css start here  */
.popup-tabs {
    display: flex;
    list-style: none;
    gap: 100px;
    margin-bottom: 20px;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.popup-tab {
    cursor: pointer;
    color: var(--Text-Black, #191818);
    font-family: Jost;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding-bottom: 10px;
}

.popup-tab.active {
    font-weight: 700;
    border-bottom: 2px solid #000000;
}

.popup-tab-content {
    flex-wrap: wrap;
    gap: 20px;
}

.popup-list-image-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}
.popup-label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.popup-image-preview {
    flex: 1 1 300px;
    max-width: 400px;
    max-width: 573px;
    max-height: 479px;
}

.popup-hover-preview {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}


.popup-label p {
    margin: 0;
    cursor: pointer;
    color: #000000;
}


.popup-border-text {
    position: relative;
    display: inline-block;
    margin: 0; /* reset any default margin on <p> */
    padding-bottom: 4px; /* space for the animated border */
}

.popup-border-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: #87d2d2; /* Change to your desired color */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.popup-label span:hover .popup-border-text::after{
    transform: scaleX(1);
}

.popup-label span {
    margin-left: 10px;
}

.popup-image-preview img {
    /* shweta */
    height: 100%;
    width: 100%;
    object-fit: contain;
    /*  */
    transition: opacity 0.3s ease;
}

.image-not-available {
    color: red;
    font-size: 14px;
    font-weight: bold;
}

.popup-list-image-wrapper {
    display: flex;
    justify-content: space-between;
}

.popup-list-left {
    flex: 1;
    padding-right: 20px;
    font-family: Jost;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 25.2px;
    color: #757575;
    padding-left: 10rem;
}

.popup-image-preview {
    flex: 1;
    padding-left: 20px;
}

.popup-label {
    display: block;
    margin-bottom: 0;
    cursor: pointer;
    display: flex;
    /* shweta */
    margin-bottom: 10px;
    /*  */
}

.popup-label p {
    margin: 0;
}

.popup-hover-preview {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.popup-feature-image {
    width: 570px;
    height: 470px;
    object-fit: cover;
    /* optional, keeps image proportional */
    display: block;
    margin: 0 auto;
}

.popup-category-intro {
    color: var(--Persistent-nav, #242424);
    /* Design and Photo Credits */
    font-family: Jost;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 30.8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10rem;
}

/* Hide default radio */
.popup-radio {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(140, 140, 140, 0.85);
    background: #FFF;
    cursor: pointer;
    border-radius: 0;
    /* square corners */
    display: inline-block;
    position: relative;
    /* shweta */
    width: 21.294px !important;
    /*  */
    height: 20px;
    margin-top: 15px;
    display: none;
}

/* Checked state */
.popup-radio:checked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    /* shweta */
    width: 18px;
    height: 18px;
    /*  */
    background-image: url('https://dev.palmerindustries.com/wp-content/plugins/custom-elementor-widgets/assets/images/on.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Hide popup on tablet and desktop */
@media (min-width: 768px) {
    .mobile-only-popup {
        display: none !important;
    }

    .palmer-popup-link {
        pointer-events: none;
        cursor: default;
        opacity: 0.5;
        /* optional: to show it's disabled */
    }
}

@media (max-width: 767px) {

    .popup-tabs {
        gap: 22px;
    }

    .popup-tabs ul {
        margin-right: 1px;
    }

    .popup-image-preview {
        display: none;
    }

    .popup-feature-image {
        width: auto;
        height: auto;
    }

    .popup-list-left,
    .popup-category-intro {
        padding-left: 0rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {

    .popup-list-left,
    .popup-category-intro {
        padding-left: 0rem;
    }
}

.estimate_popup_content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    padding: 0px;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.mfp-open {
    overflow: hidden;
}