/**
 * Εν Ατμώ — Mixing Bundle Calculator Styles
 * Τοποθέτηση: child-theme/css/mixing-bundle.css
 */

/* ─── CONTAINER ────────────────────────────────────────────────────────── */
.enatmo-bundle {
    margin-top: 30px;
    padding: 24px;
    background: #f8f9fa;
    border: 2px solid #e2e6ea;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.enatmo-bundle__title {
    margin: 0 0 12px 0;
    padding: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 1px solid #dee2e6;
}

/* ─── RATIO DEVIATION WARNING ─────────────────────────────────────────── */
.enatmo-bundle__ratio-warning {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #ffa000;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #5d4037;
}

/* ─── CONTROLS (Select/Deselect all) ──────────────────────────────────── */
.enatmo-bundle__controls {
    margin-bottom: 16px;
    font-size: 13px;
}

.enatmo-bundle__controls a {
    color: #5a67d8;
    text-decoration: none;
    font-weight: 500;
}

.enatmo-bundle__controls a:hover {
    text-decoration: underline;
}

/* ─── ITEMS LIST ──────────────────────────────────────────────────────── */
.enatmo-bundle__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.enatmo-bundle__item {
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #ffffff;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.enatmo-bundle__item:hover {
    border-color: #5a67d8;
    box-shadow: 0 1px 4px rgba(90, 103, 216, 0.15);
}

.enatmo-bundle__item--oos {
    opacity: 0.5;
    background: #f0f0f0;
}

.enatmo-bundle__item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

/* ─── CHECKBOX ────────────────────────────────────────────────────────── */
.enatmo-bundle__checkbox {
    width: 18px;
    height: 18px;
    accent-color: #5a67d8;
    cursor: pointer;
    flex-shrink: 0;
}

/* ─── ITEM IMAGE ─────────────────────────────────────────────────────── */
.enatmo-bundle__item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ─── ITEM INFO ───────────────────────────────────────────────────────── */
.enatmo-bundle__item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.enatmo-bundle__item-name {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
}

.enatmo-bundle__item-name:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.enatmo-bundle__qty {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 1px 6px;
    border-radius: 4px;
}

.enatmo-bundle__oos {
    font-size: 12px;
    color: #dc3545;
    font-weight: 600;
}

/* ─── ITEM PRICE ──────────────────────────────────────────────────────── */
.enatmo-bundle__item-price {
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    margin-left: auto;
}

/* ─── TOTALS ──────────────────────────────────────────────────────────── */
.enatmo-bundle__totals {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #dee2e6;
}

.enatmo-bundle__subtotal,
.enatmo-bundle__discount,
.enatmo-bundle__total {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.enatmo-bundle__subtotal {
    font-size: 14px;
    color: #495057;
}

.enatmo-bundle__discount {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

.enatmo-bundle__discount-value {
    color: #28a745;
}

.enatmo-bundle__total {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    padding-top: 8px;
    border-top: 1px solid #dee2e6;
    margin-top: 4px;
}

/* ─── ADD TO CART BUTTON ──────────────────────────────────────────────── */
.enatmo-bundle__add-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #ffffff !important;
    background: #1c61e7 !important;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
}

.enatmo-bundle__add-btn:hover:not(:disabled) {
    background: #1c61e7;
}

.enatmo-bundle__add-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── STATUS MESSAGE ──────────────────────────────────────────────────── */
.enatmo-bundle__status {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
}

.enatmo-bundle__status.success {
    color: #28a745;
    font-weight: 600;
}

.enatmo-bundle__status.error {
    color: #dc3545;
    font-weight: 600;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .enatmo-bundle {
        padding: 16px;
        margin-top: 20px;
    }

    .enatmo-bundle__item label {
        flex-wrap: wrap;
    }

    .enatmo-bundle__item-price {
        width: 100%;
        text-align: right;
        margin-top: 4px;
        padding-left: 28px; /* offset for checkbox */
    }

    .enatmo-bundle__add-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}
