/* Omnia_Messaging - storefront (widget + conversation page) */

.omm-root {
    --omm-color: #0a4d8c;
    --omm-x: 20px;
    --omm-y: 20px;
    --omm-y-mobile: 80px;
    --omm-z: 9998;
    --omm-size: 58px;
    --omm-launcher-radius: 50%;
    --omm-icon-color: #fff;
    --omm-panel-w: 370px;
    --omm-panel-h: 540px;
    --omm-side-w: 300px;
    --omm-page-min: 480px;
    --omm-page-max: 740px;
    --omm-page-offset: 300px;
    --omm-panel-r: 14px;
    --omm-bg: #fff;
    --omm-text: #1f2933;
    --omm-muted: #6b7785;
    --omm-line: #e1e6ec;
    --omm-soft: #f3f6f9;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    color: var(--omm-text);
}

.omm-root *,
.omm-root *::before,
.omm-root *::after {
    box-sizing: border-box;
}

.omm-root [hidden] {
    display: none !important;
}

/* ---------------------------------------------------------------- launcher */

.omm-root:not(.omm-root--page) .omm-launcher {
    position: fixed;
    bottom: var(--omm-y);
    z-index: var(--omm-z);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--omm-size);
    height: var(--omm-size);
    padding: 0;
    border: 0;
    border-radius: var(--omm-launcher-radius);
    background: var(--omm-color);
    color: var(--omm-icon-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.omm-pos-right .omm-launcher { right: var(--omm-x); }
.omm-pos-left .omm-launcher { left: var(--omm-x); }

.omm-launcher:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .34);
}

.omm-launcher:focus-visible,
.omm-btn:focus-visible,
.omm-icon-btn:focus-visible,
.omm-link:focus-visible {
    outline: 3px solid rgba(10, 77, 140, .45);
    outline-offset: 2px;
}

.omm-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #d6291f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    border: 2px solid #fff;
}

/* ---------------------------------------------------------------- panel */

.omm-panel {
    display: flex;
    flex-direction: column;
    background: var(--omm-bg);
    border: 1px solid var(--omm-line);
    overflow: hidden;
}

.omm-root:not(.omm-root--page) .omm-panel {
    position: fixed;
    bottom: calc(var(--omm-y) + var(--omm-size) + 12px);
    z-index: var(--omm-z);
    width: var(--omm-panel-w);
    max-width: calc(100vw - 24px);
    height: var(--omm-panel-h);
    max-height: calc(100vh - var(--omm-y) - var(--omm-size) - 32px);
    border-radius: var(--omm-panel-r);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
}

.omm-pos-right .omm-panel { right: var(--omm-x); }
.omm-pos-left .omm-panel { left: var(--omm-x); }

.omm-panel--page {
    position: relative;
    min-height: 420px;
    max-width: 860px;
    border-radius: 10px;
}

.omm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    background: var(--omm-color);
    color: #fff;
}

.omm-head-text { display: flex; flex-direction: column; min-width: 0; }
.omm-title { font-size: 16px; }
.omm-subtitle { font-size: 12px; opacity: .9; }

.omm-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.omm-head .omm-icon-btn:hover { background: rgba(255, 255, 255, .18); }

.omm-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.omm-panel--page .omm-body { min-height: 420px; }

/* ---------------------------------------------------------------- forms */

.omm-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.omm-welcome { margin: 0; color: var(--omm-text); }
.omm-muted { margin: 0; color: var(--omm-muted); font-size: 13px; }
.omm-center { text-align: center; padding: 30px 16px; }

.omm-field { display: flex; flex-direction: column; gap: 4px; }
.omm-label { font-size: 12px; font-weight: 600; color: var(--omm-muted); }
.omm-hint { font-size: 12px; color: var(--omm-muted); }
.omm-hint--error { color: #b3261e; }

.omm-input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #c6cdd6;
    border-radius: 8px;
    background: #fff;
    color: var(--omm-text);
    font: inherit;
    height: auto;
}

.omm-input:focus {
    outline: 0;
    border-color: var(--omm-color);
    box-shadow: 0 0 0 3px rgba(10, 77, 140, .15);
}

.omm-textarea { resize: vertical; min-height: 84px; }

.omm-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--omm-muted); cursor: pointer; }
.omm-consent input { margin-top: 2px; }

.omm-hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.omm-btn {
    display: inline-block;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--omm-color);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.omm-btn:hover { filter: brightness(1.1); color: #fff; }
.omm-btn:disabled { opacity: .6; cursor: default; }
.omm-btn--block { width: 100%; }

.omm-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--omm-color);
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
}

.omm-error {
    margin: 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fdecea;
    color: #8a1c14;
    font-size: 13px;
}

.omm-success {
    margin: 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: #e6f4ea;
    color: #1e5c2e;
    font-size: 13px;
}

/* ---------------------------------------------------------------- thread */

.omm-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--omm-line);
    background: var(--omm-soft);
    font-size: 12px;
}

.omm-ref { color: var(--omm-muted); font-weight: 600; }
.omm-meta-actions { display: flex; gap: 12px; }
.omm-meta-actions .omm-link { font-size: 12px; }

.omm-messages {
    flex: 1 1 auto;
    min-height: 120px;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafbfc;
}

.omm-msg { display: flex; flex-direction: column; max-width: 86%; }
.omm-msg--me { align-self: flex-end; align-items: flex-end; }
.omm-msg--staff { align-self: flex-start; align-items: flex-start; }
.omm-msg--system { align-self: center; max-width: 100%; }

.omm-msg-name { margin: 0 0 2px 4px; font-size: 11px; font-weight: 600; color: var(--omm-muted); }

.omm-bubble {
    padding: 8px 12px;
    border-radius: 14px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.omm-msg--me .omm-bubble { background: var(--omm-color); color: #fff; border-bottom-right-radius: 4px; }
.omm-msg--staff .omm-bubble { background: #fff; border: 1px solid var(--omm-line); border-bottom-left-radius: 4px; }

.omm-text { white-space: pre-wrap; }

.omm-files { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; }
.omm-files a { color: inherit; text-decoration: underline; }

.omm-time { margin: 2px 4px 0; font-size: 10px; color: var(--omm-muted); }

.omm-system-text {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--omm-soft);
    color: var(--omm-muted);
    font-size: 11px;
}

.omm-closed {
    margin: 0;
    padding: 8px 14px;
    background: #fff7e0;
    color: #7a5b00;
    font-size: 12px;
    border-top: 1px solid #f0e1ad;
}

.omm-composer {
    padding: 10px 12px 12px;
    border-top: 1px solid var(--omm-line);
    background: #fff;
}

.omm-composer-row { display: flex; align-items: flex-end; gap: 6px; }
.omm-composer-text { min-height: 40px; max-height: 120px; resize: none; }
.omm-composer .omm-icon-btn { color: var(--omm-muted); flex: 0 0 auto; }
.omm-composer .omm-icon-btn:hover { background: var(--omm-soft); }
.omm-send { flex: 0 0 auto; padding: 9px 14px; }
.omm-composer .omm-error { margin-top: 8px; }

.omm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.omm-chips:empty { display: none; }

.omm-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 2px 4px 2px 10px;
    border-radius: 12px;
    background: var(--omm-soft);
    font-size: 12px;
}

.omm-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.omm-chip-x { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: var(--omm-muted); padding: 0 6px; }

/* ---------------------------------------------------------------- conversation page / account */

.omm-page-head { margin-bottom: 14px; }
.omm-page-title { margin: 0 0 4px; }
.omm-page-ref { margin: 0 0 6px; color: #6b7785; }
.omm-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.omm-unread-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #d6291f;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 767px) {
    .omm-root:not(.omm-root--page) .omm-launcher { bottom: var(--omm-y-mobile); }

    .omm-root:not(.omm-root--page) .omm-panel {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        border: 0;
        border-radius: 0;
        z-index: calc(var(--omm-z) + 2);
    }

    html.omm-open,
    html.omm-open body { overflow: hidden; }

    .omm-input { font-size: 16px; } /* avoid the iOS zoom on focus */
}

@media (prefers-reduced-motion: reduce) {
    .omm-launcher { transition: none; }
}

.omm-notice {
    margin: 0;
    padding: 6px 14px;
    background: #fff7e0;
    color: #7a5b00;
    font-size: 11px;
    border-bottom: 1px solid #f0e1ad;
}

/* ---------------------------------------------------------------- menu (channel choice) */

.omm-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.omm-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--omm-line);
    border-radius: 12px;
    background: var(--omm-bg);
    color: var(--omm-text);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}

