/* 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-ccwarn { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff4e5; color: #7a3e00; font-size: 13px; line-height: 1.45; }
.chk-pt-cc-free { 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 { color: var(--pt-link); } /* decision 27: no underlines */
.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; }
/* 0.120.0: someone from the team is typing in the ticket; the line keeps its height so nothing jumps. */
.chk-pt-live-typing { min-height: 1.5em; margin: 6px 0 0; color: var(--pt-muted); font-size: 13px; font-style: italic; line-height: 1.5; }
.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 { color: var(--pt-link); }
.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; }

/* Chk SaaS: "Made with Chk" under the portal (hidden with white label). */
.chk-pt-foot { text-align: center; padding: 8px 16px 24px; font-size: 13px; }
.chk-pt-foot a { color: var(--pt-muted); text-decoration: none; display: inline-flex; align-items: center; }
.chk-pt-foot a:hover { color: var(--pt-ink); }
/* Decision 25 (0.114.0): "Denunciar abuso", siempre, separado del "Hecho con Chk" (en otra linea si no cabe). */
.chk-pt-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.chk-pt-foot a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
/* Capturas en los articulos: en su propia linea, al ancho del articulo como maximo. */
.chk-pt-article img { display: block; max-width: 100%; height: auto; margin: 12px 0; border: 1px solid rgba( 0, 0, 0, .1 ); border-radius: 8px; }
.chk-pt-muted { color: var(--pt-muted); font-weight: 400; }
/* 0.114.0: la linea de ayuda de un campo propio del dueno (debajo del campo, fuera de su label). */
.chk-pt-help { margin: 4px 0 0; color: var(--pt-muted); font-size: 14px; }

/* ==========================================================================================================================================
 * 0.63.0: tres disenos que elige el dueno (espacios/portal-diseno.ts; maquetas en dchk-local/docs/diseno-chk-app/portal-disenos.html) y lo
 * que ajusta encima. Las clases (chk-pd-* diseno, chk-pf-* letra, chk-pr-* esquinas, chk-ph-* cabecera) van en <body> en la pagina
 * alojada y en la caja #chk-portal cuando va incrustado: cada regla nombra los dos casos.
 * ======================================================================================================================================= */
