/* Keep the builder centered with room for selected components and actions. */
.ty-pc-builder-search {
    padding: 16px 0;
    color: #fff;
}
.ty-pc-builder-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.ty-pc-builder-search-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}
.ty-pc-builder-search-controls input {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px;
    border: 1px solid #888;
    border-radius: 10px;
    background: #242426;
    color: #fff;
    font: inherit;
    font-size: 16px;
}
.ty-pc-builder-search-controls input::placeholder {
    color: #bbb;
}
.ty-pc-builder-search-controls input:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.ty-pc-builder-search-controls button {
    flex: 0 0 auto;
}
.ty-pc-builder-search-status,
.ty-pc-builder-search-empty {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}
.ty-pc-builder-search-status {
    margin: 8px 0 0;
}
.js-pc-builder-product-picker [data-pc-builder-search-name][hidden],
.js-pc-builder-product-picker .ty-pc-builder-search-empty[hidden] {
    display: none;
}
.ty-pc-builder-page {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-top: 24px;
    box-sizing: border-box;
}
.ty-pc-builder-page .js-pc-builder-cart-error {
    color: #ffb3b3;
    padding-top: 12px;
    line-height: 1.5;
}
.ty-pc-builder-page .js-pc-builder-cart-error[hidden] {
    display: none;
}
.ty-pc-builder-page .ty-pc-builder-sect {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.ty-pc-builder-page .ty-pc-builder-components-wrap,
.ty-pc-builder-page .ty-pc-builder-summary-wrap {
    min-width: 0;
}
.ty-pc-builder-page .ty-details-wrap,
.ty-pc-builder-page .ty-price-holder {
    min-width: 0;
    overflow-wrap: anywhere;
}
.ty-pc-builder-page .ty-pc-builder-summary-wrap .ty-pc-builder-summary .ty-pc-builder-summary-counter {
    align-items: stretch;
}
.ty-pc-builder-page .ty-pc-builder-summary-wrap .ty-pc-builder-summary .ty-pc-builder-summary-counter > div {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px;
    overflow-wrap: anywhere;
}
.ty-pc-builder-page .ty-pc-builder-summary .ty-img-holder {
    max-width: 240px;
    margin-inline: auto;
    padding: 16px 24px;
    box-sizing: border-box;
}
@media (min-width: 960px) {
    .ty-pc-builder-page .ty-pc-builder-sect {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    }
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr) max-content;
        gap: 8px 12px;
    }
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component .ty-img-holder {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 56px;
        height: 56px;
    }
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component .ty-details-wrap {
        grid-column: 2;
        grid-row: 1;
        width: auto;
    }
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component .ty-price-holder {
        grid-column: 2;
        grid-row: 2;
        width: auto;
        text-align: left;
        white-space: nowrap;
    }
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component .ty-btn-holder {
        grid-column: 3;
        grid-row: 1 / span 2;
        width: auto;
        flex-direction: row;
        gap: 8px;
    }
}
@media (min-width: 1200px) {
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component {
        grid-template-columns: 64px minmax(0, 1fr) max-content max-content;
        column-gap: 16px;
    }
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component .ty-img-holder {
        grid-row: 1;
        width: 64px;
        height: 64px;
    }
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component .ty-price-holder {
        grid-column: 3;
        grid-row: 1;
        text-align: right;
    }
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component .ty-btn-holder {
        grid-column: 4;
        grid-row: 1;
    }
}
@media (max-width: 959px) {
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component {
        gap: 12px;
    }
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component .ty-img-holder {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
    }
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component .ty-details-wrap {
        flex: 1 1 auto;
        width: auto;
    }
    .ty-pc-builder-page .ty-pc-builder-components-wrap .ty-pc-builder-component .ty-btn-holder {
        flex: 0 0 auto;
        width: auto;
    }
}
