/* DFE Pharma Product Comparison - Styles */

/* Color Variables (for comparison-specific styles) */
:root {
    --header-bg: #31A4A0;
    --header-text: #4C7189;
    --sub-header-text: #012F44;
    --tab-selected-bg: #31576E;
    --tab-deselected-bg: #EFEDED;
    --tab-deselected-text: #707070;
}

/* Comparison Tabs - Maintain fixed width (33.33% per tab) regardless of number of tabs */
/* This ensures single or two tabs maintain the same width as when there are three tabs */
#comparison-tabs .nav-item {
    flex: 0 0 calc((100% - 36px) / 3) !important; /* 36px accounts for 2 gaps of 18px each */
    max-width: calc((100% - 36px) / 3);
}

/* Product Comparison Page Styles */
.custom-compare-page {
    background-color: white;
    min-height: 100vh;
}

.custom-compare-page-section {
    background-color: white;
}

.custom-comparison-section {
    background-color: white;
    padding: 30px 0;
}

/* Product Comparison Layout */
.custom-comparison-layout {
    display: flex;
    gap: 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Left Sticky Properties Column */
.custom-properties-column {
    flex: 0 0 350px;
    background-color: white;
    border-right: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    height: fit-content;
    z-index: 10;
    padding-top: 30px;
}

.custom-properties-header {
    background-color: white;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-top: 59px;
    min-height: 120px;
}

    .custom-properties-header h4 {
        font-size: 16px;
        font-weight: 700;
        color: #4C7189;
        margin: 0;
        text-align: center;
        padding-top: 0;
        min-height: 205px;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        line-height: 1.2;
        height: 205px;
    }

.custom-properties-list {
    padding: 0;
}

.custom-property-item {
    padding: 8px 20px;
    border-bottom: 1px solid #e9ecef;
    font-size: 16px;
    font-weight: 600;
    color: #4C7189;
    line-height: 1.4;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: white;
}

    .custom-property-item:last-child {
        border-bottom: none;
    }

/* Right Carousel Section */
.custom-carousel-section {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.custom-carousel-container {
    position: relative;
    width: 100%;
}

.custom-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.custom-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

.custom-product-column {
    flex: 0 0 33.333%;
    padding: 50px 0 0;
    margin: 0;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    background-color: white;
    min-width: 0;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

    .custom-product-column:last-child {
        border-right: none;
    }

.custom-product-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
}

.custom-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .custom-product-image:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

.custom-remove-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .custom-remove-btn:hover {
        background-color: #f8f9fa;
        border-color: #adb5bd;
    }

    .custom-remove-btn i {
        color: #6c757d;
        font-size: 12px;
    }

.custom-product-name {
    font-size: 18px;
    font-weight: 700;
    color: #31A4A0;
    text-align: center;
    line-height: 1.2;
    margin-top: 22px;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 21px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.custom-product-data {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.custom-data-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 500;
    color: #4C7189;
    text-align: center;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    background-color: white;
}

    .custom-data-item:last-child {
        border-bottom: none;
    }

.custom-flow-indicators {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.custom-flow-dot {
    width: 25px;
    height: 12px;
    border-radius: 35%;
    background-color: #e9ecef;
    transition: background-color 0.3s ease;
}

    .custom-flow-dot.active {
        background-color: #31A4A0;
    }

/* Carousel Navigation Arrows */
.custom-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #31576e;
    border: 1px solid #31576e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0px 2px 5px #00000080;
}

    .custom-carousel-arrow:hover {
        background-color: #012f44;
        border-color: #012f44;
    }

.custom-carousel-prev {
    left: 10px;
}

.custom-carousel-next {
    right: 10px;
}

.custom-carousel-arrow i {
    color: #ffffff;
    font-size: 14px;
}

/* Image Zoom Modal Styles */
.dfe-image-zoom-modal {
    z-index: 9999;
}

.dfe-image-zoom-modal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.dfe-zoom-modal-dialog-bottom {
    position: fixed;
    bottom: 120px !important;
    left: 50%;
    transform: translateX(-50%) !important;
    margin: 0;
    width: 100%;
    z-index: 1055;
}

@media (min-width: 992px) {
    .dfe-zoom-modal-dialog-bottom {
        max-width: 1200px;
        bottom: 100px;
    }
}

@media (max-width: 768px) {
    .dfe-zoom-modal-dialog-bottom {
        bottom: 140px;
        max-width: 95%;
    }
}

.dfe-zoom-modal-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: auto;
    min-height: 400px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none;
}

.dfe-zoom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.dfe-zoom-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.dfe-zoom-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .dfe-zoom-modal-close:hover {
        background-color: #e9ecef;
        color: #495057;
    }

.dfe-zoom-modal-body {
    flex: 1;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    min-height: 0;
}

.dfe-zoom-image-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 20px;
}

.dfe-zoom-image {
    max-width: 100%;
    max-height: calc(80vh - 150px);
    object-fit: contain;
    user-select: none;
}

/* Tablet Properties Graph Styles */
.dfe-tablet-graph-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.dfe-tablet-graph-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.dfe-tablet-graph-header {
    text-align: center;
    margin-bottom: 40px;
}

.dfe-tablet-graph-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.dfe-tablet-graph-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: unset;
    padding: 40px 0;
    margin-bottom: 30px;
}

