[data-tb-launch-model][hidden], [data-tb-design-review-slot][hidden] { display: none !important; }
[data-tb-launch-model]:not([hidden]) + #tbqq-overview-cta { display: none !important; }
/* Match the product toolbar's primary custom-work action, including theme overrides. */
.productView .tbProduct-tools button.button[data-tb-launch-model] {
    --design-color: #d60000;
    --design-hover: #a80000;
    background: var(--design-color) !important;
    border-color: var(--design-color) !important;
    color: white !important;
    gap: 8px;
}
.productView .tbProduct-tools button[data-tb-launch-model][data-resume-key]:not([data-resume-key=""]) {
    --design-color: #2e7d32;
    --design-hover: #245e28;
}
.productView .tbProduct-tools button.button[data-tb-launch-model]:is(:hover, :focus-visible, :active) {
    background: var(--design-hover) !important;
    border-color: var(--design-hover) !important;
}
[data-tb-launch-model] svg { width: 23px; height: 23px; flex: none; vertical-align: middle; }
[data-tb-design-review] { position: relative; }
[data-design-count] { font-weight: inherit; }
[data-design-compact-count] { display: none; }
@media (max-width: 1199px) {
    .tb-header-main [data-design-compact-count] {
        display: block; position: absolute; right: 0; top: 0; min-width: 16px;
        padding: 1px 3px; border-radius: 10px; background: #245e28; color: white;
        font: bold 10px/14px sans-serif; text-align: center;
    }
}
.tb-designer-tile .tb-designer-photo { display: block; color: inherit; }
.tb-designer-tile .tb-tile__link-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tb-designer-tile .tb-tile__title { flex: 1 1 65px; }
.tb-designer-tile .tb-designer-shop { color: inherit; text-decoration: none; }
.tb-designer-pair { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
html.tb-designer-open { overflow: hidden; }
dialog.tb-designer-dialog { position: fixed; inset: 0; margin: auto; width: 97vw; max-width: 1900px; height: 94vh; height: 94dvh; max-height: none; padding: 0; border: 1px solid #c8c5c0; border-radius: 8px; background: white; color: #222; }
dialog.tb-designer-dialog[open] { display: flex; flex-direction: column; }
.tb-designer-dialog::backdrop { background: rgba(22, 22, 22, .58); }
.tb-designer-dialog header { display: flex; flex: none; gap: 10px; align-items: center; padding: 6px 12px; border-bottom: 1px solid #d7d4cf; }
.tb-designer-dialog header span { margin-left: auto; }
.tb-designer-dialog header button, .tb-designer-dialog header a.tb-designer-action { text-decoration: none; appearance: none; border-radius: 5px; background: #f6f5f2; color: #553911; border: 1px solid #c8c5c0; padding: 8px 12px; cursor: pointer; font: inherit; }
.tb-designer-dialog .tb-designer-help { background: transparent; border: 0; text-decoration: underline; }
.tb-designer-dialog iframe { flex: 1 1 auto; min-height: 0; border: 0; width: 100%; }
.tb-designer-dialog p[role=status] { padding: 12px; margin: 0; }
@media (max-width: 720px) {
    dialog.tb-designer-dialog { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
    .tb-designer-dialog header { gap: 4px; font-size: 13px; }
    .tb-designer-dialog header button { padding: 8px 6px; min-height: 40px; }
    [data-tb-design-review-slot] button { white-space: normal !important; line-height: 1.1; }
}

dialog.tb-designer-dialog.is-expanded { inset: 0; margin: 0; width: 100vw; max-width: none; height: 100dvh; border-radius: 0; }
.tb-designer-dialog header nav { display: flex; gap: 6px; margin-left: auto; }
.tb-designer-dialog header [data-back], .tb-designer-dialog header [data-expand] { min-width: 36px; font-size: 20px; line-height: 1; }
@media (max-width: 720px) {
    .tb-designer-dialog header { flex-wrap: wrap; }
    .tb-designer-dialog header strong { flex: 1; }
    .tb-designer-dialog header nav { order: 1; width: 100%; margin: 0; }
    .tb-designer-dialog header nav > * { flex: 1; text-align: center; }
}

.tb-designer-surface { display:flex; flex:1; min-height:0; flex-direction:column; background:white; }
