/* Technolab Market (usa os botões, campos e avisos da agenda) */
.tl-market { max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 32px); padding-bottom: 120px; }
.tl-market > .tl-account { max-width: 1000px; margin-inline: auto; }

/* Barra de categorias e filtros */
.tl-mk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tl-mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-mk-chip { padding: 8px 16px; border: 1px solid var(--tl-border); border-radius: 999px; color: inherit !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.tl-mk-chip:hover { border-color: rgba(255, 255, 255, .4); }
.tl-mk-chip.is-on { border-color: var(--tl-primary); background: var(--tl-primary); color: #fff !important; }
.tl-mk-filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tl-mk-filtros input[type="search"] { flex: 1 1 260px; min-width: 0; padding: 10px 16px; border: 1px solid var(--tl-border); border-radius: 999px; background: transparent; color: inherit; font: inherit; }
.tl-mk-filtros select { min-width: 170px; padding: 10px 14px; border: 1px solid var(--tl-border); border-radius: 999px; background: var(--tl-bg-soft); color: inherit; font: inherit; }

/* Vitrine */
.tl-mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tl-mk-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--tl-border); border-radius: var(--tl-radius); background: var(--tl-bg-soft); transition: border-color .15s ease, transform .15s ease; }
.tl-mk-card:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.tl-mk-card__foto { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; }
.tl-mk-card__foto img { width: 100%; height: 100%; padding: 10px; object-fit: contain; box-sizing: border-box; }
.tl-mk-card__body { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 12px 14px; color: inherit !important; text-decoration: none !important; }
.tl-mk-card__preco { font-size: 20px; font-weight: 900; }
.tl-mk-card__titulo { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; font-weight: 600; line-height: 1.3; }