/* Flow-ability Scale Chart */
.dfe-flowability-scale-container {
    width: 100%;
}

.dfe-flowability-scale {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: visible;
    height: 80px;
    padding-left: 60px;
}

.dfe-flowability-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: #284863;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 8px;
    width: 60px;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 0 8px 8px 0;
    min-width: 60px;
}

.dfe-flowability-segments {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: stretch;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

.dfe-flowability-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-align: center;
    padding: 0 20px;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.dfe-flowability-segment:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(0, 0, 0, 0.1);
}

.dfe-flowability-easy {
    background-color: #C9D7E2;
}

.dfe-flowability-free {
    background-color: #D5ECEB;
}

.dfe-tablet-graph-chart {
    position: relative;
    width: 100%;
    height: 500px;
    background: #ffffff;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}

/* Y-axis */
.dfe-tablet-graph-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 100%;
    background: #f8f9fa;
    border-right: 2px solid #dee2e6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dfe-tablet-graph-y-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    transform: rotate(180deg);
}

.dfe-tablet-graph-y-scale {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    margin-top: 20px;
}

.dfe-tablet-graph-y-tick {
    position: absolute;
    right: 10px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    transform: translateY(-50%);
}

/* X-axis */
.dfe-tablet-graph-x-axis {
    position: absolute;
    bottom: 0;
    left: 80px;
    width: calc(100% - 80px);
    height: 60px;
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dfe-tablet-graph-x-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-top: 20px;
}

