body.visaro-has-designer .breadcrumb-title-wrapper {
    display: none !important;
}

/* Cookiebot / CookieYes / Complianz revisit FABs sit on the mobile step
   tabs (PRODUKT). Hide them in the designer; keep first-visit dialogs. */
body.visaro-has-designer #CookiebotWidget,
body.visaro-has-designer .CookiebotWidget,
body.visaro-has-designer [id^="CookiebotWidget"],
body.visaro-has-designer .cky-btn-revisit-wrapper,
body.visaro-has-designer #cmplz-manage-consent,
body.visaro-has-designer button.cmplz-manage-consent,
body.visaro-has-designer .cc-revoke,
body.visaro-has-designer #cookie-law-info-again,
body:has(.visaro-configurator-layout) #CookiebotWidget,
body:has(.visaro-configurator-layout) .CookiebotWidget,
body:has(.visaro-configurator-layout) .cky-btn-revisit-wrapper {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.visaro-configurator-layout {
    width: 100%;
    max-width: none;
    margin: 0 auto 48px;
}

body.visaro-sign-woo-product .visaro-configurator-layout,
body.visaro-sign-shop-product .visaro-configurator-layout,
body.visaro-print-product .visaro-configurator-layout {
    max-width: 1580px;
}

.visaro-configurator-shell {
    display: grid;
    grid-template-columns: 510px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    width: 100%;
    min-height: 760px;
    /* Cap height so long option lists (Materiale) scroll inside the panel
       instead of stretching the whole page. */
    height: min(860px, calc(100dvh - 140px));
    max-height: calc(100dvh - 120px);
    transition: grid-template-columns 0.2s ease;
}

.visaro-configurator-shell.is-detail-collapsed {
    grid-template-columns: 200px minmax(0, 1fr);
}

.visaro-configurator-shell.is-quick-mode {
    grid-template-columns: 380px minmax(0, 1fr);
}

.visaro-configurator-panel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
    min-height: 0;
}

.visaro-configurator-sidebar {
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    min-height: 0;
    height: 100%;
}

.visaro-sidebar-brand {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0;
    padding: 8px 10px 14px;
}

.visaro-editing-banner {
    margin: 0 10px 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
}

.visaro-step-nav {
    flex: 0 0 200px;
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 10px;
    border-right: 1px solid #cbd5e1;
    background: #f3f7f9;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.visaro-step-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: 0.15s ease;
}

.visaro-step-row:hover {
    background: #e7eef2;
}

.visaro-step-row.is-active {
    background: #ffffff;
    border-color: #d6e1e7;
    box-shadow: inset 3px 0 0 #0f7490, 0 1px 2px rgba(15, 23, 42, 0.04);
}

.visaro-step-row.is-active .visaro-step-copy strong,
.visaro-step-row.is-active .visaro-step-copy small,
.visaro-step-row.is-active .visaro-step-chevron,
.visaro-step-row.is-active .visaro-step-icon {
    color: #0f172a;
}

.visaro-step-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #385267;
}

.visaro-step-detail {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #fff;
}

.visaro-configurator-shell.is-detail-collapsed .visaro-step-detail {
    display: none;
}

.visaro-step-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    min-height: 68px;
    padding: 16px 20px;
    border-bottom: 1px solid #d8e2e8;
}

.visaro-step-detail-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.visaro-step-close {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #d8e2e8;
    background: #fff;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.visaro-step-close:hover {
    background: #eef2f7;
}

.visaro-step-detail-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px 20px 20px;
}

.visaro-option-list {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.visaro-option-list.is-active {
    display: flex;
}

.visaro-option-list[data-step-panel="material"] {
    gap: 6px;
}

.visaro-step-icon svg {
    width: 100%;
    height: 100%;
}

.visaro-step-copy {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.visaro-step-copy strong {
    font-size: 0.82rem;
    color: #0f172a;
}

.visaro-step-copy small {
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.visaro-step-chevron {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 1.1rem;
}

.visaro-configurator-grid.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.visaro-configurator-section {
    margin-bottom: 14px;
}

.visaro-configurator-section label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    font-size: 0.78rem;
    color: #334155;
}

.visaro-configurator-section .description {
    margin: 0 0 10px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #64748b;
}

.visaro-configurator-section input,
.visaro-configurator-section select,
.visaro-configurator-section textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    font-size: 0.92rem;
    color: #0f172a;
}

.visaro-configurator-section input:focus,
.visaro-configurator-section select:focus,
.visaro-configurator-section textarea:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

#visaro-quick-qr {
    min-height: 64px;
    resize: vertical;
}

/* Sliders never wanted the text-field look above (padding/border pushed
   their rendered width past whatever the flex layout actually gave them,
   content-box adding both on top of a JS-set width) - a slider track has
   no use for that padding anyway, so strip it back to a plain box whose
   width means exactly what it says. */
.visaro-configurator-section input[type="range"] {
    padding: 0;
    border: 0;
    background: transparent;
    box-sizing: border-box;
}

#visaro-image-upload-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.visaro-image-upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

.visaro-image-upload-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.visaro-image-upload-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 6px;
    flex-shrink: 0;
}

.visaro-image-upload-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.visaro-image-upload-meta {
    display: flex;
    flex: 1 1 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 0.72rem;
}

.visaro-image-upload-resolution {
    font-weight: 600;
}

.visaro-image-upload-resolution.is-good {
    color: #157347;
}

.visaro-image-upload-resolution.is-acceptable {
    color: #8a5a00;
}

.visaro-image-upload-resolution.is-low {
    color: #b42318;
}

.visaro-image-upload-size-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    width: 100%;
    font-size: 0.75rem;
    color: #6b7280;
    flex: 1 1 100%;
}

.visaro-image-upload-size-label input[type="range"] {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}

.visaro-image-upload-size-value {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #0f766e;
}

.visaro-image-upload-row--logo {
    align-items: flex-start;
}

.visaro-image-upload-row--logo .visaro-image-upload-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.visaro-image-upload-row--logo .visaro-logo-size-hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #64748b;
}

.visaro-logo-thin-warning {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 8px 10px;
}

.visaro-image-upload-row--logo .visaro-image-upload-remove {
    align-self: flex-start;
}

.visaro-image-upload-controls .visaro-image-upload-offset-x,
.visaro-image-upload-controls .visaro-image-upload-offset-y {
    width: 64px;
    padding: 6px 8px;
}

.visaro-image-upload-remove {
    flex-shrink: 0;
    border-color: #fecaca;
    color: #b91c1c;
}

.visaro-image-upload-remove:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.visaro-image-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}

/* "Send backward"/"bring forward" - shared by every object type's own row
   (text lines, images, QR codes), so arranging always looks the same
   regardless of what kind of object it's used on. */
.visaro-tool-btn {
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e4ea;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.visaro-tool-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.visaro-tool-btn:hover {
    border-color: #0f7490;
    color: #0f7490;
    background: #f8fbfc;
}

.visaro-tool-btn.is-active,
.visaro-text-object-align button.is-active,
.visaro-text-object-format button.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.visaro-tool-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.visaro-layer-arrange {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.visaro-layer-arrange button {
    width: 32px;
    height: 32px;
}

.visaro-image-upload-row {
    border: 1px solid transparent;
}

.visaro-image-upload-row.is-selected-row {
    border-color: #ec4899;
    box-shadow: 0 0 0 1px #ec4899;
    border-radius: 10px;
}

.visaro-add-image-btn,
.visaro-add-text-object-btn {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d9e4ea;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.visaro-add-image-btn:hover,
.visaro-add-text-object-btn:hover {
    border-color: #0f7490;
    color: #0f7490;
    background: #f8fbfc;
}

.visaro-qr-row {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    background: #f9fafb;
}

.visaro-qr-row.is-selected-row {
    border-color: #ec4899;
    box-shadow: 0 0 0 1px #ec4899;
}

.visaro-qr-value {
    width: 100%;
    resize: vertical;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font: inherit;
}

.visaro-qr-controls {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.visaro-qr-size-label,
.visaro-qr-color-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.75rem;
    color: #6b7280;
}

.visaro-qr-size {
    width: 88px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9e4ea;
    border-radius: 8px;
}

.visaro-qr-color-fg {
    width: 36px;
    height: 32px;
    padding: 3px;
    border: 1px solid #d9e4ea;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.visaro-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 0;
}

.visaro-qr-actions button {
    width: 32px;
    height: 32px;
}

.visaro-qr-remove {
    background: #fff !important;
    border-color: #fecaca !important;
    color: #b91c1c !important;
}

.visaro-qr-remove:hover {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
}

.visaro-qr-warning {
    margin: 6px 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #b42318;
}

.visaro-option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    width: 100%;
    min-height: 64px;
    padding: 8px 10px;
    border: 1px solid #d9e4ea;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: 0.15s ease;
    font: inherit;
    color: inherit;
}

.visaro-option-card[data-material] {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    grid-template-areas:
        "swatch copy select"
        "swatch chips select";
    align-items: center;
    column-gap: 10px;
    row-gap: 4px;
    min-height: 56px;
}

.visaro-option-card[data-material] .visaro-option-swatch {
    grid-area: swatch;
    align-self: start;
    margin-top: 3px;
}

.visaro-option-card[data-material] .visaro-option-copy {
    grid-area: copy;
}

.visaro-option-card[data-material] .visaro-option-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visaro-option-card[data-material].is-material-oos {
    opacity: 0.55;
}

.visaro-option-card[data-material] .visaro-option-select {
    grid-area: select;
    align-self: start;
    margin-top: 3px;
}

.visaro-mm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 0 0 auto;
}

.visaro-mm-chip {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #d9e4ea;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.visaro-mm-chip:hover {
    border-color: #0f7490;
    color: #0f7490;
}

.visaro-mm-chip.is-selected {
    border-color: #0f7490;
    background: #0f7490;
    color: #fff;
}

.visaro-mm-chip.is-oos,
.visaro-mm-chip.is-oos:hover {
    border-color: #d7d7d7;
    background: #f3f3f3;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.72;
    text-decoration: line-through;
}

.visaro-mm-chip.is-oos.is-selected {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #9ca3af;
}

.visaro-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.visaro-choice-cards,
#visaro-corner-style-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visaro-choice-cards {
    margin-top: 2px;
}

