/**
 * Mageplaza
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Mageplaza.com license that is
 * available through the world-wide-web at this URL:
 * https://www.mageplaza.com/LICENSE.txt
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this extension to newer
 * version in the future.
 *
 * @category    Mageplaza
 * @package     Mageplaza_TableCategoryView
 * @copyright   Copyright (c) Mageplaza (https://www.mageplaza.com/)
 * @license     https://www.mageplaza.com/LICENSE.txt
 */

 .product.product-item-details {
    display: grid; 
    grid-template-areas: "sku"
                         "name"
                         "price"
                         "add"
                         "stock";
 }

 .product.product-item-sku {
    grid-area: sku;
    font-weight: 700;
    padding-bottom: 7px;
 }

 .products.list.items.product-items .item.product.product-item .product-item-info {
    padding: 26px 10px;
 }
 .products.list.items.product-items .item.product.product-item:hover .product-item-info {
    padding: 0 5px;
    height: 100%;
 }

 .products.list.items.product-items .item.product.product-item {
    height: 500px;
 }

 .products.list.items.product-items .item.product.product-item:hover .prolabels-wrapper {
    height: auto;
 }

 .product-item-sku .title,
 .product-item-sku .text {
    font-size: 10px;
 }

 @media (max-width: 990px) {
    .product-item-sku .text {
        font-size: 12px;
     }
 }

#mptablecategory-table-view thead tr td {
    text-align: left;
    line-height: 1.6rem;
    font-weight: 700;
}

#mptablecategory-table-view tbody tr td {
    margin: auto;
}

#mptablecategory-table-view tbody tr {
    position: relative;
}

#mptablecategory-table-view {
    font-size: 1.4rem;
}

.mptablecategory-product-image {
    width: 60px;
    display: block;
}

.mptablecategory-product-qty input {
    width: 35px;
}

.mptablecategory-add-to-cart-button {
    width: 100px;
}
.mptablecategory-product-option {
    text-align: left;
}

.mptablecategory-product-image,
.mptablecategory-product-sku,
.mptablecategory-product-stock,
.mptablecategory-product-name,
.mptablecategory-product-qty,
.mptablecategory-product-description,
.mptablecategory-product-price,
.mptablecategory-product-review,
.mptablecategory-add-to-cart-button {
    text-align: left;
}

.mptablecategory-product-option > .mp-product-attribute > span,
.mptablecategory-product-option > .mp-product-customizable > span {
    font-weight: 700;
}

.mptablecategory-notify-error {
    max-width: 500px;
    padding: 10px 25px;
    background-color: #FAE5E5;
    color: #B30300;
    position: absolute;
    left: 285px;
    border-radius: 5px;
    z-index: 1;
}

#mptablecategory-popup {
    background: white;
    display: none;
}

.mptablecategory-popup-click {
    cursor: pointer;
}

#mptablecategory-popup .column {
    width: 100%;
}

.mptablecategoryview-list-options {
    list-style-type: none;
    margin-top: 15px;
    padding-left: 0;
}

.mptablecategoryview-list-options li span {
    font-weight: 700;
}
.mptablecategory-popup .columns .column.main {
    width: 100%;
}

.mptablecategory-popup #maincontent .product-info-main {
    width: 100%;
}

.mptablecategory-product-option #downloadable-links-list {
    margin-top: 15px;
}

.mptablecategory-product-option #downloadable-links-list .field {
    border-bottom: none;
}

.mptablecategory-select {
    padding: 15px 20px !important;
    margin-top: 50px;
}

.mptcv-table thead {
    font-size: 1.6rem;
    font-weight: 700;
}

.mptcv-table-image {
    max-width: 100px;
}

.mptcv-table-price, .mptcv-table-subtotal, .mptcv-table-status {
    font-size: 1.8rem;
    font-weight: 700;
}

.mptcv-success {
    color: #2DB14B;
}

.mptcv-errors {
    color: #F31B24;
}

.mptcv-table-action {
    text-align: center;
}

.mptcv-table-action button {
    padding: initial;
    font-size: 2rem;
    margin: 3px 30px;
    height: 55px;
    width: 210px;
    background: #EB5103;
    color: #ffffff;
    box-shadow: none;
    border-radius: 5px;
    border: none;
    white-space: nowrap;
}

#bundleSummary {
    float: left;
    padding: 0;
}

.mptcv-options-hide{
    display: none;
}
.mptcv-options-hide{
    display: none;
}
.mptablecategory-product-review {
    max-width: 100px;
}

.mptablecategory-product-review .product-reviews-summary .reviews-actions .action.add {
    white-space: normal;
}

.mptablecategory-product-option {
    min-width: 150px;
}

legend.legend.links-title{
    display: none;
}
.fieldset:last-child{
    margin-bottom: 0;
}


/* 1) Kolumny mają mieć przewidywalne szerokości */
#mptablecategory-table-view {
  width: 100%;
  table-layout: auto;
}

/* 2) W tabeli TD nie powinno być blokiem */
#mptablecategory-table-view td.mptablecategory-product-image {
  display: table-cell; /* zamiast block */
  max-width: 70px;         /* dopasuj */
}

/* 3) Stałe szerokości dla innych kolumn */
#mptablecategory-table-view td.mptablecategory-product-price {
  width: 170px;        /* dopasuj */
}

#mptablecategory-table-view td.mptablecategory-product-qty {
  width: 90px;         /* dopasuj */
}

#mptablecategory-table-view td.mptablecategory-add-to-cart-button {
  width: 120px;        /* dopasuj */
}

/* 4) Nazwa/SKU: ucinamy, żeby nie rozpychało */
#mptablecategory-table-view td.mptablecategory-product-name a.product-item-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* SKU pod nazwą (zostaje, ale mniejsze) */
#mptablecategory-table-view td.mptablecategory-product-name span {
  display: block;
  font-size: 12px;
  opacity: .8;
}


/* SKU pod nazwą (zostaje, ale mniejsze) */
#mptablecategory-table-view td.mptablecategory-product-name {
  width: 200px; 
  max-width: 200px;
}

.lightboxpro-advanced.theme-editor-sticky .mptablecategory-product-price .price-container .price-including-tax + .price-excluding-tax {
  justify-content: start;
  align-items: end;
}