.pfi-newdatasheet{
    display: none;
}
.pfi-displayed-data dt {
    font-weight: 500;
    text-transform: capitalize;
    word-break: normal;
    text-align: center;
    width: 100%;
}
.pfi-displayed-data dd {
    margin: 2px 0;
}
.pfi-displayed-data dd img {
    width: auto;
    height: 70px;
}
dl.pfi-displayed-data {
    display: flex;
    gap: 10px;
}
dl.pfi-displayed-data img {
    width: auto;
    height: 70px;
}
.pfi-innercontent {
    display: flex;
    max-width: 330px;
    flex-direction: column;
    align-items: center;
}
.pfi-additional-info-container dl.pfi-newdatasheet{
    display: block;
}
.pfi-displayed-data {
    display: block;
}


        
.pia-container {
    max-width: 800px;
    text-align: center;
}

.pia-clickable-text {
    font-size: 13px;
    color: #7a7a7a;
    cursor: pointer;
    padding: 0.3px;
    transition: all 0.3s ease;
}

.pia-clickable-text:hover {

    text-decoration: underline;
}

.pia-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.pia-popuptxt {
    display: none;
    position: absolute;
    top: 18%;
    left: 32%;
    width: 35%;
    height: auto;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.pia-popup-contenttxt {

    background-color: #efefef;
    padding: 19px;
    border-radius: 12px;
    width: 100%;
    position: relative;
    animation: popupFadeIn 0.4s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pia-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    background: none;
    border: none;
    /*transition: color 0.2s;*/
}

.pia-close-btn:hover {
    color: #e74c3c;
}

.pia-close-btntxt {
    position: absolute;
    top: 1px;
    right: 1px;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    background: none;
    border: none;
    /*transition: color 0.2s;*/
}

.pia-close-btntxt:hover {
    color: #e74c3c;
}

.popup-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.popup-message {
    font-size: 16px;
    line-height: 1.6;
    color: #34495e;
}

.pfi-innercontent {

    display: flex;
    max-width: 330px;
    width: 28%;
    flex-direction: column;
    align-items: center;
    background: #efefef;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pia-textdpopup {
    position: absolute;
    margin-left: 24%;
    opacity: 0.5;
    cursor: pointer;
}

.pia-textdpopuptxt {
    position: absolute;
    margin-left: 23%;
    padding: 3px;
    font-size: 17px;
    opacity: 0.7;
    cursor: pointer;
}

.imageIdesc{
    width: 95% !important;
    height: 100% !important;
    max-height: 445p !importantx;
}

.pia-popup-contenttxt{
    overflow-y: scroll;
    height: 300px;
}

.zoom-controls {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    gap: 10px;
    position: relative; /* stays inside popup */
    flex-wrap: wrap; /* allow wrapping on small screens */
}

/* Buttons styling remains same */
.zoom-button {
    padding: 8px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.zoom-button:hover {
    background: #2980b9;
}

/* Tablet */
@media (max-width: 992px) {
    .zoom-controls {
        margin-top: 12px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .zoom-controls {
        gap: 6px;
    }
    .zoom-button {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pia-popup-content {
        padding: 5px;
        width: 95%;
    }
    
  /*  .zoom-controls {
        flex-direction: column;
        align-items: center;
    }*/
}

.pia-popup-content {
    background-color: white;
    padding: 6px;
    border-radius: 5px;
    width: 70%;
    max-width: 800px; /* Prevents it from being too wide on large screens */
    height: auto; /* Let content decide height */
    max-height: 90vh; /* Avoids overflow on small screens */
    position: relative;
    animation: popupFadeIn 0.4s ease-out;
    overflow-y: auto; /* Scroll if content exceeds height */
}

/* Tablet */
@media (max-width: 992px) {
    .pia-popup-content {
        width: 85%;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .pia-popup-content {
        width: 95%;
        padding: 10px;
        border-radius: 8px;
    }
}

/*feature image style*/
@media (min-width: 320px) and (max-width: 375px) {
    .pfi-innercontent {
        width: 45%;
    }
}
@media (max-width: 425px) {
    .pfi-innercontent {
        width: 50%;
    }
}
@media (max-width: 999px) {
    .pfi-innercontent {
        width: 47%;
    }
}
@media (min-width: 320px) and (max-width: 375px) {
    .pfi-displayed-data dt {
        margin-right: 31px;
    }
}

@media (max-width: 425px) 
    .pfi-displayed-data dt {
        margin-right: 31px;
    }
}
@media (min-width: 320px) and (max-width: 375px) {
    .pia-textdpopuptxt {
        margin-left: 35%;
    }
}

@media (max-width: 425px) {
    .pia-textdpopuptxt {
        margin-left: 35%;
    }
}
@media (max-width: 768px) {
    .pia-textdpopuptxt {
        margin-left: 35%;
    }
}

@media (min-width: 320px) and (max-width: 999px) {
    .pia-popuptxt {
        top: 17%;
        left: 50%;
    }
}