.visaro-option-visual {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #d9e4ea;
    background: #f7fafb;
    overflow: hidden;
}

.visaro-option-icon {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.visaro-option-visual img.visaro-option-icon {
    width: 100%;
    height: 100%;
}

.visaro-option-icon--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.9rem;
}

.visaro-option-card:hover {
    border-color: #7aa9b7;
    background: #f9fcfd;
}

.visaro-option-card.is-selected {
    border-color: #0f7490;
    background: #f0f9fa;
    box-shadow: inset 3px 0 0 #0f7490;
}

.visaro-option-swatch {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background-color: #e2e8f0;
    background-size: cover;
    background-position: center;
}

.visaro-option-copy {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.visaro-option-copy strong {
    font-size: 0.9rem;
    color: #0f172a;
}

.visaro-option-copy small {
    font-size: 0.73rem;
    line-height: 1.3;
    color: #64748b;
}

.visaro-option-select {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
}

.visaro-option-card.is-selected .visaro-option-select {
    border-color: #0f7490;
    background: #0f7490;
    box-shadow: inset 0 0 0 3px #fff;
}

.visaro-variant-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.visaro-variant-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: 0.15s ease;
}

.visaro-variant-chip:hover {
    background: #f1f5f9;
}

.visaro-variant-chip.is-selected {
    border-color: #111827;
    background: #eef2ff;
}

.visaro-variant-chip-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d9dee5;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}

.visaro-variant-chip small {
    font-size: 0.68rem;
    color: #475569;
    text-align: center;
    line-height: 1.15;
}

.visaro-variant-hint {
    margin: 8px 2px 0;
    color: #94a3b8;
    font-size: 0.78rem;
    font-style: italic;
}

.visaro-configurator-preview-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px;
    background: #eef3f5;
    border-radius: 8px;
    min-height: 0;
    overflow: hidden;
}

.visaro-preview-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 8px;
    min-height: 36px;
}

.visaro-configurator-preview-wrap {
    width: 100%;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8fafb;
    background-image: radial-gradient(#d6e1e7 0.75px, transparent 0.75px);
    background-size: 12px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}

.visaro-configurator-preview-wrap.is-zoomed {
    cursor: grab;
    touch-action: none !important;
}

.visaro-configurator-preview-wrap.is-zoomed.is-panning {
    cursor: grabbing;
}

.visaro-side-flip {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px;
}

/* Author display:flex would otherwise override the HTML hidden attribute. */
.visaro-side-flip[hidden] {
    display: none !important;
}

.visaro-side-chip {
    display: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f766e;
    padding: 0 6px;
}

.visaro-configurator-preview-panel.is-back .visaro-side-chip,
.visaro-configurator-preview-wrap.is-back .visaro-side-chip {
    display: inline;
}

.visaro-side-btn {
    border: none;
    background: #eef3f5;
    color: #1f2937;
    border-radius: 4px;
    height: 28px;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.visaro-side-btn:hover {
    background: #dce8ec;
}

.visaro-side-btn.is-active {
    background: #0f766e;
    color: #fff;
}

.visaro-side-flip-btn {
    min-width: 52px;
}

.visaro-side-remove {
    color: #64748b;
    background: transparent;
}

.visaro-cart-sides {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.visaro-cart-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 120px;
}

.visaro-cart-side em {
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    color: #475569;
}

.visaro-cart-sides .visaro-cart-preview-thumb {
    width: auto;
    max-width: 120px;
    max-height: 90px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    object-fit: contain;
}

.visaro-preview-zoom-controls {
    position: static;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 6px;
}

.visaro-preview-zoom-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: #eef3f5;
    color: #1f2937;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.visaro-preview-zoom-btn:hover {
    background: #dce8ec;
}

.visaro-preview-zoom-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.visaro-history-btn {
    font-size: 18px;
}

.visaro-preview-control-divider {
    width: 1px;
    height: 18px;
    margin: 0 2px;
    background: #e2e8f0;
}

.visaro-preview-zoom-level {
    min-width: 40px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.visaro-preview-caption {
    flex: 0 0 auto;
    margin: 6px 4px 0;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.25;
    color: #6b7280;
}

body:not(.visaro-sign-woo-product) #visaro-preview-text-box {
    display: none;
}

body.visaro-sign-woo-product .visaro-preview-caption {
    display: none;
}

#visaro-sign-preview {
    display: block;
    flex: 0 1 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    transition: transform 0.15s ease;
    isolation: isolate;
}

@media (min-width: 1101px) {
    body:not(.visaro-sign-woo-product):not(.visaro-designer-compact) .visaro-configurator-preview-wrap #visaro-sign-preview {
        max-width: 100%;
        max-height: 100%;
    }
}

#visaro-qr-group .visaro-qr-object.is-engraved path {
    mix-blend-mode: multiply;
}

.visaro-configurator-preview-wrap.is-panning #visaro-sign-preview {
    transition: none;
}

/* Fabric.js canvas that hosts the live caret/selection while a text object
   is being directly edited. Fabric wraps the <canvas> in its own
   .canvas-container div, positioned/sized to match the preview wrap exactly
   (see ensureFabricCanvas() in visaro-configurator.js); it stays hidden and
   pointer-events:none outside of an active edit session. */
#visaro-fabric-text-editor {
    position: absolute;
    top: 0;
    left: 0;
}

.visaro-validation-message {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.visaro-validation-message.is-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.visaro-validation-message.is-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.visaro-configurator-actionbar {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 8px 10px 8px 12px;
    background: #ffffff;
    border: 1px solid #d9e4ea;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.visaro-configurator-actionbar .visaro-action-qty {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    flex: 0 0 auto;
    margin: 0;
}

.visaro-configurator-actionbar .visaro-action-qty span {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.visaro-configurator-actionbar .visaro-action-qty input {
    width: 3.5rem;
    min-height: 36px;
    margin: 0;
    padding: 4px 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
}

.visaro-configurator-actionbar .visaro-configurator-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    background: #f5ae3d;
    color: #101828;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(245, 174, 61, 0.24);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.visaro-configurator-actionbar .visaro-configurator-button:hover {
    background: #e89d28;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(245, 174, 61, 0.4);
}

.visaro-configurator-actionbar .visaro-configurator-button:active {
    transform: translateY(0);
    background: #dc931f;
}

.visaro-configurator-actionbar .visaro-configurator-button.is-secondary {
    background: #fff;
    color: #111827;
    box-shadow: none;
}

.visaro-configurator-actionbar .visaro-configurator-button.is-secondary:hover {
    background: #f8fafc;
    box-shadow: none;
}

.visaro-cart-icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

.visaro-configurator-summary {
    display: none;
}

.visaro-summary-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visaro-summary-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.visaro-summary-title-wrap h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.visaro-summary-live {
    border: 1px solid #dfe7f2;
    background: #fff;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 6px 9px;
    white-space: nowrap;
}

.visaro-summary-materials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.visaro-summary-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf2f7;
    border: 1px solid #dfe7f2;
    font-size: 0.72rem;
    color: #334155;
    font-weight: 700;
}

