/*
 * Personlig Medarbejder Chat - frontend styling
 * Scoped CSS: påvirker kun elementer indenfor .pmc-chat
 */
.pmc-chat,
.pmc-chat * {
    box-sizing: border-box;
}

.pmc-chat {
    --pmc-accent: var(--wp--preset--color--primary, var(--ast-global-color-0, var(--e-global-color-primary, #47733f)));
    --pmc-accent-dark: color-mix(in srgb, var(--pmc-accent) 78%, #111 22%);
    --pmc-accent-soft: color-mix(in srgb, var(--pmc-accent) 11%, #fff 89%);
    --pmc-text: #1f2933;
    --pmc-muted: #6b7280;
    --pmc-border: rgba(31, 41, 51, 0.12);
    --pmc-panel: #ffffff;
    --pmc-bot: #f4f6f4;
    --pmc-user: var(--pmc-accent);
    --pmc-radius: 22px;
    --pmc-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    position: fixed;
    z-index: 99990;
    bottom: 22px;
    font-family: inherit;
    color: var(--pmc-text);
}

.pmc-chat--right {
    right: 22px;
}

.pmc-chat--left {
    left: 22px;
}

.pmc-chat__launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    outline: 1px solid rgba(15, 23, 42, 0.08);
    min-width: 58px;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--pmc-accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 12px 28px rgba(15, 23, 42, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
}

.pmc-chat__launcher:hover,
.pmc-chat__launcher:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 16px 34px rgba(15, 23, 42, 0.26);
    outline: none;
}

.pmc-chat__launcher-icon svg,
.pmc-chat__form button svg,
.pmc-chat__reset svg,
.pmc-chat__end svg,
.pmc-chat__minimize svg,
.pmc-chat__callback-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.pmc-chat__launcher-icon svg {
    width: 24px;
    height: 24px;
}

.pmc-chat.is-open .pmc-chat__launcher {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.pmc-chat__panel {
    position: absolute;
    bottom: 0;
    width: min(370px, calc(100vw - 28px));
    height: min(610px, calc(100vh - 34px));
    max-height: 610px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pmc-border);
    border-radius: var(--pmc-radius);
    background: var(--pmc-panel);
    box-shadow: var(--pmc-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.985);
    transform-origin: bottom right;
    transition: opacity 190ms ease, transform 190ms ease;
}

.pmc-chat--right .pmc-chat__panel {
    right: 0;
}

.pmc-chat--left .pmc-chat__panel {
    left: 0;
    transform-origin: bottom left;
}

.pmc-chat.is-open .pmc-chat__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.pmc-chat__header {
    min-height: 76px;
    padding: 15px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--pmc-accent), var(--pmc-accent-dark));
    color: #fff;
}

.pmc-chat__avatar {
    width: 46px;
    height: 46px;
    position: relative;
    flex: 0 0 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.55);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.pmc-chat__avatar i {
    position: absolute;
    right: 0;
    bottom: 2px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #6fd47a;
    border: 2px solid #fff;
}

.pmc-chat__identity {
    min-width: 0;
    flex: 1 1 auto;
    display: grid;
    gap: 2px;
}

.pmc-chat__identity strong {
    font-size: 15px;
    line-height: 1.15;
    color: #fff;
}

.pmc-chat__identity span {
    font-size: 12px;
    line-height: 1.2;
    opacity: 0.88;
}

.pmc-chat__reset,
.pmc-chat__end,
.pmc-chat__minimize {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 160ms ease;
}

.pmc-chat__reset:hover,
.pmc-chat__reset:focus-visible,
.pmc-chat__end:hover,
.pmc-chat__end:focus-visible,
.pmc-chat__minimize:hover,
.pmc-chat__minimize:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    outline: none;
}

.pmc-chat__body {
    flex: 1 1 auto;
    padding: 18px 16px 14px;
    overflow-y: auto;
    background: linear-gradient(180deg, #fff 0%, #fbfcfb 100%);
    scrollbar-width: thin;
}

.pmc-chat__bubble {
    width: fit-content;
    max-width: 86%;
    margin-bottom: 10px;
    padding: 11px 13px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.38;
    word-break: break-word;
    white-space: pre-line;
}

.pmc-chat__bubble p {
    margin: 0 0 5px;
}

.pmc-chat__bubble p:last-child {
    margin-bottom: 0;
}

.pmc-chat__bubble--bot {
    background: var(--pmc-bot);
    color: var(--pmc-text);
    border-top-left-radius: 6px;
}

.pmc-chat__bubble--user {
    margin-left: auto;
    background: var(--pmc-user);
    color: #fff;
    border-top-right-radius: 6px;
}

.pmc-chat__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.pmc-chat__suggestions button {
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 25%, #d7ded7 75%);
    border-radius: 999px;
    background: #fff;
    color: var(--pmc-accent-dark);
    padding: 8px 11px;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pmc-chat__suggestions button:hover,
.pmc-chat__suggestions button:focus-visible {
    background: var(--pmc-accent-soft);
    border-color: color-mix(in srgb, var(--pmc-accent) 46%, #d7ded7 54%);
    transform: translateY(-1px);
    outline: none;
}

.pmc-chat__callback-card {
    margin-top: 16px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 18%, #d7ded7 82%);
    background: var(--pmc-accent-soft);
}

.pmc-chat__callback-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--pmc-accent-dark);
    background: #fff;
}

.pmc-chat__callback-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.2;
    color: var(--pmc-text);
}

.pmc-chat__callback-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--pmc-muted);
}



.pmc-chat__callback-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.pmc-chat__callback-cta {
    margin-top: 9px;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 45%, #d7ded7 55%);
    border-radius: 999px;
    background: #fff;
    color: var(--pmc-accent-dark);
    padding: 7px 11px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.pmc-chat__callback-cta:hover,
.pmc-chat__callback-cta:focus-visible {
    background: color-mix(in srgb, var(--pmc-accent) 10%, #fff 90%);
    border-color: color-mix(in srgb, var(--pmc-accent) 62%, #d7ded7 38%);
    transform: translateY(-1px);
    outline: none;
}

.pmc-chat__callback-form {
    margin-top: 12px;
    padding: 13px;
    border: 1px solid var(--pmc-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.pmc-chat__callback-form[hidden] {
    display: none !important;
}

.pmc-chat__callback-form-head {
    margin-bottom: 11px;
}

.pmc-chat__callback-form-head strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.2;
    color: var(--pmc-text);
}

.pmc-chat__callback-form-head p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--pmc-muted);
}

.pmc-chat__field {
    display: grid;
    gap: 5px;
    margin-bottom: 9px;
}

.pmc-chat__field--honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.pmc-chat__field label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--pmc-text);
}

.pmc-chat__field label span {
    color: var(--pmc-accent-dark);
}

.pmc-chat__field input,
.pmc-chat__field select,
.pmc-chat__field textarea {
    width: 100%;
    border: 1px solid var(--pmc-border);
    border-radius: 12px;
    background: #fff;
    color: var(--pmc-text);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.3;
    outline: none;
    box-shadow: none;
}

.pmc-chat__field input,
.pmc-chat__field select {
    height: 38px;
    padding: 0 11px;
}

.pmc-chat__field textarea {
    min-height: 74px;
    resize: vertical;
    padding: 9px 11px;
}

.pmc-chat__field input:focus,
.pmc-chat__field select:focus,
.pmc-chat__field textarea:focus {
    border-color: color-mix(in srgb, var(--pmc-accent) 58%, #d7ded7 42%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pmc-accent) 13%, transparent 87%);
}

.pmc-chat__consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 4px 0 11px;
    color: var(--pmc-muted);
    font-size: 11px;
    line-height: 1.35;
}

.pmc-chat__consent input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.pmc-chat__callback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pmc-chat__callback-submit,
.pmc-chat__callback-cancel {
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.pmc-chat__callback-submit {
    border: 0;
    background: var(--pmc-accent);
    color: #fff;
    padding: 10px 13px;
}

.pmc-chat__callback-submit:hover,
.pmc-chat__callback-submit:focus-visible {
    background: var(--pmc-accent-dark);
    transform: translateY(-1px);
    outline: none;
}

.pmc-chat__callback-submit:disabled {
    opacity: 0.58;
    cursor: wait;
    transform: none;
}

.pmc-chat__callback-cancel {
    border: 1px solid var(--pmc-border);
    background: #fff;
    color: var(--pmc-muted);
    padding: 9px 12px;
}

.pmc-chat__callback-cancel:hover,
.pmc-chat__callback-cancel:focus-visible {
    border-color: color-mix(in srgb, var(--pmc-accent) 35%, #d7ded7 65%);
    color: var(--pmc-text);
    outline: none;
}

.pmc-chat__callback-status {
    margin-top: 9px;
    min-height: 16px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--pmc-muted);
}


.pmc-chat__choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 4px 0 12px;
}

