/* ==============================
   Related Components
   Theme: #0093e6
================================= */

.related-components {
    margin-top: 28px;
    margin-bottom: 28px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce8f0;
    border-radius: 14px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(18, 73, 105, 0.06);
}

.related-components-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px 24px;
    background: linear-gradient(
        135deg,
        rgba(0, 147, 230, 0.10),
        rgba(0, 147, 230, 0.02)
    );
    border-bottom: 1px solid #dce8f0;
}

.related-components-head > div {
    min-width: 0;
}

.related-components-head span {
    display: block;
    margin-bottom: 5px;
    color: #0093e6;
    font-size: 12px;
    line-height: 20px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.related-components-head h2 {
    margin: 0;
    color: #17212b;
    font-size: 28px;
    line-height: 38px;
    font-weight: 800;
}

.related-components-head p {
    margin: 7px 0 0;
    color: #687585;
    font-size: 14px;
    line-height: 24px;
}

.related-components-head > strong {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 15px;
    color: #007fc7;
    font-size: 13px;
    line-height: 20px;
    font-weight: 800;
    background: #ffffff;
    border: 1px solid #bfe4f8;
    border-radius: 20px;
    box-sizing: border-box;
}

.related-components-list {
    padding: 0 24px 24px;
    overflow-x: auto;
}

.related-components-list table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    table-layout: fixed;
}

.related-component-row {
    background: #ffffff;
    box-shadow: 0 0 0 1px #e1e8ef;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-component-row:hover {
    box-shadow:
        0 0 0 1px #9fd9f7,
        0 8px 22px rgba(0, 107, 167, 0.10);
}

.related-component-row > td {
    padding: 16px;
    vertical-align: middle;
    background: #ffffff;
    box-sizing: border-box;
}

.related-component-row > td:first-of-type {
    border-radius: 10px 0 0 10px;
}

.related-component-row > td:last-of-type {
    border-radius: 0 10px 10px 0;
}

.related-component-image {
    width: 142px;
    text-align: center;
}

.related-component-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin: 0 auto;
    overflow: hidden;
    background: #f7f9fb;
    border: 1px solid #e4ebf1;
    border-radius: 8px;
}

.related-component-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.24s ease;
}

.related-component-row:hover .related-component-image img {
    transform: scale(1.035);
}

.related-component-info h3 {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.related-component-info h3 a {
    color: #17212b;
    text-decoration: none;
}

.related-component-info h3 a:hover {
    color: #0093e6;
}

.related-component-info > p {
    display: -webkit-box;
    max-width: 680px;
    margin: 7px 0 0;
    overflow: hidden;
    color: #657181;
    font-size: 13px;
    line-height: 21px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-component-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 26px;
    margin-top: 11px;
}

.related-component-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #4f5b69;
    font-size: 12px;
    line-height: 20px;
}

.related-component-meta em {
    color: #8a95a2;
    font-style: normal;
}

.related-component-meta a,
.related-component-meta strong {
    max-width: 180px;
    overflow: hidden;
    color: #2c3742;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-component-meta a:hover {
    color: #0093e6;
}

.related-component-stock {
    width: 150px;
    text-align: center;
}

.related-component-stock span {
    display: block;
    color: #8a95a2;
    font-size: 11px;
    line-height: 18px;
}

.related-component-stock strong {
    display: block;
    margin-top: 2px;
    color: #0079bb;
    font-size: 21px;
    line-height: 28px;
    font-weight: 800;
}

.related-component-stock em {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    margin-top: 4px;
    padding: 2px 9px;
    color: #16834e;
    font-size: 11px;
    line-height: 18px;
    font-style: normal;
    font-weight: 800;
    background: #ebf8f1;
    border-radius: 20px;
}

.related-component-actions {
    width: 245px;
}

.related-component-actions label {
    display: block;
}

.related-component-actions label > span {
    display: block;
    margin-bottom: 5px;
    color: #7b8794;
    font-size: 11px;
    line-height: 18px;
}