.visaro-summary-pill.is-active {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.visaro-configurator-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 0;
    padding: 4px 8px 4px 2px;
    background: transparent;
    border: 0;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.visaro-configurator-price-box span {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.visaro-configurator-preview-panel .visaro-configurator-price-box {
    padding: 0;
    gap: 0;
}

.visaro-configurator-preview-panel .visaro-configurator-price-box span {
    font-size: 0.62rem;
}

.visaro-configurator-preview-panel .visaro-configurator-price-box strong {
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.visaro-configurator-price-box strong {
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.visaro-configurator-price-box del {
    font-size: 0.95rem;
    font-weight: 600;
    color: #94a3b8;
}

.visaro-price-qty-note {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    font-style: normal;
    color: #3d6b4a;
    white-space: normal;
    max-width: 18rem;
}

/* Product page price = same skilt/opstart/rabat structure as KURV */
.visaro-pdp-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.35;
    color: #1a202c;
}

.visaro-pdp-price__skilt,
.visaro-pdp-price__opstart {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    color: #3d4a41;
}

.visaro-pdp-price__skilt em,
.visaro-pdp-price__opstart em {
    font-style: normal;
    font-weight: 600;
    color: #64748b;
    margin-right: 6px;
}

.visaro-pdp-price__total-row,
.visaro-pdp-price--one {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.visaro-pdp-price__total {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #141414;
}

.visaro-pdp-price__note {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.visaro-pdp-price__rabat,
.summary .price .visaro-line-rabat {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a20401;
}

.summary .price .visaro-pdp-price {
    margin: 0;
}

.summary .price .visaro-pdp-price del,
.summary .price .visaro-skilt-unit-was {
    opacity: 0.65;
    font-weight: 400;
}

.visaro-qty-discount-hint {
    margin: 6px 0 0;
}

/* Text colour swatches (Tekst step) */
.visaro-swatch-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.visaro-color-swatch,
.visaro-text-object-color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d9dee5;
    cursor: pointer;
    padding: 0;
    transition: 0.15s ease;
}

.visaro-color-swatch:hover,
.visaro-text-object-color-swatch:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px #94a3b8;
}

.visaro-color-swatch.is-selected,
.visaro-text-object-color-swatch.is-selected {
    box-shadow: 0 0 0 2px #111827;
}

/* Bold / italic / alignment toolbar (Tekst step) */
.visaro-text-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid #dfe7f2;
    border-radius: 10px;
    background: #fff;
}

.visaro-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    transition: 0.15s ease;
}

.visaro-toolbar-btn:hover {
    background: #f1f5f9;
}

.visaro-toolbar-btn.is-active {
    background: #111827;
    color: #fff;
}

.visaro-toolbar-icon-bold {
    font-weight: 800;
    font-size: 0.85rem;
}

.visaro-toolbar-icon-italic {
    font-style: italic;
    font-size: 0.85rem;
}

.visaro-toolbar-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    margin: 0 4px;
}

/* Keep spaces so Fabric IText and the SVG copy stay the same width. */
#visaro-preview-text,
.visaro-preview-text-extra {
    white-space: pre;
}

/* Draggable preview text */
#visaro-preview-text.is-draggable,
.visaro-preview-text-extra.is-draggable {
    cursor: grab;
}

#visaro-preview-text.is-draggable:active,
.visaro-preview-text-extra.is-draggable:active,
.visaro-configurator-preview-wrap.is-dragging-text #visaro-preview-text,
.visaro-configurator-preview-wrap.is-dragging-text .visaro-preview-text-extra {
    cursor: grabbing;
}

/* Draggable/resizable uploaded images */
.visaro-uploaded-image.is-draggable,
.visaro-uploaded-image-hit.is-draggable {
    cursor: grab;
}

.visaro-configurator-preview-wrap.is-dragging-text .visaro-uploaded-image.is-draggable,
.visaro-configurator-preview-wrap.is-dragging-text .visaro-uploaded-image-hit.is-draggable {
    cursor: grabbing;
}

/* Fabric-matching selection chrome for uploaded images */
.visaro-image-selection-border {
    fill: none;
    stroke: #1683e8;
    stroke-width: 1.5;
    pointer-events: none;
}

.visaro-image-rotate-stem {
    stroke: #1683e8;
    stroke-width: 1.5;
    pointer-events: none;
}

.visaro-uploaded-image-resize-handle {
    fill: #1683e8;
    stroke: #ffffff;
    stroke-width: 1.5;
    cursor: nwse-resize;
}

.visaro-icon-library-btn {
    margin-top: 8px;
    background: #fff !important;
    border: 1px solid #c9c6c0 !important;
    color: #141414 !important;
}

.visaro-icon-library-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    background: rgba(20, 20, 20, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.visaro-icon-library-modal[hidden] {
    display: none !important;
}

.visaro-icon-library-dialog {
    width: min(560px, 100%);
    max-height: min(80vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    padding: 16px 16px 18px;
}

.visaro-icon-library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.visaro-icon-library-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #141414;
}

.visaro-icon-library-close {
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.visaro-icon-library-status {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 0.9rem;
}

.visaro-icon-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
}

.visaro-icon-library-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    text-align: center;
}

.visaro-icon-library-item:hover {
    border-color: #1683e8;
    background: #fff;
}

.visaro-icon-library-thumb {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
}

.visaro-icon-library-thumb img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.visaro-icon-library-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #3d4a41;
    line-height: 1.25;
}

.visaro-uploaded-image-rotate-handle {
    fill: #1683e8;
    stroke: #ffffff;
    stroke-width: 1.5;
    cursor: grab;
}

.visaro-configurator-preview-wrap.is-dragging-text .visaro-uploaded-image-rotate-handle {
    cursor: grabbing;
}

.visaro-qr-resize-handle {
    fill: #fff;
    stroke: #111827;
    stroke-width: 1.5;
    cursor: nwse-resize;
}

/* Smart-guide lines shown while dragging a text line close enough to
   line up with another one (left/right/center edges, both axes). */
.visaro-snap-guides {
    pointer-events: none;
}

.visaro-snap-guide {
    stroke: #ec4899;
    stroke-width: 1.5;
    stroke-dasharray: 5 4;
    pointer-events: none;
}

.visaro-text-object-row {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    background: #f9fafb;
}

.visaro-text-object-row--primary {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.visaro-text-object-row.is-selected-row {
    border-color: #ec4899;
    box-shadow: 0 0 0 1px #ec4899;
}

.visaro-text-object-row.has-production-warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.visaro-text-object-row.has-production-warning.is-selected-row {
    box-shadow: 0 0 0 1px #f59e0b;
}

.visaro-text-object-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.visaro-text-object-size-readout {
    margin-top: 6px;
    font-size: 11px;
    color: #6b7280;
}

.visaro-text-object-size-readout.is-warning {
    color: #b45309;
    font-weight: 700;
}

/* The underlying "Tekst bredde"/"Tekst hojde" inputs still drive the
   internal auto-fit bounding box the text is scaled to fit within, and
   still need to exist/update in the DOM - but showing their raw mm values
   to the customer is confusing since they don't match what's actually
   rendered (each line now has its own live "Str: W x H" readout above).
   Hidden with !important so the JS toggle() call (which still runs for
   contour-lettering vs. panel/foil designs) can't re-show it. */
#visaro-text-size-fields {
    display: none !important;
}

/* Colour/bold/italic/alignment are now chosen per text line inside each
   line's own box in #visaro-text-objects-list (see .visaro-text-object-*
   below) - these original shared/global sections are kept in the DOM
   (their fields still drive the real underlying state/handlers, some of
   them literally relocated into the per-line rows via JS) purely so
   nothing has to be re-wired, but are never shown to the customer anymore
   since showing both would just be confusing duplication. !important
   because JS still calls .toggle() on them for contour-lettering designs. */
#visaro-text-color-section,
#visaro-text-format-section {
    display: none !important;
}

.visaro-text-object-main {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.visaro-text-object-main input,
.visaro-text-object-main textarea {
    flex: 1;
    min-width: 0;
}

.visaro-text-object-main textarea {
    min-height: 2.6em;
    max-height: 8em;
    resize: vertical;
    line-height: 1.35;
    padding: 8px 10px;
    font: inherit;
}

.visaro-text-object-main .visaro-text-object-label {
    margin-top: 10px;
}

#visaro-text-section textarea#visaro-text {
    width: 100%;
    min-height: 2.6em;
    resize: vertical;
    line-height: 1.35;
}

.visaro-text-object-remove {
    flex-shrink: 0;
    border-color: #fecaca;
    color: #b91c1c;
}

.visaro-text-object-remove:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.visaro-text-object-duplicate {
    flex-shrink: 0;
}

.visaro-text-object-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.visaro-text-object-controls select.visaro-text-object-font {
    flex: 1 1 90px;
    min-width: 70px;
}

.visaro-font-picker {
    position: relative;
    flex: 1 1 140px;
    min-width: 120px;
    max-width: 100%;
}

.visaro-font-picker-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.visaro-font-picker-btn {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    font-size: 15px;
    line-height: 1.3;
    color: #111827;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visaro-font-picker.is-open .visaro-font-picker-btn {
    border-color: #111827;
    box-shadow: 0 0 0 1px #111827;
}