.pmc-chat__choice-row button {
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 28%, #d7ded7 72%);
    border-radius: 999px;
    background: #fff;
    color: var(--pmc-accent-dark);
    padding: 7px 10px;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.1;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pmc-chat__choice-row button:hover,
.pmc-chat__choice-row button:focus-visible {
    background: var(--pmc-accent-soft);
    border-color: color-mix(in srgb, var(--pmc-accent) 48%, #d7ded7 52%);
    transform: translateY(-1px);
    outline: none;
}

.pmc-chat__callback-status.is-success {
    color: var(--pmc-accent-dark);
    font-weight: 700;
}

.pmc-chat__callback-status.is-error {
    color: #b42318;
    font-weight: 700;
}

.pmc-chat__callback-status.is-loading {
    color: var(--pmc-muted);
}

.pmc-chat__form {
    flex: 0 0 auto;
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 13px 14px 14px;
    border-top: 1px solid var(--pmc-border);
    background: #fff;
}

.pmc-chat__form input[type="text"] {
    min-width: 0;
    flex: 1 1 auto;
    height: 42px;
    border: 1px solid var(--pmc-border);
    border-radius: 999px;
    background: #fff;
    color: var(--pmc-text);
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.pmc-chat__form input[type="text"]:focus {
    border-color: color-mix(in srgb, var(--pmc-accent) 58%, #d7ded7 42%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pmc-accent) 13%, transparent 87%);
}

.pmc-chat__form button[type="submit"] {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--pmc-accent);
    color: #fff;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.pmc-chat__form button[type="submit"]:hover,
.pmc-chat__form button[type="submit"]:focus-visible {
    background: var(--pmc-accent-dark);
    transform: translateY(-1px);
    outline: none;
}

.pmc-chat__note {
    margin: 8px 0 0;
    color: var(--pmc-muted);
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 520px) {
    .pmc-chat {
        right: 14px;
        left: 14px;
        bottom: 14px;
    }

    .pmc-chat--right,
    .pmc-chat--left {
        right: 14px;
        left: 14px;
    }

    .pmc-chat__launcher {
        margin-left: auto;
        min-width: 54px;
        min-height: 54px;
        padding: 0 15px;
    }

    .pmc-chat--left .pmc-chat__launcher {
        margin-left: 0;
        margin-right: auto;
    }

    .pmc-chat__launcher-text {
        display: none;
    }

    .pmc-chat__panel {
        width: 100%;
        height: min(560px, calc(100vh - 28px));
        max-height: min(560px, calc(100vh - 28px));
        right: 0;
        left: 0;
        border-radius: 20px;
    }

    .pmc-chat__header {
        min-height: 70px;
        padding: 13px 14px;
    }

    .pmc-chat__bubble {
        max-width: 92%;
        font-size: 13px;
    }
}


/* Mikro-step 19C: Multi-match tekstsvar */
.pmc-chat__multi-response {
    display: grid;
    gap: 10px;
    margin: 0 0 12px;
}

.pmc-chat__multi-intro {
    border-color: color-mix(in srgb, var(--pmc-accent) 18%, rgba(15, 23, 42, 0.06) 82%);
    background: color-mix(in srgb, var(--pmc-accent-soft) 62%, #fff 38%);
}

.pmc-chat__multi-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
}

.pmc-chat__multi-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--pmc-accent-soft);
    color: var(--pmc-accent-dark);
    font-size: 12px;
    font-weight: 900;
}

.pmc-chat__multi-body {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.pmc-chat__multi-title {
    display: block;
    color: #0f172a;
    font-size: 12.5px;
    line-height: 1.25;
}

.pmc-chat__multi-text {
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: 11.8px;
    line-height: 1.38;
    white-space: pre-line;
}

.pmc-chat__multi-actions {
    grid-template-columns: 1fr;
    margin-top: 2px;
}

@media (max-width: 520px) {
    .pmc-chat__multi-card {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 8px;
    }

    .pmc-chat__multi-number {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
}


/* Frontend styling */
.pmc-chat__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
}

.pmc-chat--size-compact .pmc-chat__launcher {
    min-width: 54px;
    min-height: 54px;
    padding: 0 16px;
}

.pmc-chat--size-compact .pmc-chat__panel {
    width: min(340px, calc(100vw - 28px));
    height: min(560px, calc(100vh - 34px));
    max-height: 560px;
}

.pmc-chat--size-compact .pmc-chat__header {
    min-height: 68px;
    padding: 13px 14px;
}

.pmc-chat--size-compact .pmc-chat__avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.pmc-chat--size-compact .pmc-chat__body {
    padding: 15px 14px 12px;
}

.pmc-chat--size-compact .pmc-chat__bubble {
    padding: 10px 12px;
    font-size: 13px;
}

.pmc-chat--size-compact .pmc-chat__callback-card {
    padding: 11px;
}

.pmc-chat--size-compact .pmc-chat__form {
    padding: 11px 12px 12px;
}

.pmc-chat--size-compact .pmc-chat__form input[type="text"] {
    height: 39px;
    font-size: 13px;
}

.pmc-chat--size-compact .pmc-chat__form button[type="submit"] {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
}

@media (max-width: 520px) {
    .pmc-chat--size-compact .pmc-chat__panel {
        width: 100%;
        height: min(530px, calc(100vh - 28px));
        max-height: min(530px, calc(100vh - 28px));
    }
}

/* Frontend styling */
.pmc-chat__product-response {
    display: grid;
    gap: 10px;
    margin: 0 0 12px;
}

.pmc-chat__bubble--intro {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    padding: 11px 13px;
    display: grid;
    gap: 3px;
    background: #f4f7fb;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 15px;
    white-space: normal;
}

.pmc-chat__bubble--intro strong {
    font-size: 12px;
    line-height: 1.25;
    color: var(--pmc-text);
}

.pmc-chat__bubble--intro span {
    font-size: 11px;
    line-height: 1.25;
    color: var(--pmc-muted);
}

.pmc-chat__product-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.055);
}

.pmc-chat__product-media {
    min-height: 72px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, #f7fafc, #eef5fb);
    color: var(--pmc-accent);
    font-size: 26px;
}

.pmc-chat__product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pmc-chat__product-body {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.pmc-chat__product-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.pmc-chat__product-title {
    font-size: 12px;
    line-height: 1.2;
    color: color-mix(in srgb, var(--pmc-accent-dark) 72%, #0f172a 28%);
}

.pmc-chat__product-price {
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--pmc-accent-dark);
}

.pmc-chat__product-summary {
    font-size: 11px;
    line-height: 1.3;
    color: #334155;
}

.pmc-chat__product-meta {
    min-height: 18px;
}

.pmc-chat__stock-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: #e8f8ec;
    color: #17803a;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.pmc-chat__product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.pmc-chat__product-button {
    min-height: 31px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none !important;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.pmc-chat__product-button:hover,
.pmc-chat__product-button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.pmc-chat__product-button--primary {
    border: 1px solid var(--pmc-accent);
    background: var(--pmc-accent);
    color: #fff !important;
}

.pmc-chat__product-button--primary:hover,
.pmc-chat__product-button--primary:focus-visible {
    background: var(--pmc-accent-dark);
    border-color: var(--pmc-accent-dark);
}

.pmc-chat__product-button--secondary {
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 68%, #fff 32%);
    background: #fff;
    color: var(--pmc-accent-dark) !important;
}

.pmc-chat__product-button--secondary:hover,
.pmc-chat__product-button--secondary:focus-visible {
    background: var(--pmc-accent-soft);
}

.pmc-chat__more-options {
    display: grid;
    gap: 7px;
    margin-top: 2px;
}

.pmc-chat__more-label {
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    color: #475569;
}

.pmc-chat__chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pmc-chat__chip {
    min-height: 28px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    padding: 0 9px;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    cursor: default;
}

.pmc-chat__callback-card--inline {
    margin-top: 0;
    align-items: center;
    background: #f8fbff;
    border-color: rgba(15, 23, 42, 0.1);
}

.pmc-chat__callback-card--inline .pmc-chat__callback-icon {
    background: #eef8ff;
    color: var(--pmc-accent);
    font-size: 18px;
}

.pmc-chat__callback-card--inline .pmc-chat__callback-copy span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.25;
    color: var(--pmc-muted);
}

.pmc-chat__callback-inline-button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: var(--pmc-accent);
    color: #fff;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.pmc-chat__callback-inline-button:hover,
.pmc-chat__callback-inline-button:focus-visible {
    background: var(--pmc-accent-dark);
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 520px) {
    .pmc-chat__product-card {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 8px;
    }

    .pmc-chat__product-media {
        min-height: 62px;
    }

    .pmc-chat__product-top {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .pmc-chat__product-actions {
        grid-template-columns: 1fr;
    }

    .pmc-chat__callback-card--inline {
        flex-wrap: wrap;
    }
}

/* Frontend styling */
.pmc-chat__guidance-response {
    display: grid;
    gap: 10px;
}

.pmc-chat__guidance-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.pmc-chat__guidance-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--pmc-accent-soft);
    color: var(--pmc-accent-dark);
    font-size: 17px;
    font-weight: 900;
}

.pmc-chat__guidance-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.pmc-chat__guidance-title {
    display: block;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.25;
}

.pmc-chat__guidance-text {
    margin: 0;
    color: #334155;
    font-size: 11.5px;
    line-height: 1.35;
}

.pmc-chat__guidance-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 2px;
}

.pmc-chat__chip:disabled {
    opacity: 1;
    cursor: default;
}

@media (max-width: 520px) {
    .pmc-chat__guidance-actions {
        grid-template-columns: 1fr;
    }
}

/* Frontend styling */
.pmc-chat__comparison-response,
.pmc-chat__flow-card {
    display: grid;
    gap: 10px;
}

.pmc-chat__compare-card,
.pmc-chat__flow-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.pmc-chat__compare-card {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}

.pmc-chat__compare-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--pmc-accent-soft);
    color: var(--pmc-accent-dark);
    font-size: 12px;
    font-weight: 900;
}

