/* MS Connector — Frontend Styles */

/* ── Box switcher on product page ─────────────────────────────── */
.msc-box-switcher {
    margin: 15px 0;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
}

.msc-box-toggle {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.msc-box-toggle label {
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.msc-box-toggle input[type="radio"] {
    margin-right: 5px;
}

.msc-box-savings-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 2px;
}

.msc-box-info {
    padding-top: 8px;
    border-top: 1px solid #e2e4e7;
}

.msc-box-info p {
    margin: 4px 0;
    font-size: 14px;
}

.msc-boxes-count-input {
    width: 70px;
    padding: 4px 8px;
    text-align: center;
}

.msc-extra-pieces-input {
    width: 70px;
    padding: 4px 8px;
    text-align: center;
}

.msc-box-inputs {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin: 6px 0;
}

.msc-box-inputs label {
    font-size: 14px;
    font-weight: 500;
}

.msc-extra-label {
    color: #555;
}

.msc-box-summary {
    margin: 8px 0 2px;
    padding: 6px 10px;
    background: #e8f5e9;
    border-radius: 4px;
    font-size: 14px;
}

/* ── Progress bar toward box discount ─────────────────────────── */
.msc-box-progress {
    margin: 12px 0 5px;
    padding: 10px 14px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
}

.msc-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.msc-progress-label {
    color: #555;
}

.msc-progress-savings {
    color: #2e7d32;
    font-weight: 600;
    font-size: 12px;
}

.msc-progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.msc-progress-bar-fill {
    height: 100%;
    background: #ff9800;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
    min-width: 2%;
}

.msc-progress-hint {
    font-size: 12px;
    color: #777;
}

.msc-progress-hint strong {
    color: #333;
}

/* ── Brand display ────────────────────────────────────────────── */
.msc-product-brand {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
}

.msc-loop-brand {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

/* ── Currency switcher ────────────────────────────────────────── */
.msc-currency-switcher {
    display: inline-flex;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.msc-curr-btn {
    padding: 6px 14px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.msc-curr-btn:not(:last-child) {
    border-right: 1px solid #ddd;
}

.msc-curr-btn.active {
    background: #0073aa;
    color: #fff;
}

.msc-curr-btn:hover:not(.active) {
    background: #f0f0f0;
}

/* ── USD price styling ────────────────────────────────────────── */
.msc-price-usd {
    font-weight: 600;
}

/* ── Personal discount notice in cart ─────────────────────────── */
.msc-personal-discount th,
.msc-personal-discount td {
    color: #0073aa;
}