.visaro-font-picker-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    max-height: min(50vh, 280px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.visaro-font-picker-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    text-align: left;
    font-size: 17px;
    line-height: 1.35;
    color: #111827;
    cursor: pointer;
}

.visaro-font-picker-option + .visaro-font-picker-option {
    margin-top: 2px;
}

.visaro-font-picker-option.is-selected,
.visaro-font-picker-option:active {
    background: #f3f4f6;
}

#visaro-font-section .visaro-font-picker,
#visaro-quick-font-section .visaro-font-picker {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
}

.visaro-text-object-size-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    width: 100%;
}

.visaro-text-object-size {
    flex: 1;
    min-width: 60px;
}

.visaro-text-object-size.is-auto {
    opacity: 0.45;
}

.visaro-text-object-size-value {
    flex-shrink: 0;
    min-width: 40px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    cursor: pointer;
}

.visaro-text-object-size-value:hover {
    background: #f3f4f6;
}

.visaro-text-margin-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
}

.visaro-text-margin-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.visaro-text-margin-slider {
    flex: 1 1 90px;
    min-width: 80px;
    margin: 0;
}

.visaro-text-margin-value {
    flex-shrink: 0;
    min-width: 52px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
}

.visaro-text-overflow-modes {
    display: inline-flex;
    gap: 2px;
    margin-left: auto;
}

.visaro-text-overflow-mode {
    height: 26px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
}

.visaro-text-overflow-mode.is-active {
    border-color: #1683e8;
    background: #eff6ff;
    color: #1d4ed8;
}

.visaro-text-line-spacing-row {
    display: flex;
    align-items: center;
    gap: 6px 8px;
    flex: 1 1 100%;
    margin-top: 2px;
}

.visaro-text-line-spacing-row.is-hidden {
    display: none;
}

.visaro-text-line-spacing-slider {
    flex: 1 1 90px;
    min-width: 80px;
    margin: 0;
}

.visaro-text-line-spacing-value {
    flex-shrink: 0;
    min-width: 40px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
}

#visaro-text-margin-guide {
    pointer-events: none;
}

