.zcwb-page {
    max-width: 980px;
    margin: 0 auto;
    --zcwb-accent: #ff631f;
    --zcwb-accent-hover: #e45718;
    --zcwb-accent-soft: rgba(255, 99, 31, 0.14);
}

.zcwb-shell {
    padding: 24px;
    border: 1px solid #d9dee6;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.zcwb-page .alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
}

.zcwb-page-intro {
    margin: 0 0 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid #e5e9f0;
    color: #5f6b76;
    font-size: 15px;
    line-height: 1.7;
}

.zcwb-page-intro p {
    margin: 0;
}

.zcwb-card {
    margin-bottom: 18px;
    border: 1px solid #d9dee6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.zcwb-card--soft {
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.zcwb-card--result {
    border-color: #d5e4d8;
}

.zcwb-card-section {
    padding: 20px 22px;
}

.zcwb-card-section > p {
    margin: 0 0 14px;
}

.zcwb-card-section > :last-child {
    margin-bottom: 0;
}

.zcwb-card-section + .zcwb-card-section {
    border-top: 1px solid #e6ebf2;
}

.zcwb-card-section--soft,
.zcwb-card-section--embedded {
    background: #f8fafc;
}

.zcwb-card-section--stacked {
    display: grid;
    gap: 22px;
}

.zcwb-card h2,
.zcwb-card h3 {
    margin: 0 0 14px;
    color: #1f2933;
}

.zcwb-card .form-group {
    margin-bottom: 16px;
}

.zcwb-card label {
    display: block;
    margin-bottom: 7px;
    color: #1f2933;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.zcwb-card .form-control,
.zcwb-card input[type="text"],
.zcwb-card input[type="email"],
.zcwb-card input[type="number"],
.zcwb-card textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd7e3;
    border-radius: 10px;
    background: #fff;
    color: #1f2933;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: none;
}

.zcwb-card textarea {
    min-height: 108px;
    resize: vertical;
}

.zcwb-card .form-control:focus,
.zcwb-card input[type="text"]:focus,
.zcwb-card input[type="email"]:focus,
.zcwb-card input[type="number"]:focus,
.zcwb-card textarea:focus {
    border-color: var(--zcwb-accent);
    outline: 0;
    box-shadow: 0 0 0 3px var(--zcwb-accent-soft);
}

.zcwb-readonly {
    background: #f4f7fb !important;
}

.zcwb-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.zcwb-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 0 22px 20px;
    color: #334155;
}

.zcwb-meta-line strong {
    color: #1f2933;
}

.zcwb-result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 22px;
    align-items: start;
}

.zcwb-result-layout .zcwb-card {
    margin-bottom: 0;
}

.zcwb-result-layout__full {
    grid-column: 1 / -1;
}

.zcwb-fact-list {
    display: grid;
    gap: 10px;
}

.zcwb-fact-list--compact .zcwb-fact {
    padding: 0;
    border: 0;
    background: transparent;
}

.zcwb-fact {
    display: grid;
    grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
    gap: 10px 16px;
    padding: 14px 16px;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    background: #fbfcfe;
}

.zcwb-fact:first-child {
    padding-top: 14px;
}

.zcwb-fact:last-child {
    padding-bottom: 14px;
}

.zcwb-fact-label {
    color: #5f6b76;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
    text-transform: uppercase;
}

.zcwb-fact-value {
    color: #1f2933;
    font-size: 15px;
    line-height: 1.7;
    word-break: break-word;
}

.zcwb-fact--multiline .zcwb-fact-value {
    white-space: pre-wrap;
}

.zcwb-prose {
    padding: 16px 18px;
    border: 1px solid #d9dee6;
    border-radius: 14px;
    background: #ffffff;
    color: #334155;
    font-size: 15px;
    line-height: 1.8;
}

.zcwb-prose p {
    margin: 0 0 12px;
}

.zcwb-prose p:last-child {
    margin-bottom: 0;
}

.zcwb-card-action-panel {
    padding: 18px;
    border: 1px solid #d9dee6;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.zcwb-card-note {
    margin: 0 0 14px;
    color: #5f6b76;
    font-size: 14px;
    line-height: 1.65;
}

.zcwb-summary-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border: 1px solid #d9dee6;
    border-radius: 12px;
    overflow: hidden;
}

.zcwb-summary-table th,
.zcwb-summary-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e9f0;
    vertical-align: top;
    text-align: left;
}

.zcwb-summary-table tr:last-child th,
.zcwb-summary-table tr:last-child td {
    border-bottom: 0;
}

.zcwb-summary-table th {
    width: 32%;
    background: #f8fafc;
    color: #5f6b76;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zcwb-summary-table td {
    color: #1f2933;
    font-size: 14px;
    line-height: 1.5;
}

.zcwb-summary-value--multiline {
    white-space: pre-wrap;
}