.omm-opt:hover { border-color: var(--omm-color); background: var(--omm-soft); color: var(--omm-text); }
.omm-opt:focus-visible { outline: 3px solid rgba(10, 77, 140, .45); outline-offset: 2px; }
.omm-opt--main { border: 2px solid var(--omm-color); padding: 11px; }

.omm-ic {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--omm-soft);
    color: var(--omm-muted);
}

.omm-ic--wa { background: #25d366; color: #fff; }
.omm-ic--ticket { background: var(--omm-color); color: #fff; }

.omm-opt-text { display: flex; flex-direction: column; min-width: 0; }
.omm-opt-text strong { font-size: 14px; font-weight: 600; }
.omm-opt-text > span { font-size: 12px; color: var(--omm-muted); }
.omm-opt-badge {
    align-self: flex-start;
    margin-top: 3px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #d6291f;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}

.omm-opt-next { margin-left: auto; color: var(--omm-muted); display: inline-flex; }

/* header extras: back button and online / offline pill */

.omm-head .omm-back { margin-left: -8px; }
.omm-head-text { flex: 1 1 auto; }

.omm-pill {
    flex: 0 0 auto;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    font-size: 11px;
    font-weight: 600;
}

.omm-pill::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 1px;
}

.omm-pill--on::before { background: #7dffa8; }
.omm-pill--off::before { background: #ffd27d; }

/* ticket form: promise + categories */

.omm-promise {
    margin: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #eaf3fc;
    color: #134a82;
    font-size: 12px;
}

.omm-cats { display: flex; flex-wrap: wrap; gap: 6px; }

.omm-cat {
    padding: 5px 11px;
    border: 1px solid #c6cdd6;
    border-radius: 999px;
    background: #fff;
    color: var(--omm-muted);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.omm-cat:hover { border-color: var(--omm-color); }
.omm-cat--on { background: var(--omm-color); border-color: var(--omm-color); color: #fff; }
.omm-cat:focus-visible { outline: 3px solid rgba(10, 77, 140, .45); outline-offset: 2px; }

/* request status in the thread header strip */

.omm-status {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #eef1f4;
    color: #4a5560;
}

.omm-status--open { background: #fde8d4; color: #8a4b0f; }
.omm-status--in_progress { background: #e8e1fa; color: #43287f; }
.omm-status--answered { background: #dcebfb; color: #134a82; }
.omm-status--resolved { background: #dcf1e1; color: #1d5a31; }

@media (max-width: 767px) {
    .omm-hide-mobile .omm-launcher { display: none !important; }
}

/* ---------------------------------------------------------------- form polish */

.omm-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--omm-muted);
    cursor: pointer;
}

.omm-consent > span { flex: 1 1 auto; min-width: 0; text-align: left; }
.omm-consent a { color: var(--omm-color); text-decoration: underline; }

.omm-root input.omm-check {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 1px 0 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    accent-color: var(--omm-color);
    cursor: pointer;
}

.omm-form .omm-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.omm-root .omm-attach-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: auto;
    padding: 8px 12px;
    border: 1px dashed #aab4c0;
    border-radius: 8px;
    background: transparent;
    color: var(--omm-muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.omm-root .omm-attach-btn:hover { border-color: var(--omm-color); color: var(--omm-color); background: var(--omm-soft); }
.omm-root .omm-attach-btn:focus-visible { outline: 3px solid rgba(10, 77, 140, .45); outline-offset: 2px; }
.omm-attach .omm-chips { flex: 1 0 100%; margin: 0; }
.omm-attach .omm-hint { flex: 1 0 100%; }

/* ---------------------------------------------------------------- button states vs. theme styles
   Themes (Luma included) style every `button:hover`, `button:focus`, `button:active` with a background,
   border and shadow. The rules below pin the look of every widget button in all states, with a
   selector more specific than the theme's. */

.omm-root button.omm-link,
.omm-root button.omm-link:hover,
.omm-root button.omm-link:focus,
.omm-root button.omm-link:active {
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-shadow: none;
    line-height: inherit;
}

.omm-root button.omm-link {
    align-self: flex-start;
    width: auto;
    color: var(--omm-color);
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.omm-root button.omm-link:hover,
.omm-root a.omm-link:hover { color: #06335d; text-decoration: none; }
.omm-root button.omm-link:focus-visible { outline: 3px solid rgba(10, 77, 140, .45); outline-offset: 3px; border-radius: 2px; }

.omm-root .omm-btn,
.omm-root .omm-btn:hover,
.omm-root .omm-btn:focus,
.omm-root .omm-btn:active {
    border: 0;
    background: var(--omm-color);
    color: #fff;
    box-shadow: none;
    text-shadow: none;
    text-decoration: none;
}

.omm-root .omm-btn:hover { filter: brightness(1.12); }
.omm-root .omm-btn:disabled,
.omm-root .omm-btn:disabled:hover { opacity: .6; filter: none; cursor: default; }

.omm-root button.omm-cat,
.omm-root button.omm-cat:focus,
.omm-root button.omm-cat:active { background: #fff; border: 1px solid #c6cdd6; box-shadow: none; color: var(--omm-muted); }
.omm-root button.omm-cat:hover { background: var(--omm-soft); border-color: var(--omm-color); color: var(--omm-text); box-shadow: none; }
.omm-root button.omm-cat.omm-cat--on,
.omm-root button.omm-cat.omm-cat--on:hover,
.omm-root button.omm-cat.omm-cat--on:focus { background: var(--omm-color); border-color: var(--omm-color); color: #fff; }

.omm-root button.omm-opt,
.omm-root button.omm-opt:focus,
.omm-root button.omm-opt:active { background: var(--omm-bg); box-shadow: none; text-shadow: none; }
.omm-root button.omm-opt:hover { background: var(--omm-soft); border-color: var(--omm-color); box-shadow: none; }

.omm-root button.omm-icon-btn,
.omm-root button.omm-icon-btn:focus,
.omm-root button.omm-icon-btn:active { background: transparent; border: 0; box-shadow: none; padding: 0; }
.omm-root .omm-head button.omm-icon-btn:hover { background: rgba(255, 255, 255, .2); border: 0; box-shadow: none; }
.omm-root .omm-composer button.omm-icon-btn:hover { background: var(--omm-soft); border: 0; box-shadow: none; }

.omm-root button.omm-attach-btn,
.omm-root button.omm-attach-btn:focus,
.omm-root button.omm-attach-btn:active { background: transparent; border: 1px dashed #aab4c0; box-shadow: none; text-shadow: none; }
.omm-root button.omm-attach-btn:hover { background: var(--omm-soft); border: 1px dashed var(--omm-color); box-shadow: none; }

.omm-root button.omm-chip-x,
.omm-root button.omm-chip-x:hover,
.omm-root button.omm-chip-x:focus { background: none; border: 0; box-shadow: none; }

.omm-root .omm-launcher,
.omm-root .omm-launcher:focus,
.omm-root .omm-launcher:active { border: 0; background: var(--omm-color); color: var(--omm-icon-color); box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.omm-root .omm-launcher:hover { border: 0; background: var(--omm-color); color: var(--omm-icon-color); box-shadow: 0 8px 22px rgba(0, 0, 0, .34); }

.omm-root .omm-launcher svg,
.omm-root .omm-launcher img { width: calc(var(--omm-size) * .46); height: calc(var(--omm-size) * .46); }

/* custom image icon: shown as it is, without the coloured disc */
.omm-root .omm-launcher.omm-launcher--img,
.omm-root .omm-launcher.omm-launcher--img:hover,
.omm-root .omm-launcher.omm-launcher--img:focus { background: transparent; box-shadow: none; }
.omm-root .omm-launcher--img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .3)); }

/* online / offline dot on the launcher */
.omm-dot {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #8a94a0;
}

.omm-dot--on { background: #2ecc71; }
.omm-dot--off { background: #f0a93b; }

/* tooltip (mouse devices only) */
.omm-tip {
    position: fixed;
    bottom: calc(var(--omm-y) + (var(--omm-size) - 44px) / 2);
    z-index: var(--omm-z);
    max-width: 220px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #1f2933;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: translateX(4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.omm-pos-right .omm-tip { right: calc(var(--omm-x) + var(--omm-size) + 12px); }
.omm-pos-left .omm-tip { left: calc(var(--omm-x) + var(--omm-size) + 12px); transform: translateX(-4px); }
.omm-tip.omm-tip--show { visibility: visible; opacity: 1; transform: none; }

.omm-tip::after {
    content: "";
    position: absolute;
    bottom: 15px;
    width: 10px;
    height: 10px;
    background: #1f2933;
    transform: rotate(45deg);
}

.omm-pos-right .omm-tip::after { right: -4px; }
.omm-pos-left .omm-tip::after { left: -4px; }
.omm-tip small { display: block; margin-top: 2px; font-size: 11px; opacity: .75; }

@media (max-width: 767px) {
    .omm-tip { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .omm-tip { transition: none; }
}


/* ---------------------------------------------------------------- stepped request form
   The panel keeps one fixed height: the step body scrolls, the buttons stay at the bottom. */

.omm-step {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.omm-progress { flex: 0 0 auto; padding: 12px 16px 0; }
.omm-bars { display: flex; gap: 4px; }
.omm-bars i { flex: 1; height: 4px; border-radius: 2px; background: var(--omm-line); }
.omm-bars i.on { background: var(--omm-color); }
.omm-step-label { display: block; margin-top: 5px; font-size: 11px; color: var(--omm-muted); }

.omm-step-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 12px 16px;
    overflow-y: auto;
}

.omm-step-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--omm-text); }
.omm-pad { padding: 16px; }

.omm-step-nav {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--omm-line);
    background: var(--omm-bg);
}

.omm-btn--grow { flex: 1 1 auto; }

.omm-root button.omm-btn-ghost,
.omm-root button.omm-btn-ghost:focus,
.omm-root button.omm-btn-ghost:active {
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid #c6cdd6;
    border-radius: 8px;
    background: transparent;
    color: var(--omm-muted);
    font: inherit;
    font-weight: 600;
    box-shadow: none;
    text-shadow: none;
    cursor: pointer;
}

.omm-root button.omm-btn-ghost:hover { background: var(--omm-soft); border-color: var(--omm-color); color: var(--omm-text); box-shadow: none; }

.omm-root button.omm-choice,
.omm-root button.omm-choice:focus,
.omm-root button.omm-choice:active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: auto;
    padding: 12px 14px;
    border: 1px solid var(--omm-line);
    border-radius: 12px;
    background: var(--omm-bg);
    color: var(--omm-text);
    font: inherit;
    font-size: 14px;
    text-align: left;
    box-shadow: none;
    text-shadow: none;
    cursor: pointer;
}

.omm-root button.omm-choice:hover { background: var(--omm-soft); border-color: var(--omm-color); box-shadow: none; color: var(--omm-text); }
.omm-root button.omm-choice.omm-choice--on { border: 2px solid var(--omm-color); padding: 11px 13px; }
.omm-choice-next { display: inline-flex; color: var(--omm-muted); }
.omm-choice-next svg { width: 18px; height: 18px; }

/* step errors: a floating notice just above the buttons, so the step never changes size or grows a scrollbar */
.omm-step-nav { position: relative; }

.omm-step-nav .omm-error--float {
    position: absolute;
    right: 16px;
    bottom: calc(100% + 8px);
    left: 16px;
    margin: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

/* ---------------------------------------------------------------- "my requests" list */

.omm-list { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; }
.omm-reqs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }

.omm-root button.omm-req,
.omm-root button.omm-req:focus,
.omm-root button.omm-req:active {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    width: 100%;
    height: auto;
    padding: 10px 12px;
    border: 1px solid var(--omm-line);
    border-radius: 12px;
    background: var(--omm-bg);
    color: var(--omm-text);
    font: inherit;
    text-align: left;
    box-shadow: none;
    text-shadow: none;
    cursor: pointer;
}

.omm-root button.omm-req:hover { background: var(--omm-soft); border-color: var(--omm-color); box-shadow: none; color: var(--omm-text); }
.omm-req-main { display: flex; flex: 1 1 140px; flex-direction: column; min-width: 0; }
.omm-req-main strong { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.omm-req-meta { overflow: hidden; font-size: 11px; color: var(--omm-muted); text-overflow: ellipsis; white-space: nowrap; }
.omm-list-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.omm-req .omm-opt-badge { margin: 0; }

/* ---------------------------------------------------------------- conversation page: list + thread
   Full width of the site container, one fixed height: the list and the messages scroll inside. */

.omm-page-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.omm-page-title { margin: 0; }
.omm-page-top-actions { display: flex; align-items: center; gap: 16px; }

.omm-page {
    display: grid;
    grid-template-columns: var(--omm-side-w) minmax(0, 1fr);
    gap: 16px;
    height: clamp(var(--omm-page-min), calc(100vh - var(--omm-page-offset)), var(--omm-page-max));
}

.omm-side,
.omm-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--omm-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.omm-root button.omm-side-head,
.omm-root button.omm-side-head:hover,
.omm-root button.omm-side-head:focus,
.omm-root button.omm-side-head:active {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--omm-line);
    border-radius: 0;
    background: var(--omm-soft);
    color: var(--omm-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    box-shadow: none;
    text-shadow: none;
    cursor: default;
}

.omm-side-chevron { display: none; }
.omm-side-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

.omm-root button.omm-side-item,
.omm-root button.omm-side-item:focus,
.omm-root button.omm-side-item:active {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    height: auto;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid var(--omm-line);
    border-radius: 0;
    background: #fff;
    color: var(--omm-text);
    font: inherit;
    text-align: left;
    box-shadow: none;
    text-shadow: none;
    cursor: pointer;
}

.omm-root button.omm-side-item:hover { background: var(--omm-soft); box-shadow: none; color: var(--omm-text); }
.omm-root button.omm-side-item.omm-side-item--on,
.omm-root button.omm-side-item.omm-side-item--on:hover { background: #eaf3fc; box-shadow: inset 3px 0 0 var(--omm-color); cursor: default; }

.omm-side-item strong {
    overflow: hidden;
    padding-right: 104px;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.omm-side-meta { font-size: 11px; color: var(--omm-muted); }
.omm-side-item .omm-status { position: absolute; top: 10px; right: 12px; }

.omm-side-unread {
    position: absolute;
    right: 14px;
    bottom: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d6291f;
}

.omm-main .omm-body { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.omm-main .omm-messages { flex: 1 1 auto; min-height: 0; padding: 16px 18px; }
.omm-main .omm-msg { max-width: 72%; }
.omm-main .omm-bubble { padding: 9px 14px; font-size: 14px; }

.omm-detail {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--omm-line);
}

.omm-detail-main { min-width: 0; }
.omm-detail-title { margin: 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.omm-detail-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 5px; font-size: 12px; color: var(--omm-muted); }
.omm-detail-meta i { font-style: normal; color: #8a94a0; }
.omm-detail-ref { font-weight: 600; }
.omm-detail .omm-status { flex: 0 0 auto; padding: 4px 12px; font-size: 12px; }

.omm-note-line {
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 18px;
    border-top: 1px solid var(--omm-line);
    background: var(--omm-soft);
    font-size: 12px;
    color: var(--omm-muted);
}

@media (max-width: 767px) {
    .omm-page { display: flex; flex-direction: column; gap: 12px; height: auto; }
    .omm-side { flex: 0 0 auto; }
    .omm-root button.omm-side-head { cursor: pointer; }
    .omm-side-chevron { display: inline-flex; transition: transform .15s ease; }
    .omm-side-chevron svg { width: 18px; height: 18px; }
    .omm-side--open .omm-side-chevron { transform: rotate(90deg); }
    .omm-side-list { display: none; max-height: 260px; }
    .omm-side--open .omm-side-list { display: block; }
    .omm-main { height: clamp(420px, calc(100vh - 220px), 640px); }
    .omm-main .omm-msg { max-width: 88%; }
    .omm-detail { flex-direction: column; gap: 8px; }
}

/* ================================================================ contact page (CMS block)
   Normal site look: hero, channel cards, opening hours, request form card. */

.omm-contact {
    --omm-color: #0a4d8c;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 0 40px;
    color: #1f2933;
}

.omm-contact *,
.omm-contact *::before,
.omm-contact *::after { box-sizing: border-box; }

.omm-contact [hidden] { display: none !important; }

.omm-contact-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 20px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e6e9ee;
}

.omm-contact .omm-contact-title {
    margin: 0 0 4px;
    color: #111;
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 700;
    line-height: 1.15;
}

.omm-contact-sub { max-width: 620px; margin: 0; font-size: 15px; line-height: 1.5; color: #667085; }

.omm-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.omm-live i { width: 8px; height: 8px; border-radius: 50%; background: #9aa5b1; }
.omm-live--on { background: #e6f7ee; color: #1a7a4a; }
.omm-live--on i { background: #2ecc71; animation: omm-pulse 2s infinite; }
.omm-live--off { background: #fff4e0; color: #b54708; }
.omm-live--off i { background: #f0a93b; }

@keyframes omm-pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); }
    70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* quick actions: only on small screens, where they replace the channel cards */
.omm-quick { display: none; }

.omm-contact-grid {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* the form card stretches to the height of the channels column; its content scrolls inside */
.omm-contact-main { display: flex; flex-direction: column; min-width: 0; }
.omm-formcard { display: flex; flex: 1 1 auto; flex-direction: column; }
.omm-formcard .omm-root--embed { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }

.omm-contact-col { display: flex; flex-direction: column; gap: 12px; }

.omm-channel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #e6e9ee;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.omm-channel:hover {
    border-color: var(--omm-color);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
}

.omm-channel:focus-visible { outline: 3px solid rgba(10, 77, 140, .45); outline-offset: 2px; }

.omm-channel-ic {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.omm-channel--wa .omm-channel-ic { background: #e6f7ee; color: #1a7a4a; }
.omm-channel--phone .omm-channel-ic { background: #e6f1fb; color: #185fa5; }
.omm-channel--mail .omm-channel-ic { background: #fff1eb; color: #d95a00; }
.omm-channel--faq .omm-channel-ic { background: #f1ecfb; color: #6b46c1; }

.omm-channel-text { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.omm-channel-text strong { font-size: 15px; font-weight: 700; color: #111; }
.omm-channel-text > span { overflow: hidden; font-size: 13px; color: #667085; text-overflow: ellipsis; white-space: nowrap; }

.omm-channel-tag {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e6f7ee;
    color: #1a7a4a;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.omm-channel-tag--blue { background: #e6f1fb; color: #185fa5; }
.omm-channel-tag--muted { background: #f2f4f7; color: #667085; }
.omm-channel-go { display: inline-flex; flex: 0 0 auto; color: #98a2b3; }
.omm-channel-go svg { width: 20px; height: 20px; }

.omm-contact-card { padding: 18px 20px; border: 1px solid #e6e9ee; border-radius: 16px; background: #fff; }

.omm-contact-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: #111;
    font-size: 14px;
    font-weight: 700;
}

.omm-hours-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    cursor: default;
    list-style: none;
}

.omm-hours-details > summary::-webkit-details-marker { display: none; }
.omm-hours-title { display: flex; align-items: center; gap: 10px; }
.omm-hours-title strong { display: block; font-size: 14px; font-weight: 700; color: #111; }
.omm-hours-title small { display: none; font-size: 12px; color: #667085; }
.omm-hours-chevron { display: none; color: #98a2b3; }
.omm-hours-chevron svg { width: 20px; height: 20px; }

.omm-card-ic { display: inline-flex; color: var(--omm-color); }
.omm-card-ic svg { width: 20px; height: 20px; }

.omm-hours ul { margin: 0; padding: 0; list-style: none; }

.omm-hours li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #475467;
}

.omm-hours li span { font-weight: 600; color: #111; }
.omm-hours li.omm-hours-today { background: #eaf3fc; color: #0c3b6e; font-weight: 700; }
.omm-hours li.omm-hours-today span { color: #0c3b6e; }

.omm-hours-closures {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fffaeb;
    color: #b54708;
    font-size: 12px;
}

.omm-address p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: #475467; }

.omm-formcard {
    overflow: hidden;
    border: 1px solid #e6e9ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
}

.omm-formcard-head { padding: 24px 28px 16px; border-bottom: 1px solid #eef0f3; }
.omm-formcard-head h3 { margin: 0 0 4px; color: #111; font-size: 21px; font-weight: 800; }
.omm-formcard-head p { margin: 0; font-size: 14px; color: #667085; }

/* the form is the same stepped form as the widget, inside the card with a fixed height */
.omm-root--embed { font-size: 14px; }

.omm-embed-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 520px;
    background: #fff;
}

.omm-embed-card .omm-body { flex: 1 1 auto; min-height: 0; overflow: hidden; }

.omm-embed-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 28px;
    border-top: 1px solid #eef0f3;
    background: #f8fafc;
}

.omm-strip-text { display: flex; flex-direction: column; }
.omm-strip-text strong { font-size: 14px; color: #111; }
.omm-strip-text span { font-size: 12px; color: #667085; }

.omm-root a.omm-btn-ghost--link,
.omm-root a.omm-btn-ghost--link:hover,
.omm-root a.omm-btn-ghost--link:focus {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #c6cdd6;
    border-radius: 8px;
    background: transparent;
    color: var(--omm-text);
    font-weight: 600;
    text-decoration: none;
}

.omm-root a.omm-btn-ghost--link:hover { border-color: var(--omm-color); background: var(--omm-soft); }

/* confirmation after sending */
.omm-sent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    padding: 28px 26px;
    text-align: center;
}

.omm-sent-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #dcf5e6;
    color: #1a7a4a;
}

.omm-sent-ic svg { width: 34px; height: 34px; }
.omm-sent-title { margin: 8px 0 0; font-size: 22px; font-weight: 800; color: #111; }
.omm-sent-ref { margin: 0; font-size: 14px; color: #667085; }
.omm-sent-text { max-width: 420px; margin: 0; font-size: 14px; line-height: 1.5; color: #475467; }
.omm-sent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }

.omm-push-slot { padding: 6px 14px 0; }
.omm-push-slot[hidden] { display: none !important; }

/* the floating launcher is redundant on the contact page */
.omm-embed-page .omm-launcher,
.omm-embed-page .omm-tip { display: none !important; }

@media (max-width: 900px) {
    /* channel cards give way to the three quick buttons; the form comes first, then hours and the rest */
    .omm-quick {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin: 0 0 16px;
    }

    .omm-quick-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 12px 6px;
        border: 1px solid #e6e9ee;
        border-radius: 14px;
        background: #fff;
        color: #111;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
    }

    .omm-quick-btn:hover { color: #111; text-decoration: none; border-color: var(--omm-color); }
    .omm-quick-btn svg { width: 22px; height: 22px; }
    .omm-quick-btn--phone svg { color: #185fa5; }
    .omm-quick-btn--mail svg { color: #d95a00; }
    .omm-quick-btn--wa { border-color: #25d366; background: #25d366; color: #fff; }
    .omm-quick-btn--wa:hover { color: #fff; border-color: #1ebe5b; background: #1ebe5b; }

    .omm-contact-grid { display: flex; flex-direction: column; gap: 14px; }
    .omm-contact-col { display: contents; }
    .omm-contact-main { order: 1; }
    .omm-hours { order: 2; }
    .omm-address { order: 3; }
    .omm-channel--faq { order: 4; }
    .omm-channel--wa,
    .omm-channel--phone,
    .omm-channel--mail { display: none; }

    .omm-hours-details > summary { margin-bottom: 0; cursor: pointer; }
    .omm-hours-details[open] > summary { margin-bottom: 10px; }
    .omm-hours-title small { display: block; }
    .omm-hours-chevron { display: inline-flex; transition: transform .15s ease; }
    .omm-hours-details[open] .omm-hours-chevron { transform: rotate(90deg); }

    .omm-contact-head { margin-bottom: 16px; padding-bottom: 14px; }
    .omm-formcard { border-radius: 18px; }
    .omm-formcard-head { padding: 18px 18px 12px; }
    .omm-embed-strip { padding: 12px 18px; }
}

/* ---------------------------------------------------------------- widget: frequently asked questions */

.omm-ic--faq { background: #f1ecfb; color: #6b46c1; }

.omm-faq { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.omm-faq-top { display: flex; flex: 0 0 auto; flex-direction: column; gap: 10px; padding: 12px 14px 4px; }
.omm-faq-section { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--omm-muted); }
.omm-faq-list { display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; min-height: 0; padding: 4px 14px 12px; overflow-y: auto; }

.omm-faq-item { border: 1px solid var(--omm-line); border-radius: 12px; background: var(--omm-bg); overflow: hidden; }
.omm-faq-item--open { border-color: var(--omm-color); }

.omm-root button.omm-faq-q,
.omm-root button.omm-faq-q:hover,
.omm-root button.omm-faq-q:focus,
.omm-root button.omm-faq-q:active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: auto;
    padding: 11px 13px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--omm-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    box-shadow: none;
    text-shadow: none;
    cursor: pointer;
}

.omm-root button.omm-faq-q:hover { background: var(--omm-soft); }
.omm-faq-chev { display: inline-flex; flex: 0 0 auto; color: var(--omm-muted); transition: transform .15s ease; }
.omm-faq-chev svg { width: 18px; height: 18px; }
.omm-faq-item--open .omm-faq-chev { transform: rotate(90deg); }

.omm-faq-a { display: flex; flex-direction: column; gap: 8px; padding: 0 13px 12px; }
.omm-faq-text { font-size: 13px; line-height: 1.55; color: var(--omm-muted); white-space: pre-wrap; overflow-wrap: anywhere; }

.omm-faq-foot {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px 14px;
    border-top: 1px solid var(--omm-line);
    background: var(--omm-bg);
}

.omm-faq-ask {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eaf3fc;
}

.omm-faq-ask > span { display: flex; flex-direction: column; min-width: 0; font-size: 12px; color: #134a82; }
.omm-faq-ask strong { font-size: 13px; }
.omm-root .omm-btn--small { flex: 0 0 auto; padding: 8px 12px; font-size: 12px; }



/* registered office band: address on the left, an image (uploaded in the admin) on the right */
.omm-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid #e6e9ee;
    border-radius: 20px;
    background: #fff;
}

.omm-band--text { grid-template-columns: minmax(0, 1fr); }
.omm-band-info { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px 32px; }
.omm-contact .omm-band-info h3 { margin: 0; color: #111; font-size: 20px; font-weight: 800; }
.omm-band-info p { margin: 0; font-size: 15px; line-height: 1.7; color: #475467; }
.omm-band { min-height: 260px; }
.omm-band-img { position: relative; background: #eef1f4; }
/* the picture fills its half whatever its proportions: the band height comes from the text, not from the image */
.omm-band-img img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
    .omm-band { grid-template-columns: minmax(0, 1fr); margin-top: 18px; border-radius: 18px; }
    .omm-band-info { padding: 20px 20px 16px; }
    .omm-band { min-height: 0; }
    .omm-band-img { height: 200px; }
    .omm-contact-main { display: block; }
    .omm-formcard { display: block; }
    .omm-formcard .omm-root--embed { display: block; }
    .omm-embed-card { flex: none; height: 560px; min-height: 0; }
}

/* contact page on small screens: side padding of its own (the theme container leaves very little),
   and nothing inside may be wider than the screen */
@media (max-width: 900px) {
    .omm-contact {
        width: 100%;
        max-width: 100%;
        padding: 8px 16px 32px;
        overflow-x: clip;
    }

    .omm-contact-head,
    .omm-contact-grid,
    .omm-contact-main,
    .omm-formcard,
    .omm-quick,
    .omm-band,
    .omm-hours,
    .omm-channel { min-width: 0; max-width: 100%; }

    .omm-contact-title { overflow-wrap: anywhere; }
}

@media (max-width: 400px) {
    .omm-contact { padding-left: 14px; padding-right: 14px; }
    .omm-quick { gap: 8px; }
}


/* quick buttons: the theme colours text inside links (a span), so the label colour is pinned for every state */
.omm-contact a.omm-quick-btn span { color: inherit; font-weight: 600; }

.omm-contact a.omm-quick-btn--wa,
.omm-contact a.omm-quick-btn--wa:hover,
.omm-contact a.omm-quick-btn--wa:focus,
.omm-contact a.omm-quick-btn--wa:active,
.omm-contact a.omm-quick-btn--wa span { color: #fff !important; }

.omm-contact a.omm-quick-btn--phone,
.omm-contact a.omm-quick-btn--phone:hover,
.omm-contact a.omm-quick-btn--phone span,
.omm-contact a.omm-quick-btn--mail,
.omm-contact a.omm-quick-btn--mail:hover,
.omm-contact a.omm-quick-btn--mail span { color: #111 !important; }


/* the block must never be wider than the space the theme gives it:
   - border-box, so its own side padding is part of the 100% width (it was added on top of it);
   - contain: inline-size, so nothing inside (e.g. a nowrap label) can widen a flex/grid parent;
   - on small screens every single-line text may wrap. */
.omm-contact { box-sizing: border-box; contain: inline-size; }

@media (max-width: 900px) {
    .omm-contact .omm-channel-text > span,
    .omm-contact .omm-live { white-space: normal; }
    .omm-contact .omm-live { flex-wrap: wrap; }
}


/* rating after resolution */
.omm-rating { padding: 12px 14px; border-top: 1px solid var(--omm-line); background: var(--omm-soft); }
.omm-rating[hidden] { display: none; }
.omm-rating-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.omm-rating-thanks { margin: 0; font-size: 13px; }
.omm-stars { display: flex; gap: 4px; margin-bottom: 8px; }
.omm-rating .omm-star { padding: 0; border: 0; background: none; box-shadow: none; font-size: 26px; line-height: 1; color: #c9ced6; cursor: pointer; }
.omm-rating .omm-star.is-on { color: #f5a623; }
.omm-rating .omm-textarea { margin-bottom: 8px; }

/* ---------------------------------------------------------------- quote request page */

.omq {
    --omm-color: #0a4d8c;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0 40px;
    color: #1f2933;
}

.omq *,
.omq *::before,
.omq *::after { box-sizing: border-box; }

.omq [hidden] { display: none !important; }

.omq .omq-title {
    margin: 0 0 6px;
    color: #111;
    font-size: clamp(24px, 3.2vw, 32px);
    font-weight: 700;
    line-height: 1.15;
}

.omq .omq-sub { max-width: 620px; margin: 0 0 22px; font-size: 15px; line-height: 1.5; color: #667085; }

.omq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.omq-form { display: flex; flex-direction: column; gap: 14px; }

.omq .omq-card {
    padding: 18px 20px;
    border: 1px solid #e6e9ee;
    border-radius: 14px;
    background: #fff;
}

.omq .omq-step { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: #475467; }

.omq-row { display: flex; gap: 12px; }
.omq-field { margin: 0 0 12px; min-width: 0; }
.omq-field--grow { flex: 1 1 0; }
.omq-field--plate { flex: 0 0 140px; }

.omq .omq-field label { display: block; margin: 0 0 4px; font-size: 13px; color: #475467; }

.omq .omq-field input,
.omq .omq-field textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #1f2933;
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
}

.omq .omq-field input { height: 42px; }
.omq .omq-field textarea { resize: vertical; min-height: 96px; }

.omq .omq-field input:focus,
.omq .omq-field textarea:focus {
    outline: 0;
    border-color: var(--omm-color);
    box-shadow: 0 0 0 3px rgba(10, 77, 140, .15);
}

.omq .omq-vehicle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 9px 12px;
    border: 1px solid #f0e08a;
    border-radius: 8px;
    background: #fffbe0;
    font-size: 14px;
}

.omq .omq-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--omm-color);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.omq .omq-pick {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0 0 10px;
    padding: 11px 14px;
    border: 1.5px solid var(--omm-color);
    border-radius: 10px;
    background: #fff;
    color: var(--omm-color);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.omq .omq-pick:hover { background: #f5f8fc; color: var(--omm-color); }

.omq .omq-count {
    padding: 1px 10px;
    border-radius: 12px;
    background: var(--omm-color);
    color: #fff;
    font-size: 12px;
    font-style: normal;
}

.omq-selected,
.omq-files { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.omq-selected:empty,
.omq-files:empty { display: none; }

.omq .omq-sel,
.omq .omq-file {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 3px 4px 3px 11px;
    border: 1px solid #f0e08a;
    border-radius: 16px;
    background: #fffbe0;
    font-size: 13px;
}

.omq .omq-file { border-color: #e6e9ee; background: #f9fafb; }

.omq .omq-sel-x {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #667085;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.omq .omq-sel-x:hover { background: rgba(0, 0, 0, .08); color: #1f2933; }

.omq .omq-attach-btn {
    padding: 9px 14px;
    border: 1px dashed #b8bfc9;
    border-radius: 8px;
    background: #fff;
    color: #475467;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.omq .omq-attach-btn:hover { background: #f9fafb; color: #1f2933; }
.omq .omq-attach { margin-top: 2px; }
.omq .omq-attach .omq-files { margin: 8px 0 0; }

.omq .omq-error { margin: 8px 0 0; color: #b42318; font-size: 13px; }
.omq p.omq-error { margin: 0 0 10px; padding: 9px 12px; border-radius: 8px; background: #fef3f2; }

.omq .omq-as { margin: 0 0 12px; font-size: 14px; color: #475467; }

.omq .omq-consent { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; font-size: 13px; color: #475467; }
.omq .omq-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; }
.omq .omq-consent a { color: var(--omm-color); }

.omq .omq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.omq .omq-submit {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--omm-color);
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 46px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.omq .omq-submit:hover { filter: brightness(1.1); color: #fff; }
.omq .omq-submit:disabled { opacity: .6; cursor: default; }
.omq .omq-submit--small { width: auto; height: 40px; line-height: 40px; }

.omq .omq-done { padding: 28px 24px; border: 1px solid #d1fadf; border-radius: 14px; background: #f6fef9; }
.omq .omq-done h3 { margin: 0 0 8px; font-size: 20px; color: #027a48; }
.omq .omq-done p { margin: 0 0 10px; color: #344054; }
.omq .omq-done .omq-done-ref { font-size: 13px; color: #667085; }
.omq .omq-done .omq-submit { display: inline-block; width: auto; margin-top: 6px; }

/* right column */
.omq-side { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }

.omq .omq-benefit { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.omq .omq-benefit-ic { flex: 0 0 auto; display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; background: #f2f4f7; color: #1f2933; }
.omq .omq-benefit strong { display: block; font-size: 15px; font-weight: 600; color: #111; }
.omq .omq-benefit span:not(.omq-benefit-ic) { font-size: 13px; color: #667085; }

.omq .omq-wa {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 8px;
    padding: 11px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #1f2933;
    font-size: 14px;
    text-decoration: none;
}

.omq .omq-wa svg { color: #25a244; flex: 0 0 auto; }
.omq .omq-wa:hover { background: #f9fafb; color: #1f2933; }

.omq .omq-faq { margin-top: 12px; padding-top: 14px; border-top: 1px solid #eaecf0; }
.omq .omq-faq details { border-bottom: 1px solid #f0f2f5; }
.omq .omq-faq summary { padding: 10px 0; font-size: 14px; cursor: pointer; }
.omq .omq-faq details p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: #667085; }
.omq .omq-faq .omq-link { display: inline-block; margin-top: 10px; font-size: 13px; }

/* modal */
html.omq-lock { overflow: hidden; }

.omq .omq-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(16, 24, 40, .55);
}

.omq .omq-modal-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: min(90vh, 720px);
    border-radius: 16px;
    background: #fff;
    color: #1f2933;
}

.omq .omq-modal-head,
.omq .omq-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; }
.omq .omq-modal-head { border-bottom: 1px solid #eaecf0; font-size: 16px; }
.omq .omq-modal-foot { border-top: 1px solid #eaecf0; font-size: 13px; color: #667085; }
.omq .omq-modal-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 18px; }

.omq .omq-x { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; color: #475467; font-size: 24px; line-height: 1; cursor: pointer; }
.omq .omq-x:hover { background: #f2f4f7; color: #111; }

.omq .omq-search {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0 0 6px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    box-shadow: none;
}

.omq .omq-group-title { margin: 14px 0 8px; font-size: 12px; font-weight: 700; color: #98a2b3; text-transform: uppercase; letter-spacing: .03em; }
.omq .omq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.omq .omq-chip { position: relative; margin: 0; cursor: pointer; }
.omq .omq-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.omq .omq-chip span { display: inline-block; padding: 6px 13px; border: 1px solid #d0d5dd; border-radius: 18px; background: #fff; font-size: 14px; color: #344054; }
.omq .omq-chip:hover span { border-color: #98a2b3; }
.omq .omq-chip.is-on span { border-color: var(--omm-color); background: var(--omm-color); color: #fff; font-weight: 600; }
.omq .omq-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(10, 77, 140, .25); }
.omq .omq-none { margin: 16px 0 0; font-size: 14px; color: #667085; }

@media (max-width: 860px) {
    .omq-grid { display: flex; flex-direction: column; gap: 18px; }
    .omq-side { order: 2; }
    .omq .omq-card { padding: 16px; border-radius: 14px; }
}

@media (max-width: 560px) {
    .omq-row { flex-direction: column; gap: 0; }
    .omq-field--plate { flex: 1 1 auto; }
    .omq .omq-modal { align-items: flex-end; padding: 0; }
    .omq .omq-modal-box { max-width: none; max-height: 92vh; border-radius: 18px 18px 0 0; }
}

/* quote page: layout v2 (benefits in a row, form in two columns, FAQ below) */

.omq .omq-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 36px;
    margin: 0 0 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid #eaecf0;
}

.omq .omq-benefit { margin: 0; }

.omq .omq-form {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.omq .omq-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.omq .omq-main { min-width: 0; }
.omq .omq-done { max-width: 640px; }

/* WhatsApp: a quiet link under the send button */
.omq p.omq-wa { margin: 14px 0 0; text-align: center; }

.omq p.omq-wa a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: #475467;
    font-size: 14px;
    text-decoration: none;
}

.omq p.omq-wa a:hover { color: #111; background: none; }
.omq p.omq-wa a span { text-decoration: underline; text-underline-offset: 3px; }
.omq p.omq-wa svg { color: #25a244; }

/* FAQ below the form, with a + that turns into a - */
.omq .omq-faq { max-width: 760px; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid #eaecf0; }

.omq .omq-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    padding: 12px 0;
    font-size: 15px;
    cursor: pointer;
}

.omq .omq-faq summary::-webkit-details-marker { display: none; }
.omq .omq-faq summary::marker { content: ''; }

.omq .omq-faq summary::after {
    content: '+';
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f2f4f7;
    color: #344054;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
}

.omq .omq-faq details[open] summary::after { content: '\2212'; background: var(--omm-color); color: #fff; }
.omq .omq-faq details p { margin: 0 0 12px; padding-right: 36px; font-size: 14px; line-height: 1.6; color: #667085; }

@media (max-width: 900px) {
    .omq .omq-form { grid-template-columns: minmax(0, 1fr); }
    .omq .omq-benefits { gap: 12px 24px; }
}

@media (max-width: 560px) {
    .omq .omq-benefits { flex-direction: column; gap: 10px; }
}

/* quote page: short header on phones (one line replaces subtitle and benefits) */
.omq .omq-line { display: none; }

@media (max-width: 560px) {
    .omq .omq-sub,
    .omq .omq-benefits { display: none; }
    .omq .omq-head { margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid #eaecf0; }
    .omq .omq-title { font-size: 22px; margin: 0 0 4px; }
    .omq .omq-line { display: block; margin: 0; font-size: 13px; color: #475467; }
}

/* quote page: breathing room from the screen edge on phones and tablets */
@media (max-width: 900px) {
    .omq { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 560px) {
    .omq { padding-left: 14px; padding-right: 14px; }
}

/* order card in the request form */
.omm-check-order { display: inline-block; margin: -4px 0 10px; font-size: 13px; }
.omm-check-panel { margin: 0 0 12px; padding: 12px; border: 1px solid var(--omm-line, #e5e7eb); border-radius: 10px; background: #fafbfc; }
.omm-check-panel[hidden] { display: none; }
.omm-order-holder:empty { display: none; }
.omm-ordercard { margin: 10px 0 12px; padding: 12px 14px; border: 1px solid #d1fadf; border-radius: 12px; background: #f6fef9; }
.omm-ordercard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.omm-ordercard .omm-pillst { padding: 1px 10px; border-radius: 12px; background: #dcebfa; color: #185fa5; font-size: 12px; font-weight: 600; white-space: nowrap; }
.omm-ship + .omm-ship { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #cfe9d8; }
.omm-ship-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.omm-ship-carrier { font-weight: 600; }
.omm-ship-status { color: #475467; }
.omm-ship-bar { display: flex; gap: 4px; margin: 6px 0; }
.omm-ship-bar i { flex: 1; height: 5px; border-radius: 3px; background: #e4e7ec; }
.omm-ship-bar i.on { background: var(--omm-color, #0a4d8c); }
.omm-ship-bar.is-problem i.on { background: #d92d20; }
.omm-ship-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #475467; line-height: 1.45; }
.omm-ship-event { font-style: italic; }
.omm-ordercard .omm-link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; }
.omm-ordercard .omm-enough { display: block; width: 100%; margin-top: 10px; text-align: center; text-decoration: underline; text-underline-offset: 3px; }

/* order check step */
.omm-ordercard-q { margin: 12px 0 8px; font-size: 13px; font-weight: 600; }
.omm-ordercard .omm-enough--first { margin-top: 0; }
.omm-ordercard .omm-more { margin-top: 6px; }
.omm-order-chip { display: inline-block; margin: 0 0 10px; padding: 3px 11px; border: 1px solid #d1fadf; border-radius: 14px; background: #f6fef9; font-size: 12px; }

/* quote page: white page, and a proper "follow the request" button */
body:has(.omq),
body:has(.omq) .page-wrapper,
body:has(.omq) .page-main,
body:has(.omq) .columns,
body:has(.omq) .column.main { background: #fff; }

.omq { background: #fff; }

.omq .omq-done { background: #f6fef9; }

.omq .omq-done a.omq-submit,
.omq .omq-done a.omq-submit:link,
.omq .omq-done a.omq-submit:visited,
.omq .omq-done a.omq-submit:hover,
.omq .omq-done a.omq-submit:active,
.omq .omq-done a.omq-submit:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 200px;
    height: 46px;
    margin-top: 8px;
    padding: 0 26px;
    border: 0;
    border-radius: 10px;
    background: var(--omm-color);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

.omq .omq-done a.omq-submit::after { content: '\2192'; }
.omq .omq-done a.omq-submit:hover { filter: brightness(1.12); }

/* conversation bar: status, "Nuova" button and a small menu */
.omm-meta-actions { position: relative; display: flex; align-items: center; gap: 6px; }
.omm-root .omm-meta-new {
    display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px;
    border: 0; border-radius: 8px; background: var(--omm-color); color: #fff;
    font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.omm-root .omm-meta-new:hover { filter: brightness(1.1); color: #fff; background: var(--omm-color); }
.omm-root .omm-meta-new span:first-child { font-size: 16px; line-height: 1; }
.omm-root .omm-meta-more {
    width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent;
    color: #475467; font-size: 20px; line-height: 1; cursor: pointer;
}
.omm-root .omm-meta-more:hover { background: rgba(0, 0, 0, .06); color: #111; }
.omm-meta-menu {
    position: absolute; right: 0; top: 34px; z-index: 5; min-width: 170px; padding: 4px;
    border: 1px solid #e6e9ee; border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(16, 24, 40, .12);
}
.omm-meta-menu[hidden] { display: none; }
.omm-root .omm-meta-item {
    display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: none;
    color: #1f2933; font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer;
}
.omm-root .omm-meta-item:hover { background: #f2f4f7; color: #1f2933; }

/* attachment preview in the bubble */
.omm-files .omm-thumb { display: block; margin: 0 0 4px; }
.omm-files .omm-thumb img { display: block; max-width: 100%; max-height: 180px; border-radius: 10px; background: rgba(255, 255, 255, .15); }

/* ---------------------------------------------------------------- widget: big view (desktop) */

.omm-root .omm-expand { display: none; }
.omm-side--x { display: none; }
.omm-backdrop { position: fixed; inset: 0; z-index: calc(var(--omm-z) - 1); background: rgba(16, 24, 40, .5); }
.omm-backdrop[hidden] { display: none; }

@media (min-width: 900px) {
    .omm-root .omm-expand { display: inline-flex; }

    .omm-root.omm-x .omm-panel {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: min(1060px, 94vw);
        max-width: none;
        height: min(740px, 88vh);
        max-height: none;
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
    }

    .omm-root.omm-x .omm-panel[hidden] { display: none; }
    .omm-root.omm-x .omm-head { grid-column: 1 / -1; }

    .omm-root.omm-x .omm-side--x {
        display: flex;
        grid-column: 1;
        grid-row: 2;
        min-height: 0;
        border: 0;
        border-right: 1px solid var(--omm-line);
        border-radius: 0;
    }

    .omm-root.omm-x .omm-body { grid-column: 2; grid-row: 2; min-height: 0; }
    .omm-root.omm-x .omm-side--x .omm-side-list { display: block; }
    .omm-root.omm-x .omm-side--x button.omm-side-head { pointer-events: none; cursor: default; }
}

.omm-pick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; padding: 24px; text-align: center; color: var(--omm-muted); }
.omm-pick strong { color: var(--omm-text); font-size: 16px; }
.omm-pick p { margin: 0 0 6px; }
.omm-pick-ic { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: #98a2b3; }
.omm-pick-ic svg { width: 40px; height: 40px; }
html.omm-x-open { overflow: hidden; }

/* header buttons keep their white icons whatever the theme does to buttons (hover, focus, after a click) */
.omm-root .omm-head button.omm-icon-btn,
.omm-root .omm-head button.omm-icon-btn:hover,
.omm-root .omm-head button.omm-icon-btn:focus,
.omm-root .omm-head button.omm-icon-btn:active {
    color: #fff;
    background-color: transparent;
}

.omm-root .omm-head button.omm-icon-btn:hover { background-color: rgba(255, 255, 255, .18); }

/* no horizontal scrollbar in the request steps and in the panel body: vertical scroll only */
.omm-step-body,
.omm-body { overflow-x: hidden; }

.omm-step-body > * { min-width: 0; max-width: 100%; }

/* channel cards: the tag goes under the text, so the number or address always has the whole line */
.omm-contact .omm-channel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
}

.omm-contact .omm-channel-ic { grid-column: 1; grid-row: 1 / span 2; }
.omm-contact .omm-channel-text { grid-column: 2; grid-row: 1; }
.omm-contact .omm-channel-tag { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 6px; }
.omm-contact .omm-channel-go { grid-column: 3; grid-row: 1 / span 2; }

.omm-contact .omm-channel-text > span { overflow: visible; text-overflow: clip; white-space: nowrap; }

/* cards linked by the staff to a message */
.omm-card { display: flex; gap: 10px; align-items: center; width: 100%; max-width: 280px; margin: 8px 0 0; padding: 8px; border: 1px solid var(--omm-line); border-radius: 10px; background: #fafbfc; color: var(--omm-text); }
.omm-card--payment { border-color: #bfe6cf; background: #f0f9f4; }
.omm-card-img { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #eef1f5; }
.omm-card-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 12px; }
.omm-card-text strong { font-size: 13px; font-weight: 600; color: #111; overflow-wrap: anywhere; }
.omm-card-price { font-weight: 700; color: var(--omm-color); }
.omm-card-ok { color: #027a48; }
.omm-card-no { color: #b42318; }
.omm-card-note { color: var(--omm-muted); }
.omm-root .omm-card-go, .omm-root .omm-card-go:hover, .omm-root .omm-card-go:visited { margin-top: 4px; color: var(--omm-color); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.omm-root .omm-card--payment .omm-card-go, .omm-root .omm-card--payment .omm-card-go:hover, .omm-root .omm-card--payment .omm-card-go:visited { display: inline-block; align-self: flex-start; padding: 6px 14px; border-radius: 8px; background: var(--omm-color); color: #fff; text-decoration: none; }
.omm-card.is-gone { opacity: .7; }
