/* Chatbot Chk: the support portal (v1.36.0). Phone first; the brand color comes from Branding (--chk-color). */
.chk-portal, .chk-portal-page {
	--pt-ink: #1d2327;
	--pt-muted: #5b6470;
	--pt-line: #e3e6ea;
	--pt-bg: #f5f6f8;
	--pt-card: #ffffff;
	--pt-radius: 14px;
	--pt-c: var(--chk-color, #126e00);
	--pt-on: var(--chk-on-color, #ffffff);
	--pt-link: var(--chk-link, #0b5a00);
}
body.chk-portal-page { margin: 0; background: var(--pt-bg); color: var(--pt-ink); font: 400 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-text-size-adjust: 100%; }
.chk-pt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--pt-card); border-bottom: 1px solid var(--pt-line); }
.chk-pt-brand { display: flex; align-items: center; gap: 10px; color: var(--pt-ink); text-decoration: none; font-weight: 700; font-size: 16px; min-width: 0; }
.chk-pt-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chk-pt-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.chk-pt-top__label { color: var(--pt-muted); font-size: 14px; font-weight: 600; }
.chk-pt-main { padding: 16px; }

.chk-portal { max-width: 760px; margin: 0 auto; color: var(--pt-ink); font-size: 15px; line-height: 1.55; box-sizing: border-box; }
.chk-portal *, .chk-portal *::before, .chk-portal *::after { box-sizing: border-box; }
.chk-pt-card { background: var(--pt-card); border: 1px solid var(--pt-line); border-radius: var(--pt-radius); padding: 20px 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.chk-portal h1 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.chk-portal h1:focus { outline: none; }
.chk-portal h2 { margin: 0 0 6px; font-size: 18px; }
.chk-pt-lead { margin: 0 0 16px; color: var(--pt-muted); }
.chk-pt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.chk-pt-head h1 { margin: 0; flex: 1 1 260px; }
.chk-pt-crumb { margin: 0 0 10px; font-size: 14px; }
.chk-pt-msg__text a, .chk-pt-answer a { color: var(--pt-link); }
.chk-pt-meta { margin: -4px 0 14px; color: var(--pt-muted); font-size: 13px; overflow-wrap: anywhere; }

.chk-pt-form { display: grid; gap: 6px; }
.chk-pt-form label { font-weight: 600; font-size: 14px; margin-top: 8px; }
.chk-pt-form input[type="email"], .chk-pt-form input[type="text"], .chk-pt-form input:not([type]), .chk-pt-form select, .chk-pt-form textarea {
	width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c9ced6; border-radius: 10px; background: #fff; color: var(--pt-ink); font: inherit;
}
.chk-pt-form textarea { min-height: 120px; resize: vertical; }
.chk-pt-form input:focus, .chk-pt-form select:focus, .chk-pt-form textarea:focus { outline: 2px solid var(--pt-c); outline-offset: 1px; border-color: var(--pt-c); }
.chk-pt-code { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.chk-pt-hint { margin: 2px 0 0; color: var(--pt-muted); font-size: 13px; }
.chk-pt-attach { display: grid; gap: 6px; margin-top: 10px; justify-items: start; }
.chk-pt-attach__input { position: absolute !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.chk-portal .chk-pt-form .chk-pt-attach__btn { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; padding: 10px 16px; border: 1px dashed #aeb6c1; border-radius: 10px; background: #fafbfc; color: var(--pt-link); font-weight: 600; font-size: 14px; cursor: pointer; }
.chk-portal .chk-pt-form .chk-pt-attach__btn:hover { background: #f1f4f6; border-color: var(--pt-c); }
.chk-pt-attach__input:focus-visible + .chk-pt-attach__btn { outline: 2px solid var(--pt-c); outline-offset: 2px; }
.chk-pt-attach__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chk-pt-attach__list:empty { display: none; }
.chk-pt-attach__list li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding-block: 4px; padding-inline: 12px 4px; border: 1px solid var(--pt-line); border-radius: 999px; background: #fff; font-size: 13px; }
.chk-pt-attach__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.chk-pt-attach__list small { color: var(--pt-muted); }
.chk-portal .chk-pt-attach__list button { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #eef0f3; color: var(--pt-ink); font-size: 16px; line-height: 1; cursor: pointer; }
.chk-portal .chk-pt-attach__list button:hover { background: #e2e5ea; }
.chk-pt-cc { margin-top: 6px; }
.chk-pt-cc summary { cursor: pointer; color: var(--pt-link); font-weight: 600; font-size: 14px; min-height: 32px; display: list-item; }
.chk-pt-cc input { margin-top: 6px; }
.chk-pt-ts { min-height: 0; }

.chk-pt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--pt-c); border-radius: 10px; background: var(--pt-c); color: var(--pt-on); font: 600 15px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.chk-pt-form .chk-pt-btn { margin-top: 12px; justify-self: start; }
.chk-pt-btn:hover { filter: brightness(.95); }
.chk-pt-btn:focus-visible { outline: 2px solid var(--pt-ink); outline-offset: 2px; }
.chk-pt-btn[disabled] { opacity: .65; cursor: progress; }
.chk-pt-btn--ghost { background: #fff; color: var(--pt-link); border-color: #c9ced6; }
/* 14-oct: the small actions (back, help articles, sign out, another email) are buttons, not underlined links. */
.chk-portal .chk-pt-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid #c9ced6; border-radius: 999px; background: #fff; color: var(--pt-link); font: 600 14px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.chk-portal .chk-pt-link:hover { background: #f4f6f8; border-color: #b4bbc5; }
.chk-portal .chk-pt-link:focus-visible { outline: 2px solid var(--pt-c); outline-offset: 2px; }
.chk-pt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chk-pt-actions .chk-pt-btn { margin-top: 0; }
.chk-pt-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; color: var(--pt-muted); font-size: 14px; }
.chk-pt-error { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #fde8e8; color: #8a1c1c; font-size: 14px; }
.chk-pt-notice { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #e7f4ea; color: #1b5e2a; font-size: 14px; }
.chk-pt-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #f0f0f1; color: var(--pt-muted); font-size: 14px; }
.chk-pt-empty { margin: 8px 0; color: var(--pt-muted); }
.chk-pt-user { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--pt-line); color: var(--pt-muted); font-size: 13px; overflow-wrap: anywhere; }
.chk-pt-user__acts { display: flex; flex-wrap: wrap; gap: 8px; }

.chk-pt-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.chk-pt-chip--open { background: #e5f0ff; color: #1d4f91; }
.chk-pt-chip--waiting { background: #fff4c2; color: #6b5300; }
.chk-pt-chip--hold { background: #ece9fb; color: #4b3a99; }
.chk-pt-chip--resolved { background: #dcf3e1; color: #1b5e2a; }
.chk-pt-chip--closed { background: #f0f0f1; color: #50575e; }

.chk-pt-list ul { list-style: none; margin: 0; padding: 0; }
.chk-pt-list li + li { border-top: 1px solid var(--pt-line); }
.chk-pt-list a { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "no subject chip" "when when when"; gap: 2px 10px; align-items: center; padding: 12px 4px; color: var(--pt-ink); text-decoration: none; min-height: 44px; }
.chk-pt-list a:hover .chk-pt-list__subject { text-decoration: underline; }
.chk-pt-list__no { grid-area: no; color: var(--pt-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.chk-pt-list__subject { grid-area: subject; font-weight: 600; overflow-wrap: anywhere; }
.chk-pt-list .chk-pt-chip { grid-area: chip; }
.chk-pt-list__when { grid-area: when; color: var(--pt-muted); font-size: 13px; }

.chk-pt-ai { margin-top: 4px; }
.chk-pt-answer { padding: 14px 16px; border-inline-start: 3px solid var(--pt-c); border-radius: 0 10px 10px 0; background: #f7f9f7; overflow-wrap: anywhere; }
.chk-pt-answer p { margin: 0 0 8px; }
.chk-pt-answer p:last-child { margin-bottom: 0; }

.chk-pt-thread { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.chk-pt-msg { max-width: 92%; padding: 10px 14px; border-radius: 14px; background: #f2f4f7; overflow-wrap: anywhere; }
.chk-pt-msg--me { justify-self: end; background: var(--chk-me, var(--pt-c)); color: var(--pt-on); border-bottom-right-radius: 4px; }
.chk-pt-msg--me .chk-pt-msg__who, .chk-pt-msg--me time { color: inherit; }
.chk-pt-msg--me a { color: inherit; }
.chk-pt-msg--team, .chk-pt-msg--cc, .chk-pt-msg--bot { justify-self: start; border-bottom-left-radius: 4px; }
.chk-pt-msg--bot { background: #f7f9f7; border: 1px solid var(--pt-line); }
.chk-pt-msg__who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; font-size: 13px; color: var(--pt-muted); }
.chk-pt-msg__who b { color: inherit; font-weight: 700; }
.chk-pt-msg--team .chk-pt-msg__who b, .chk-pt-msg--cc .chk-pt-msg__who b, .chk-pt-msg--bot .chk-pt-msg__who b { color: var(--pt-ink); }
.chk-pt-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.chk-pt-msg__text p { margin: 0 0 8px; }
.chk-pt-msg__text p:last-child { margin-bottom: 0; }
.chk-pt-msg__text ul, .chk-pt-msg__text ol, .chk-pt-answer ul, .chk-pt-answer ol { margin: 4px 0 8px; padding: 0; padding-inline-start: 20px; }
.chk-pt-ev { justify-self: center; text-align: center; }
.chk-pt-ev span { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #eef0f3; color: var(--pt-muted); font-size: 12px; }
.chk-pt-files-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chk-pt-files-list img { display: block; max-width: 180px; max-height: 140px; border-radius: 8px; border: 1px solid var(--pt-line); }
.chk-pt-file { display: inline-block; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .7); border: 1px solid var(--pt-line); color: inherit; font-size: 13px; }
.chk-pt-replyform { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pt-line); }
.chk-pt-rate { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #fafbfc; border: 1px solid var(--pt-line); }
.chk-pt-rate p { margin: 0 0 6px; font-weight: 600; }
.chk-pt-stars { display: flex; gap: 4px; }
.chk-pt-stars button { width: 44px; height: 44px; border: 1px solid #c9ced6; border-radius: 10px; background: #fff; color: #c58b00; font-size: 22px; line-height: 1; cursor: pointer; }
.chk-pt-stars button:hover, .chk-pt-stars button:focus-visible { background: #fff7e0; outline: 2px solid var(--pt-c); outline-offset: 1px; }
.chk-pt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 600px) {
	.chk-pt-main { padding: 28px 24px; }
	.chk-pt-card { padding: 28px; }
	.chk-portal h1 { font-size: 26px; }
	.chk-pt-signin { max-width: 460px; margin: 4vh auto 0; }
	.chk-pt-list a { grid-template-columns: auto 1fr auto auto; grid-template-areas: "no subject when chip"; }
	.chk-pt-msg { max-width: 80%; }
}

/* Inside a theme: the theme's button and field styles (Elementor kits, uppercase buttons) must not win. */
.chk-portal .chk-pt-btn { background: var(--pt-c); color: var(--pt-on); border: 1px solid var(--pt-c); border-radius: 10px; text-transform: none; letter-spacing: normal; font-size: 15px; font-weight: 600; line-height: 1.2; box-shadow: none; padding: 10px 18px; min-height: 44px; }
.chk-portal .chk-pt-btn--ghost { background: #fff; color: var(--pt-link); border-color: #c9ced6; }
.chk-portal .chk-pt-btn:hover, .chk-portal .chk-pt-btn:focus { background: var(--pt-c); color: var(--pt-on); }
.chk-portal .chk-pt-btn--ghost:hover, .chk-portal .chk-pt-btn--ghost:focus { background: #f6f7f7; color: var(--pt-link); }
.chk-portal .chk-pt-link { color: var(--pt-link); background: #fff; border: 1px solid #c9ced6; text-transform: none; letter-spacing: normal; box-shadow: none; text-decoration: none; }
.chk-portal .chk-pt-stars button { background: #fff; color: #c58b00; border: 1px solid #c9ced6; padding: 0; text-transform: none; }
.chk-portal .chk-pt-form label { color: var(--pt-ink); text-transform: none; letter-spacing: normal; }
.chk-portal .chk-pt-form input, .chk-portal .chk-pt-form select, .chk-portal .chk-pt-form textarea { border-radius: 10px; font-size: 16px; }
.chk-portal h1, .chk-portal h2 { text-transform: none; }

/* Audit 14-oct: [hidden] wins over display:grid/flex (the new ticket form stayed next to the AI answer). */
.chk-portal [hidden] { display: none !important; }
/* Code and headings written by the AI or the team. */
.chk-portal code { padding: 1px 5px; border-radius: 5px; background: rgba(0, 0, 0, .06); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.chk-portal pre { margin: 6px 0 10px; padding: 10px 12px; border-radius: 8px; background: rgba(0, 0, 0, .06); overflow-x: auto; white-space: pre; }
.chk-portal pre code { padding: 0; background: none; }
.chk-pt-h { margin: 10px 0 4px; }
/* Right to left: the corners and the side line follow the text. */
[dir="rtl"] .chk-pt-answer { border-radius: 10px 0 0 10px; }
[dir="rtl"] .chk-pt-msg--me { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
[dir="rtl"] .chk-pt-msg--team, [dir="rtl"] .chk-pt-msg--cc, [dir="rtl"] .chk-pt-msg--bot { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
/* Phones: 44px to tap the text buttons too. */
@media (pointer: coarse) {
	.chk-portal .chk-pt-link, .chk-pt-cc summary { min-height: 44px; }
	.chk-portal .chk-pt-attach__list button { width: 36px; height: 36px; }
}

/* 14-oct: the conversation with the assistant before the ticket. */
.chk-pt-yours { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #fafbfc; border: 1px solid var(--pt-line); font-size: 14px; overflow-wrap: anywhere; }
.chk-pt-typing { justify-self: start; color: var(--pt-muted); font-size: 13px; font-style: italic; }
.chk-pt-assistform { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-top: 8px; }
.chk-pt-assistform textarea { min-height: 44px; resize: vertical; }
.chk-pt-assistform .chk-pt-error { grid-column: 1 / -1; }
.chk-pt-assist-actions { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--pt-line); }
.chk-portal .chk-pt-btn--hot { box-shadow: 0 0 0 3px rgba(0, 0, 0, .12); }
/* 14-oct: help articles. */
.chk-pt-kbsug { margin: 6px 0 4px; padding: 10px 12px; border-radius: 10px; background: #f7f9f7; border: 1px solid var(--pt-line); font-size: 14px; }
.chk-pt-kbsug p { margin: 0 0 4px; font-weight: 600; }
.chk-pt-kbsug ul { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.chk-pt-kbsug a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--pt-line); border-radius: 10px; background: #fff; font-weight: 600; text-decoration: none; }
.chk-pt-kbsug a::before { content: ""; flex: 0 0 auto; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v15H6z M14 3v5h5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v15H6z M14 3v5h5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; }
.chk-pt-kbsug a:hover { border-color: var(--pt-c); background: #f7f9f7; }
.chk-pt-kbsug a, .chk-pt-kblist a { color: var(--pt-link); }
.chk-pt-kbhint { margin: 14px 0 0; text-align: center; font-size: 14px; }
.chk-pt-kbsearch { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 14px; }
.chk-pt-kbsearch input { min-height: 44px; padding: 8px 12px; border: 1px solid #c9ced6; border-radius: 10px; font-size: 16px; }
.chk-pt-kblist ul { list-style: none; margin: 0; padding: 0; }
.chk-pt-kblist li { border-top: 1px solid var(--pt-line); }
.chk-pt-kblist li:first-child { border-top: 0; }
.chk-pt-kblist a { display: grid; gap: 2px; padding: 12px 4px; text-decoration: none; min-height: 44px; }
.chk-pt-kblist__title { font-weight: 600; }
.chk-pt-kblist a:hover .chk-pt-kblist__title { text-decoration: underline; }
.chk-pt-kblist__cat { color: var(--pt-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.chk-pt-kblist__ex { color: var(--pt-muted); font-size: 14px; }
.chk-pt-kbfoot { margin: 18px 0 0; }
.chk-pt-article { overflow-wrap: anywhere; font-size: 16px; line-height: 1.65; }
.chk-pt-article h2 { margin: 22px 0 8px; font-size: 20px; }
.chk-pt-article h3 { margin: 18px 0 6px; font-size: 17px; }
.chk-pt-article p, .chk-pt-article ul, .chk-pt-article ol { margin: 0 0 12px; }
.chk-pt-article ul, .chk-pt-article ol { padding-inline-start: 22px; }
.chk-pt-article li { margin: 0 0 4px; }
.chk-pt-article img { max-width: 100%; height: auto; border-radius: 8px; }
.chk-pt-article figure { margin: 12px 0; }
.chk-pt-article blockquote { margin: 12px 0; padding: 8px 14px; border-inline-start: 3px solid var(--pt-c); background: #f7f9f7; }
.chk-pt-article table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 14px; display: block; overflow-x: auto; }
.chk-pt-article th, .chk-pt-article td { padding: 6px 10px; border: 1px solid var(--pt-line); text-align: start; }
.chk-pt-article a { color: var(--pt-link); }

/* 14-oct: an article over the current view (the ticket being written stays as it was). */
.chk-pt-kbdlg { width: min(720px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 1px solid var(--pt-line); border-radius: 16px; background: #fff; color: var(--pt-ink); box-shadow: 0 24px 64px rgba(12, 29, 20, .28); }
.chk-pt-kbdlg::backdrop { background: rgba(12, 29, 20, .5); }
.chk-pt-kbdlg[open] { display: flex; flex-direction: column; }
.chk-pt-kbdlg__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--pt-line); }
.chk-pt-kbdlg__label { margin: 0; color: var(--pt-muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.chk-portal .chk-pt-kbdlg__x { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #f1f3f5; color: var(--pt-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.chk-pt-kbdlg__body { padding: 16px 20px; overflow-y: auto; }
.chk-pt-kbdlg__body h2 { margin: 0 0 6px; font-size: 22px; }
.chk-pt-kbdlg__foot { display: flex; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--pt-line); }
.chk-pt-kbhint { text-align: center; }