/* Etiqueta do tipo */
.tl-mk-tipo { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 6px; background: var(--tl-primary); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tl-mk-tipo--procuro { background: #0f6e56; }
.tl-mk-tipo--troco { background: #854f0b; }
.tl-mk-tipo--vaga { background: #993556; }

/* Quem anunciou */
.tl-mk-who { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--tl-border); color: inherit !important; text-decoration: none !important; }
a.tl-mk-who:hover { background: rgba(255, 255, 255, .04); }
.tl-mk-who__foto { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; overflow: hidden; border-radius: 50%; background: rgba(255, 255, 255, .1); font-weight: 800; }
.tl-mk-who__foto img { width: 100%; height: 100%; object-fit: cover; }
.tl-mk-who__txt { display: flex; flex-direction: column; min-width: 0; }
.tl-mk-who__txt strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tl-mk-who__txt span { color: var(--tl-muted); font-size: 12px; }
.tl-mk-who.has-cred .tl-mk-who__txt span { color: #ef9f27; }
.tl-mk-who--big { margin: 18px 0; padding: 12px 14px; border: 1px solid var(--tl-border); border-radius: var(--tl-radius); }
.tl-mk-who--big .tl-mk-who__foto { width: 48px; height: 48px; }
.tl-mk-who--big .tl-mk-who__txt strong { font-size: 16px; }
.tl-mk-who--big .tl-mk-who__txt span { font-size: 13px; }

/* Produtos oficiais (loja antiga, quando tiver estoque) */
.tl-mk-oficial { margin: 0 0 28px; padding: 16px 18px; border: 1px solid var(--tl-primary); border-radius: var(--tl-radius); background: rgba(130, 36, 227, .1); }
.tl-mk-oficial__h { margin: 0 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tl-mk-oficial__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tl-mk-oficial__item { display: flex; align-items: center; gap: 10px; color: inherit !important; text-decoration: none !important; }
.tl-mk-oficial__item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.tl-mk-oficial__item > span { display: flex; flex-direction: column; }

.tl-mk-pages { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.tl-mk-aviso { margin-top: 28px; color: var(--tl-muted); }
.tl-mk-aviso a { color: var(--tl-primary); }
.tl-mk-regras { margin-top: 14px; padding: 14px 18px; border: 1px solid var(--tl-border); border-radius: var(--tl-radius); }
.tl-mk-regras summary { cursor: pointer; font-weight: 700; }
.tl-mk-regras ul { margin: 12px 0 0 18px; line-height: 1.6; }

/* Página do anúncio */
.tl-mk-voltar { margin: 0 0 16px; }
.tl-mk-voltar a { color: var(--tl-muted); font-weight: 600; text-decoration: none; }
.tl-mk-single { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.tl-mk-galeria__main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--tl-radius); background: #fff; }
.tl-mk-galeria__main img { width: 100%; height: 100%; padding: 16px; object-fit: contain; box-sizing: border-box; }
.tl-mk-galeria__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.tl-mk-galeria__thumbs button { width: 72px; height: 72px; padding: 4px; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: #fff; cursor: pointer; opacity: .65; }
.tl-mk-galeria__thumbs button.is-on { border-color: var(--tl-primary); opacity: 1; }
.tl-mk-galeria__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.tl-mk-info__titulo { margin: 4px 0 6px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; line-height: 1.1; }
.tl-mk-info__preco { margin: 0; font-size: 28px; font-weight: 900; color: var(--tl-primary); }
.tl-mk-info__acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tl-mk-info__desc { line-height: 1.6; }
.tl-mk-denuncia { margin-top: 18px; }
.tl-mk-denuncia summary { cursor: pointer; color: var(--tl-muted); font-size: 13px; }
.tl-mk-denuncia form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tl-mk-denuncia select { padding: 8px 12px; border: 1px solid var(--tl-border); border-radius: 999px; background: var(--tl-bg-soft); color: inherit; }

/* Formulário */
.tl-mk-form { max-width: 820px; margin-inline: auto; }
.tl-mk-form__fotos { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.tl-mk-form__fotos label { display: flex; flex-direction: column; gap: 4px; }
.tl-mk-form__fotos img { width: 96px; height: 96px; padding: 4px; border-radius: 8px; background: #fff; object-fit: contain; box-sizing: border-box; }
.tl-mk-form__aceite { display: block; margin: 0 0 16px; }
.tl-mk-form + .tl-mk-regras, .tl-mk-login { max-width: 820px; margin-inline: auto; }

/* Meus anúncios */
.tl-mk-meus { display: flex; flex-direction: column; gap: 10px; }
.tl-mk-meus__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--tl-border); border-radius: var(--tl-radius); background: var(--tl-bg-soft); }
.tl-mk-meus__foto { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 8px; background: #fff; }
.tl-mk-meus__foto img { width: 100%; height: 100%; padding: 4px; object-fit: contain; box-sizing: border-box; }
.tl-mk-meus__txt { display: flex; flex: 1 1 200px; flex-direction: column; gap: 2px; min-width: 0; }
.tl-mk-meus__txt a { color: inherit; text-decoration: none; }
.tl-mk-meus__acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-mk-meus__acoes form { margin: 0; }

@media (max-width: 860px) {
	.tl-mk-single { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.tl-mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tl-mk-card__preco { font-size: 17px; }
	.tl-mk-card__titulo { font-size: 14px; }
	.tl-mk-who { padding: 8px 10px; }
	.tl-mk-who__foto { width: 26px; height: 26px; }
	.tl-mk-bar .tl-btn { width: 100%; }
	.tl-mk-filtros select { flex: 1 1 45%; min-width: 0; }
	.tl-mk-info__acoes .tl-btn { flex: 1 1 100%; }
}

/* Página do anúncio: preço, mensagem e ações de quem anunciou */
.tl-mk-info__preco { margin-top: 0; }
.tl-mk-msg { margin: 0 0 24px; padding: 18px; border: 1px solid var(--tl-border); border-radius: var(--tl-radius); background: var(--tl-bg-soft); }
.tl-mk-msg[hidden] { display: none; }
.tl-mk-msg textarea { width: 100%; }
.tl-mk-info__dono { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--tl-border); }
.tl-mk-voltar { margin-top: 8px; }

/* Mensagens */
.tl-mk-msgs__nav { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-mk-msgs { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.tl-mk-msgs__row { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 1px solid var(--tl-border); border-radius: var(--tl-radius); background: var(--tl-bg-soft); color: inherit !important; text-decoration: none !important; }
.tl-mk-msgs__row:hover { border-color: rgba(255, 255, 255, .3); }
.tl-mk-msgs__row.is-nova { border-color: var(--tl-primary); }
.tl-mk-msgs__foto { display: inline-flex; flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 8px; background: #fff; }
.tl-mk-msgs__foto img { width: 100%; height: 100%; padding: 3px; object-fit: contain; box-sizing: border-box; }
.tl-mk-msgs__txt { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.tl-mk-msgs__txt strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-mk-msgs__ultima { overflow: hidden; color: rgba(255, 255, 255, .75); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.tl-mk-msgs__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tl-primary); }
.tl-mk-chat { max-width: 860px; }
.tl-mk-chat__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--tl-border); border-radius: var(--tl-radius) var(--tl-radius) 0 0; background: var(--tl-bg-soft); }
.tl-mk-chat__head p { margin: 0; }
.tl-mk-chat__anuncio { display: flex; align-items: center; gap: 12px; color: inherit !important; text-decoration: none !important; }
.tl-mk-chat__anuncio > span:last-child { display: flex; flex-direction: column; }
.tl-mk-chat__msgs { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 18px 14px; border: 1px solid var(--tl-border); border-top: 0; }
.tl-mk-chat__msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 80%; }
.tl-mk-chat__msg.is-minha { align-self: flex-end; align-items: flex-end; }
.tl-mk-chat__balao { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .08); line-height: 1.45; word-break: break-word; }
.tl-mk-chat__msg.is-minha .tl-mk-chat__balao { border-radius: 16px 16px 4px 16px; background: var(--tl-primary); color: #fff; }
.tl-mk-chat__hora { margin-top: 3px; color: var(--tl-muted); font-size: 11px; }
.tl-mk-chat__form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border: 1px solid var(--tl-border); border-top: 0; border-radius: 0 0 var(--tl-radius) var(--tl-radius); }
.tl-mk-chat__form textarea { flex: 1; min-height: 46px; padding: 10px 14px; border: 1px solid var(--tl-border); border-radius: 14px; background: transparent; color: inherit; font: inherit; resize: vertical; }
.tl-mk-chat__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; color: var(--tl-muted); }
.tl-mk-chat__acoes span { flex: 1 1 260px; }
.tl-mk-chat__acoes form { margin: 0; }
.tl-mk-chat .tl-notice { margin: 0; border-radius: 0 0 var(--tl-radius) var(--tl-radius); }
@media (max-width: 640px) {
	.tl-mk-chat__msg { max-width: 90%; }
	.tl-mk-chat__msgs { max-height: 55vh; }
}

/* Descrição do anúncio: espaço entre os parágrafos (o tema zera a margem dos <p>) */
.tl-mk-info__desc p { margin: 0 0 1em; }
.tl-mk-info__desc p:last-child { margin-bottom: 0; }
