.paint-calc {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fafcff;
}
.paint-calc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}
.paint-calc__title {
    font-size: 15px;
    font-weight: 600;
    color: #1b1b1b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.paint-calc__title-icon {
    width: 20px;
    height: 20px;
    color: #2d9cdb;
}
.paint-calc__toggle {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
    color: #888;
}
.paint-calc--open .paint-calc__toggle {
    transform: rotate(180deg);
}
.paint-calc__body {
    display: none;
    margin-top: 14px;
}
.paint-calc--open .paint-calc__body {
    display: block;
}

/* Step 1: Type selection */
.paint-calc__types {
    display: flex;
    gap: 10px;
}
.paint-calc__type-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #1b1b1b;
}
.paint-calc__type-btn:hover {
    border-color: #2d9cdb;
    background: #f0f8ff;
}
.paint-calc__type-btn--active {
    border-color: #2d9cdb;
    background: #ebf8ff;
}
.paint-calc__type-icon {
    width: 32px;
    height: 32px;
    color: #2d9cdb;
}

/* Step 2: Dimensions */
.paint-calc__step {
    display: none;
}
.paint-calc__step--active {
    display: block;
}
.paint-calc__wall {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.paint-calc__wall-label {
    font-size: 13px;
    font-weight: 500;
    color: #686868;
    min-width: 60px;
}
.paint-calc__input {
    width: 90px;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}
.paint-calc__input:focus {
    border-color: #2d9cdb;
}
.paint-calc__input::placeholder {
    color: #bbb;
    font-size: 12px;
}
.paint-calc__input-unit {
    font-size: 12px;
    color: #888;
}
.paint-calc__select {
    padding: 7px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fff;
    cursor: pointer;
}
.paint-calc__select:focus {
    border-color: #2d9cdb;
}
.paint-calc__wall-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.paint-calc__wall-remove:hover {
    color: #ff3131;
}
.paint-calc__add-wall {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: none;
    color: #2d9cdb;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}
.paint-calc__add-wall:hover {
    border-color: #2d9cdb;
}

/* Ceiling inputs */
.paint-calc__ceiling-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

/* Buttons row */
.paint-calc__buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.paint-calc__btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}
.paint-calc__btn:hover {
    opacity: 0.85;
}
.paint-calc__btn--back {
    background: #f2f2f2;
    color: #686868;
}
.paint-calc__btn--next {
    background: #2d9cdb;
    color: #fff;
}
.paint-calc__btn--cart {
    background: #27ae60;
    color: #fff;
}

/* Step 3: Results */
.paint-calc__result {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px;
}
.paint-calc__result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #1b1b1b;
}
.paint-calc__result-row + .paint-calc__result-row {
    border-top: 1px solid #f2f2f2;
}
.paint-calc__result-label {
    color: #686868;
}
.paint-calc__result-value {
    font-weight: 600;
}
.paint-calc__result-value--accent {
    color: #2d9cdb;
    font-size: 16px;
}
.paint-calc__recommendation {
    margin-top: 10px;
    padding: 10px 14px;
    background: #ebf8ff;
    border-radius: 6px;
    font-size: 13px;
    color: #0c3c57;
}
.paint-calc__recommendation strong {
    font-weight: 600;
}

/* Standalone page variant */
.paint-calc--standalone {
    max-width: 600px;
    margin: 0 auto 24px;
    border: none;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 24px;
}
.paint-calc--standalone .paint-calc__header {
    cursor: pointer;
}
.paint-calc--standalone .paint-calc__types {
    gap: 16px;
}
.paint-calc--standalone .paint-calc__type-btn {
    padding: 20px 14px;
    font-size: 15px;
}
.paint-calc--standalone .paint-calc__type-icon {
    width: 40px;
    height: 40px;
}

/* Mobile link */
.paint-calc__mobile-link {
    display: none;
}

@media (max-width: 768px) {
    .paint-calc__mobile-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #2d9cdb;
        font-size: 13px;
        cursor: pointer;
        margin-bottom: 8px;
        text-decoration: underline;
    }
    .paint-calc__wall {
        flex-wrap: wrap;
    }
    .paint-calc__input {
        width: 75px;
    }
    .paint-calc__types {
        gap: 8px;
    }
    .paint-calc__type-btn {
        padding: 10px 8px;
        font-size: 13px;
    }
}
