/**
 * multisplit-configurator.css — стили калькулятора мульти-сплит (ТЗ v2.0, шаг 3).
 * Светлые тона, акцент #1e73be. Файл UTF-8.
 */

.ms-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin: 24px 0 40px;
}

@media (min-width: 992px) {
    .ms-showcase {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    }
}

.ms-kit-card {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ms-kit-image {
    text-align: center;
    padding: 0;
    background: #fafafa;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 7 / 5;
    overflow: hidden;
}

.ms-kit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ms-kit-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ms-kit-title {
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 4px;
}

.ms-kit-title a {
    color: #1e73be;
    text-decoration: none;
}

.ms-kit-title a:hover {
    text-decoration: underline;
}

.ms-kit-internal {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.ms-kit-price {
    font-size: 22px;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 2px;
}

.ms-kit-price .woocommerce-Price-amount {
    color: #c0392b;
}

.ms-kit-price-note {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.ms-kit-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}

.ms-toggle {
    display: inline-block;
    padding: 10px 18px;
    border: 0;
    border-radius: 4px;
    background: #1e73be;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
}

.ms-toggle:hover {
    background: #1661a3;
}

.ms-calc {
    margin-top: 18px;
    border-top: 1px dashed #ddd;
    padding-top: 14px;
}

.ms-calc-note {
    font-size: 13px;
    color: #777;
    margin: 0 0 12px;
}

.ms-rooms-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ms-room {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ms-room-label {
    min-width: 88px;
    font-size: 13px;
    color: #444;
}

.ms-room-input {
    width: 90px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.ms-room-input:focus {
    border-color: #1e73be;
    outline: none;
}

.ms-room-unit {
    font-size: 13px;
    color: #666;
}

.ms-room-del {
    width: 26px;
    height: 26px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.ms-room-del:hover {
    background: #fdecea;
    color: #c0392b;
    border-color: #f0b9b4;
}

.ms-rooms-actions {
    margin-top: 10px;
}

.ms-room-add {
    border: 1px dashed #1e73be;
    background: #fff;
    color: #1e73be;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.ms-room-add:hover {
    background: #eef5fc;
}

.ms-result {
    margin-top: 14px;
}

.ms-result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ms-result-table th,
.ms-result-table td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.ms-result-table thead th {
    background: #f7f9fb;
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
}

.ms-result-table a {
    color: #1e73be;
}

.ms-row-external td {
    background: #f2f7fd;
}

.ms-loading {
    color: #888;
    font-style: italic;
    margin: 0;
}

.ms-total {
    margin-top: 10px;
    font-size: 15px;
}

.ms-total strong {
    color: #c0392b;
}

.ms-add-cart {
    display: inline-block;
    margin-top: 12px;
    padding: 11px 20px;
    border: 0;
    border-radius: 4px;
    background: #27ae60;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.ms-add-cart:hover:not(:disabled) {
    background: #229954;
}

.ms-add-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ms-msg {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.ms-msg-ok {
    background: #eafaf1;
    color: #1e8449;
    border: 1px solid #a9dfbf;
}

.ms-msg-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f0b9b4;
}

.ms-none {
    color: #888;
    font-style: italic;
}