.pmc-chat__compare-body {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.pmc-chat__compare-title,
.pmc-chat__flow-title {
    color: #0f172a;
    font-size: 12px;
    line-height: 1.25;
}

.pmc-chat__compare-line,
.pmc-chat__flow-text {
    color: #334155;
    font-size: 11.5px;
    line-height: 1.35;
}

.pmc-chat__compare-meta {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
}

.pmc-chat__chip-row--flow {
    margin-top: 2px;
}

.pmc-chat__callback-inline-button--wide {
    justify-self: start;
    padding-inline: 16px;
}

.pmc-chat__flow-list {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    font-size: 11.5px;
    line-height: 1.45;
}

.pmc-chat__flow-list li + li {
    margin-top: 3px;
}


/* Frontend styling */
.pmc-chat button,
.pmc-chat a.pmc-chat__product-button,
.pmc-chat .pmc-chat__chip,
.pmc-chat .pmc-chat__callback-inline-button,
.pmc-chat .pmc-chat__guidance-actions button,
.pmc-chat .pmc-chat__product-actions a {
    font-family: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.pmc-chat .pmc-chat__chip,
.pmc-chat button.pmc-chat__chip,
.pmc-chat .pmc-chat__chip:not(.pmc-chat__chip--primary) {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    color: #334155 !important;
}

.pmc-chat .pmc-chat__chip:hover,
.pmc-chat .pmc-chat__chip:focus-visible {
    background: var(--pmc-accent-soft) !important;
    border-color: color-mix(in srgb, var(--pmc-accent) 42%, #d7ded7 58%) !important;
    color: var(--pmc-accent-dark) !important;
}

.pmc-chat .pmc-chat__chip--primary,
.pmc-chat button.pmc-chat__chip--primary,
.pmc-chat .pmc-chat__callback-inline-button,
.pmc-chat button.pmc-chat__callback-inline-button,
.pmc-chat .pmc-chat__product-button--primary,
.pmc-chat a.pmc-chat__product-button--primary {
    background: var(--pmc-accent) !important;
    background-image: none !important;
    border: 1px solid var(--pmc-accent) !important;
    color: #ffffff !important;
}

.pmc-chat .pmc-chat__chip--primary:hover,
.pmc-chat .pmc-chat__chip--primary:focus-visible,
.pmc-chat .pmc-chat__callback-inline-button:hover,
.pmc-chat .pmc-chat__callback-inline-button:focus-visible,
.pmc-chat .pmc-chat__product-button--primary:hover,
.pmc-chat .pmc-chat__product-button--primary:focus-visible {
    background: var(--pmc-accent-dark) !important;
    border-color: var(--pmc-accent-dark) !important;
    color: #ffffff !important;
}

.pmc-chat .pmc-chat__product-button--secondary,
.pmc-chat a.pmc-chat__product-button--secondary,
.pmc-chat .pmc-chat__guidance-actions .pmc-chat__product-button--secondary {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 68%, #ffffff 32%) !important;
    color: var(--pmc-accent-dark) !important;
}

.pmc-chat .pmc-chat__product-button--secondary:hover,
.pmc-chat .pmc-chat__product-button--secondary:focus-visible {
    background: var(--pmc-accent-soft) !important;
    color: var(--pmc-accent-dark) !important;
}

.pmc-chat .pmc-chat__chip:disabled,
.pmc-chat button.pmc-chat__chip:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    color: #94a3b8 !important;
}

/* Frontend styling */
.pmc-chat .pmc-chat__pageflow-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    padding: 12px;
    margin: 10px 0;
}

.pmc-chat .pmc-chat__pageflow-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--pmc-accent, #47733f);
    background: color-mix(in srgb, var(--pmc-accent, #47733f) 10%, #ffffff);
    border-radius: 999px;
    padding: 5px 9px;
    margin-bottom: 8px;
}

.pmc-chat .pmc-chat__pageflow-intro {
    margin: 0 0 10px;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.pmc-chat .pmc-chat__pageflow-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.pmc-chat .pmc-chat__pageflow-chips button {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--pmc-accent, #47733f) 35%, #ffffff) !important;
    background: #ffffff !important;
    color: var(--pmc-accent, #47733f) !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    padding: 8px 10px !important;
    box-shadow: none !important;
    cursor: pointer;
}

.pmc-chat .pmc-chat__pageflow-chips button:hover,
.pmc-chat .pmc-chat__pageflow-chips button:focus {
    background: color-mix(in srgb, var(--pmc-accent, #47733f) 9%, #ffffff) !important;
    border-color: var(--pmc-accent, #47733f) !important;
    outline: none;
}


/* Frontend styling */
@media (max-width: 640px) {
    html.pmc-chat-mobile-open,
    html.pmc-chat-mobile-open body {
        overflow: hidden !important;
        overscroll-behavior: none;
    }

    .pmc-chat {
        right: max(10px, env(safe-area-inset-right)) !important;
        left: max(10px, env(safe-area-inset-left)) !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        width: auto;
        max-width: none;
    }

    .pmc-chat__launcher {
        min-width: 52px !important;
        min-height: 52px !important;
        padding: 0 14px !important;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 10px 26px rgba(15, 23, 42, 0.26) !important;
    }

    .pmc-chat.is-open .pmc-chat__panel {
        position: fixed !important;
        top: max(8px, env(safe-area-inset-top)) !important;
        right: max(8px, env(safe-area-inset-right)) !important;
        bottom: max(8px, env(safe-area-inset-bottom)) !important;
        left: max(8px, env(safe-area-inset-left)) !important;
        width: auto !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 18px !important;
        transform: none !important;
    }

    .pmc-chat__header {
        min-height: 64px !important;
        padding: 11px 12px !important;
        flex-shrink: 0;
    }

    .pmc-chat__avatar {
        width: 40px !important;
        height: 40px !important;
        flex-basis: 40px !important;
    }

    .pmc-chat__identity strong {
        font-size: 14px !important;
    }

    .pmc-chat__identity span {
        font-size: 11px !important;
    }

    .pmc-chat__end,
    .pmc-chat__minimize {
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.18) !important;
    }

    .pmc-chat__body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 12px 11px 10px !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .pmc-chat__bubble {
        max-width: 94% !important;
        padding: 10px 11px !important;
        font-size: 13px !important;
        line-height: 1.36 !important;
    }

    .pmc-chat__suggestions,
    .pmc-chat__chip-row,
    .pmc-chat__pageflow-chips {
        gap: 6px !important;
    }

    .pmc-chat__suggestions button,
    .pmc-chat__chip,
    .pmc-chat__pageflow-chips button {
        min-height: 34px !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        touch-action: manipulation;
    }

    .pmc-chat__product-response,
    .pmc-chat__guidance-response,
    .pmc-chat__comparison-response,
    .pmc-chat__flow-card {
        gap: 8px !important;
    }

    .pmc-chat__product-card {
        grid-template-columns: 54px minmax(0, 1fr) !important;
        gap: 8px !important;
        padding: 9px !important;
        border-radius: 14px !important;
    }

    .pmc-chat__product-media {
        min-height: 54px !important;
        border-radius: 11px !important;
    }

    .pmc-chat__product-title,
    .pmc-chat__guidance-title {
        font-size: 12px !important;
    }

    .pmc-chat__product-summary,
    .pmc-chat__guidance-text {
        font-size: 11px !important;
    }

    .pmc-chat__product-price {
        font-size: 11px !important;
    }

    .pmc-chat__product-actions,
    .pmc-chat__guidance-actions {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .pmc-chat__product-button,
    .pmc-chat__callback-inline-button {
        min-height: 36px !important;
        font-size: 11px !important;
        touch-action: manipulation;
    }

    .pmc-chat__callback-card,
    .pmc-chat__callback-card--inline,
    .pmc-chat__callback-form,
    .pmc-chat__pageflow-card,
    .pmc-chat__guidance-card,
    .pmc-chat__compare-card {
        border-radius: 14px !important;
    }

    .pmc-chat__callback-card--inline {
        display: grid !important;
        grid-template-columns: 36px minmax(0, 1fr) !important;
        gap: 9px !important;
        align-items: start !important;
    }

    .pmc-chat__callback-card--inline .pmc-chat__callback-inline-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .pmc-chat__callback-form {
        padding: 11px !important;
    }

    .pmc-chat__callback-form input,
    .pmc-chat__callback-form textarea,
    .pmc-chat__callback-form select {
        min-height: 42px !important;
        font-size: 16px !important; /* undgår iOS zoom ved fokus */
    }

    .pmc-chat__callback-form textarea {
        min-height: 76px !important;
    }

    .pmc-chat__form {
        flex-shrink: 0;
        gap: 8px !important;
        padding: 10px 10px max(10px, env(safe-area-inset-bottom)) !important;
    }

    .pmc-chat__form input[type="text"] {
        height: 44px !important;
        font-size: 16px !important; /* undgår iOS zoom ved fokus */
        padding: 0 13px !important;
    }

    .pmc-chat__form button[type="submit"] {
        width: 44px !important;
        height: 44px !important;
        flex-basis: 44px !important;
    }
}

@media (max-width: 380px) {
    .pmc-chat.is-open .pmc-chat__panel {
        top: 4px !important;
        right: 4px !important;
        bottom: 4px !important;
        left: 4px !important;
        border-radius: 14px !important;
    }

    .pmc-chat__product-card {
        grid-template-columns: 1fr !important;
    }

    .pmc-chat__product-media {
        min-height: 80px !important;
    }
}


/* Frontend styling */
.pmc-chat .pmc-chat__launcher,
.pmc-chat button.pmc-chat__launcher,
.pmc-chat .pmc-chat__launcher:hover,
.pmc-chat button.pmc-chat__launcher:hover,
.pmc-chat .pmc-chat__launcher:focus,
.pmc-chat .pmc-chat__launcher:focus-visible,
.pmc-chat button.pmc-chat__launcher:focus,
.pmc-chat button.pmc-chat__launcher:focus-visible,
.pmc-chat .pmc-chat__launcher:active,
.pmc-chat button.pmc-chat__launcher:active {
    background: var(--pmc-accent) !important;
    background-color: var(--pmc-accent) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.pmc-chat .pmc-chat__launcher:hover,
.pmc-chat button.pmc-chat__launcher:hover,
.pmc-chat .pmc-chat__launcher:focus-visible,
.pmc-chat button.pmc-chat__launcher:focus-visible {
    background: var(--pmc-accent-dark) !important;
    background-color: var(--pmc-accent-dark) !important;
    border-color: rgba(255, 255, 255, 0.95) !important;
    color: #ffffff !important;
}

.pmc-chat .pmc-chat__launcher *,
.pmc-chat button.pmc-chat__launcher * {
    color: inherit !important;
    fill: currentColor !important;
    stroke: currentColor !important;
}

/* Frontend styling */
.pmc-chat .pmc-chat__welcome-menu {
    margin: 12px 0 14px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 18%, #d7ded7 82%);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--pmc-accent) 5%, #fff 95%));
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.pmc-chat .pmc-chat__welcome-menu-head {
    margin-bottom: 10px;
}

.pmc-chat .pmc-chat__welcome-menu-head strong,
.pmc-chat .pmc-chat__welcome-menu-head span {
    display: block;
}

.pmc-chat .pmc-chat__welcome-menu-head strong {
    color: var(--pmc-text);
    font-size: 13px;
    line-height: 1.2;
}

.pmc-chat .pmc-chat__welcome-menu-head span {
    margin-top: 3px;
    color: var(--pmc-muted);
    font-size: 12px;
    line-height: 1.35;
}

.pmc-chat .pmc-chat__welcome-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.pmc-chat .pmc-chat__welcome-menu-grid button {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 38px !important;
    padding: 9px 11px !important;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 20%, #d7ded7 80%) !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: var(--pmc-accent-dark) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease !important;
}

.pmc-chat .pmc-chat__welcome-menu-grid button::after {
    content: '›';
    flex: 0 0 auto;
    margin-left: 8px;
    color: var(--pmc-accent);
    font-size: 18px;
    line-height: 1;
}

.pmc-chat .pmc-chat__welcome-menu-grid button:hover,
.pmc-chat .pmc-chat__welcome-menu-grid button:focus-visible {
    background: var(--pmc-accent-soft) !important;
    border-color: color-mix(in srgb, var(--pmc-accent) 42%, #d7ded7 58%) !important;
    color: var(--pmc-accent-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06) !important;
    outline: none !important;
}

@media (max-width: 640px) {
    .pmc-chat .pmc-chat__welcome-menu {
        padding: 10px !important;
        border-radius: 16px !important;
    }
    .pmc-chat .pmc-chat__welcome-menu-grid button {
        min-height: 40px !important;
        font-size: 12px !important;
        touch-action: manipulation;
    }
}

/* Frontend styling */
.pmc-chat__typing {
    width: fit-content;
    max-width: 88%;
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border-top-left-radius: 7px;
    background: #f4f7fb;
    color: var(--pmc-muted);
    border: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 12px;
    line-height: 1.25;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.pmc-chat__typing-avatar {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: visible;
    color: #ffffff;
    background: var(--pmc-primary);
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.10);
}

.pmc-chat__typing-avatar > span,
.pmc-chat__typing-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.pmc-chat__typing-avatar > i {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #f4f7fb;
}

.pmc-chat__typing-content {
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

.pmc-chat__typing-name {
    color: var(--pmc-text);
    font-size: 12px;
    line-height: 1.15;
    font-weight: 800;
}

.pmc-chat__typing-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.pmc-chat__typing-text {
    color: var(--pmc-muted);
}

.pmc-chat__typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.pmc-chat__typing-dots i {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--pmc-primary);
    opacity: 0.35;
    animation: pmcTypingPulse 1.05s infinite ease-in-out;
}

.pmc-chat__typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.pmc-chat__typing-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes pmcTypingPulse {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
    40% { transform: translateY(-3px); opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
    .pmc-chat__typing-dots i {
        animation: none;
        opacity: 0.55;
        transform: none;
    }
}

@media (max-width: 640px) {
    .pmc-chat .pmc-chat__typing {
        max-width: 92%;
        padding: 9px 11px;
    }
    .pmc-chat .pmc-chat__typing-avatar {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }
}

.pmc-chat__feedback {
    max-width: 92%;
    margin: -2px 0 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 14px;
    background: rgba(244, 247, 251, 0.88);
}

.pmc-chat__feedback-label {
    font-size: 11px;
    line-height: 1.2;
    color: var(--pmc-muted);
    margin-right: 2px;
}

.pmc-chat__feedback-button {
    appearance: none !important;
    border-radius: 999px !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    background: #fff !important;
    color: var(--pmc-text) !important;
    padding: 6px 9px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: none !important;
}

.pmc-chat__feedback-button:hover,
.pmc-chat__feedback-button:focus,
.pmc-chat__feedback-button:active {
    border-color: var(--pmc-primary) !important;
    color: var(--pmc-primary) !important;
    background: #fff !important;
    outline: none !important;
}

.pmc-chat__feedback-button--no {
    border-color: color-mix(in srgb, var(--pmc-primary) 42%, #ffffff) !important;
    color: var(--pmc-primary) !important;
}

.pmc-chat__feedback.is-answered {
    width: fit-content;
    padding: 7px 10px;
}

@media (max-width: 520px) {
    .pmc-chat__feedback {
        max-width: 100%;
    }

    .pmc-chat__feedback-button {
        min-height: 32px;
    }
}

/* Frontend styling */
.pmc-chat .pmc-chat__smart-fields {
    margin: 10px 0 12px;
    padding: 12px;
    border: 1px solid rgba(15, 95, 143, .14);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 251, 255, .98), rgba(255, 255, 255, .98));
}

.pmc-chat .pmc-chat__smart-intro {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #516170;
}

.pmc-chat .pmc-chat__smart-field[hidden] {
    display: none !important;
}

.pmc-chat .pmc-chat__smart-field.is-visible {
    animation: pmcSmartFieldIn .18s ease-out both;
}

@keyframes pmcSmartFieldIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* v1.1.6 - Callback henvendelsestype link */
.pmc-chat .pmc-chat__topic-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    padding: 9px 10px;
    border: 1px solid rgba(0, 136, 204, 0.18);
    border-radius: 14px;
    background: rgba(0, 136, 204, 0.06);
    color: var(--pmc-text-muted, #64748b);
    font-size: 12px;
    line-height: 1.35;
}
.pmc-chat .pmc-chat__topic-link[hidden] {
    display: none !important;
}
.pmc-chat .pmc-chat__topic-link a,
.pmc-chat .pmc-chat__topic-link a:hover,
.pmc-chat .pmc-chat__topic-link a:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--pmc-accent, #0088cc) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: none !important;
}
@media (max-width: 480px) {
    .pmc-chat .pmc-chat__topic-link {
        align-items: flex-start;
        flex-direction: column;
    }
    .pmc-chat .pmc-chat__topic-link a {
        width: 100%;
    }
}

/* Frontend styling */
.pmc-chat .pmc-chat__launcher,
.pmc-chat .pmc-chat__launcher:hover,
.pmc-chat .pmc-chat__launcher:focus,
.pmc-chat .pmc-chat__launcher:focus-visible,
.pmc-chat .pmc-chat__launcher:active {
    background: var(--pmc-accent) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.98) !important;
    text-decoration: none !important;
}

.pmc-chat .pmc-chat__launcher:hover,
.pmc-chat .pmc-chat__launcher:focus-visible {
    filter: brightness(0.98);
}

.pmc-chat .pmc-chat__panel {
    isolation: isolate;
    contain: layout style;
}

.pmc-chat .pmc-chat__body {
    scroll-behavior: smooth;
    scroll-padding-top: 14px;
    overscroll-behavior: contain;
}

.pmc-chat .pmc-chat__bubble--bot {
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.035);
}

.pmc-chat .pmc-chat__bubble--user {
    box-shadow: 0 6px 14px color-mix(in srgb, var(--pmc-accent) 20%, transparent 80%);
}

.pmc-chat .pmc-chat__product-card,
.pmc-chat .pmc-chat__guidance-card,
.pmc-chat .pmc-chat__callback-card,
.pmc-chat .pmc-chat__callback-form,
.pmc-chat .pmc-chat__pageflow-card,
.pmc-chat .pmc-chat__flow-card,
.pmc-chat .pmc-chat__compare-card {
    max-width: 100%;
    overflow: hidden;
}

.pmc-chat .pmc-chat__product-card:hover,
.pmc-chat .pmc-chat__guidance-card:hover,
.pmc-chat .pmc-chat__callback-card:hover {
    border-color: color-mix(in srgb, var(--pmc-accent) 18%, rgba(15, 23, 42, 0.08) 82%);
}

.pmc-chat .pmc-chat__product-title,
.pmc-chat .pmc-chat__guidance-title {
    overflow-wrap: anywhere;
}

.pmc-chat .pmc-chat__product-summary,
.pmc-chat .pmc-chat__guidance-text,
.pmc-chat .pmc-chat__callback-copy span {
    overflow-wrap: anywhere;
}

.pmc-chat .pmc-chat__product-button,
.pmc-chat .pmc-chat__callback-inline-button,
.pmc-chat .pmc-chat__callback-cta,
.pmc-chat .pmc-chat__chip,
.pmc-chat .pmc-chat__choice-row button,
.pmc-chat .pmc-chat__suggestions button,
.pmc-chat .pmc-chat__pageflow-chips button,
.pmc-chat .pmc-chat__feedback-button,
.pmc-chat .pmc-chat__form button[type="submit"],
.pmc-chat .pmc-chat__callback-form button {
    font-family: inherit !important;
    -webkit-tap-highlight-color: transparent;
}

.pmc-chat .pmc-chat__product-button:focus-visible,
.pmc-chat .pmc-chat__callback-inline-button:focus-visible,
.pmc-chat .pmc-chat__callback-cta:focus-visible,
.pmc-chat .pmc-chat__chip:focus-visible,
.pmc-chat .pmc-chat__choice-row button:focus-visible,
.pmc-chat .pmc-chat__suggestions button:focus-visible,
.pmc-chat .pmc-chat__pageflow-chips button:focus-visible,
.pmc-chat .pmc-chat__feedback-button:focus-visible,
.pmc-chat .pmc-chat__form button[type="submit"]:focus-visible,
.pmc-chat .pmc-chat__callback-form button:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--pmc-accent) 55%, #ffffff 45%) !important;
    outline-offset: 2px !important;
}

.pmc-chat .pmc-chat__form input[type="text"],
.pmc-chat .pmc-chat__callback-form input,
.pmc-chat .pmc-chat__callback-form textarea,
.pmc-chat .pmc-chat__callback-form select {
    max-width: 100% !important;
}

.pmc-chat .pmc-chat__callback-form--spotlight {
    animation: pmcCallbackSpotlight 620ms ease-out both;
}

@keyframes pmcCallbackSpotlight {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pmc-accent) 24%, transparent 76%), 0 8px 18px rgba(15, 23, 42, 0.06); }
    42% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--pmc-accent) 14%, transparent 86%), 0 10px 24px rgba(15, 23, 42, 0.08); }
    100% { box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06); }
}

