[data-tb-design-product][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 { container: designer-tile / inline-size; }
.tb-homeCategories .tb-designer-tile .tb-tile__link-row { display: flex; flex-wrap: nowrap; gap: 5px; align-items: center; }
.tb-designer-tile .tb-tile__title { flex: 1 1 auto; min-width: 0; }
.tb-designer-tile .tb-tile__cue { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; }
.tb-designer-tile .tb-tile__cue svg { width: 17px; height: 17px; flex: none; }
.tb-designer-tile .tb-tile__cue .tb-tile__cue-label { display: inline; }
.tb-designer-tile .tb-tile__cue .tb-tile__cue-arrow { display: none; }
@container designer-tile (max-width: 290px) {
    .tb-designer-tile .tb-tile__cue .tb-tile__cue-label { display: none; }
}
@container designer-tile (max-width: 195px) {
    .tb-homeCategories .tb-designer-tile .tb-tile__link-row { padding-inline: 4px; gap: 2px; }
    .tb-homeCategories .tb-designer-tile .tb-tile__cue { min-width: 30px; padding-inline: 4px; }
    .tb-designer-tile .tb-tile__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.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; }

.tb-designer-pair [data-tb-design-start] { display: inline-flex; align-items: center; gap: 8px; }
.tb-designer-pair [data-tb-design-start] svg, .tb-designer-category-action [data-tb-design-start] svg { width: 20px; height: 20px; flex: none; color: var(--tb-ui-red, #d60000); }
.tb-designer-surface > iframe { flex: 1 1 auto; min-height: 0; border: 0; width: 100%; }
.tb-designer-surface > p[role=status] { padding: 12px; margin: 0; }
@media (max-width: 800px), (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
    dialog.tb-designer-dialog .tbMedia-header { flex-wrap: nowrap; }
}
dialog.tb-designer-quote { width: min(1100px, 96vw); height: min(920px, 94dvh); }
.tb-designer-quote .request-columns { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 20px; padding: 16px; overflow: auto; }
.tb-designer-quote details { min-width: 0; align-self: start; padding: 12px; border-radius: 6px; background: #f6f7f8; max-height: 100%; overflow: auto; }
.tb-designer-quote summary { font-weight: 700; cursor: pointer; }
.tb-designer-quote pre { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.tb-designer-quote section { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.tb-designer-quote #request-status { margin: 0 0 10px; }
.tb-designer-quote #request-status:empty { display: none; }
.tb-designer-quote #request-form { flex: 1; min-height: 0; position: relative; }
.tb-designer-quote iframe { width: 100%; height: 100%; display: block; border: 0; }
.tb-designer-quote iframe[hidden] { display: none; } /* while the store's answer is read, the form frame is not shown */
.tb-designer-quote #request-again { margin: 0 0 10px; }
/* The X of the Designer's window and of its quote request is drawn, not written (owner, 2026-12-02), so that it is the
   same sign as on every dialog inside the Designer, whose page has another font: two bars 3.25 px thick, 13.2 px across,
   in the middle of the 44 px box (the measure of the theme's written sign, Roboto Bold 28 px). The same two rules stand
   in the Designer's style sheet for .dialog-close: KEEP THE TWO IN STEP. */
dialog.tbMedia.tb-designer-dialog .tbMedia-header [data-tb-media-close], dialog.tbMedia.tb-designer-quote .tbMedia-header [data-tb-media-close] { position: relative; font-size: 0; line-height: 0; }
dialog.tbMedia.tb-designer-dialog .tbMedia-header [data-tb-media-close]::before, dialog.tbMedia.tb-designer-dialog .tbMedia-header [data-tb-media-close]::after,
dialog.tbMedia.tb-designer-quote .tbMedia-header [data-tb-media-close]::before, dialog.tbMedia.tb-designer-quote .tbMedia-header [data-tb-media-close]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15.4px; height: 3.25px; margin: -1.625px 0 0 -7.7px; background: currentColor; transform: rotate(45deg); }
dialog.tbMedia.tb-designer-dialog .tbMedia-header [data-tb-media-close]::after, dialog.tbMedia.tb-designer-quote .tbMedia-header [data-tb-media-close]::after { transform: rotate(-45deg); }
@media (forced-colors: active) {
    dialog.tbMedia.tb-designer-dialog .tbMedia-header [data-tb-media-close]::before, dialog.tbMedia.tb-designer-dialog .tbMedia-header [data-tb-media-close]::after,
    dialog.tbMedia.tb-designer-quote .tbMedia-header [data-tb-media-close]::before, dialog.tbMedia.tb-designer-quote .tbMedia-header [data-tb-media-close]::after { forced-color-adjust: none; background: ButtonText; }
}
/* A click on the dimmed area marks the close control of the dialog on top (the Designer's dialog-close.js). */
dialog.tbMedia .tbMedia-header [data-tb-media-close].tb-close-attention { background: #d60000; border-color: #d60000; color: #fff; animation: tb-close-attention .4s ease 3; }
@keyframes tb-close-attention { 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { dialog.tbMedia .tbMedia-header [data-tb-media-close].tb-close-attention { animation: none; } }
@media (max-width: 849px) {
    dialog.tb-designer-quote { width: min(580px, 100vw); height: 96dvh; }
    .tb-designer-quote .request-columns { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
    .tb-designer-quote details { align-self: stretch; flex-shrink: 0; max-height: 30dvh; }
    .tb-designer-quote section { flex: 1; }
}
@media (max-width: 720px) {
    [data-tb-design-review-slot] button { white-space: normal !important; line-height: 1.1; }
}

.tb-designer-category-action { display: flex; margin: 1rem 0; }