.related-component-actions input {
    display: block;
    width: 100%;
    height: 36px;
    padding: 5px 10px;
    color: #26313b;
    font-size: 13px;
    line-height: 24px;
    background: #ffffff;
    border: 1px solid #cbd7e0;
    border-radius: 5px;
    outline: none;
    box-sizing: border-box;
}

.related-component-actions input:focus {
    border-color: #0093e6;
    box-shadow: 0 0 0 3px rgba(0, 147, 230, 0.11);
}

.related-component-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.related-component-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 9px;
    font-size: 12px;
    line-height: 20px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    box-sizing: border-box;
}

.related-component-rfq {
    color: #ffffff !important;
    background: #0093e6;
    border: 1px solid #0093e6;
}

.related-component-rfq:hover {
    background: #007fca;
    border-color: #007fca;
}

.related-component-view {
    color: #007fc7 !important;
    background: #ffffff;
    border: 1px solid #a9d8f2;
}

.related-component-view:hover {
    background: #eef8fd;
}

@media (max-width: 1100px) {
    .related-component-image {
        width: 124px;
    }

    .related-component-stock {
        width: 130px;
    }

    .related-component-actions {
        width: 220px;
    }
}

@media (max-width: 900px) {
    .related-components-list {
        padding: 0 16px 16px;
    }

    .related-components-list table,
    .related-components-list tbody,
    .related-component-row {
        display: block;
        width: 100%;
    }

    .related-components-list table {
        border-spacing: 0;
    }

    .related-component-row {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        margin-top: 12px;
        border: 1px solid #e1e8ef;
        border-radius: 10px;
        box-shadow: none;
    }

    .related-component-row > td {
        display: block;
        width: auto;
        padding: 14px;
    }

    .related-component-row > td:first-of-type,
    .related-component-row > td:last-of-type {
        border-radius: 0;
    }

    .related-component-image {
        grid-row: 1 / span 2;
        padding-right: 0 !important;
    }

    .related-component-image a {
        width: 92px;
        height: 92px;
    }

    .related-component-info {
        padding-left: 10px !important;
    }

    .related-component-stock {
        grid-column: 1 / 2;
        padding-top: 0 !important;
        text-align: left;
    }

    .related-component-actions {
        grid-column: 2 / 3;
        padding-top: 0 !important;
        padding-left: 10px !important;
    }
}

@media (max-width: 600px) {
    .related-components {
        margin-top: 20px;
        border-radius: 10px;
    }

    .related-components-head {
        display: block;
        padding: 22px 18px 18px;
    }

    .related-components-head h2 {
        font-size: 24px;
        line-height: 34px;
    }

    .related-components-head > strong {
        margin-top: 14px;
    }

    .related-components-list {
        padding: 0 12px 12px;
    }

    .related-component-row {
        display: block;
        padding: 14px;
    }

    .related-component-row > td {
        width: 100%;
        padding: 0;
    }

    .related-component-image {
        float: left;
        width: 98px;
        margin-right: 13px;
    }

    .related-component-image a {
        width: 90px;
        height: 90px;
    }

    .related-component-info {
        min-height: 98px;
        padding: 0 !important;
    }

    .related-component-stock {
        clear: both;
        padding-top: 14px !important;
        text-align: left;
    }

    .related-component-stock span,
    .related-component-stock strong,
    .related-component-stock em {
        display: inline-flex;
        margin: 0 8px 0 0;
        vertical-align: middle;
    }

    .related-component-stock strong {
        font-size: 18px;
    }

    .related-component-actions {
        padding-top: 13px !important;
        padding-left: 0 !important;
    }
}
#cartInfoHint {
    position: fixed;
    left: 50%;
    top: 30%;
    z-index: 99999;
    margin: 0;
    transform: translateX(-50%);
    backface-visibility: hidden;
}

#cartInfoHint:hover {
    transform: translateX(-50%);
}