.wc-calc {
    --wc-bg: #f7f3ee;
    --wc-panel: #ffffff;
    --wc-text: #1e2528;
    --wc-muted: #667075;
    --wc-line: #ddd6cf;
    --wc-accent: #0f766e;
    --wc-accent-dark: #115e59;
    --wc-soft: #e8f3f1;
    box-sizing: border-box;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px;
    background: var(--wc-bg);
    color: var(--wc-text);
    border: 1px solid var(--wc-line);
    border-radius: 8px;
    font-family: inherit;
}

.wc-calc *,
.wc-calc *::before,
.wc-calc *::after {
    box-sizing: border-box;
}

.wc-calc__header {
    margin-bottom: 20px;
}

.wc-calc__header h2 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.25;
}

.wc-calc__header p {
    margin: 0;
    color: var(--wc-muted);
    font-size: 16px;
}

.wc-calc__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
    align-items: start;
}

.wc-calc__form,
.wc-summary {
    background: var(--wc-panel);
    border: 1px solid var(--wc-line);
    border-radius: 8px;
    padding: 18px;
}

.wc-calc__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wc-preview {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    margin: 0;
}

.wc-preview img {
    display: block;
    width: 100%;
    max-height: 360px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #f1ece5;
    border: 1px solid var(--wc-line);
    border-radius: 8px;
}

.wc-preview figcaption {
    color: var(--wc-muted);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.wc-field {
    display: grid;
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
}

.wc-field span,
.wc-check span {
    color: var(--wc-text);
}

.wc-field input,
.wc-field select,
.wc-field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--wc-line);
    border-radius: 6px;
    padding: 10px 12px;
    background: #fff;
    color: var(--wc-text);
    font: inherit;
    font-weight: 400;
}

.wc-field textarea {
    resize: vertical;
}

.wc-field--inline {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--wc-line);
    border-radius: 6px;
    background: #fbfaf8;
}

.wc-field--inline input {
    min-height: 38px;
}

.wc-options {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.wc-check {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--wc-line);
    border-radius: 6px;
    background: #fbfaf8;
    font-size: 15px;
    font-weight: 700;
}

.wc-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--wc-accent);
}

.wc-summary {
    position: sticky;
    top: 16px;
}

.wc-summary__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--wc-line);
}

.wc-summary__top span {
    color: var(--wc-muted);
    font-weight: 700;
}

.wc-summary__top strong {
    font-size: 34px;
    line-height: 1;
}

.wc-summary__meta {
    margin: 14px 0;
    padding: 12px;
    border-radius: 6px;
    background: var(--wc-soft);
    color: var(--wc-text);
    font-size: 14px;
    line-height: 1.65;
}

.wc-breakdown {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.wc-breakdown__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #eee8e1;
    font-size: 15px;
}

.wc-breakdown__row:last-child {
    border-bottom: 0;
}

.wc-breakdown__row span:first-child {
    color: var(--wc-muted);
}

.wc-breakdown__row span:last-child {
    font-weight: 800;
    white-space: nowrap;
}

.wc-copy {
    width: 100%;
    min-height: 44px;
    margin-top: 16px;
    border: 0;
    border-radius: 6px;
    background: var(--wc-accent);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.wc-copy:hover,
.wc-copy:focus {
    background: var(--wc-accent-dark);
}

.wc-copy-status {
    min-height: 20px;
    margin: 8px 0 0;
    color: var(--wc-accent-dark);
    font-size: 14px;
}

@media (max-width: 820px) {
    .wc-calc {
        padding: 16px;
    }

    .wc-calc__grid,
    .wc-calc__form {
        grid-template-columns: 1fr;
    }

    .wc-options {
        grid-template-columns: 1fr;
    }

    .wc-summary {
        position: static;
    }
}