.zcwb-statement {
    white-space: pre-wrap;
    background: #f7fafc;
    border: 1px solid #d9dee6;
    border-radius: 12px;
    padding: 16px;
    color: #1f2933;
    line-height: 1.65;
}

.zcwb-card-section > .zcwb-statement,
.zcwb-card-section > .zcwb-prose,
.zcwb-card-section > .table-responsive,
.zcwb-card-section > .zcwb-card-action-panel {
    margin-top: 12px;
}

.zcwb-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.zcwb-page .btn,
.zcwb-page button,
.zcwb-page a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #cfd7e3;
    border-radius: 999px;
    background: #fff;
    color: #1f2933;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

.zcwb-page .btn:hover,
.zcwb-page button:hover,
.zcwb-page a.btn:hover,
.zcwb-page .btn:focus,
.zcwb-page button:focus,
.zcwb-page a.btn:focus {
    text-decoration: none;
    border-color: var(--zcwb-accent);
    color: var(--zcwb-accent);
}

.zcwb-page .btn-primary,
.zcwb-page button.btn-primary,
.zcwb-page a.btn-primary {
    border-color: var(--zcwb-accent);
    background: var(--zcwb-accent);
    color: #fff;
}

.zcwb-page .btn-primary:hover,
.zcwb-page button.btn-primary:hover,
.zcwb-page a.btn-primary:hover,
.zcwb-page .btn-primary:focus,
.zcwb-page button.btn-primary:focus,
.zcwb-page a.btn-primary:focus {
    background: var(--zcwb-accent-hover);
    border-color: var(--zcwb-accent-hover);
    color: #fff;
}

.zcwb-actions .btn {
    min-width: 220px;
}

.zcwb-support-list {
    margin: 0;
    padding-left: 18px;
}

.zcwb-order-panel {
    margin-bottom: 24px;
}

.zcwb-order-panel .alert {
    margin-bottom: 12px;
}

.zcwb-account-link {
    display: block;
    padding: 14px 16px;
    border: 1px solid #d9dee6;
    border-radius: 12px;
    background: #f7fafc;
    margin-bottom: 16px;
}

.zcwb-account-link strong {
    display: block;
    margin-bottom: 6px;
}

.zcwb-footer-link {
    margin: 12px 0;
}

.zcwb-footer-link a {
    display: inline-block;
    font-weight: 600;
    text-decoration: underline;
}

.zcwb-item-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border: 1px solid #d9dee6;
    background: #fff;
}

.zcwb-item-table th,
.zcwb-item-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e9f0;
    border-right: 1px solid #e5e9f0;
    vertical-align: middle !important;
    text-align: left;
}

.zcwb-item-table th:last-child,
.zcwb-item-table td:last-child {
    border-right: 0;
}

.zcwb-item-table tbody tr:last-child td {
    border-bottom: 0;
}

.zcwb-item-table thead th {
    background: #f8fafc;
    color: #5f6b76;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zcwb-item-meta {
    color: #6f7c87;
    font-size: 12px;
    margin-top: 4px;
}

.zcwb-qty-input {
    max-width: 120px;
}

.zcwb-item-unavailable {
    opacity: 0.8;
    background: #fafbfc;
}

.zcwb-preview-card {
    background: linear-gradient(135deg, #fff6f0 0%, #ffffff 100%);
    border-color: #f3c5ab;
}

.zcwb-preview-card-head h2 {
    margin: 0 0 8px;
}

.zcwb-preview-card-head p {
    margin: 0 0 18px;
    color: #6b7280;
}

.zcwb-preview-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.zcwb-preview-link {
    padding: 14px 16px;
    border: 1px solid #ead8cc;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
}

.zcwb-preview-link span {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zcwb-preview-link a {
    word-break: break-word;
}

.zcwb-table-responsive,
.zcwb-page .table-responsive {
    width: 100%;
    overflow-x: auto;
}

@media (max-width: 991px) {
    .zcwb-shell {
        padding: 18px;
    }

    .zcwb-field-grid {
        grid-template-columns: 1fr;
    }

    .zcwb-result-layout {
        grid-template-columns: 1fr;
    }

    .zcwb-result-layout__full {
        grid-column: auto;
    }

    .zcwb-summary-table th {
        width: 38%;
    }
}

@media (max-width: 767px) {
    .zcwb-shell,
    .zcwb-card-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .zcwb-meta-line {
        padding-left: 16px;
        padding-right: 16px;
    }

    .zcwb-summary-table,
    .zcwb-summary-table tbody,
    .zcwb-summary-table tr,
    .zcwb-summary-table th,
    .zcwb-summary-table td {
        display: block;
        width: 100%;
    }

    .zcwb-summary-table th {
        border-bottom: 0;
        padding-bottom: 4px;
    }

    .zcwb-summary-table td {
        padding-top: 0;
    }

    .zcwb-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .zcwb-qty-input {
        max-width: 100%;
    }

    .zcwb-fact {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