@media (max-width: 520px) {
    .pmc-chat .pmc-chat__body {
        scroll-padding-top: 10px;
    }

    .pmc-chat .pmc-chat__product-top {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
    }

    .pmc-chat .pmc-chat__product-price {
        justify-self: start;
    }

    .pmc-chat .pmc-chat__product-actions,
    .pmc-chat .pmc-chat__guidance-actions,
    .pmc-chat .pmc-chat__chip-row {
        width: 100%;
    }

    .pmc-chat .pmc-chat__product-button,
    .pmc-chat .pmc-chat__callback-inline-button,
    .pmc-chat .pmc-chat__chip,
    .pmc-chat .pmc-chat__choice-row button,
    .pmc-chat .pmc-chat__pageflow-chips button {
        min-height: 38px !important;
    }
}

/* v1.1.14 GDPR/privacy polish */
.pmc-chat .pmc-chat__privacy-note{font-size:12px;line-height:1.45;color:#5f6b76;background:#f7fbff;border:1px solid rgba(11,117,189,.16);border-radius:12px;padding:10px 12px;margin:8px 0 4px;}


/* Frontend styling */
.pmc-chat .pmc-chat__callback-submit,
.pmc-chat button.pmc-chat__callback-submit,
.pmc-chat .pmc-chat__form button[type="submit"],
.pmc-chat button.pmc-chat__feedback-button--yes,
.pmc-chat button.pmc-chat__choice-button--primary,
.pmc-chat .pmc-chat__product-button--primary,
.pmc-chat button.pmc-chat__product-button--primary,
.pmc-chat a.pmc-chat__product-button--primary,
.pmc-chat button.pmc-chat__callback-inline-button {
    background: var(--pmc-accent) !important;
    background-color: var(--pmc-accent) !important;
    background-image: none !important;
    border-color: var(--pmc-accent) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.pmc-chat .pmc-chat__callback-submit:hover,
.pmc-chat .pmc-chat__callback-submit:focus,
.pmc-chat .pmc-chat__callback-submit:focus-visible,
.pmc-chat .pmc-chat__callback-submit:active,
.pmc-chat button.pmc-chat__callback-submit:hover,
.pmc-chat button.pmc-chat__callback-submit:focus,
.pmc-chat button.pmc-chat__callback-submit:focus-visible,
.pmc-chat button.pmc-chat__callback-submit:active,
.pmc-chat .pmc-chat__form button[type="submit"]:hover,
.pmc-chat .pmc-chat__form button[type="submit"]:focus,
.pmc-chat .pmc-chat__form button[type="submit"]:focus-visible,
.pmc-chat .pmc-chat__form button[type="submit"]:active,
.pmc-chat button.pmc-chat__feedback-button--yes:hover,
.pmc-chat button.pmc-chat__feedback-button--yes:focus-visible,
.pmc-chat button.pmc-chat__choice-button--primary:hover,
.pmc-chat button.pmc-chat__choice-button--primary:focus-visible,
.pmc-chat .pmc-chat__product-button--primary:hover,
.pmc-chat .pmc-chat__product-button--primary:focus-visible,
.pmc-chat button.pmc-chat__callback-inline-button:hover,
.pmc-chat button.pmc-chat__callback-inline-button:focus-visible {
    background: var(--pmc-accent-dark) !important;
    background-color: var(--pmc-accent-dark) !important;
    background-image: none !important;
    border-color: var(--pmc-accent-dark) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.pmc-chat .pmc-chat__callback-submit:disabled,
.pmc-chat button.pmc-chat__callback-submit:disabled,
.pmc-chat .pmc-chat__form button[type="submit"]:disabled,
.pmc-chat .pmc-chat__form button[type="submit"][disabled] {
    background: #e2e8f0 !important;
    background-color: #e2e8f0 !important;
    background-image: none !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.pmc-chat .pmc-chat__callback-cancel,
.pmc-chat button.pmc-chat__callback-cancel,
.pmc-chat button.pmc-chat__feedback-button,
.pmc-chat button.pmc-chat__feedback-button--no,
.pmc-chat button.pmc-chat__choice-button,
.pmc-chat .pmc-chat__product-button--secondary,
.pmc-chat button.pmc-chat__product-button--secondary,
.pmc-chat a.pmc-chat__product-button--secondary {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 46%, #dbe6ef 54%) !important;
    color: var(--pmc-accent-dark) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.pmc-chat .pmc-chat__callback-cancel:hover,
.pmc-chat .pmc-chat__callback-cancel:focus,
.pmc-chat .pmc-chat__callback-cancel:focus-visible,
.pmc-chat .pmc-chat__callback-cancel:active,
.pmc-chat button.pmc-chat__callback-cancel:hover,
.pmc-chat button.pmc-chat__callback-cancel:focus,
.pmc-chat button.pmc-chat__callback-cancel:focus-visible,
.pmc-chat button.pmc-chat__callback-cancel:active,
.pmc-chat button.pmc-chat__feedback-button:hover,
.pmc-chat button.pmc-chat__feedback-button:focus-visible,
.pmc-chat button.pmc-chat__choice-button:hover,
.pmc-chat button.pmc-chat__choice-button:focus-visible,
.pmc-chat .pmc-chat__product-button--secondary:hover,
.pmc-chat .pmc-chat__product-button--secondary:focus-visible {
    background: var(--pmc-accent-soft) !important;
    background-color: var(--pmc-accent-soft) !important;
    background-image: none !important;
    border-color: var(--pmc-accent) !important;
    color: var(--pmc-accent-dark) !important;
    transform: translateY(-1px);
}

.pmc-chat button[class*="pmc-chat__"]:hover,
.pmc-chat button[class*="pmc-chat__"]:focus,
.pmc-chat button[class*="pmc-chat__"]:focus-visible,
.pmc-chat a[class*="pmc-chat__"]:hover,
.pmc-chat a[class*="pmc-chat__"]:focus-visible {
    text-decoration: none !important;
}


/* Frontend styling */
.pmc-chat .pmc-chat__intent-flow-card {
    background: #ffffff;
    border: 1px solid rgba(12, 89, 185, .16);
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(15, 45, 92, .12);
    padding: 14px;
    margin: 10px 0;
    color: #10233f;
}
.pmc-chat .pmc-chat__intent-flow-badge {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    border-radius: 999px;
    background: rgba(12, 89, 185, .09);
    color: var(--pmc-accent, #0c59b9);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    padding: 5px 9px;
    margin-bottom: 8px;
}
.pmc-chat .pmc-chat__intent-flow-title {
    display: block;
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 7px;
}
.pmc-chat .pmc-chat__intent-flow-text {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #334155;
}
.pmc-chat .pmc-chat__intent-flow-list {
    margin: 0 0 12px 0;
    padding: 10px 12px 10px 28px;
    background: rgba(12, 89, 185, .05);
    border-radius: 14px;
    color: #24364f;
    font-size: 12.5px;
    line-height: 1.45;
}
.pmc-chat .pmc-chat__intent-flow-list li { margin: 2px 0; }
.pmc-chat .pmc-chat__intent-flow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pmc-chat .pmc-chat__intent-flow-actions .pmc-chat__product-button {
    flex: 1 1 130px;
    justify-content: center;
}

/* Frontend styling */
.pmc-chat {
    --pmc-focus-ring: 0 0 0 3px color-mix(in srgb, var(--pmc-accent) 25%, transparent 75%);
    --pmc-touch-size: 44px;
    -webkit-tap-highlight-color: transparent;
}

.pmc-chat .pmc-chat__panel {
    isolation: isolate;
    contain: layout style;
}

.pmc-chat .pmc-chat__body {
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.pmc-chat .pmc-chat__body::-webkit-scrollbar {
    width: 8px;
}

.pmc-chat .pmc-chat__body::-webkit-scrollbar-track {
    background: transparent;
}

.pmc-chat .pmc-chat__body::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--pmc-accent) 22%, #d1d5db 78%);
    border-radius: 999px;
}

.pmc-chat :is(button, a, input, select, textarea):focus-visible {
    outline: none !important;
    box-shadow: var(--pmc-focus-ring) !important;
}

.pmc-chat .pmc-chat__launcher,
.pmc-chat .pmc-chat__welcome-menu-grid button,
.pmc-chat .pmc-chat__suggestions button,
.pmc-chat .pmc-chat__chip,
.pmc-chat .pmc-chat__choice-row button,
.pmc-chat .pmc-chat__product-button,
.pmc-chat .pmc-chat__callback-inline-button,
.pmc-chat .pmc-chat__feedback-button,
.pmc-chat .pmc-chat__callback-submit,
.pmc-chat .pmc-chat__callback-cancel,
.pmc-chat .pmc-chat__form button[type="submit"] {
    min-height: var(--pmc-touch-size);
    text-decoration: none !important;
    appearance: none;
    -webkit-appearance: none;
}

.pmc-chat .pmc-chat__launcher:hover,
.pmc-chat .pmc-chat__launcher:focus,
.pmc-chat .pmc-chat__launcher:focus-visible,
.pmc-chat .pmc-chat__launcher:active {
    background: var(--pmc-accent) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.95) !important;
}

.pmc-chat :is(.pmc-chat__product-card, .pmc-chat__guidance-card, .pmc-chat__callback-card, .pmc-chat__flow-card, .pmc-chat__intent-flow-card, .pmc-chat__pageflow-card) {
    overflow-wrap: anywhere;
}

.pmc-chat .pmc-chat__product-title,
.pmc-chat .pmc-chat__guidance-title,
.pmc-chat .pmc-chat__flow-title {
    text-wrap: balance;
}

.pmc-chat .pmc-chat__callback-form {
    scroll-margin-top: 14px;
}

.pmc-chat .pmc-chat__callback-status.is-success,
.pmc-chat .pmc-chat__callback-status.is-error,
.pmc-chat .pmc-chat__callback-status.is-loading {
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 10px;
}

.pmc-chat .pmc-chat__callback-status.is-success {
    background: #ecfdf3;
    color: #176c37;
    border: 1px solid #bbf7d0;
}

.pmc-chat .pmc-chat__callback-status.is-error {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.pmc-chat .pmc-chat__callback-status.is-loading {
    background: var(--pmc-accent-soft);
    color: var(--pmc-accent-dark);
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 24%, #fff 76%);
}

.pmc-chat .pmc-chat__form input[data-pmc-input] {
    min-width: 0;
}

.pmc-chat .pmc-chat__form button[type="submit"] {
    flex: 0 0 var(--pmc-touch-size);
}

.pmc-chat .pmc-chat__feedback.is-answered {
    justify-content: flex-start;
    background: #f8fafc;
    border-color: #e5e7eb;
}

@media (max-width: 640px) {
    .pmc-chat {
        bottom: max(10px, env(safe-area-inset-bottom));
    }

    .pmc-chat--right {
        right: max(10px, env(safe-area-inset-right));
    }

    .pmc-chat--left {
        left: max(10px, env(safe-area-inset-left));
    }

    .pmc-chat .pmc-chat__panel {
        width: calc(100vw - 20px);
        height: min(88vh, calc(100vh - 20px - env(safe-area-inset-bottom)));
        max-height: none;
        border-radius: 20px;
    }

    .pmc-chat .pmc-chat__body {
        padding: 15px 13px 12px;
    }

    .pmc-chat .pmc-chat__product-card,
    .pmc-chat .pmc-chat__guidance-card,
    .pmc-chat .pmc-chat__callback-card {
        border-radius: 16px;
    }

    .pmc-chat .pmc-chat__product-actions,
    .pmc-chat .pmc-chat__guidance-actions,
    .pmc-chat .pmc-chat__intent-flow-actions,
    .pmc-chat .pmc-chat__callback-actions,
    .pmc-chat .pmc-chat__chip-row,
    .pmc-chat .pmc-chat__choice-row {
        gap: 8px;
    }

    .pmc-chat .pmc-chat__product-button,
    .pmc-chat .pmc-chat__callback-submit,
    .pmc-chat .pmc-chat__callback-cancel,
    .pmc-chat .pmc-chat__callback-inline-button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pmc-chat,
    .pmc-chat * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* v3.1.0 - Produktanbefaling ved produktspørgsmål */
.pmc-chat .pmc-chat__recommendation-card {
    margin: 10px 0 12px;
    padding: 12px 13px;
    border: 1px solid rgba(0, 112, 186, 0.18);
    border-left: 4px solid var(--pmc-accent, #0070ba);
    background: linear-gradient(135deg, rgba(0, 112, 186, 0.08), rgba(255, 255, 255, 0.96));
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 40, 80, 0.08);
}

.pmc-chat .pmc-chat__recommendation-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 7px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--pmc-accent, #0070ba) !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.pmc-chat .pmc-chat__recommendation-title {
    display: block;
    margin: 0 0 5px;
    color: #14324d !important;
    font-size: 13px;
    line-height: 1.35;
}

.pmc-chat .pmc-chat__recommendation-text {
    margin: 5px 0 0;
    color: #2e475d !important;
    font-size: 12.5px;
    line-height: 1.45;
}


/* Frontend styling */
.pmc-chat .pmc-chat__product-response {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.pmc-chat .pmc-chat__product-card {
    display: grid !important;
    grid-template-columns: 74px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.pmc-chat .pmc-chat__product-media {
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    height: 74px !important;
    min-height: 74px !important;
    box-sizing: border-box !important;
    flex: 0 0 74px !important;
}

.pmc-chat .pmc-chat__product-media img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.pmc-chat .pmc-chat__product-body {
    display: grid !important;
    gap: 6px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.pmc-chat .pmc-chat__product-top {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.pmc-chat .pmc-chat__product-title,
.pmc-chat .pmc-chat__product-price,
.pmc-chat .pmc-chat__product-summary,
.pmc-chat .pmc-chat__stock-chip {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    hyphens: none !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.pmc-chat .pmc-chat__product-title {
    display: block !important;
    margin: 0 0 4px !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
}

.pmc-chat .pmc-chat__product-price {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 0 2px !important;
    white-space: normal !important;
    text-align: left !important;
}

.pmc-chat .pmc-chat__product-summary {
    display: block !important;
    line-height: 1.35 !important;
}

.pmc-chat .pmc-chat__product-meta {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.pmc-chat .pmc-chat__product-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 7px !important;
    box-sizing: border-box !important;
}

.pmc-chat .pmc-chat__product-button {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.pmc-chat .pmc-chat__recommendation-card,
.pmc-chat .pmc-chat__recommendation-title,
.pmc-chat .pmc-chat__recommendation-text {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}

@media (max-width: 520px) {
    .pmc-chat .pmc-chat__product-card {
        grid-template-columns: 62px minmax(0, 1fr) !important;
        gap: 8px !important;
    }
    .pmc-chat .pmc-chat__product-media {
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        height: 62px !important;
        min-height: 62px !important;
        flex-basis: 62px !important;
    }
    .pmc-chat .pmc-chat__product-actions {
        grid-template-columns: 1fr !important;
    }
}

/* Frontend styling */
.pmc-chat .pmc-chat__link-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin-top: 9px !important;
    white-space: normal !important;
}

.pmc-chat .pmc-chat__bubble .pmc-chat__link-actions {
    width: 100% !important;
}

.pmc-chat .pmc-chat__answer-link-button {
    width: auto !important;
    min-width: 112px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
}

.pmc-chat .pmc-chat__guidance-text .pmc-chat__link-actions,
.pmc-chat .pmc-chat__intent-flow-text .pmc-chat__link-actions {
    margin-top: 8px !important;
}

.pmc-chat .pmc-chat__product-facts {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin: 1px 0 0 !important;
    max-width: 100% !important;
}

.pmc-chat .pmc-chat__product-fact {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
    border-radius: 999px !important;
    padding: 3px 7px !important;
    background: rgba(15, 23, 42, 0.055) !important;
    color: #334155 !important;
    font-size: 10px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
}

.pmc-chat .pmc-chat__field-help {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: #64748b;
}

/* Mikro-step 24A: Chat-header polish */
.pmc-chat__header {
    position: relative;
    overflow: hidden;
}

.pmc-chat__header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.20), transparent 34%);
}

.pmc-chat__header > * {
    position: relative;
    z-index: 1;
}

.pmc-chat__avatar {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    overflow: visible;
}

.pmc-chat__identity {
    gap: 4px;
}

.pmc-chat__identity-main {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pmc-chat__identity-main strong {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pmc-chat__role {
    display: inline-flex !important;
    align-items: center;
    width: auto;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.17);
    color: #fff;
    font-size: 10.5px !important;
    font-weight: 800;
    line-height: 1 !important;
    opacity: 1 !important;
    letter-spacing: 0.01em;
}

.pmc-chat__status {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    opacity: 0.94 !important;
}

.pmc-chat__status-dot {
    display: inline-block !important;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 999px;
    background: #77df87;
    box-shadow: 0 0 0 3px rgba(119, 223, 135, 0.18);
    opacity: 1 !important;
}

@media (max-width: 520px) {
    .pmc-chat__identity-main {
        gap: 5px;
    }

    .pmc-chat__role {
        font-size: 10px !important;
        padding: 3px 6px;
    }

    .pmc-chat__status {
        font-size: 10.8px !important;
    }
}


/* Mikro-step 24B: Bedre svarbobler og læsevenlig samtalestruktur */
.pmc-chat .pmc-chat__body {
    background:
        radial-gradient(circle at top left, rgba(46, 125, 50, 0.055), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%) !important;
}

.pmc-chat .pmc-chat__bubble {
    position: relative !important;
    display: block !important;
    max-width: min(88%, 430px) !important;
    margin-bottom: 12px !important;
    padding: 12px 14px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    line-height: 1.48 !important;
    letter-spacing: 0.005em !important;
    white-space: normal !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06) !important;
    animation: pmcBubbleSoftIn 180ms ease-out both;
}

.pmc-chat .pmc-chat__bubble p {
    margin: 0 0 8px !important;
}

.pmc-chat .pmc-chat__bubble p:last-child {
    margin-bottom: 0 !important;
}

.pmc-chat .pmc-chat__bubble--bot {
    margin-right: auto !important;
    background: #ffffff !important;
    color: var(--pmc-text) !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-top-left-radius: 7px !important;
}

.pmc-chat .pmc-chat__bubble--user {
    margin-left: auto !important;
    background: linear-gradient(135deg, var(--pmc-user), color-mix(in srgb, var(--pmc-user) 82%, #111827 18%)) !important;
    color: #ffffff !important;
    border-top-right-radius: 7px !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12) !important;
}

.pmc-chat .pmc-chat__bubble--intro {
    border-color: color-mix(in srgb, var(--pmc-accent) 22%, #d7ded7 78%) !important;
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--pmc-accent-soft) 56%, #ffffff 44%) 100%) !important;
}

.pmc-chat .pmc-chat__bubble .pmc-chat__link-actions {
    width: 100% !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
}

.pmc-chat .pmc-chat__answer-link-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    box-shadow: 0 7px 14px rgba(46, 125, 50, 0.12) !important;
}

.pmc-chat .pmc-chat__answer-link-button:hover,
.pmc-chat .pmc-chat__answer-link-button:focus-visible {
    transform: translateY(-1px) !important;
}

@keyframes pmcBubbleSoftIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .pmc-chat .pmc-chat__body {
        padding: 14px 12px 12px !important;
    }

    .pmc-chat .pmc-chat__bubble {
        max-width: 92% !important;
        padding: 11px 12px !important;
        font-size: 13.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 10px !important;
    }

    .pmc-chat .pmc-chat__bubble .pmc-chat__link-actions {
        gap: 6px !important;
    }

    .pmc-chat .pmc-chat__answer-link-button {
        width: 100% !important;
    }
}


/* Mikro-step 24C: HOTFIX - mere plads i chat-headeren */
.pmc-chat .pmc-chat__header {
    min-height: 104px !important;
    padding: 17px 14px 18px !important;
    align-items: flex-start !important;
    gap: 10px !important;
}

.pmc-chat .pmc-chat__avatar {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    margin-top: 1px !important;
}

.pmc-chat .pmc-chat__identity {
    align-self: stretch !important;
    min-width: 0 !important;
    padding-top: 1px !important;
    gap: 5px !important;
}

.pmc-chat .pmc-chat__identity-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 5px !important;
    min-width: 0 !important;
}

.pmc-chat .pmc-chat__identity-main strong {
    display: block !important;
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
}

.pmc-chat .pmc-chat__role {
    justify-self: start !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.15 !important;
    padding: 4px 8px !important;
}

.pmc-chat .pmc-chat__status {
    max-width: 100% !important;
    align-items: flex-start !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.25 !important;
}

.pmc-chat .pmc-chat__status-dot {
    margin-top: 3px !important;
}

.pmc-chat .pmc-chat__reset,
.pmc-chat .pmc-chat__end,
.pmc-chat .pmc-chat__minimize {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    margin-top: 2px !important;
}

@media (max-width: 520px) {
    .pmc-chat .pmc-chat__header {
        min-height: 108px !important;
        padding: 16px 12px 17px !important;
        gap: 9px !important;
    }

    .pmc-chat .pmc-chat__avatar {
        width: 44px !important;
        height: 44px !important;
        flex-basis: 44px !important;
    }

    .pmc-chat .pmc-chat__identity-main strong {
        font-size: 14.5px !important;
        line-height: 1.2 !important;
    }

    .pmc-chat .pmc-chat__role {
        font-size: 10px !important;
        line-height: 1.15 !important;
        padding: 4px 7px !important;
    }

    .pmc-chat .pmc-chat__status {
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .pmc-chat .pmc-chat__reset,
    .pmc-chat .pmc-chat__end,
    .pmc-chat .pmc-chat__minimize {
        width: 30px !important;
        height: 30px !important;
        flex-basis: 30px !important;
    }
}

@media (max-width: 380px) {
    .pmc-chat .pmc-chat__header {
        min-height: 116px !important;
        padding: 15px 10px 16px !important;
        gap: 8px !important;
    }

    .pmc-chat .pmc-chat__identity-main strong {
        font-size: 14px !important;
    }

    .pmc-chat .pmc-chat__status {
        font-size: 10.5px !important;
    }
}

/* Mikro-step 24D — Callback-flow som flot leadkort */
.pmc-chat .pmc-chat__callback-form {
    position: relative;
    overflow: hidden;
    padding: 15px;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 20%, var(--pmc-border) 80%);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--pmc-accent-soft) 42%, #ffffff 58%) 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.pmc-chat .pmc-chat__callback-form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pmc-accent), color-mix(in srgb, var(--pmc-accent) 54%, #ffffff 46%));
    pointer-events: none;
}

.pmc-chat .pmc-chat__callback-form-head {
    margin: 0 0 13px;
    padding: 13px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 15%, var(--pmc-border) 85%);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.pmc-chat .pmc-chat__callback-leadcard-top {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.pmc-chat .pmc-chat__callback-leadcard-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--pmc-accent);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 10px 18px color-mix(in srgb, var(--pmc-accent) 28%, transparent 72%);
}

.pmc-chat .pmc-chat__callback-leadcard-copy {
    min-width: 0;
}

.pmc-chat .pmc-chat__callback-kicker {
    display: inline-flex;
    align-items: center;
    margin: 0 0 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pmc-accent) 10%, #ffffff 90%);
    color: var(--pmc-accent-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.pmc-chat .pmc-chat__callback-form-head strong {
    font-size: 15px;
    line-height: 1.18;
}

.pmc-chat .pmc-chat__callback-form-head p {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.45;
}

.pmc-chat .pmc-chat__callback-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 11px;
}

.pmc-chat .pmc-chat__callback-benefits span {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 8px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--pmc-accent-soft) 62%, #ffffff 38%);
    color: var(--pmc-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.pmc-chat .pmc-chat__callback-form .pmc-chat__field {
    margin-bottom: 10px;
}

.pmc-chat .pmc-chat__callback-form .pmc-chat__field input,
.pmc-chat .pmc-chat__callback-form .pmc-chat__field select,
.pmc-chat .pmc-chat__callback-form .pmc-chat__field textarea {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
}

.pmc-chat .pmc-chat__smart-fields {
    margin: 10px 0 12px;
    padding: 12px;
    border-radius: 17px;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 14%, var(--pmc-border) 86%);
    background: rgba(255, 255, 255, 0.72);
}

.pmc-chat .pmc-chat__smart-intro {
    margin: 0 0 10px;
    padding: 10px 11px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--pmc-accent-soft) 54%, #ffffff 46%);
    color: var(--pmc-muted);
    font-size: 12px;
    line-height: 1.42;
}

.pmc-chat .pmc-chat__consent,
.pmc-chat .pmc-chat__privacy-note {
    padding: 9px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.pmc-chat .pmc-chat__callback-actions {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid color-mix(in srgb, var(--pmc-border) 72%, transparent 28%);
}

.pmc-chat .pmc-chat__callback-submit {
    flex: 1 1 170px;
    min-height: 42px;
    justify-content: center;
    box-shadow: 0 10px 18px color-mix(in srgb, var(--pmc-accent) 20%, transparent 80%);
}

.pmc-chat .pmc-chat__callback-cancel {
    min-height: 42px;
}

.pmc-chat .pmc-chat__callback-success-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 17px;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 24%, var(--pmc-border) 76%);
    background: color-mix(in srgb, var(--pmc-accent-soft) 72%, #ffffff 28%);
    color: var(--pmc-text);
}

.pmc-chat .pmc-chat__callback-success-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--pmc-accent);
    color: #fff;
    font-weight: 900;
}

