/**
 * Product Set Cart - Frontend Styles (Absolute Compact)
 */

/* Ukryj zduplikowany opis z bloku motywu (wp-block-post-excerpt) – opis jest już w .psc-set-summary */
body.psc-single-set .wp-block-post-excerpt {
    display: none !important;
}

.psc-set-contents {
    margin: 15px 0 25px 0;
    padding: 0;
    background: transparent;
    border: none;
    clear: both;
    display: block;
    width: 100%;
}

/* Compact Table */
.psc-set-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 10px;
    border: none !important;
}

.psc-set-table td {
    padding: 10px 0;
    vertical-align: middle;
    border: none !important;
}

.psc-set-table tr {
    border: none !important;
}

.psc-set-table .psc-name {
    color: #444;
}

.psc-set-table .psc-qty {
    text-align: right;
    width: 70px;
    color: #777;
}

.psc-set-table .psc-price {
    text-align: right;
    width: 160px;
    color: #444;
    font-size: 15px;
    font-weight: 500;
}

/* Savings info compact */
.psc-savings-info {
    font-size: 11px;
    color: #666;
}

.psc-savings-info .psc-save {
    color: #46b450;
    font-weight: 600;
    margin-left: 10px;
}

/* Old price styling */
.psc-old-price {
    color: #000;
    font-size: 16px;
    margin-right: 8px;
    text-decoration: line-through;
    opacity: 0.6;
}

.psc-set-price {
    text-decoration: none;
    color: #000;
    font-weight: 800;
    font-size: 20px;
    display: block;
}

/* Savings Badge */
.psc-savings-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #46b450;
    color: #fff;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 2px;
    z-index: 9;
}
/* Components list (moved from inline styles) */
.psc-out-of-stock-notice {
    margin-bottom: 20px;
    padding: 12px;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.psc-set-table tr.is-out-of-stock {
    opacity: 0.6;
}

.psc-set-table tr.is-out-of-stock a {
    color: inherit;
    text-decoration: none;
}

.psc-set-table .psc-out-of-stock {
    margin-left: 10px;
    color: #d00;
    font-size: 0.8em;
    font-weight: 700;
}

.psc-set-table .psc-price del {
    margin-right: 4px;
    font-size: 0.9em;
    opacity: 0.6;
}

.psc-set-table .psc-price ins {
    color: #46b450;
    font-weight: 600;
    text-decoration: none;
}

/* "Also available in a set" box */
.psc-bundles-containing-product {
    margin-top: 25px;
}

.psc-bundles-containing-product strong {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
}

.psc-bundles-containing-product ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.psc-bundles-containing-product li {
    margin-bottom: 8px;
}

.psc-bundles-containing-product a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.psc-bundles-containing-product a::before {
    content: "\203A";
    color: #46b450;
}

/* Layout of the quantity field and button for bundle-style add-to-cart forms */
.bundle_button {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.bundle_button .quantity {
    margin: 0 !important;
}

.bundle_button .bundle_add_to_cart_button,
.bundle_button .single_add_to_cart_button {
    white-space: nowrap;
    flex-shrink: 0;
}

.bundle_button input.qty {
    min-width: 60px;
    text-align: center;
}
