.ghz-pb-component-workspace {
    margin-top: 22px;
    padding: 18px;
    border: 1px solid #d9e3ed;
    border-radius: 14px;
    background: #fff;
}

.ghz-pb-cw-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ghz-pb-cw-head h3,
.ghz-pb-cw-grid h4,
.ghz-pb-cw-selected-wrap h4 {
    margin-top: 0;
}

.ghz-pb-cw-head p {
    margin-bottom: 0;
    color: #667085;
    line-height: 1.7;
}

.ghz-pb-cw-gate {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff3cd;
    color: #7a5300;
    font-size: 12px;
    font-weight: 800;
}

.ghz-pb-cw-family-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.ghz-pb-cw-family-tabs button {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #d4dde7;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.ghz-pb-cw-family-tabs button[aria-pressed="true"] {
    border-color: #6ca7df;
    background: #edf6ff;
    color: #123f6c;
}

.ghz-pb-cw-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 14px;
}

.ghz-pb-cw-search input,
.ghz-pb-cw-field select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d4dde7;
    border-radius: 9px;
    background: #fff;
    padding-inline: 11px;
}

.ghz-pb-cw-search button {
    min-height: 42px;
    padding: 7px 16px;
    border: 0;
    border-radius: 9px;
    background: #163c66;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.ghz-pb-cw-status {
    min-height: 22px;
    margin-top: 10px;
    font-size: 13px;
}

.ghz-pb-cw-status.is-error {
    color: #b42318;
}

.ghz-pb-cw-status.is-warning {
    color: #8a5a00;
}

.ghz-pb-cw-status.is-success {
    color: #067647;
}

.ghz-pb-cw-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: 18px;
    margin-top: 16px;
}

.ghz-pb-cw-products {
    display: grid;
    gap: 8px;
    max-height: 430px;
    overflow: auto;
}

.ghz-pb-cw-product {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 10px;
    width: 100%;
    padding: 9px;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    background: #fff;
    text-align: start;
    cursor: pointer;
}

.ghz-pb-cw-product:hover {
    border-color: #9dc3e8;
    background: #f8fbff;
}

.ghz-pb-cw-product-image {
    width: 62px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f5f7;
}

.ghz-pb-cw-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ghz-pb-cw-product-copy {
    min-width: 0;
}

.ghz-pb-cw-product-copy strong,
.ghz-pb-cw-product-copy small {
    display: block;
}

.ghz-pb-cw-product-copy strong {
    color: #101828;
}

.ghz-pb-cw-product-copy small {
    margin-top: 3px;
    color: #667085;
}

.ghz-pb-cw-selection {
    min-height: 150px;
    padding: 14px;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    background: #fafcff;
}

.ghz-pb-cw-field {
    display: grid;
    gap: 6px;
    margin: 12px 0;
}

.ghz-pb-cw-selected-wrap {
    margin-top: 18px;
}

.ghz-pb-cw-selected-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    margin-top: 8px;
}

.ghz-pb-cw-selected-item strong,
.ghz-pb-cw-selected-item small {
    display: block;
}

.ghz-pb-cw-selected-item small {
    color: #667085;
}

.ghz-pb-cw-selected-item .is-ready,
.ghz-pb-cw-selected-item .is-blocked {
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.ghz-pb-cw-selected-item .is-ready {
    background: #ecfdf3;
    color: #067647;
}

.ghz-pb-cw-selected-item .is-blocked {
    background: #fff3cd;
    color: #7a5300;
}

.ghz-pb-cw-selected-item button {
    border: 1px solid #d4dde7;
    border-radius: 8px;
    background: #fff;
    padding: 6px 10px;
    cursor: pointer;
}

.ghz-pb-cw-missing {
    grid-column: 1 / -1;
    font-family: monospace;
}

.ghz-pb-cw-layout-lock {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #f0d58a;
    border-radius: 11px;
    background: #fffaf0;
}

.ghz-pb-cw-layout-lock strong,
.ghz-pb-cw-layout-lock span {
    display: block;
}

.ghz-pb-cw-layout-lock span {
    margin-top: 5px;
    color: #6b5a2b;
    line-height: 1.7;
}

@media (max-width: 850px) {
    .ghz-pb-cw-head {
        display: block;
    }

    .ghz-pb-cw-gate {
        display: inline-block;
        margin-top: 10px;
    }

    .ghz-pb-cw-grid {
        grid-template-columns: 1fr;
    }

    .ghz-pb-cw-selected-item {
        grid-template-columns: 1fr;
    }
}