.pmc-chat .pmc-chat__callback-success-copy strong {
    display: block;
    color: var(--pmc-text);
    font-size: 13px;
    line-height: 1.25;
}

.pmc-chat .pmc-chat__callback-success-copy p {
    margin: 4px 0 0;
    color: var(--pmc-muted);
    font-size: 12px;
    line-height: 1.42;
}

@media (max-width: 520px) {
    .pmc-chat .pmc-chat__callback-form {
        padding: 13px;
        border-radius: 20px;
    }

    .pmc-chat .pmc-chat__callback-form-head {
        padding: 12px;
    }

    .pmc-chat .pmc-chat__callback-benefits {
        grid-template-columns: 1fr;
    }

    .pmc-chat .pmc-chat__callback-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pmc-chat .pmc-chat__callback-submit,
    .pmc-chat .pmc-chat__callback-cancel {
        width: 100%;
    }
}



/* Mikro-step 24E: flot kvittering efter callback */
.pmc-chat .pmc-chat__callback-receipt {
    display: block;
    width: min(100%, 360px);
    padding: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 24%, var(--pmc-border) 76%);
    background: #ffffff;
}

.pmc-chat .pmc-chat__callback-receipt-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px 15px 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pmc-accent-soft) 88%, #ffffff 12%), #ffffff);
}