.dfe-tablet-graph-x-scale {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dfe-tablet-graph-x-tick {
    position: absolute;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    transform: translateX(-50%);
}

/* Flowability Zones */
.dfe-tablet-graph-zones {
    position: absolute;
    top: 0;
    left: 80px;
    width: calc(100% - 80px);
    height: calc(100% - 60px);
}

.dfe-tablet-zone {
    position: absolute;
    opacity: 0.3;
    border-radius: 4px;
}

.dfe-zone-cohesive {
    left: 0;
    top: 0;
    width: 15%;
    height: 100%;
    background: #1e3a8a;
}

.dfe-zone-easy-flowing {
    left: 15%;
    top: 0;
    width: 40%;
    height: 100%;
    background: #3b82f6;
}

.dfe-zone-free-flowing {
    left: 55%;
    top: 0;
    width: 45%;
    height: 100%;
    background: #10b981;
}

.dfe-zone-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Grid lines */
.dfe-tablet-graph-grid {
    position: absolute;
    top: 0;
    left: 80px;
    width: calc(100% - 80px);
    height: calc(100% - 60px);
}

.dfe-tablet-grid-line {
    position: absolute;
    background-color: #e9ecef;
    border-style: dashed;
    border-width: 1px;
    border-color: #e9ecef;
}

.dfe-tablet-grid-horizontal {
    width: 100%;
    height: 0;
    border-top: 1px dashed #e9ecef;
}

.dfe-tablet-grid-vertical {
    height: 100%;
    width: 0;
    border-left: 1px dashed #e9ecef;
}

/* Product circles */
.dfe-tablet-graph-products {
    position: absolute;
    top: 0;
    left: 80px;
    width: calc(100% - 80px);
    height: calc(100% - 60px);
}

.dfe-tablet-graph-product {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .dfe-tablet-graph-product:hover {
        transform: translate(-50%, -50%) scale(1.1);
        z-index: 10;
    }

.dfe-tablet-product-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.dfe-tablet-graph-product:hover .dfe-tablet-product-circle {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

.dfe-tablet-product-initial {
    font-weight: bold;
    font-size: 18px;
}

.dfe-tablet-product-label {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dfe-tablet-graph-product:hover .dfe-tablet-product-label {
    opacity: 1;
}

/* Product circle colors */
.dfe-tablet-circle-pharmacel {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.dfe-tablet-circle-supertab-21an {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.dfe-tablet-circle-supertab-11sd {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.dfe-tablet-circle-lactopress {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.dfe-tablet-circle-supertab-30gr {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.dfe-tablet-circle-unlabeled {
    background: #6c757d;
    width: 40px;
    height: 40px;
    font-size: 14px;
}

    .dfe-tablet-circle-unlabeled .dfe-tablet-product-initial {
        font-size: 14px;
    }

/* Particle Size Distribution Graph Styles */
.dfe-psd-graph-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.dfe-psd-graph-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 50px;
    width: 100%;
}

.dfe-psd-graph-header {
    text-align: center;
    margin-bottom: 40px;
}

.dfe-psd-graph-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.dfe-psd-graph-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: unset;
    padding: 40px 0;
    margin-bottom: 30px;
}

.dfe-psd-graph-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.dfe-psd-graph-left {
    flex: 2;
}

.dfe-psd-graph-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: flex-start;
}

.dfe-psd-graph-chart {
    position: relative;
    width: 100%;
    height: 500px;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 60px;
}

/* Y-axis */
.dfe-psd-graph-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 100%;
    background: #f8f9fa;
    border-right: 2px solid #dee2e6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dfe-psd-graph-y-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    transform: rotate(180deg);
}

.dfe-psd-graph-y-scale {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    margin-top: 20px;
}

.dfe-psd-graph-y-tick {
    position: absolute;
    right: 10px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    transform: translateY(-50%);
}

/* X-axis */
.dfe-psd-graph-x-axis {
    position: absolute;
    bottom: 0;
    left: 80px;
    width: calc(100% - 80px);
    height: 60px;
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dfe-psd-graph-x-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-top: 20px;
}

.dfe-psd-graph-x-scale {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dfe-psd-graph-x-tick {
    position: absolute;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    transform: translateX(-50%);
}

/* Grid lines */
.dfe-psd-graph-grid {
    position: absolute;
    top: 0;
    left: 80px;
    width: calc(100% - 80px);
    height: calc(100% - 60px);
}

.dfe-psd-grid-line {
    position: absolute;
    background-color: #e9ecef;
    border-style: dashed;
    border-width: 1px;
    border-color: #e9ecef;
}

.dfe-psd-grid-horizontal {
    width: 100%;
    height: 0;
    border-top: 1px dashed #e9ecef;
}

.dfe-psd-grid-vertical {
    height: 100%;
    width: 0;
    border-left: 1px dashed #e9ecef;
}

/* Distribution curves */
.dfe-psd-graph-curves {
    position: absolute;
    top: 0;
    left: 80px;
    width: calc(100% - 80px);
    height: calc(100% - 60px);
}

.dfe-psd-curve {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dfe-psd-curve-svg {
    width: 100%;
    height: 100%;
}

/* Legends below the graph */
.dfe-psd-legends {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.dfe-psd-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    flex: 0 0 25%;
}

    .dfe-psd-legend-item:hover {
        box-shadow: none;
        transform: none;
    }

.dfe-psd-legend-color {
    width: 50px;
    height: 3px;
    border-radius: 2px;
    flex-shrink: 0;
    display: block;
}

/* Tablet Properties Legend - uses dots instead of lines */
.tablet-properties-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
}

.dfe-psd-legend-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* Controls Panel */
.dfe-psd-controls-panel {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px 0;
    margin-bottom: 30px;
    box-shadow: unset;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 500px;
}

.dfe-psd-controls-title {
    font-size: 18px;
    font-weight: 600;
    color: #012F44;
    margin-bottom: 20px;
    text-align: left;
}

/* Particle Size Control */
.dfe-psd-particle-size-control {
    margin-bottom: 25px;
}


.dfe-psd-slider-min,
.dfe-psd-slider-max {
    font-size: 12px;
    color: #6c757d;
}

.dfe-psd-particle-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #dee2e6;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

    .dfe-psd-particle-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: radial-gradient(circle, #ffffff 40%, #31576E 30%);
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
    }

        .dfe-psd-particle-slider::-webkit-slider-thumb:hover {
            background: radial-gradient(circle, #ffffff 40%, #31576E 30%);
            transform: scale(1.1);
        }

    .dfe-psd-particle-slider::-moz-range-thumb {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: radial-gradient(circle, #ffffff 40%, #31576E 30%);
        cursor: pointer;
        border: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
    }

        .dfe-psd-particle-slider::-moz-range-thumb:hover {
            background: radial-gradient(circle, #ffffff 40%, #31576E 30%);
            transform: scale(1.1);
        }

.dfe-psd-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    position: relative;
}

.dfe-psd-slider-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.dfe-psd-input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dfe-psd-particle-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    outline: none;
}

    .dfe-psd-particle-input:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }


/* Products List Panel */
.dfe-psd-products-list-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    flex: 1;
}

.dfe-psd-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #707070;
    box-shadow: none;
    border-radius: 0;
}

    .dfe-psd-product-item:last-child {
        border-bottom: none;
    }

.dfe-psd-product-name {
    font-size: 18px;
    font-weight: 500;
    color: #012F44;
    flex: 1;
}

.dfe-psd-product-item > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dfe-psd-product-input {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    outline: none;
    background: #ffffff;
}

    .dfe-psd-product-input:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

.dfe-psd-product-input-label {
    font-size: 15px;
    color: #012F44;
}

/* Add to Cart Button */
.dfe-psd-actions {
    margin-top: auto;
    padding-top: 20px;
}

.dfe-psd-add-to-cart-btn {
    width: 100%;
    padding: 10px 40px;
    background: #31576E;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .dfe-psd-add-to-cart-btn:hover {
        background: #012f44;
    }

.dfe-psd-slider-numbers-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dfe-cart-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
/* Responsive Design */
@media (max-width: 992px) {
    .custom-comparison-layout {
        flex-direction: row;
    }

    .custom-properties-column {
        flex: 0 0 250px;
        position: sticky;
        top: 0;
    }

    .custom-carousel-section {
        flex: 1;
    }

    .custom-carousel-wrapper {
        max-width: 100%;
    }

    .custom-product-column {
        flex: 0 0 50%;
    }

    .custom-carousel-arrow {
        display: flex;
    }
}

@media (max-width: 768px) {
    .custom-comparison-layout {
        flex-direction: row;
    }

    .custom-properties-column {
        flex: 0 0 180px;
        position: sticky;
        top: 0;
    }

    .custom-carousel-section {
        flex: 1;
    }

    .custom-comparison-section {
        padding: 20px 0;
    }

    .custom-product-column {
        flex: 0 0 100%;
        padding: 15px;
    }

    .custom-product-image-container {
        height: 150px;
    }

    .custom-product-name {
        font-size: 13px;
        min-height: 50px;
        padding-bottom: 0
    }

    .custom-data-item {
        font-size: 13px;
        min-height: 50px;
    }

    .custom-property-item {
        font-size: 12px;
        padding: 12px 10px;
        min-height: 50px;
    }

    .custom-properties-header {
        padding: 20px 10px;
        min-height: 80px;
    }

        .custom-properties-header h4 {
            min-height: 150px;
            font-size: 14px;
            padding-top: 0;
        }

    .custom-carousel-arrow {
        display: flex;
    }

    .dfe-tablet-graph-section {
        padding: 30px 0;
    }

    .dfe-tablet-graph-title {
        font-size: 1.5rem;
    }

    .dfe-tablet-graph-wrapper {
        padding: 20px;
    }
    
    .dfe-flowability-scale {
        height: 70px;
        padding-left: 50px;
    }
    
    .dfe-flowability-label {
        width: 50px;
        font-size: 13px;
        padding: 10px 6px;
    }
    
    .dfe-flowability-segment {
        font-size: 14px;
        padding: 0 15px;
    }
    
    .dfe-tablet-graph-chart {
        height: 400px;
    }

    .dfe-tablet-graph-y-axis {
        width: 60px;
    }

    .dfe-tablet-graph-x-axis {
        left: 60px;
        width: calc(100% - 60px);
    }

    .dfe-tablet-graph-grid,
    .dfe-tablet-graph-products,
    .dfe-tablet-graph-zones {
        left: 60px;
        width: calc(100% - 60px);
    }

    .dfe-tablet-product-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .dfe-psd-graph-section {
        padding: 30px 0;
    }

    .dfe-psd-graph-title {
        font-size: 1.5rem;
    }

    .dfe-psd-graph-wrapper {
        padding: 20px;
    }

    .dfe-psd-graph-layout {
        flex-direction: column;
        gap: 30px;
    }

    .dfe-psd-graph-left {
        order: 2;
    }

    .dfe-psd-graph-right {
        order: 1;
        min-width: auto;
    }

    .dfe-psd-graph-chart {
        height: 400px;
    }

    .dfe-psd-graph-y-axis {
        width: 60px;
    }

    .dfe-psd-graph-x-axis,
    .dfe-psd-graph-grid,
    .dfe-psd-graph-curves {
        left: 60px;
        width: calc(100% - 60px);
    }

    .dfe-psd-legends {
        gap: 20px;
        padding: 12px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .custom-comparison-layout {
        flex-direction: row;
    }

    .custom-properties-column {
        flex: 0 0 140px;
        position: sticky;
        top: 0;
    }
    .custom-product-name {
        padding-top: 0px;
    }
    .custom-carousel-section {
        flex: 1;
    }

    .custom-properties-header {
        padding: 15px 8px;
        min-height: 60px;
    }

        .custom-properties-header h4 {
            min-height: 50px;
            font-size: 12px;
            padding-top: 0;
        }

    .custom-property-item {
        font-size: 11px;
        padding: 5px 8px;
        min-height: 35px;
        height: 35px;
    }

    .custom-carousel-arrow {
        display: flex;
        width: 35px;
        height: 35px;
    }

    .custom-carousel-arrow i {
        font-size: 12px;
    }

    .dfe-zoom-modal-dialog-bottom {
        bottom: 140px;
        max-width: 95%;
    }

    .dfe-zoom-modal-container {
        max-height: 70vh;
        border-radius: 8px;
    }

    .dfe-zoom-modal-header {
        padding: 12px 15px;
    }

    .dfe-zoom-modal-title {
        font-size: 1rem;
    }

    .dfe-zoom-modal-body {
        padding: 10px;
    }

    .dfe-zoom-image-container {
        padding-bottom: 10px;
    }

    .dfe-zoom-image {
        max-height: calc(70vh - 120px);
    }

    .dfe-tablet-graph-container {
        padding: 0 10px;
    }

    .dfe-tablet-graph-wrapper {
        padding: 15px;
    }
    
    .dfe-flowability-scale {
        height: 60px;
        padding-left: 45px;
    }
    
    .dfe-flowability-label {
        width: 45px;
        font-size: 12px;
        padding: 8px 5px;
    }
    
    .dfe-flowability-segment {
        font-size: 13px;
        padding: 0 10px;
    }
    
    .dfe-tablet-graph-chart {
        height: 350px;
    }

    .dfe-tablet-graph-y-axis {
        width: 50px;
    }

    .dfe-tablet-graph-x-axis,
    .dfe-tablet-graph-grid,
    .dfe-tablet-graph-products,
    .dfe-tablet-graph-zones {
        left: 50px;
        width: calc(100% - 50px);
    }

    .dfe-tablet-product-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .dfe-psd-graph-container {
        padding: 0 10px;
    }

    .dfe-psd-graph-wrapper {
        padding: 15px;
    }

    .dfe-psd-graph-chart {
        height: 350px;
    }

    .dfe-psd-graph-y-axis {
        width: 50px;
    }

    .dfe-psd-graph-x-axis,
    .dfe-psd-graph-grid,
    .dfe-psd-graph-curves {
        left: 50px;
        width: calc(100% - 50px);
    }

    .dfe-psd-legends {
        gap: 15px;
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .dfe-psd-controls-panel,
    .dfe-psd-products-panel {
        padding: 15px;
    }

    .dfe-psd-controls-title,
    .dfe-psd-products-title {
        font-size: 16px;
    }
}

/* Applied Filters (pill) styles next to Filters button */
.dfe-applied-filters {
    gap: 8px;
    margin-right: 10px;
}

.dfe-filter-pill {
    border: 1px solid #012F44;
    color: #012F44;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    gap: 6px;
    transition: all .2s ease;
}

.dfe-filter-pill:hover {
    background: #eef3f6;
    border-color: #cfd8de;
}

.dfe-filter-pill-close {
    background: transparent;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c7a86;
    transition: background .2s ease, color .2s ease;
}

.dfe-filter-pill-close:hover {
    background: #e9eef2;
    color: #2f3b45;
}

.dfe-filter-pill-close i {
    font-size: 14px;
    line-height: 1;
}

/* Product Selection Modal Styles */
.dfe-psm-modal-dialog-bottom {
    position: fixed;
    bottom: 120px !important;
    left: 50%;
    transform: translateX(-50%) !important;
    margin: 0;
    /*max-width: 90%;*/
    width: 100%;
    z-index: 1055;
}

@media (min-width: 992px) {
    .dfe-psm-modal-dialog-bottom {
        max-width: 800px;
        bottom: 100px;
    }
}

@media (max-width: 768px) {
    .dfe-psm-modal-dialog-bottom {
        bottom: 140px;
        max-width: 95%;
    }
}

.dfe-psm-modal-content {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.dfe-psm-modal-header {
    border-bottom: 2px solid transparent;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

.dfe-psm-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #012F44;
    border-bottom: 3px solid #F04E37;
    padding-bottom: 10px;
    display: inline-block;
    margin: 0;
}

.dfe-psm-modal-close {
    margin: 0;
    opacity: 0.7;
}

.dfe-psm-modal-body {
    padding: 30px;
    max-height: 500px;
    overflow-y: auto;
}

.dfe-psm-table {
    margin-bottom: 0;
}

.dfe-psm-table thead tr {
    background-color: #f8f9fa;
}

.dfe-psm-table th {
    padding: 12px;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #012F44;
}

.dfe-psm-table th:first-child {
    width: 50px;
}

.dfe-psm-table-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.dfe-psm-table tbody {
    background-color: #fff;
}

    .dfe-psm-table tbody tr {
        border-bottom: 1px solid transparent;
    }

.dfe-psm-table tbody td {
    padding: 12px;
    vertical-align: middle;
    color: #333;
}

.dfe-psm-table tbody td:first-child {
    padding: 12px;
    vertical-align: middle;
}

.dfe-psm-table tbody .dfe-psm-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.dfe-psm-modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 30px;
    justify-content: center;
    gap: 15px;
    background-color: #fff;
}

.dfe-psm-btn-ask-expert {
    background-color: #F04E38;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.dfe-psm-btn-ask-expert:hover {
    background-color: #e55a2b;
    color: white;
}

.dfe-psm-btn-request-sample {
    background-color: #31576E;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.dfe-psm-btn-request-sample:hover {
    background-color: #011a28;
    color: white;
}

/* No Results Modal Styles */
#noResultsModal .dfe-psm-modal-body {
    padding: 30px;
}

#noResultsModal #noResultsMessage {
    font-size: 20px;
    color: #31576E;
    line-height: 1.6;
    margin: 0;
}

/* Icon toggle for all filters */
.filter-icon {
    position: relative;
}

.filter-icon-outline,
.filter-icon-filled,
.filter-icon-deselected {
    transition: opacity 0.3s ease;
}

.filter-icon-filled,
.filter-icon-deselected {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: auto;
    height: 58px;
}

/* Default state - show outline for all filters */
.filter-section .filter-icon-outline {
    opacity: 1;
}

.filter-section .filter-icon-filled,
.filter-section .filter-icon-deselected {
    opacity: 0;
}

/* Show filled icon on hover (only if not active and not deselected) */
.filter-section:not(.active):not(.deselected):hover .filter-icon-outline {
    opacity: 0;
}

.filter-section:not(.active):not(.deselected):hover .filter-icon-filled {
    opacity: 1;
}

/* Show filled icon when active/selected */
.filter-section.active .filter-icon-outline,
.filter-section.active .filter-icon-deselected {
    opacity: 0;
}

.filter-section.active .filter-icon-filled {
    opacity: 1;
}

/* Show deselected icon when deselected (another filter is active) */
.filter-section.deselected .filter-icon-outline,
.filter-section.deselected .filter-icon-filled {
    opacity: 0;
}

.filter-section.deselected .filter-icon-deselected {
    opacity: 1;
}

/* Prevent hover effect when deselected */
.filter-section.deselected:hover .filter-icon-deselected {
    opacity: 1;
}

/* Grayout text when deselected */
.filter-section.deselected .filter-heading {
    color: #999 !important;
    opacity: 0.5;
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* Normal text color when active or default */
.filter-section.active .filter-heading,
.filter-section:not(.deselected) .filter-heading {
    color: #52687B;
    opacity: 1;
}

.typical-data-info-text {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 25px;
    margin-top: 30px;
}
    .typical-data-info-text span {
        color: #979797;
        font-weight: 800;
    }

.custom-main-content-section {
    padding: 0 0 30px;
}

.dfe-product-info-description p{
    margin-bottom:0;
    font-weight:normal;
}
.cls-customer-pointer {
    cursor: pointer;
}
.no-click {
    pointer-events: none;
}

/* Range Input Wrapper with Label */
.dfe-range-input-wrapper {
    position: relative;
    display: inline-block;
}

.dfe-range-input-label {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #CBCBCB;
    font-size: 11px;
    font-weight: 400;
    pointer-events: none;
    z-index: 1;
    font-family: "Arimo", sans-serif;
}

.dfe-range-input-wrapper .dfe-range-input {
    padding-left: 32px;
    color: #4C7189;
    font-weight: 500;
    line-height: 42px;
}

#noResultsModal .modal-dialog-centered {
    min-height: 800px !important; /* change this value as needed */
}

/* Localhost: allow scrolling */
body.mainloader.is-localhost {
    overflow-y: auto;
}

/* Staging: when site is in iframe - hide overflow */
body.mainloader.is-in-iframe {
    overflow-y: hidden;
}