.visaro-text-object-align {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.visaro-text-object-align button,
.visaro-text-object-format button {
    width: 32px;
    height: 32px;
}

.visaro-text-object-align button svg {
    display: block;
}

.visaro-quick-align-toolbar {
    display: inline-flex;
}

.visaro-text-object-vcenter {
    margin-left: 4px;
}

.visaro-text-object-format {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.visaro-text-object-format .visaro-text-object-italic {
    font-style: italic;
}

.visaro-text-object-colors {
    margin-top: 8px;
    gap: 6px;
}

.visaro-text-object-colors button {
    width: 20px;
    height: 20px;
}

.visaro-text-object-letter-material {
    display: none;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #dbeafe;
}

.visaro-text-object-letter-material-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.visaro-text-object-letter-material-top label {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
}

.visaro-text-object-letter-material-select {
    min-width: 0;
    width: 100%;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    padding: 5px 8px;
}

.visaro-text-object-letter-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.visaro-text-object-letter-variant {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 3px 7px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    cursor: pointer;
}

.visaro-text-object-letter-variant .visaro-variant-chip-swatch {
    width: 18px;
    height: 18px;
}

.visaro-text-object-letter-variant small {
    font-size: 11px;
    line-height: 1.15;
}

.visaro-text-object-letter-variant.is-selected {
    border-color: #111827;
    box-shadow: 0 0 0 1px #111827;
}

.visaro-configurator-button {
    width: 100%;
    padding: 16px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.14);
}

.visaro-configurator-button.is-secondary {
    background: #fff;
    color: #111827;
    border: 1.5px solid #111827;
    box-shadow: none;
}

/* Simplified "quick edit" panel shown on the product page itself, so a
   customer can tweak a pre-designed product (text, colour, mounting,
   quantity) with an instant live preview, without opening the full
   step-by-step designer. */
.visaro-quick-editor {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.visaro-quick-editor-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.visaro-quick-editor-title {
    margin: 4px 0 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.visaro-quick-editor-subtitle {
    margin: -8px 0 4px;
    font-size: 0.85rem;
    color: #64748b;
}

.visaro-quick-editor-heading,
.visaro-quick-editor-tools,
.visaro-quick-editor-buy {
    display: flex;
    flex-direction: column;
}

.visaro-quick-editor-actionbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.visaro-quick-editor-actionbar .visaro-configurator-price-box {
    flex: 1 1 100%;
}

.visaro-quick-editor-actionbar .visaro-configurator-button {
    flex: 1 1 140px;
}

.visaro-step-back {
    align-self: flex-start;
    margin: 0 0 6px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

.visaro-step-back:hover {
    color: #111827;
}

@media (max-width: 900px) {
    .visaro-configurator-shell,
    .visaro-configurator-shell.is-detail-collapsed,
    .visaro-configurator-shell.is-quick-mode {
        grid-template-columns: 1fr;
    }

    .visaro-configurator-sidebar {
        min-height: 320px;
    }

    .visaro-configurator-preview-wrap {
        min-height: 280px;
    }
}

/* Compact designer: phones, tablets, and small square windows.
   Keep in sync with COMPACT_DESIGNER_MQ in visaro-configurator.js. */
@media (max-width: 1100px), (max-width: 1300px) and (max-height: 740px) {
    .entry-content:has(.visaro-configurator-layout),
    .entry-content:has(.visaro-configurator-layout) > .wp-block-group {
        padding-right: 0;
        padding-left: 0;
    }

    .visaro-configurator-layout {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .visaro-configurator-shell {
        display: flex;
        flex-direction: column;
        gap: 14px;
        min-height: 100dvh;
        padding-bottom: 140px;
    }

    .visaro-configurator-sidebar,
    .visaro-configurator-summary {
        padding: 0;
    }

    .visaro-configurator-preview-panel {
        order: 1;
        width: 100%;
        min-height: calc(100dvh - 140px);
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #f4f8fa;
        box-shadow: none;
    }

    .visaro-preview-chrome {
        position: sticky;
        top: 0;
        z-index: 5;
        padding: 8px 10px 0;
        margin-bottom: 0;
        background: #f4f8fa;
        flex-wrap: wrap;
    }

    .visaro-configurator-preview-wrap {
        min-height: calc(100dvh - 248px);
        border: 0;
        border-radius: 0;
        padding: 16px 12px 20px;
    }

    /* Portrait plates use a cropped viewBox (taller aspect). Cap height so
       mm-labels stay inside the wrap instead of being clipped, while still
       filling far more of the phone than the old fixed 760×560 frame. */
    .visaro-configurator-preview-wrap #visaro-sign-preview {
        width: auto;
        max-width: 100%;
        max-height: calc(100dvh - 250px);
        height: auto;
        margin: 0 auto;
    }

    .visaro-configurator-actionbar {
        position: fixed;
        z-index: 36;
        right: 0;
        bottom: 62px;
        left: 0;
        max-width: none;
        margin: 0;
        padding: 8px 12px;
        gap: 10px;
        border: 0;
        border-top: 1px solid #d9e4ea;
        border-radius: 0;
        background: #ffffff;
        box-shadow: 0 -5px 14px rgba(15, 23, 42, 0.08);
        align-items: center;
    }

    .visaro-configurator-price-box {
        display: flex;
        padding: 0 4px 0 2px;
        min-width: 0;
        flex: 0 0 auto;
    }

    .visaro-configurator-price-box strong {
        font-size: 1.2rem;
    }

    .visaro-configurator-actionbar .visaro-action-qty input {
        min-height: 44px;
        width: 3.25rem;
    }

    .visaro-configurator-actionbar .visaro-price-qty-note {
        max-width: 9.5rem;
        font-size: 0.64rem;
    }

    .visaro-configurator-actionbar .visaro-configurator-button {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        padding: 12px 16px;
        border-radius: 10px;
        background: #f5ae3d;
        color: #101828;
        box-shadow: 0 6px 14px rgba(245, 174, 61, 0.28);
    }

    .visaro-configurator-sidebar {
        order: 2;
        position: fixed;
        z-index: 40;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        min-height: 0;
        height: 62px;
        overflow: visible;
        border: 0;
        border-top: 1px solid #cbd5e1;
        border-radius: 0;
        background: #ffffff;
        box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08);
    }

    .visaro-step-nav {
        width: 100%;
        height: 62px;
        box-sizing: border-box;
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
        padding: 4px 2px;
        border: 0;
        background: #ffffff;
        overflow-x: auto;
    }

    .visaro-sidebar-brand,
    .visaro-editing-banner,
    .visaro-step-back,
    .visaro-step-chevron,
    .visaro-step-copy small {
        display: none;
    }

    .visaro-step-row {
        flex: 0 0 58px;
        min-height: 54px;
        padding: 4px 2px;
        border: 0;
        border-radius: 0;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }

    .visaro-step-row.is-active {
        border: 0;
        background: #f0f9fa;
        box-shadow: inset 0 2px 0 #0f7490;
    }

    .visaro-step-icon {
        flex-basis: 21px;
        width: 21px;
        height: 21px;
    }

    .visaro-step-copy {
        display: block;
        flex: 0 0 auto;
        text-align: center;
    }

    .visaro-step-copy strong {
        display: block;
        max-width: 58px;
        overflow: hidden;
        color: #294257;
        font-size: 0.58rem;
        line-height: 1.1;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .visaro-step-detail {
        position: fixed;
        z-index: 35;
        right: 0;
        bottom: 126px;
        left: 0;
        height: min(42dvh, 400px);
        border: 1px solid #cbd5e1;
        border-right: 0;
        border-left: 0;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -14px 32px rgba(15, 23, 42, 0.16);
    }

    .visaro-configurator-shell.is-detail-collapsed .visaro-step-detail {
        display: none;
    }

    /* Keep the sign pinned to the top of the preview on mobile whether or
       not a detail sheet is open. Switching between center (sheet closed)
       and flex-start (sheet open) made the SVG jump inside the wrap the
       instant Tekst/Størrelse/... closed - so a text line the customer had
       just dragged to the middle appeared to move on its own. */
    .visaro-configurator-preview-wrap {
        align-items: flex-start;
    }

    .visaro-step-detail-header {
        min-height: 44px;
        padding: 8px 12px 8px 16px;
    }

    .visaro-step-detail-header h3 {
        display: none;
    }

    .visaro-step-detail-body {
        min-height: 0;
        padding: 10px 16px 16px;
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .visaro-text-objects-heading {
        display: none;
    }

    body.visaro-sign-typing-dock-open .visaro-step-detail,
    body.visaro-sign-typing-dock-open .visaro-configurator-actionbar,
    body.visaro-sign-typing-dock-open .visaro-configurator-sidebar {
        display: none !important;
    }

    /* Pin the plate to the top of the visual viewport so the keyboard
       and the compact dock do not cover what the customer is typing. */
    body.visaro-designer-body.visaro-sign-typing-dock-open .visaro-configurator-preview-panel,
    body.visaro-has-designer.visaro-sign-typing-dock-open .visaro-configurator-preview-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 40;
        width: 100%;
        min-height: 0;
        height: var(--visaro-focus-photo-max, 38dvh);
        max-height: var(--visaro-focus-photo-max, 38dvh);
        padding: 0;
        background: #f4f8fa;
    }

    body.visaro-designer-body.visaro-sign-typing-dock-open .visaro-preview-chrome,
    body.visaro-has-designer.visaro-sign-typing-dock-open .visaro-preview-chrome {
        padding: 6px 10px 0;
        margin: 0;
    }

    body.visaro-designer-body.visaro-sign-typing-dock-open .visaro-preview-zoom-controls,
    body.visaro-designer-body.visaro-sign-typing-dock-open #visaro-preview-caption,
    body.visaro-designer-body.visaro-sign-typing-dock-open .visaro-preview-caption,
    body.visaro-has-designer.visaro-sign-typing-dock-open .visaro-preview-zoom-controls,
    body.visaro-has-designer.visaro-sign-typing-dock-open #visaro-preview-caption {
        display: none !important;
    }

    body.visaro-designer-body.visaro-sign-typing-dock-open .visaro-configurator-preview-wrap,
    body.visaro-has-designer.visaro-sign-typing-dock-open .visaro-configurator-preview-wrap {
        min-height: 0;
        height: calc(100% - 36px);
        padding: 4px 8px 8px;
        align-items: flex-start;
        justify-content: center;
    }

    body.visaro-designer-body.visaro-sign-typing-dock-open .visaro-configurator-preview-wrap #visaro-sign-preview,
    body.visaro-has-designer.visaro-sign-typing-dock-open .visaro-configurator-preview-wrap #visaro-sign-preview {
        max-height: 100%;
        width: auto;
        max-width: 100%;
    }

    body.visaro-size-peek .visaro-step-detail {
        background: rgba(255, 255, 255, 0.12) !important;
        box-shadow: none !important;
        border-color: transparent !important;
    }

    body.visaro-size-peek .visaro-step-detail-header,
    body.visaro-size-peek .visaro-step-detail-body > *:not(:has(.visaro-text-object-size)):not(:has(.visaro-print-size-range)):not(#visaro-quick-text-size-section) {
        opacity: 0.08;
        pointer-events: none;
    }

    body.visaro-size-peek .visaro-text-object-size-wrap,
    body.visaro-size-peek .visaro-print-size-label,
    body.visaro-size-peek #visaro-quick-text-size-section {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body.visaro-size-peek .visaro-configurator-actionbar,
    body.visaro-size-peek .visaro-configurator-sidebar {
        opacity: 0.12;
        pointer-events: none;
    }

    .visaro-text-objects-help {
        margin: 0 0 10px;
        font-size: 12px;
        line-height: 1.35;
    }

    .visaro-preview-zoom-controls {
        margin-left: auto;
    }

    .visaro-configurator-grid.two-col {
        grid-template-columns: 1fr;
    }
}

/* Design snapshot shown on the cart/checkout page and in order details -
   the actual saved-off image of what the customer configured. */
.visaro-cart-preview-thumb {
    width: 100%;
    max-width: 80px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.visaro-cart-preview-image {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 4px;
}

@media (max-width: 1100px), (max-width: 1300px) and (max-height: 740px) {
    .visaro-configurator-shell.is-quick-mode {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-height: 0;
        padding-bottom: 24px;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-configurator-preview-panel {
        order: 0;
        width: 100%;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #f4f8fa;
        box-shadow: none;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-configurator-preview-wrap {
        min-height: 0;
        max-height: min(42dvh, 300px);
        padding: 8px 12px 12px;
        border: 0;
        border-radius: 0;
        align-items: center;
    }

    .visaro-configurator-shell.is-quick-mode #visaro-sign-preview {
        max-height: min(38dvh, 280px);
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-quick-editor {
        order: 1;
        padding: 4px 16px 28px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-quick-editor-inner {
        gap: 12px;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-quick-editor-tools {
        order: 1;
        gap: 10px;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-quick-editor-heading {
        order: 2;
        margin-top: 8px;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-quick-editor-buy {
        order: 3;
        gap: 10px;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-quick-editor-tools .visaro-configurator-section,
    .visaro-configurator-shell.is-quick-mode .visaro-quick-editor-buy .visaro-configurator-section {
        margin-bottom: 0;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-sidebar-brand {
        display: none;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-quick-editor-title {
        font-size: 1.45rem;
        margin: 0;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-quick-editor-subtitle {
        margin: 2px 0 0;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-quick-editor-actionbar {
        position: static;
        right: auto;
        bottom: auto;
        left: auto;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-configurator-price-box {
        display: flex;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-configurator-sidebar {
        display: none !important;
    }

    .visaro-configurator-shell.is-quick-mode .visaro-preview-chrome {
        padding: 8px 10px 0;
        margin-bottom: 0;
    }
}

.visaro-product-group-label {
    margin: 16px 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

a.visaro-option-card {
    text-decoration: none;
    color: inherit;
}

/* Woo-mode sign templates: same 50/50 chrome as print products. */
body.visaro-sign-woo-product.woocommerce div.product .product-images-summary {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 28px;
}

body.visaro-sign-woo-product.woocommerce div.product div.visaro-sign-woo-gallery,
body.visaro-sign-woo-product.woocommerce div.product div.summary {
    float: none;
    width: calc(50% - 14px);
    max-width: calc(50% - 14px);
    box-sizing: border-box;
    margin-top: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.visaro-sign-woo-product.woocommerce div.product div.summary {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.visaro-sign-woo-product.woocommerce div.product div.summary > .product_title {
    order: 0;
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 1.2rem + 0.6vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #111827;
}

body.visaro-sign-woo-product.woocommerce div.product div.summary > .price {
    order: 1;
    margin: 0 0 4px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
}

body.visaro-sign-woo-product.woocommerce div.product div.summary > .price del {
    opacity: 0.55;
    font-weight: 500;
}

body.visaro-sign-woo-product.woocommerce div.product div.summary > .visaro-sign-size-meta {
    order: 2;
    margin: 0 0 12px;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #64748b;
}

body.visaro-sign-woo-product.woocommerce div.product div.summary > .visaro-sign-size-meta strong {
    font-weight: 700;
    color: #0f172a;
}

body.visaro-sign-woo-product.woocommerce div.product div.summary > .detail-meta-top:has(.visaro-order-guide-link) {
    order: 3;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

body.visaro-sign-woo-product .visaro-order-guide-link {
    margin: 0;
}

body.visaro-sign-woo-product .visaro-order-guide-button {
    color: #64748b !important;
    font-weight: 550;
    font-size: 0.9rem;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(100, 116, 139, 0.4);
}

body.visaro-sign-woo-product .visaro-order-guide-button:hover {
    color: #0f172a !important;
    border-bottom-color: #0f172a;
}

body.visaro-sign-woo-product .visaro-order-guide-hint {
    display: none !important;
}

body.visaro-sign-woo-product.woocommerce div.product div.summary > .detail-meta-top {
    order: 5;
}

body.visaro-sign-woo-product.woocommerce div.product div.summary > .visaro-sign-woo-summary-host {
    order: 4;
}

body.visaro-sign-woo-product .visaro-sign-woo-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
}

body.visaro-sign-woo-product .visaro-sign-woo-thumbs {
    order: 0;
    flex: 0 0 56px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 56px;
}

body.visaro-sign-woo-product .visaro-sign-woo-thumb {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 56px;
    height: 70px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    background: #f4f1ec;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.visaro-sign-woo-product .visaro-sign-woo-thumb.is-selected {
    border-color: #111827;
    box-shadow: 0 0 0 1px #111827;
}

body.visaro-sign-woo-product .visaro-sign-woo-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.visaro-sign-woo-product .visaro-sign-woo-thumb-label {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 3px 2px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    color: #334155;
}

body.visaro-sign-woo-product .visaro-sign-woo-thumb[data-view="designer"] {
    background:
        linear-gradient(160deg, #f3efe9 0%, #e4ddd4 100%);
}

body.visaro-sign-woo-product .visaro-sign-woo-stage {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
}

body.visaro-sign-woo-product .visaro-sign-woo-photo {
    width: 100%;
    max-width: 520px;
}

body.visaro-sign-woo-product .visaro-sign-woo-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

body.visaro-sign-woo-product .visaro-sign-woo-gallery .visaro-configurator-preview-panel {
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible;
}

body.visaro-sign-woo-product .visaro-sign-woo-gallery .visaro-preview-chrome {
    margin: 0 0 10px;
    padding: 0;
}

/* Product photo frame follows the plate aspect (set inline from JS). */
body.visaro-sign-woo-product .visaro-sign-woo-gallery .visaro-configurator-preview-wrap {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    min-height: 0 !important;
    height: auto;
    margin: 0;
    padding: 28px 22px;
    box-sizing: border-box;
    background: #efebe5;
    border: 0;
    border-radius: 14px;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.visaro-sign-woo-product .visaro-sign-woo-gallery #visaro-sign-preview {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none;
    display: block;
    margin: 0;
}

body.visaro-sign-woo-product .visaro-sign-woo-gallery #visaro-preview-text,
body.visaro-sign-woo-product .visaro-sign-woo-gallery .visaro-preview-text-extra,
body.visaro-sign-woo-product .visaro-sign-woo-gallery .visaro-uploaded-image,
body.visaro-sign-woo-product .visaro-sign-woo-gallery .visaro-qr-object {
    pointer-events: none !important;
}

body.visaro-sign-woo-product .visaro-sign-woo-gallery #visaro-preview-bg {
    stroke: none !important;
    filter: drop-shadow(0 10px 22px rgba(15, 23, 42, 0.14));
}

body.visaro-sign-woo-product .breadcrumb-title-wrapper {
    display: none !important;
}

/* Clean live preview on shop: no mm rulers / size captions / zoom chrome. */
body.visaro-sign-woo-product #visaro-dim-line-top,
body.visaro-sign-woo-product #visaro-dim-line-bottom,
body.visaro-sign-woo-product #visaro-dim-line-left,
body.visaro-sign-woo-product #visaro-dim-line-right,
body.visaro-sign-woo-product #visaro-preview-width-label,
body.visaro-sign-woo-product #visaro-preview-height-label,
body.visaro-sign-woo-product #visaro-preview-text-box {
    display: none !important;
}

body.visaro-sign-woo-product .visaro-preview-zoom-controls,
body.visaro-sign-woo-product .visaro-preview-toolbar,
body.visaro-sign-woo-product .visaro-preview-zoom,
body.visaro-sign-woo-product #visaro-zoom-out,
body.visaro-sign-woo-product #visaro-zoom-in,
body.visaro-sign-woo-product #visaro-zoom-level,
body.visaro-sign-woo-product .visaro-preview-history {
    display: none !important;
}

body.visaro-sign-woo-product .visaro-sign-woo-summary-host {
    margin-top: 0;
}

body.visaro-sign-woo-product .visaro-sign-woo-summary-host .visaro-quick-editor {
    display: block !important;
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

body.visaro-sign-woo-product .visaro-quick-editor-heading {
    display: none !important;
}

/* Hide Visaro price box — Woo .summary .price is the source of truth. */
body.visaro-sign-woo-product .visaro-configurator-price-box {
    display: none !important;
}

body.visaro-sign-woo-product .visaro-quick-editor-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 4px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #fafaf9;
}

body.visaro-sign-woo-product .visaro-quick-editor-tools .visaro-configurator-section {
    margin: 0;
}

body.visaro-sign-woo-product .visaro-quick-editor-tools .visaro-configurator-section > label {
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

body.visaro-sign-woo-product .visaro-quick-editor-tools input[type="text"],
body.visaro-sign-woo-product .visaro-quick-editor-tools input[type="number"],
body.visaro-sign-woo-product .visaro-quick-editor-tools select,
body.visaro-sign-woo-product .visaro-quick-editor-tools textarea {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d8dee6;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.3;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.visaro-sign-woo-product .visaro-quick-editor-tools input[type="range"] {
    width: 100%;
    margin: 8px 0 0;
}

body.visaro-sign-woo-product #visaro-quick-logo-section .visaro-configurator-section {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body.visaro-sign-woo-product #visaro-quick-logo-section #visaro-image-upload-section > label {
    display: none;
}

body.visaro-sign-woo-product #visaro-quick-logo-section .visaro-add-image-btn {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border-radius: 10px;
}

body.visaro-sign-woo-product .visaro-quick-logo-size-label {
    display: block;
    margin: 10px 0 4px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

body.visaro-sign-woo-product .visaro-quick-logo-size-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #64748b;
}

body.visaro-sign-woo-product .visaro-quick-editor-tools input[type="text"]:focus,
body.visaro-sign-woo-product .visaro-quick-editor-tools input[type="number"]:focus,
body.visaro-sign-woo-product .visaro-quick-editor-tools select:focus,
body.visaro-sign-woo-product .visaro-quick-editor-tools textarea:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

body.visaro-sign-woo-product .visaro-quick-editor-buy {
    display: block;
    margin-top: 14px;
}

body.visaro-sign-woo-product .visaro-quick-editor-buy > .visaro-configurator-section {
    margin: 0;
    flex: 0 0 auto;
}

body.visaro-sign-woo-product form.cart.visaro-sign-woo-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.visaro-sign-woo-product form.cart.visaro-sign-woo-cart .quantity {
    margin: 0;
}

body.visaro-sign-woo-product form.cart.visaro-sign-woo-cart .single_add_to_cart_button {
    flex: 1 1 180px;
    margin: 0;
    float: none;
    min-height: 50px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.visaro-sign-woo-product form.cart.visaro-sign-woo-cart .visaro-sign-woo-tilpas.button {
    flex: 0 0 auto;
    margin: 0;
    min-height: 50px;
    background: #fff;
    border: 1px solid #111827;
    border-radius: 10px;
    color: #111827;
    box-shadow: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    font-weight: 650;
}

body.visaro-sign-woo-product .visaro-quick-editor-actionbar.visaro-sign-woo-cart,
body.visaro-sign-woo-product .visaro-quick-editor-actionbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1 1 220px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.visaro-sign-woo-product #visaro-quick-add-to-cart.single_add_to_cart_button {
    flex: 1 1 160px;
    margin: 0;
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

body.visaro-sign-woo-product #visaro-quick-tilpas.button {
    flex: 0 0 auto;
    margin: 0;
    min-height: 48px;
    background: #fff;
    border: 1px solid #161616;
    color: #161616;
    box-shadow: none;
}

body.visaro-sign-woo-product .visaro-sign-woo-engine,
body.visaro-sign-woo-product #visaro-configurator-shell.is-woo-reparented {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
}

@media (max-width: 767px) {
    body.single-product.visaro-sign-woo-product.woocommerce div.product .product-images-summary {
        flex-wrap: wrap;
        flex-direction: column;
        gap: 0;
    }

    body.single-product.visaro-sign-woo-product.woocommerce div.product div.visaro-sign-woo-gallery,
    body.single-product.visaro-sign-woo-product.woocommerce div.product div.summary {
        width: 100%;
        max-width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Mobile: image → text fields → title/price → buy (match print products
       so the sign stays on screen while typing). Desktop keeps Woo 50/50. */
    body.single-product.visaro-sign-woo-product.woocommerce div.product div.summary {
        display: contents;
    }

    body.single-product.visaro-sign-woo-product .visaro-sign-woo-summary-host,
    body.single-product.visaro-sign-woo-product .visaro-sign-woo-summary-host .visaro-quick-editor,
    body.single-product.visaro-sign-woo-product .visaro-quick-editor,
    body.single-product.visaro-sign-woo-product .visaro-quick-editor-inner {
        display: contents !important;
    }

    body.single-product.visaro-sign-woo-product .visaro-sign-woo-gallery {
        order: 1;
        width: 100%;
        margin: 0 0 14px !important;
        min-height: 0 !important;
        height: auto !important;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    /* Full-width hero; thumbs as a strip under the photo. */
    body.single-product.visaro-sign-woo-product .visaro-sign-woo-stage {
        order: 1;
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    body.single-product.visaro-sign-woo-product .visaro-sign-woo-thumbs {
        order: 2;
        flex: 0 0 auto;
        flex-direction: row;
        width: 100%;
        gap: 8px;
    }

    body.single-product.visaro-sign-woo-product .visaro-sign-woo-thumb {
        width: 56px;
        height: 56px;
        border-radius: 10px;
    }

    body.single-product.visaro-sign-woo-product .visaro-sign-woo-thumb-label {
        font-size: 8px;
        letter-spacing: 0.05em;
    }

    body.single-product.visaro-sign-woo-product .visaro-sign-woo-gallery .visaro-configurator-preview-panel {
        width: 100%;
        padding: 0;
        min-height: 0 !important;
        height: auto !important;
    }

    body.single-product.visaro-sign-woo-product .visaro-sign-woo-gallery .visaro-configurator-preview-wrap {
        width: 100%;
        max-width: none;
        /* Keep JS aspect-ratio for landscape; cap tall portraits so fields stay reachable. */
        height: auto !important;
        max-height: min(48dvh, 380px);
        min-height: 0 !important;
        padding: 16px 14px;
        margin: 0;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.single-product.visaro-sign-woo-product .visaro-sign-woo-gallery canvas {
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    body.single-product.visaro-sign-woo-product .visaro-sign-woo-gallery #visaro-sign-preview {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
        margin: 0 auto;
    }

    body.single-product.visaro-sign-woo-product.woocommerce div.product div.summary > * {
        order: 30;
    }

    body.single-product.visaro-sign-woo-product.woocommerce div.product div.summary > .product_title {
        order: 3;
        width: 100%;
        margin: 14px 0 4px;
        font-size: 1.5rem;
        line-height: 1.2;
    }

    body.single-product.visaro-sign-woo-product.woocommerce div.product .product-images-summary > .visaro-sign-size-meta,
    body.single-product.visaro-sign-woo-product.woocommerce div.product div.summary > .visaro-sign-size-meta {
        order: 4;
        width: 100%;
        margin: 0 0 6px;
        font-size: 0.88rem;
        text-align: left;
        color: #64748b;
    }

    body.single-product.visaro-sign-woo-product.woocommerce div.product div.summary > .price {
        order: 5;
        width: 100%;
        margin: 0 0 8px;
        font-size: 1.15rem;
    }

    /* Guide lives inside theme .detail-meta-top, not as a summary direct child. */
    body.single-product.visaro-sign-woo-product.woocommerce div.product div.summary > .detail-meta-top:has(.visaro-order-guide-link) {
        order: 6;
        width: 100%;
        margin: 0 0 12px;
        padding: 0;
        border: 0;
    }

    body.single-product.visaro-sign-woo-product .visaro-order-guide-link {
        margin: 0;
    }

    body.single-product.visaro-sign-woo-product .visaro-order-guide-button {
        color: #64748b !important;
        font-weight: 550;
        font-size: 0.88rem;
        text-decoration: none;
        border-bottom: 1px solid rgba(100, 116, 139, 0.4);
    }

    body.single-product.visaro-sign-woo-product .visaro-order-guide-hint {
        display: none !important;
    }

    body.single-product.visaro-sign-woo-product .visaro-quick-editor-tools {
        order: 2;
        width: 100%;
        margin: 0 0 8px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    body.single-product.visaro-sign-woo-product .visaro-quick-editor-buy {
        order: 7;
        width: 100%;
        margin-top: 0;
    }

    body.single-product.visaro-sign-woo-product.woocommerce div.product div.summary > .detail-meta-top,
    body.single-product.visaro-sign-woo-product.woocommerce div.product div.summary > .meta-content {
        order: 30;
        margin-top: 10px;
    }

    body.single-product.visaro-sign-woo-product.woocommerce div.product div.summary > .detail-meta-top:has(.visaro-order-guide-link) {
        order: 6;
        margin-top: 0;
        margin-bottom: 12px;
    }

    /* While typing: dim chrome below the field so the sign + input dominate. */
    body.single-product.visaro-sign-woo-product.visaro-sign-field-focus.woocommerce div.product div.summary > .product_title,
    body.single-product.visaro-sign-woo-product.visaro-sign-field-focus.woocommerce div.product div.summary > .price,
    body.single-product.visaro-sign-woo-product.visaro-sign-field-focus .visaro-sign-size-meta,
    body.single-product.visaro-sign-woo-product.visaro-sign-field-focus.woocommerce div.product div.summary > .detail-meta-top,
    body.single-product.visaro-sign-woo-product.visaro-sign-field-focus .visaro-quick-editor-buy {
        opacity: 0.35;
        pointer-events: none;
    }

    body.single-product.visaro-sign-woo-product .visaro-quick-editor-tools .visaro-configurator-section {
        margin: 0;
    }

    body.single-product.visaro-sign-woo-product .visaro-quick-editor-tools .visaro-configurator-section > label {
        margin-bottom: 5px;
    }

    body.single-product.visaro-sign-woo-product .visaro-quick-editor-tools input[type="text"],
    body.single-product.visaro-sign-woo-product .visaro-quick-editor-tools input[type="number"],
    body.single-product.visaro-sign-woo-product .visaro-quick-editor-tools select,
    body.single-product.visaro-sign-woo-product .visaro-quick-editor-tools textarea {
        min-height: 46px;
        font-size: 16px;
        border-radius: 10px;
    }

    body.single-product.visaro-sign-woo-product form.cart.visaro-sign-woo-cart {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    body.single-product.visaro-sign-woo-product form.cart.visaro-sign-woo-cart .quantity {
        width: 100%;
        max-width: 140px;
    }

    body.single-product.visaro-sign-woo-product form.cart.visaro-sign-woo-cart .single_add_to_cart_button {
        flex: 1 1 auto;
        width: 100%;
        min-height: 52px;
        border-radius: 12px;
    }

    body.single-product.visaro-sign-woo-product form.cart.visaro-sign-woo-cart .visaro-sign-woo-tilpas.button {
        width: 100%;
        min-height: 46px;
        border-radius: 12px;
    }

    /* Typing focus: shrink preview like print products. */
    body.single-product.visaro-sign-woo-product.visaro-sign-field-focus .visaro-sign-woo-gallery {
        margin-bottom: 8px !important;
        scroll-margin-top: 0;
        position: sticky;
        top: 0;
        z-index: 30;
        background: #fff;
        padding-bottom: 4px;
    }

    body.single-product.visaro-sign-woo-product.visaro-sign-field-focus .visaro-sign-woo-gallery .visaro-configurator-preview-wrap {
        height: auto !important;
        max-height: var(--visaro-focus-photo-max, 34dvh);
        padding: 10px 12px;
    }

    body.single-product.visaro-sign-woo-product.visaro-sign-field-focus .visaro-sign-woo-gallery #visaro-sign-preview {
        max-height: var(--visaro-focus-photo-max, 34dvh);
    }

    body.single-product.visaro-sign-woo-product.visaro-sign-field-focus .visaro-sign-woo-thumbs {
        display: none;
    }

    body.single-product.visaro-sign-woo-product.visaro-sign-typing-dock-open .visaro-quick-editor-tools {
        display: none !important;
    }

    body.single-product.visaro-sign-woo-product.visaro-sign-typing-dock-open .visaro-quick-editor-buy,
    body.single-product.visaro-sign-woo-product.visaro-sign-typing-dock-open.woocommerce div.product div.summary > .product_title,
    body.single-product.visaro-sign-woo-product.visaro-sign-typing-dock-open.woocommerce div.product div.summary > .price,
    body.single-product.visaro-sign-woo-product.visaro-sign-typing-dock-open .visaro-sign-size-meta,
    body.single-product.visaro-sign-woo-product.visaro-sign-typing-dock-open.woocommerce div.product div.summary > .visaro-order-guide-link,
    body.single-product.visaro-sign-woo-product.visaro-sign-typing-dock-open.woocommerce div.product div.summary > .detail-meta-top {
        opacity: 0.28;
        pointer-events: none;
    }
}

/* Mobile typing dock — full-screen so tap-away always hits the backdrop. */
.visaro-sign-typing-dock {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
}

body.visaro-sign-typing-dock-open .visaro-sign-typing-dock {
    display: block;
}

.visaro-sign-typing-dock-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.18);
    border: 0;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.visaro-sign-typing-dock-card {
    position: absolute;
    left: 50%;
    right: auto;
    width: min(420px, calc(100vw - 20px));
    transform: translateX(-50%);
    /* JS sets --visaro-dock-top from visualViewport (above keyboard).
       Until then, bottom-anchor so the card is not stuck at the top. */
    top: var(--visaro-dock-top, auto);
    bottom: var(--visaro-dock-bottom, 8px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
}

.visaro-sign-typing-dock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.visaro-sign-typing-dock-card label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.visaro-sign-typing-dock-done {
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.visaro-sign-typing-dock-card input,
.visaro-sign-typing-dock-card textarea {
    width: 100%;
    min-height: 40px;
    max-height: 52px;
    height: 40px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.3;
    box-sizing: border-box;
    resize: none;
    background: #fff;
    color: #0f172a;
}

.visaro-sign-typing-dock-card textarea.is-multiline {
    min-height: 52px;
    max-height: 72px;
    height: 52px;
}

.visaro-sign-typing-dock-card input:focus {
    outline: 2px solid rgba(15, 23, 42, 0.25);
    outline-offset: 1px;
    border-color: #64748b;
    background: #fff;
    color: #0f172a;
}

body.visaro-sign-woo-product #visaro-quick-text-section,
body.visaro-sign-woo-product .visaro-quick-extra-line,
body.visaro-sign-woo-product #visaro-quick-text,
body.visaro-sign-woo-product .visaro-quick-extra-line-input,
.visaro-sign-typing-dock,
.visaro-sign-typing-dock-card input {
    -webkit-tap-highlight-color: transparent;
}

body.visaro-sign-woo-product #visaro-quick-text,
body.visaro-sign-woo-product .visaro-quick-extra-line-input,
body.visaro-sign-woo-product #visaro-quick-qr,
.visaro-sign-typing-dock-card input,
body.visaro-sign-woo-product #visaro-quick-text:focus,
body.visaro-sign-woo-product #visaro-quick-text:focus:invalid,
body.visaro-sign-woo-product .visaro-quick-extra-line-input:focus,
body.visaro-sign-woo-product .visaro-quick-extra-line-input:focus:invalid,
body.visaro-sign-woo-product #visaro-quick-qr:focus,
html body.visaro-sign-woo-product input:focus:invalid:focus,
.visaro-sign-typing-dock-card input:focus:invalid {
    background: #fff !important;
    background-color: #fff !important;
    color: #0f172a !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

@media (max-width: 767px) {
    body.visaro-sign-woo-product #visaro-quick-text-section,
    body.visaro-sign-woo-product .visaro-quick-extra-line,
    #visaro-quick-text,
    .visaro-quick-extra-line-input {
        touch-action: manipulation;
    }
}

body.visaro-sign-typing-dock-open .visaro-quick-editor-buy .single_add_to_cart_button:hover,
body.visaro-sign-typing-dock-open .visaro-quick-editor-buy .button:hover,
body.visaro-sign-woo-product.visaro-sign-typing-dock-open .single_add_to_cart_button:hover,
body.visaro-sign-woo-product.visaro-sign-field-focus .single_add_to_cart_button:hover,
body.visaro-sign-woo-product.visaro-sign-field-focus .single_add_to_cart_button:active {
    background: #161616 !important;
    border-color: #161616 !important;
    color: #fff !important;
}

/* Theme paints buttons #a20401 on :hover. On iOS the first tap on a text
   field reflows the layout so the finger lands on Læg i kurv — sticky
   hover then turns the screen red. Kill that on touch devices. */
@media (hover: none) {
    html body.visaro-sign-woo-product .single_add_to_cart_button:hover,
    html body.visaro-sign-woo-product .single_add_to_cart_button:active,
    html body.visaro-sign-woo-product .single_add_to_cart_button:focus,
    html body.visaro-sign-woo-product .visaro-quick-editor-buy .button:hover,
    html body.visaro-sign-woo-product .visaro-quick-editor-buy .button:active {
        background: #161616 !important;
        border-color: #161616 !important;
        color: #fff !important;
    }
}

html body.visaro-sign-woo-product,
html body.visaro-sign-woo-product input,
html body.visaro-sign-woo-product .visaro-configurator-section,
html body.visaro-sign-woo-product .visaro-sign-typing-dock-card {
    -webkit-tap-highlight-color: transparent !important;
}

html body.visaro-sign-woo-product input:-webkit-autofill,
html body.visaro-sign-woo-product input:-webkit-autofill:hover,
html body.visaro-sign-woo-product input:-webkit-autofill:focus,
.visaro-sign-typing-dock-card input:-webkit-autofill,
.visaro-sign-typing-dock-card input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px #fff inset !important;
    box-shadow: 0 0 0 100px #fff inset !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a;
}

/* Woo-layout template products: Tilpas under Læg i kurv */
.visaro-product-tilpas-cta {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.visaro-product-tilpas-cta .visaro-tilpas-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid #1f2937;
    border-radius: 4px;
    background: #fff;
    color: #1f2937;
    font-weight: 600;
    text-decoration: none;
}

.visaro-product-tilpas-cta .visaro-tilpas-button:hover {
    background: #111827;
    color: #fff;
}

.visaro-product-tilpas-note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
}

.visaro-save-as-product-bar {
    margin: 6px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.visaro-save-as-product-bar .visaro-configurator-button {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 7px;
}

.visaro-save-as-product-bar p {
    display: none;
}

.visaro-save-as-product-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
}

.visaro-save-as-product-modal[hidden] {
    display: none;
}

.visaro-save-as-product-dialog {
    width: min(420px, calc(100vw - 32px));
    padding: 20px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.visaro-save-as-product-dialog h3 {
    margin: 0 0 12px;
}

.visaro-save-as-product-dialog label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
}

.visaro-save-as-product-featured {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 8px;
}

.visaro-save-as-product-featured input {
    width: auto;
    min-height: 0;
    margin-top: 2px;
}

.visaro-save-as-product-dialog input {
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 400;
}

.visaro-save-as-product-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.visaro-save-as-product-status {
    min-height: 1.4em;
    font-size: 13px;
    color: #0f766e;
}

/* ---- Mine designs / gem design (logged-in designer only) ---- */

.visaro-step-row--saved {
	margin-top: 8px;
	border-top: 1px solid #e5e7eb;
	padding-top: 10px;
}

.visaro-saved-designs-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.visaro-saved-designs-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 6px;
}

.visaro-saved-designs-group__title {
	margin: 4px 0 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
}

.visaro-saved-design-card {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 10px;
	border: 1px solid #d9e4ea;
	border-radius: 8px;
	background: #fff;
}

.visaro-saved-design-card.is-active {
	border-color: #0f766e;
	box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.25);
}

.visaro-saved-design-card__thumb {
	width: 64px;
	height: 48px;
	border-radius: 4px;
	background: #f1f5f9;
	object-fit: contain;
	border: 1px solid #e2e8f0;
}

.visaro-saved-design-card__thumb--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.65rem;
	color: #94a3b8;
}

.visaro-saved-design-card__body {
	min-width: 0;
}

.visaro-saved-design-card__title {
	margin: 0 0 2px;
	font-size: 0.92rem;
	font-weight: 700;
	color: #0f172a;
	word-break: break-word;
}

.visaro-saved-design-card__meta {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.35;
	color: #64748b;
}

.visaro-saved-design-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.visaro-saved-design-card__actions button {
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid #d9e4ea;
	background: #fff;
	cursor: pointer;
	color: #0f172a;
}

.visaro-saved-design-card__actions button.is-danger {
	color: #b91c1c;
	border-color: #fecaca;
}

.visaro-save-design-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.45);
}

.visaro-save-design-modal[hidden] {
	display: none !important;
}

.visaro-save-design-dialog {
	width: min(420px, 100%);
	background: #fff;
	border-radius: 12px;
	padding: 18px 18px 14px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.visaro-save-design-dialog h3 {
	margin: 0 0 12px;
}

.visaro-save-design-dialog label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.88rem;
	font-weight: 600;
}

.visaro-save-design-dialog input {
	font: inherit;
	padding: 10px 12px;
	border: 1px solid #d9e4ea;
	border-radius: 8px;
}

.visaro-save-design-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
}

.visaro-save-design-status {
	min-height: 1.2em;
	margin: 8px 0 0;
	font-size: 0.85rem;
	color: #0f766e;
}

.visaro-save-design-status.is-error {
	color: #b91c1c;
}

@media (max-width: 1100px), (max-width: 1300px) and (max-height: 740px) {
	.visaro-configurator-actionbar #visaro-save-design {
		flex: 0 0 auto;
		padding: 12px 12px;
		font-size: 0.85rem;
	}
}