.pmc-chat .pmc-chat__callback-receipt-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--pmc-accent);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15, 118, 150, .18);
}

.pmc-chat .pmc-chat__callback-receipt-copy strong {
    display: block;
    margin: 0 0 5px;
    color: var(--pmc-text);
    font-size: 14px;
    line-height: 1.24;
}

.pmc-chat .pmc-chat__callback-receipt-copy p {
    margin: 0;
    color: var(--pmc-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.pmc-chat .pmc-chat__callback-receipt-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 15px;
    border-top: 1px solid color-mix(in srgb, var(--pmc-border) 82%, #ffffff 18%);
}

.pmc-chat .pmc-chat__callback-receipt-pill {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--pmc-bg-soft) 82%, #ffffff 18%);
    border: 1px solid color-mix(in srgb, var(--pmc-border) 78%, #ffffff 22%);
}

.pmc-chat .pmc-chat__callback-receipt-pill strong {
    color: var(--pmc-muted);
    font-size: 10.5px;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pmc-chat .pmc-chat__callback-receipt-pill em {
    color: var(--pmc-text);
    font-style: normal;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.pmc-chat .pmc-chat__callback-receipt-note {
    margin: 0 15px 12px;
    padding: 9px 10px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--pmc-accent-soft) 54%, #ffffff 46%);
    color: var(--pmc-muted);
    font-size: 12px;
    line-height: 1.4;
}

.pmc-chat .pmc-chat__callback-receipt-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 15px 15px;
}

.pmc-chat .pmc-chat__callback-receipt-action {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 30%, var(--pmc-border) 70%);
    background: #ffffff;
    color: var(--pmc-accent);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.pmc-chat .pmc-chat__callback-receipt-action:hover,
.pmc-chat .pmc-chat__callback-receipt-action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 118, 150, .13);
}

