/* =========================================================
   ADMIN STYLE
========================================================= */

.swpe-admin-info {
    padding: 10px 12px;
}

.swpe-admin-info span {
    color: #666;
}

.swpe-admin-button-wrap {
    padding: 0 12px 12px;
}

.wc-bundle-row {
    display: grid;
    grid-template-columns: 120px 120px 120px 150px 1fr 40px;
    gap: 10px;
    margin: 0 12px 12px;
    align-items: start;
}

.wc-bundle-row input,
.wc-bundle-row textarea {
    width: 100%;
    box-sizing: border-box;
}

.wc-bundle-row textarea {
    min-height: 74px;
    resize: vertical;
}

.wc-bundle-row .remove-bundle {
    width: 40px;
}

/* =========================================================
   FRONTEND PRODUCT PAGE STYLE
========================================================= */

.wc-bundle-ui {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 22px;
}

.wc-bundle-card {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 2px solid #e2e2e2;
    border-radius: 14px;
    padding: 16px 18px;
    cursor: pointer;
    background: #fff;
    transition: 0.2s ease;
    box-sizing: border-box;
}

.wc-bundle-card:hover {
    border-color: #999;
    transform: translateY(-1px);
}

.wc-bundle-card.active {
    border-color: #2271b1;
    background: #f5fbff;
}

.wc-bundle-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.wc-badge {
    display: inline-block;
    width: fit-content;
    background: #ffcc00;
    color: #111;
    padding: 3px 10px;
    font-size: 11px;
    line-height: 1.3;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 3px;
}

.wc-bundle-text {
    font-size: 16px;
    line-height: 1.35;
    color: #222;
}

.wc-bundle-text p {
    margin: 0;
}

.wc-bundle-text strong,
.wc-bundle-text b {
    font-weight: 800;
}

.wc-bundle-text span {
    line-height: inherit;
}

.wc-bundle-price {
    text-align: right;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.wc-bundle-price del {
    font-size: 13px;
    color: #999;
    margin-bottom: 3px;
}

.wc-bundle-price strong {
    font-size: 20px;
    color: #111;
    font-weight: 800;
}

/* =========================================================
   WOOCOMMERCE BLOCKS CART / CHECKOUT PRICE DISPLAY
========================================================= */

.wc-block-cart-item__prices,
.wc-block-components-product-price {
    white-space: pre-line !important;
    line-height: 1.25 !important;
}

/* Checkout / order summary: stara cena i nova cena jedna ispod druge */
span.wc-block-components-order-summary-item__individual-prices.price.wc-block-components-product-price,
ins.wc-block-components-product-price__value.is-discounted.wc-block-components-order-summary-item__individual-price {
    display: block !important;
}

/* Dodatno osiguranje za price wrapper u Woo Blocks */
.wc-block-components-order-summary-item__individual-prices.price.wc-block-components-product-price {
    display: block !important;
    white-space: pre-line !important;
    line-height: 1.25 !important;
}

.wc-block-components-product-price__value.is-discounted.wc-block-components-order-summary-item__individual-price {
    display: block !important;
    margin-top: 2px !important;
    font-weight: 700 !important;
}

/* Ako Woo Blocks ubaci price element */
.wc-block-cart-item__prices price,
.wc-block-components-product-price price {
    display: block !important;
    margin-top: 2px !important;
    font-weight: 700 !important;
}

.swpe-added-subtotal-row {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 12px;
    margin-top: 8px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 782px) {
    .wc-bundle-row {
        grid-template-columns: 1fr;
    }

    .wc-bundle-row .remove-bundle {
        width: auto;
    }
}

@media (max-width: 480px) {
    .wc-bundle-card {
        padding: 14px;
        gap: 12px;
    }

    .wc-bundle-text {
        font-size: 15px;
    }

    .wc-bundle-price strong {
        font-size: 18px;
    }
}
