/* ==========================================================
   DATALOGGER.PK PRODUCT COMPARISON
   Everything is scoped under .dlpc-wrap
========================================================== */

.dlpc-wrap,
.dlpc-wrap * {
    box-sizing: border-box;
}

.dlpc-wrap {
    width: 100%;
    max-width: 100%;
    margin: 40px 0 12px;
    padding: 34px;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    background: #fff;
    color: #202020;
    font-family: inherit;
}

.dlpc-heading {
    margin-bottom: 24px;
}

.dlpc-eyebrow {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .12em;
    color: #8b0000;
}

.dlpc-heading h2 {
    margin: 0 0 8px;
    padding: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f1f1f;
}

.dlpc-heading p {
    max-width: 760px;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

.dlpc-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid #ececec;
    border-radius: 6px;
    background: #fafafa;
}

.dlpc-selector label {
    flex: 0 0 auto;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.dlpc-select {
    min-width: 320px;
    height: 46px;
    margin: 0;
    padding: 0 40px 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    line-height: 46px;
    box-shadow: none;
}

.dlpc-select:focus {
    outline: none;
    border-color: #8b0000;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, .08);
}

.dlpc-compare-btn {
    min-height: 46px;
    margin: 0;
    padding: 0 22px;
    border: 1px solid #8b0000;
    border-radius: 4px;
    background: #8b0000;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.dlpc-compare-btn:hover:not(:disabled) {
    background: #700000;
    border-color: #700000;
}

.dlpc-compare-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.dlpc-result {
    width: 100%;
}

.dlpc-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.dlpc-table {
    width: 100%;
    min-width: 680px;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    background: #fff;
}

.dlpc-table th,
.dlpc-table td {
    padding: 15px 16px;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: middle;
    text-align: left;
    font-size: 14px;
    line-height: 1.55;
}

.dlpc-table th:last-child,
.dlpc-table td:last-child {
    border-right: 0;
}

.dlpc-table tr:last-child td {
    border-bottom: 0;
}

.dlpc-table thead th {
    padding: 18px 16px;
    background: #f7f7f7;
    color: #222;
    font-weight: 600;
}

.dlpc-table thead th:first-child {
    width: 25%;
}

.dlpc-table thead th:not(:first-child) {
    width: 37.5%;
}

.dlpc-table tbody td:first-child {
    background: #fafafa;
    color: #444;
    font-weight: 600;
}

.dlpc-product-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.dlpc-product-head img {
    display: block;
    width: 74px;
    height: 74px;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

.dlpc-product-head a {
    color: #222;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
}

.dlpc-product-head a:hover {
    color: #8b0000;
}

.dlpc-price {
    display: block;
    color: #8b0000;
    font-size: 14px;
    font-weight: 700;
}

.dlpc-placeholder {
    min-height: 80px;
    display: flex;
    align-items: center;
    color: #777;
    font-size: 14px;
    font-weight: 400;
}

.dlpc-clear {
    margin-top: 14px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #777;
    font-family: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.dlpc-clear:hover {
    color: #8b0000;
}

@media (max-width: 767px) {
    .dlpc-wrap {
        margin-top: 34px;
        padding: 22px 16px;
        border-radius: 6px;
    }

    .dlpc-heading h2 {
        font-size: 23px;
    }

    .dlpc-heading p {
        font-size: 14px;
        line-height: 1.6;
    }

    .dlpc-selector {
        display: block;
        padding: 15px;
    }

    .dlpc-selector label {
        display: block;
        margin-bottom: 8px;
    }

    .dlpc-select {
        display: block;
        width: 100%;
        min-width: 0;
        margin-bottom: 10px;
    }

    .dlpc-compare-btn {
        display: block;
        width: 100%;
    }

    .dlpc-table {
        min-width: 650px;
    }
}


/* Description-tab placement: remain scoped and inherit the site's typography. */
.dlpc-wrap {
    clear: both;
}