.pmc-chat .pmc-chat__callback-receipt-action--primary {
    border-color: var(--pmc-accent);
    background: var(--pmc-accent);
    color: #ffffff;
}

@media (max-width: 520px) {
    .pmc-chat .pmc-chat__callback-receipt {
        width: 100%;
    }

    .pmc-chat .pmc-chat__callback-receipt-details {
        grid-template-columns: 1fr;
    }

    .pmc-chat .pmc-chat__callback-receipt-actions {
        flex-direction: column;
    }

    .pmc-chat .pmc-chat__callback-receipt-action {
        width: 100%;
    }
}

.pmc-chat .pmc-chat__callback-form--sent {
    display: none !important;
}


/* Mikro-step 24G: produktkort frontend polish */
.pmc-chat .pmc-chat__product-response--polished {
    display: grid !important;
    gap: 11px !important;
}

.pmc-chat .pmc-chat__product-intro {
    position: relative !important;
    padding: 12px 14px !important;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 15%, var(--pmc-border) 85%) !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pmc-accent-soft) 58%, #ffffff 42%), #ffffff) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .055) !important;
}

.pmc-chat .pmc-chat__product-intro-label {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    margin-bottom: 4px !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--pmc-accent) 14%, #ffffff 86%) !important;
    color: var(--pmc-accent-dark) !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: .01em !important;
}

.pmc-chat .pmc-chat__product-card--polished {
    position: relative !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 11px !important;
    border-radius: 18px !important;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 12%, var(--pmc-border) 88%) !important;
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--pmc-bg-soft) 42%, #ffffff 58%) 100%) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .075) !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

.pmc-chat .pmc-chat__product-card--polished:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 15px 34px rgba(15, 23, 42, .105) !important;
    border-color: color-mix(in srgb, var(--pmc-accent) 26%, var(--pmc-border) 74%) !important;
}

.pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-media {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    height: 82px !important;
    min-height: 82px !important;
    border-radius: 16px !important;
    background: radial-gradient(circle at 50% 22%, #ffffff 0%, color-mix(in srgb, var(--pmc-accent-soft) 70%, #ffffff 30%) 100%) !important;
    border: 1px solid color-mix(in srgb, var(--pmc-border) 74%, #ffffff 26%) !important;
}

.pmc-chat .pmc-chat__product-placeholder {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 30px !important;
}

.pmc-chat .pmc-chat__product-badge-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 0 0 1px !important;
}

.pmc-chat .pmc-chat__product-badge {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: var(--pmc-accent) !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
}

.pmc-chat .pmc-chat__product-card--polished:not([data-pmc-product-rank="1"]) .pmc-chat__product-badge {
    background: color-mix(in srgb, var(--pmc-accent) 12%, #ffffff 88%) !important;
    color: var(--pmc-accent-dark) !important;
    border: 1px solid color-mix(in srgb, var(--pmc-accent) 22%, #ffffff 78%) !important;
}

.pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-title {
    font-size: 13.2px !important;
    line-height: 1.25 !important;
    color: var(--pmc-text) !important;
}

.pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-price {
    padding: 3px 7px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--pmc-accent-soft) 64%, #ffffff 36%) !important;
    color: var(--pmc-accent-dark) !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
}

.pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-summary {
    color: #334155 !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
}

.pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-actions {
    gap: 8px !important;
    margin-top: 2px !important;
}

.pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-button {
    min-height: 34px !important;
    border-radius: 999px !important;
    font-size: 11.5px !important;
    box-shadow: none !important;
}

.pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-button--primary {
    box-shadow: 0 8px 18px rgba(15, 118, 150, .14) !important;
}

.pmc-chat .pmc-chat__product-card--polished .pmc-chat__stock-chip,
.pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-fact {
    background: color-mix(in srgb, var(--pmc-bg-soft) 78%, #ffffff 22%) !important;
    border: 1px solid color-mix(in srgb, var(--pmc-border) 75%, #ffffff 25%) !important;
}

@media (max-width: 520px) {
    .pmc-chat .pmc-chat__product-card--polished {
        grid-template-columns: 70px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
        border-radius: 16px !important;
    }

    .pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-media {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
        height: 70px !important;
        min-height: 70px !important;
    }

    .pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-title {
        font-size: 12.5px !important;
    }

    .pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-actions {
        grid-template-columns: 1fr !important;
    }
}

/* Mikro-step 24H: Mobiloptimering af hele chatten
   Scoped til .pmc-chat og aktive mobiltilstande. */
.pmc-chat {
    --pmc-mobile-edge: 10px;
    --pmc-mobile-header-min: 86px;
    --pmc-mobile-composer: 66px;
}

@media (max-width: 640px) {
    html.pmc-chat-mobile-open,
    html.pmc-chat-mobile-open body {
        overflow: hidden !important;
        overscroll-behavior: none !important;
        touch-action: none;
    }

    html.pmc-chat-mobile-open .pmc-chat,
    html.pmc-chat-mobile-open .pmc-chat * {
        touch-action: auto;
    }

    .pmc-chat.is-open {
        z-index: 999999 !important;
    }

    .pmc-chat.is-open .pmc-chat__panel {
        position: fixed !important;
        top: max(var(--pmc-mobile-edge), env(safe-area-inset-top)) !important;
        right: max(var(--pmc-mobile-edge), env(safe-area-inset-right)) !important;
        bottom: max(var(--pmc-mobile-edge), env(safe-area-inset-bottom)) !important;
        left: max(var(--pmc-mobile-edge), env(safe-area-inset-left)) !important;
        width: auto !important;
        height: calc((var(--pmc-vh, 1vh) * 100) - (var(--pmc-mobile-edge) * 2) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        max-height: none !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        transform: none !important;
        transform-origin: center !important;
    }

    @supports (height: 100dvh) {
        .pmc-chat.is-open .pmc-chat__panel {
            height: calc(100dvh - (var(--pmc-mobile-edge) * 2) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        }
    }

    .pmc-chat .pmc-chat__header {
        min-height: var(--pmc-mobile-header-min) !important;
        padding: 12px 12px 10px !important;
        gap: 10px !important;
        align-items: center !important;
        flex: 0 0 auto !important;
    }

    .pmc-chat .pmc-chat__avatar {
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
    }

    .pmc-chat .pmc-chat__identity {
        min-width: 0 !important;
        gap: 3px !important;
        overflow: hidden !important;
    }

    .pmc-chat .pmc-chat__identity-main {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 5px 7px !important;
        min-width: 0 !important;
    }

    .pmc-chat .pmc-chat__identity strong {
        max-width: 100% !important;
        font-size: 14px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .pmc-chat .pmc-chat__role {
        max-width: 100% !important;
        white-space: normal !important;
        line-height: 1.1 !important;
    }

    .pmc-chat .pmc-chat__status {
        display: flex !important;
        align-items: flex-start !important;
        gap: 5px !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        line-height: 1.18 !important;
    }

    .pmc-chat .pmc-chat__reset,
    .pmc-chat .pmc-chat__end,
    .pmc-chat .pmc-chat__minimize {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        flex: 0 0 42px !important;
    }

    .pmc-chat .pmc-chat__body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        padding: 14px 12px 12px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        scroll-padding-bottom: calc(var(--pmc-mobile-composer) + env(safe-area-inset-bottom)) !important;
    }

    .pmc-chat .pmc-chat__bubble,
    .pmc-chat .pmc-chat__multi-response,
    .pmc-chat .pmc-chat__product-response,
    .pmc-chat .pmc-chat__guidance-response,
    .pmc-chat .pmc-chat__recommendation-card,
    .pmc-chat .pmc-chat__callback-card,
    .pmc-chat .pmc-chat__callback-form,
    .pmc-chat .pmc-chat__feedback,
    .pmc-chat .pmc-chat__typing {
        max-width: 100% !important;
    }

    .pmc-chat .pmc-chat__bubble {
        font-size: 13.5px !important;
        line-height: 1.42 !important;
        padding: 11px 12px !important;
        border-radius: 16px !important;
    }

    .pmc-chat .pmc-chat__bubble--user {
        max-width: 88% !important;
    }

    .pmc-chat .pmc-chat__welcome-menu-grid,
    .pmc-chat .pmc-chat__suggestions,
    .pmc-chat .pmc-chat__chip-row,
    .pmc-chat .pmc-chat__choice-row,
    .pmc-chat .pmc-chat__pageflow-chips {
        gap: 8px !important;
    }

    .pmc-chat .pmc-chat__welcome-menu-grid button,
    .pmc-chat .pmc-chat__suggestions button,
    .pmc-chat .pmc-chat__chip,
    .pmc-chat .pmc-chat__choice-row button,
    .pmc-chat .pmc-chat__pageflow-chips button,
    .pmc-chat .pmc-chat__feedback-button,
    .pmc-chat .pmc-chat__callback-inline-button,
    .pmc-chat .pmc-chat__product-button {
        min-height: 42px !important;
        padding: 10px 12px !important;
        line-height: 1.2 !important;
        touch-action: manipulation !important;
    }

    .pmc-chat .pmc-chat__callback-form {
        padding: 13px !important;
        border-radius: 16px !important;
    }

    .pmc-chat .pmc-chat__callback-form-head,
    .pmc-chat .pmc-chat__callback-leadcard-top,
    .pmc-chat .pmc-chat__callback-benefits,
    .pmc-chat .pmc-chat__smart-fields {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .pmc-chat .pmc-chat__callback-benefits {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    .pmc-chat .pmc-chat__field,
    .pmc-chat .pmc-chat__smart-field {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .pmc-chat .pmc-chat__callback-form input:not([type="checkbox"]):not([type="hidden"]),
    .pmc-chat .pmc-chat__callback-form textarea,
    .pmc-chat .pmc-chat__callback-form select,
    .pmc-chat .pmc-chat__form input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 46px !important;
        font-size: 16px !important;
    }

    .pmc-chat .pmc-chat__callback-form textarea {
        min-height: 82px !important;
        resize: vertical !important;
    }

    .pmc-chat .pmc-chat__callback-actions,
    .pmc-chat .pmc-chat__product-actions,
    .pmc-chat .pmc-chat__guidance-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .pmc-chat .pmc-chat__callback-submit,
    .pmc-chat .pmc-chat__callback-cancel,
    .pmc-chat .pmc-chat__product-button,
    .pmc-chat .pmc-chat__guidance-actions a,
    .pmc-chat .pmc-chat__guidance-actions button {
        width: 100% !important;
        justify-content: center !important;
    }

    .pmc-chat .pmc-chat__product-card,
    .pmc-chat .pmc-chat__product-card--polished {
        grid-template-columns: 66px minmax(0, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
        border-radius: 16px !important;
    }

    .pmc-chat .pmc-chat__product-media,
    .pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-media {
        width: 66px !important;
        min-width: 66px !important;
        max-width: 66px !important;
        height: 66px !important;
        min-height: 66px !important;
    }

    .pmc-chat .pmc-chat__form {
        flex: 0 0 auto !important;
        position: relative !important;
        gap: 8px !important;
        padding: 10px 10px max(10px, env(safe-area-inset-bottom)) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border-top: 1px solid rgba(15, 23, 42, 0.1) !important;
        box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.05) !important;
    }

    .pmc-chat .pmc-chat__form input[type="text"] {
        height: 46px !important;
        border-radius: 999px !important;
        padding: 0 14px !important;
    }

    .pmc-chat .pmc-chat__form button[type="submit"] {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        flex: 0 0 48px !important;
    }
}

@media (max-width: 420px) {
    .pmc-chat {
        --pmc-mobile-edge: 6px;
        --pmc-mobile-header-min: 88px;
    }

    .pmc-chat.is-open .pmc-chat__panel {
        border-radius: 14px !important;
    }

    .pmc-chat .pmc-chat__header {
        padding: 11px 10px 9px !important;
        gap: 8px !important;
    }

    .pmc-chat .pmc-chat__avatar {
        width: 38px !important;
        height: 38px !important;
        flex-basis: 38px !important;
    }

    .pmc-chat .pmc-chat__reset,
    .pmc-chat .pmc-chat__end,
    .pmc-chat .pmc-chat__minimize {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        flex-basis: 38px !important;
    }

    .pmc-chat .pmc-chat__body {
        padding: 12px 10px 10px !important;
    }

    .pmc-chat .pmc-chat__product-card,
    .pmc-chat .pmc-chat__product-card--polished {
        grid-template-columns: 1fr !important;
    }

    .pmc-chat .pmc-chat__product-media,
    .pmc-chat .pmc-chat__product-card--polished .pmc-chat__product-media {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 92px !important;
        min-height: 92px !important;
    }
}

/* Mikro-step 24J: Pæn samtaleafslutning med valgkort */
.pmc-chat .pmc-chat__end-choice {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(0, 150, 207, .14);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.pmc-chat .pmc-chat__end-choice-title {
    display: block;
    color: #172033;
    font-size: 15px;
    line-height: 1.28;
}

.pmc-chat .pmc-chat__end-choice-copy {
    margin: 0;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.45;
}

.pmc-chat .pmc-chat__end-choice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pmc-chat button.pmc-chat__end-choice-button {
    appearance: none;
    border: 1px solid rgba(0, 150, 207, .28);
    border-radius: 999px;
    background: #fff;
    color: #0374a8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    padding: 9px 12px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.pmc-chat button.pmc-chat__end-choice-button:hover,
.pmc-chat button.pmc-chat__end-choice-button:focus-visible {
    background: #f2fbff;
    border-color: rgba(0, 150, 207, .5);
    box-shadow: 0 8px 20px rgba(0, 150, 207, .12);
    outline: none;
    transform: translateY(-1px);
}

.pmc-chat button.pmc-chat__end-choice-button--yes {
    background: var(--pmc-accent, #0096cf);
    border-color: var(--pmc-accent, #0096cf);
    color: #fff;
}

.pmc-chat button.pmc-chat__end-choice-button--yes:hover,
.pmc-chat button.pmc-chat__end-choice-button--yes:focus-visible {
    background: var(--pmc-accent, #0096cf);
    color: #fff;
}

.pmc-chat .pmc-chat__end-choice.is-answered .pmc-chat__end-choice-actions {
    display: none;
}

@media (max-width: 640px) {
    .pmc-chat .pmc-chat__end-choice-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pmc-chat button.pmc-chat__end-choice-button {
        width: 100%;
        justify-content: center;
        min-height: 42px;
    }
}
