/* Калькулятор обоев */
.wpc-app {
    max-width: 560px;
}

.wpc-app [hidden] {
    display: none !important;
}

.wpc-section {
    margin-bottom: 22px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.wpc-section--price {
    background: linear-gradient(165deg, #f9f5ff 0%, #fff 55%);
    border-color: #e8daff;
}

.wpc-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
}

.wpc-icon {
    font-size: 1.15em;
    line-height: 1;
}

.wpc-room-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 12px;
    align-items: start;
    width: 100%;
}

.wpc-field-full {
    grid-column: 1 / -1;
}

.wpc-room-grid .calc-field {
    margin-bottom: 0 !important;
    min-width: 0;
}

.wpc-openings-note,
.wpc-rapport-hint,
.wpc-match-hint,
.wpc-trim-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.45;
}

.wpc-openings-note {
    padding: 10px 12px;
    background: #f5f5f7;
    border-radius: 12px;
}

.wpc-match-chips {
    margin-bottom: 6px;
}

.wpc-result-sheet {
    padding: 16px 14px;
    background: #fafafa;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
}

.wpc-sheet-meta {
    margin: 0 0 14px;
    font-size: 12px;
    color: #6e6e73;
    text-align: center;
    line-height: 1.45;
}

.wpc-result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 10px;
}

.wpc-action {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #e5e5ea;
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.wpc-action:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: #f9f5ff;
}

.wpc-action:disabled {
    opacity: 0.5;
    cursor: default;
}

.wpc-result-hero {
    text-align: center;
    margin-bottom: 18px;
}

.wpc-app .calc-result-value--accent {
    color: #7c3aed;
}

.wpc-hero-sub {
    margin: 8px 0 0;
    font-size: 14px;
    color: #6e6e73;
    line-height: 1.45;
}

.wpc-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.wpc-summary-col {
    padding: 12px 10px;
    background: #f5f5f7;
    border-radius: 14px;
    text-align: center;
}

.wpc-summary-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6e6e73;
    margin-bottom: 6px;
}

.wpc-summary-big {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.2;
}

.wpc-summary-sub {
    margin-top: 4px;
    font-size: 11px;
    color: #86868b;
    line-height: 1.35;
}

.wpc-cost {
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f3ebff 0%, #fff 100%);
    border: 1px solid #e8daff;
    border-radius: 14px;
}

.wpc-cost-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6e6e73;
}

.wpc-cost-total {
    font-size: 24px;
    font-weight: 700;
    color: #7c3aed;
    margin-bottom: 10px;
}

.wpc-cost-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #333;
}

.wpc-cost-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.12);
}

.wpc-cost-list li:last-child {
    border-bottom: none;
}

.wpc-cost-list small {
    display: block;
    color: #86868b;
    font-size: 11px;
    font-weight: 400;
}

#wpc-price-fields[hidden] {
    display: none !important;
}

@media print {
    body.wpc-print-body {
        margin: 0;
        padding: 16px;
        background: #fff;
        color: #111;
    }

    .wpc-print-title {
        margin: 0 0 4px;
        font-size: 18px;
        font-weight: 700;
        text-align: center;
    }

    .wpc-print-footer {
        margin: 14px 0 0;
        font-size: 11px;
        color: #86868b;
        text-align: center;
    }

    .wpc-result-sheet {
        border: none;
        background: #fff;
        padding: 0;
    }

    .wpc-result-actions,
    .calc-note {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .wpc-summary {
        grid-template-columns: 1fr;
    }
}
