.pp-linked-products {
    margin: 20px;
}

.pp-linked-products__title {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

/* Filter styles */
.pp-linked-products__filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pp-linked-products__filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
}

.pp-linked-products__filter-name {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.pp-linked-products__filter-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.9rem;
    min-width: 120px;
    cursor: pointer;
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .pp-linked-products__filter-group {
        width: calc(33.333% - 8px);
    }
}

.pp-linked-products__filter-button {
    padding: 8px 15px;
    background-color: #5f9ea0;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.pp-linked-products__filter-button:hover {
    background-color: #4a7d7f;
}

.pp-linked-products__qty {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.pp-linked-products__cart-button {
    padding: 6px 12px;
    background-color: #38a9ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    min-width: 87px;
}

.pp-linked-products__cart-button:hover {
    background-color: #0273ca;
}

/* Scrollable table container */
.pp-linked-products__table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.pp-linked-products__table {
    width: 100%;
    border-collapse: collapse;
}

.pp-linked-products__table th,
.pp-linked-products__table td {
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
    text-align: center !important;
}

.pp-linked-products__table .pp--name {
    text-align: left !important;
    min-width: 200px;
}

.pp-linked-products__table .pp--price,
.pp-linked-products__table .pp--code {
    font-weight: 600;
    text-align: right !important;
    direction: rtl;
    unicode-bidi: plaintext;
}

.pp-linked-products__table thead th {
    background: #f7f7f7;
    font-weight: 600;
    color: #000 !important;
    position: sticky;
    top: 0;
    z-index: 1;
}

.pp-linked-products__table a {
    color: inherit;
    text-decoration: none;
}

.pp-linked-products__table a:hover {
    text-decoration: underline;
}
.pp-linked-products__title {
    font-weight: 600;
}

.pp-linked-products__table .pp--code {
    max-width: 120px;
    overflow-wrap: break-word !important;
}