@font-face { font-family: 'Chk Geist'; src: url(fonts/geist-variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Chk Gabarito'; src: url(fonts/gabarito-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Chk Atkinson'; src: url(fonts/atkinson-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Chk Atkinson'; src: url(fonts/atkinson-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }

/* La letra: moderna (Geist), amable (Gabarito en titulos y Atkinson en el texto) o clasica (titulos con serifa). */
.chk-pf-modern.chk-portal, .chk-pf-modern .chk-portal, .chk-pf-modern.chk-portal-page { --pt-f: 'Chk Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --pt-ft: var(--pt-f); --pt-wt: 650; }
.chk-pf-friendly.chk-portal, .chk-pf-friendly .chk-portal, .chk-pf-friendly.chk-portal-page { --pt-f: 'Chk Atkinson', system-ui, -apple-system, 'Segoe UI', sans-serif; --pt-ft: 'Chk Gabarito', 'Chk Atkinson', system-ui, sans-serif; --pt-wt: 800; }
.chk-pf-classic.chk-portal, .chk-pf-classic .chk-portal, .chk-pf-classic.chk-portal-page { --pt-f: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --pt-ft: Georgia, 'Times New Roman', serif; --pt-wt: 700; }
body.chk-portal-page, .chk-portal { font-family: var(--pt-f, inherit); }
.chk-portal h1, .chk-portal h2, .chk-pt-top .chk-pt-brand { font-family: var(--pt-ft, inherit); font-weight: var(--pt-wt, 700); }

/* Las esquinas: rectas, suaves o redondas (botones de pildora). */
.chk-pr-square.chk-portal, .chk-pr-square .chk-portal, .chk-pr-square.chk-portal-page { --pt-radius: 4px; --pt-rb: 6px; --pt-rc: 6px; }
.chk-pr-soft.chk-portal, .chk-pr-soft .chk-portal, .chk-pr-soft.chk-portal-page { --pt-radius: 14px; --pt-rb: 10px; --pt-rc: 16px; }
.chk-pr-round.chk-portal, .chk-pr-round .chk-portal, .chk-pr-round.chk-portal-page { --pt-radius: 22px; --pt-rb: 999px; --pt-rc: 22px; }
.chk-portal .chk-pt-btn { border-radius: var(--pt-rb, 10px); }
.chk-portal .chk-pt-form input, .chk-portal .chk-pt-form select, .chk-portal .chk-pt-form textarea, .chk-pt-kbsearch input { border-radius: min(var(--pt-rb, 10px), 14px); }

/* La cabecera: el color, un degradado del color o la imagen del dueno (con un velo para que el texto blanco se lea). */
.chk-ph-solid.chk-portal, .chk-ph-solid .chk-portal, .chk-ph-solid.chk-portal-page { --pt-head: var(--pt-c); --pt-head-tx: var(--pt-on); }
.chk-ph-gradient.chk-portal, .chk-ph-gradient .chk-portal, .chk-ph-gradient.chk-portal-page { --pt-head: linear-gradient(var(--pt-dir, 150deg), var(--pt-c), color-mix(in srgb, var(--pt-c) 62%, #000)); --pt-head-tx: var(--pt-on); }
.chk-ph-image.chk-portal, .chk-ph-image .chk-portal, .chk-ph-image.chk-portal-page { --pt-head: linear-gradient(rgba(10, 14, 24, .55), rgba(10, 14, 24, .55)), var(--chk-header-image) center / cover no-repeat, var(--pt-c); --pt-head-tx: #FFFFFF; }

/* Comun: la pagina alojada a todo el ancho (cada vista trae su caja), los enlaces de arriba, el buscador y lo mas consultado. */
body.chk-portal-page .chk-pt-main { padding: 0; }
body.chk-portal-page .chk-portal { max-width: none; }
.chk-pt-wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.chk-portal--embed .chk-pt-wrap { padding: 0; }
.chk-pt-card { border-radius: var(--pt-radius); }
.chk-pt-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
.chk-pt-links a { color: var(--pt-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.chk-pt-links a:hover { color: var(--pt-ink); }
.chk-pt-hsearch { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0 0 14px; padding: 0 16px; border: 1px solid #c9ced6; border-radius: min(var(--pt-rb, 10px), 16px); background: #fff; color: var(--pt-muted); }
.chk-pt-hsearch svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chk-portal .chk-pt-hsearch input { flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; background: none; color: var(--pt-ink); font: inherit; font-size: 16px; outline: none; box-shadow: none; }
.chk-pt-hsearch:focus-within { outline: 2px solid var(--pt-c); outline-offset: 1px; }
.chk-pt-hsearch.is-big { max-width: 620px; min-height: 56px; margin: 22px auto 0; border: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }
.chk-pt-pop { margin-top: 22px; }
.chk-pt-pop h2 { margin: 0 0 10px; font-size: 17px; }
.chk-pt-pop ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--pt-line); border-radius: var(--pt-radius); background: var(--pt-card); }
.chk-pt-pop li + li { border-top: 1px solid var(--pt-line); }
.chk-pt-pop a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; color: var(--pt-ink); text-decoration: none; font-weight: 600; }
.chk-pt-pop a::after { content: ''; margin-left: auto; flex: none; width: 8px; height: 8px; border-top: 2px solid var(--pt-link); border-right: 2px solid var(--pt-link); transform: rotate(45deg); }
.chk-pt-pop small { color: var(--pt-muted); font-weight: 400; }
.chk-pt-pop a:hover span { color: var(--pt-link); }
.chk-pt-hours { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--pt-muted); font-size: 14px; }
.chk-pt-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa1ad; }
.chk-pt-dot.is-open { background: #1F8A4C; box-shadow: 0 0 0 3px rgba(31, 138, 76, .2); }
.chk-pt-more { margin: 10px 0 0; }
.chk-portal .chk-pt-label { margin: 22px 0 8px; color: var(--pt-muted); font-size: 13px; font-family: inherit; font-weight: 600; }
.chk-pt-tside { display: none; }

/* ---------- A. Centro de ayuda (Zendesk, Freshdesk) ---------- */
.chk-pd-help.chk-portal, .chk-pd-help .chk-portal, .chk-pd-help.chk-portal-page { --pt-bg: #F6F7F9; }
.chk-pd-help .chk-pt-hero--help { padding: 48px 20px 80px; background: var(--pt-head); color: var(--pt-head-tx); text-align: center; }
.chk-pd-help.chk-portal--embed .chk-pt-hero--help { border-radius: var(--pt-radius); }
.chk-pd-help .chk-pt-hero h1 { margin: 0 0 8px; color: inherit; font-size: 32px; }
.chk-pd-help .chk-pt-hero p { margin: 0; opacity: .92; font-size: 17px; }
.chk-pt-wrap--wide { max-width: 1040px; margin-top: -44px; position: relative; }
.chk-pt-acc { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.chk-pt-acc__item { display: grid; align-content: start; gap: 6px; color: var(--pt-ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.chk-portal .chk-pt-acc__item { padding: 22px; }
.chk-pt-acc__item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 24, 40, .1); }
.chk-pt-acc__item b { font-size: 17px; }
.chk-pt-acc__item span { color: var(--pt-muted); font-size: 14px; }
.chk-pt-acc__n:empty { display: none; }
.chk-pt-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: min(var(--pt-rb, 10px), 12px); background: color-mix(in srgb, var(--pt-c) 12%, #fff); color: var(--pt-link); }
.chk-pt-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chk-pd-help .chk-pt-msg { max-width: 100%; justify-self: stretch; background: var(--pt-card); color: var(--pt-ink); border: 1px solid var(--pt-line); border-radius: var(--pt-rc, 14px); }
.chk-pd-help .chk-pt-msg--me .chk-pt-msg__who, .chk-pd-help .chk-pt-msg--me time { color: var(--pt-muted); }
.chk-pd-help .chk-pt-msg--team { border-left: 4px solid var(--pt-c); }
@media (min-width: 900px) {
	.chk-pd-help .chk-pt-wrap:has(.chk-pt-ticket) { max-width: 1100px; }
	.chk-pd-help .chk-pt-ticket__body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; column-gap: 24px; align-items: start; }
	.chk-pd-help .chk-pt-ticket__body > * { grid-column: 1; }
	.chk-pd-help .chk-pt-ticket__body > .chk-pt-tside { display: block; grid-column: 2; grid-row: 1 / 99; padding: 18px; border: 1px solid var(--pt-line); border-radius: var(--pt-radius); background: var(--pt-bg); }
	.chk-pd-help .chk-pt-tside h2 { margin: 0 0 10px; font-size: 16px; }
	.chk-pd-help .chk-pt-tside dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; margin: 0; font-size: 14px; }
	.chk-pd-help .chk-pt-tside dt { color: var(--pt-muted); }
	.chk-pd-help .chk-pt-tside dd { margin: 0; text-align: right; font-weight: 600; }
}

/* ---------- B. Conversacional (Intercom, Help Scout) ---------- */
.chk-pd-chat.chk-portal, .chk-pd-chat .chk-portal, .chk-pd-chat.chk-portal-page { --pt-bg: #F2F4F7; --pt-dir: 180deg; }
.chk-pd-chat .chk-pt-top { background: var(--pt-c); border-bottom: 0; }
.chk-ph-image.chk-pd-chat .chk-pt-top { background: color-mix(in srgb, var(--pt-c) 70%, #000); }
.chk-pd-chat .chk-pt-top, .chk-pd-chat .chk-pt-top .chk-pt-brand, .chk-pd-chat .chk-pt-top__label, .chk-pd-chat .chk-pt-links a { color: var(--pt-on); }
.chk-ph-image.chk-pd-chat .chk-pt-top, .chk-ph-image.chk-pd-chat .chk-pt-top .chk-pt-brand, .chk-ph-image.chk-pd-chat .chk-pt-top__label, .chk-ph-image.chk-pd-chat .chk-pt-links a { color: #FFFFFF; }
.chk-pd-chat .chk-pt-hero--chat { padding: 32px 20px 100px; background: var(--pt-head); color: var(--pt-head-tx); }
.chk-pd-chat.chk-portal--embed .chk-pt-hero--chat { border-radius: var(--pt-radius) var(--pt-radius) 0 0; }
.chk-pt-hero__in { max-width: 640px; margin: 0 auto; }
.chk-pd-chat .chk-pt-hero h1 { margin: 0 0 6px; color: inherit; font-size: 34px; }
.chk-pd-chat .chk-pt-hero p { margin: 0; opacity: .92; font-size: 17px; }
.chk-pt-col { position: relative; display: grid; gap: 14px; max-width: 640px; margin: -72px auto 0; padding: 0 12px 20px; }
.chk-pd-chat .chk-pt-col .chk-pt-card { border: 0; border-radius: max(var(--pt-radius), 16px); box-shadow: 0 6px 24px rgba(16, 24, 40, .1); }
.chk-pd-chat .chk-pt-col h2 { margin: 0 0 8px; font-size: 16px; }
.chk-pt-write { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chk-pt-write > div { display: grid; flex: 1 1 200px; }
.chk-pt-write b { font-size: 16px; }
.chk-pt-write small { color: var(--pt-muted); font-size: 14px; }
.chk-pt-faces { display: flex; }
.chk-pt-faces > * { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -10px; border: 3px solid #fff; border-radius: 50%; color: #fff; font-weight: 700; object-fit: cover; }
.chk-pt-faces > :first-child { margin-left: 0; }
.chk-pt-hlist { list-style: none; margin: 0; padding: 0; }
.chk-pt-hlist li + li { border-top: 1px solid var(--pt-line); }
.chk-pt-hlist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "subject when" "no chip"; gap: 2px 10px; align-items: center; padding: 12px 4px; color: var(--pt-ink); text-decoration: none; }
.chk-pt-hlist__subject { grid-area: subject; overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.chk-pt-hlist__no { grid-area: no; color: var(--pt-muted); font-size: 13px; }
.chk-pt-hlist .chk-pt-chip { grid-area: chip; justify-self: end; }
.chk-pt-hlist__when { grid-area: when; color: var(--pt-muted); font-size: 12.5px; text-align: right; }
.chk-pd-chat .chk-pt-col .chk-pt-pop { margin-top: 10px; }
.chk-pd-chat .chk-pt-col .chk-pt-pop h2 { display: none; }
.chk-pd-chat .chk-pt-col .chk-pt-pop ul { border: 0; }
.chk-pd-chat .chk-pt-msg { max-width: 78%; border-radius: 18px; }
.chk-pd-chat .chk-pt-msg--team, .chk-pd-chat .chk-pt-msg--cc, .chk-pd-chat .chk-pt-msg--bot { background: #fff; border: 1px solid var(--pt-line); border-bottom-left-radius: 6px; }
.chk-pd-chat .chk-pt-msg--me { border-bottom-right-radius: 6px; }
.chk-pd-chat .chk-pt-thread { padding: 16px; border-radius: var(--pt-radius); background: var(--pt-bg); }
.chk-pd-chat .chk-pt-ev span { background: color-mix(in srgb, var(--pt-c) 12%, #fff); color: var(--pt-link); font-weight: 600; }

/* ---------- C. Minimal (Stripe, Linear) ---------- */
.chk-pd-minimal.chk-portal, .chk-pd-minimal .chk-portal, .chk-pd-minimal.chk-portal-page { --pt-bg: #FFFFFF; }
.chk-pd-minimal .chk-pt-top__label::before { content: '/'; margin-right: 10px; color: #c9ced6; }
.chk-pd-minimal .chk-pt-top { gap: 10px; justify-content: flex-start; }
.chk-pd-minimal .chk-pt-top .chk-pt-links { margin-left: auto; }
.chk-pt-lay { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 70vh; }
.chk-pt-side { display: none; }
@media (min-width: 860px) {
	.chk-pd-minimal .chk-pt-lay { grid-template-columns: 220px minmax(0, 1fr); }
	.chk-pd-minimal .chk-pt-side { display: grid; align-content: start; gap: 2px; padding: 24px 14px; border-right: 1px solid var(--pt-line); background: #FAFBFC; }
	.chk-pd-minimal.chk-portal--embed .chk-pt-side { border-radius: var(--pt-radius) 0 0 var(--pt-radius); }
	.chk-pd-minimal .chk-pt-lay__main .chk-pt-wrap { max-width: 860px; margin: 0; padding: 40px 48px; }
}
.chk-pt-side p { margin: 14px 10px 4px; color: var(--pt-muted); font-size: 12px; font-weight: 600; }
.chk-pt-side p:first-child { margin-top: 0; }
.chk-pt-side a { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: min(var(--pt-rb, 10px), 8px); color: var(--pt-muted); font-weight: 500; text-decoration: none; }
.chk-pt-side a:hover { background: #F1F3F6; color: var(--pt-ink); }
.chk-pt-side a[aria-current] { background: color-mix(in srgb, var(--pt-c) 12%, #fff); color: var(--pt-link); font-weight: 650; }
.chk-pd-minimal .chk-pt-card { padding: 0; border: 0; background: none; box-shadow: none; }
.chk-pd-minimal .chk-pt-lay__main h1 { font-size: 30px; letter-spacing: -.02em; }
.chk-pd-minimal .chk-pt-lead { font-size: 16px; }
.chk-pd-minimal .chk-pt-acts { margin: 6px 0 4px; }
.chk-pt-hlist--table { border: 1px solid var(--pt-line); border-radius: var(--pt-radius); }
.chk-pt-hlist--table a { grid-template-columns: 56px minmax(0, 1fr) auto auto; grid-template-areas: "no subject chip when"; padding: 12px 16px; }
.chk-pt-hlist--table .chk-pt-hlist__no { font-size: 14px; font-variant-numeric: tabular-nums; }
.chk-pt-hlist--table .chk-pt-hlist__subject { font-weight: 500; }
.chk-pt-hlist--table .chk-pt-hlist__when { min-width: 90px; }
.chk-pd-minimal .chk-pt-pop ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 28px; border: 0; background: none; }
.chk-pd-minimal .chk-pt-pop li + li { border-top: 0; }
.chk-pd-minimal .chk-pt-pop li { border-bottom: 1px solid var(--pt-line); }
.chk-pd-minimal .chk-pt-pop a { padding: 10px 0; font-weight: 500; }
.chk-pd-minimal .chk-pt-pop h2 { color: var(--pt-muted); font-size: 13px; font-family: inherit; font-weight: 600; }
.chk-pd-minimal .chk-pt-thread { gap: 22px; margin-left: 9px; padding-left: 26px; border-left: 2px solid var(--pt-line); }
.chk-pd-minimal .chk-pt-msg { position: relative; max-width: 68ch; justify-self: stretch; padding: 0; border: 0; border-radius: 0; background: none; color: var(--pt-ink); }
.chk-pd-minimal .chk-pt-msg::before { content: ''; position: absolute; left: -37px; top: 2px; width: 16px; height: 16px; border: 2px solid #c9ced6; border-radius: 50%; background: #fff; }
.chk-pd-minimal .chk-pt-msg--team::before, .chk-pd-minimal .chk-pt-msg--bot::before { border-color: var(--pt-c); background: var(--pt-c); }
.chk-pd-minimal .chk-pt-msg--me .chk-pt-msg__who, .chk-pd-minimal .chk-pt-msg--me time { color: var(--pt-muted); }
.chk-pd-minimal .chk-pt-ev { justify-self: start; }

@media (max-width: 600px) {
	.chk-pd-help .chk-pt-hero--help { padding: 32px 16px 64px; }
	.chk-pd-help .chk-pt-hero h1 { font-size: 26px; }
	.chk-pd-chat .chk-pt-hero--chat { padding: 22px 16px 88px; }
	.chk-pd-chat .chk-pt-hero h1 { font-size: 28px; }
	.chk-pt-hlist--table a { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "no subject chip"; padding: 12px; }
	.chk-pt-hlist--table .chk-pt-hlist__when { display: none; }
	.chk-pt-write .chk-pt-btn { width: 100%; }
	.chk-pt-links { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chk-pt-acc__item { transition: none; } .chk-pt-acc__item:hover { transform: none; } }

/* 0.119.0: the call of a ticket (llamada.js), on the portal and on the call link page. */
.chk-call { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--chk-pt-line, #d0d5dd); border-radius: 12px; background: var(--chk-pt-soft, #f7f8fa); }
.chk-call[hidden] { display: none; }
.chk-call__title { margin: 0 0 8px; font-weight: 600; }
.chk-call__help, .chk-call__note { margin: 6px 0 0; font-size: .9em; opacity: .85; }
.chk-call__consent { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; }
.chk-call__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chk-call__screen { display: block; width: 100%; max-height: 70vh; margin-top: 10px; border-radius: 8px; background: #000; }
.chk-pt-btn--danger { background: #b42318; border-color: #b42318; color: #fff; }
.chk-call-page { margin: 0; min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; background: var(--chk-pt-soft, #f7f8fa); font-family: system-ui, sans-serif; }
.chk-call-page__main { width: min(560px, 100% - 32px); margin: 48px 16px; }
.chk-call-page__h { font-size: 1.3rem; margin: 0 0 12px; }
.chk-call-page__box { display: block; }
.chk-call-page .chk-call { background: #fff; }
