/* Derma Clinic – trang con: bảng giá, trước – sau, đặt lịch, giới thiệu, liên hệ, kiến thức, bài, 404, chính sách. */

.woocommerce-breadcrumb { font-size: 13.5px; margin-bottom: 14px; }
.woocommerce-breadcrumb a:hover { color: var(--dl-accent); }

/* ---------- Bảng giá ---------- */
.tmc-price { padding-top: 40px; }
.tmc-price__in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.tmc-price__nav { position: sticky; top: calc(var(--dl-hh) + 20px); min-width: 0; border: 1px solid var(--dl-line); background: #fff; }
.tmc-price__nav-t { margin: 0; padding: 10px 16px; background: var(--dl-ink); color: #fff; font: 600 12.5px/1.4 var(--dl-font-head); letter-spacing: .1em; text-transform: uppercase; }
.tmc-price__tabs { display: grid; }
.tmc-price__tabs button { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--tmc-hair); background: #fff; text-align: left; cursor: pointer; font: 500 15px/1.4 var(--dl-font-head); color: var(--dl-ink); }
.tmc-price__tabs button > span:first-child { font-size: 12.5px; color: var(--dl-muted); }
.tmc-price__tabs button small { font-size: 12.5px; color: var(--dl-muted); }
.tmc-price__tabs button:hover { background: var(--dl-surface); }
.tmc-price__tabs button[aria-selected="true"] { background: var(--dl-surface); color: var(--dl-accent); box-shadow: inset 3px 0 0 var(--dl-accent); font-weight: 600; }
.tmc-price__help { padding: 14px 16px 16px; font-size: 14px; color: var(--dl-muted); }
.tmc-price__help b { color: var(--dl-ink); }
.tmc-price__help p { margin: 4px 0 8px; }
.tmc-price__body { min-width: 0; }
.tmc-pgroup { margin-bottom: 36px; border: 1px solid var(--dl-line); background: #fff; }
.tmc-pgroup__head { position: relative; padding: 18px 20px 16px; border-bottom: 1px solid var(--dl-line); background: var(--dl-surface); }
.tmc-pgroup__code { position: absolute; top: 18px; right: 20px; font: 600 12.5px/1.4 var(--dl-font-head); letter-spacing: .08em; color: var(--dl-muted); }
.tmc-pgroup__title { display: flex; align-items: center; gap: 10px; margin: 0; padding-right: 60px; font-size: 22px; }
.tmc-pgroup__title .dl-ic { color: var(--dl-accent); }
.tmc-pgroup__desc { margin: 6px 0 0; font-size: 14.5px; color: var(--dl-muted); max-width: 720px; }
.tmc-table--price th { background: #fbfdfe; }
.tmc-price__note { margin-top: 8px; font-size: 15px; color: var(--dl-muted); }
.tmc-price__dx { margin-top: 64px; }
@media (max-width: 960px) {
	.tmc-price__in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.tmc-price__nav { position: static; border: 0; background: none; }
	.tmc-price__nav-t, .tmc-price__help { display: none; }
	.tmc-price__tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
	.tmc-price__tabs button { flex: 0 0 auto; grid-template-columns: auto auto auto; border: 1px solid var(--dl-line); font-size: 14px; padding: 9px 12px; }
	.tmc-price__tabs button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--dl-accent); }
}
@media (max-width: 480px) { .tmc-pgroup__head { padding: 16px 14px 14px; } .tmc-pgroup__title { font-size: 19px; } .tmc-pgroup__code { top: 16px; right: 14px; } }

/* Bảng giá dự phòng (dl_service_board) – khi không có nhóm */
.dl-svc__tabs button { border-radius: 0; border-width: 1px; }
.dl-svc__tabs button[aria-selected="true"] { background: var(--dl-accent); border-color: var(--dl-accent); color: #fff; }
.dl-svc__book { border-radius: 0; border-width: 1px; }

/* ---------- Trước – sau ---------- */
.tmc-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 32px; border: 1px solid var(--dl-line); background: #fff; }
.tmc-summary > div { min-width: 0; padding: 16px 20px; }
.tmc-summary > div + div { border-left: 1px solid var(--dl-line); }
.tmc-summary dt { font-size: 13px; color: var(--dl-muted); }
.tmc-summary dd { margin: 4px 0 0; font: 600 28px/1.25 var(--dl-font-head); color: var(--dl-accent); }
.tmc-summary > div:last-child dd { font-size: 16px; color: var(--dl-ink); padding-top: 8px; }
@media (max-width: 760px) { .tmc-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tmc-summary > div:nth-child(3) { border-left: 0; } .tmc-summary > div:nth-child(n+3) { border-top: 1px solid var(--dl-line); } .tmc-summary > div { padding: 14px; } }
.dl-chip, button.dl-chip { border-radius: 0; border-width: 1px; font-family: var(--dl-font-head); font-weight: 500; }
.dl-chip.is-active { background: var(--dl-accent); border-color: var(--dl-accent); color: #fff; }
.tmc-cases__grid { gap: 20px; }
.tmc-case { display: flex; flex-direction: column; border: 1px solid var(--dl-line); background: #fff; }
.tmc-case__bar { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 14px; border-bottom: 1px solid var(--dl-line); font: 600 12px/1.4 var(--dl-font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--dl-muted); }
.tmc-case__bar .tmc-num { color: var(--dl-accent); }
.tmc-case .dl-case__body { padding: 14px 16px 16px; }
.tmc-case .dl-case__title { font-size: 18px; }
.tmc-case .dl-case__result .dl-ic { color: var(--dl-ok); }
.tmc-case .dl-case__story { font-size: 14.5px; margin: 0; }
.dl-cases-page__note .dl-ic { color: var(--dl-accent); }

/* Lưới ca mặc định (dl_cases_grid ở trang khác) */
.dl-case { min-width: 0; }

/* ---------- Đặt lịch ---------- */
.dl-booking-page { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; padding-top: 36px; }
.dl-booking-page__form { position: relative; padding: 0; border: 1px solid var(--dl-line); border-radius: 0; background: #fff; }
.dl-booking-page__form::before { content: "Phiếu hẹn khám · PH-02"; display: block; padding: 10px 24px; background: var(--dl-accent); color: #fff; font: 600 12.5px/1.4 var(--dl-font-head); letter-spacing: .1em; text-transform: uppercase; }
.dl-booking-page__form > .an-bk, .dl-booking-page__form > .an-bk-ok, .dl-booking-page__form > .dl-booking-fallback { margin: 24px; }
.dl-booking-page__form > .an-bk-ok { margin: 24px; }
.dl-booking-page .an-bk > button[type="submit"] { min-width: 240px; min-height: 50px; }
.dl-booking-page__info { padding: 0; border: 1px solid var(--dl-line); background: var(--dl-surface); }
.dl-booking-page__info .dl-steps--mini { gap: 0; margin: 0; }
.dl-booking-page__info .dl-steps--mini .dl-step { padding: 16px 18px; border: 0; border-bottom: 1px solid var(--dl-line); border-radius: 0; background: transparent; }
.dl-booking-page__info .dl-steps--mini .dl-step__no { border-radius: 0; flex-basis: 32px; height: 32px; font-size: 14px; background: var(--dl-accent); }
.dl-booking-page__info .dl-contact-lines { margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--dl-line); font-size: 15px; }
.dl-booking-page__info .dl-contact-lines .dl-ic { color: var(--dl-accent); }
.dl-booking-page__info .dl-prose { padding: 16px 18px 4px; font-size: 14.5px; }
@media (max-width: 900px) { .dl-booking-page { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
	.dl-booking-page__form::before { padding: 10px 16px; }
	.dl-booking-page__form > .an-bk, .dl-booking-page__form > .an-bk-ok, .dl-booking-page__form > .dl-booking-fallback { margin: 16px; }
	.dl-booking-page .an-bk > button[type="submit"] { width: 100%; min-width: 0; }
	.an-slot span { min-width: 0; width: 100%; }
	.an-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Giới thiệu ---------- */
.dl-about { padding-top: 40px; }
.dl-about__intro { gap: 40px; margin-bottom: 56px; }
.dl-about__intro .dl-prose { border-top: 2px solid var(--dl-ink); padding-top: 18px; }
.dl-about__imgs { gap: 8px; }
.dl-about__imgs img { border-radius: 0; border: 1px solid var(--dl-line); }
.dl-about__team { padding-top: 8px; }

/* ---------- Liên hệ ---------- */
.dl-contact { padding-top: 36px; }
.dl-contact__cards { gap: 0; border-top: 1px solid var(--dl-line); border-left: 1px solid var(--dl-line); }
.dl-qcard { border: 0; border-right: 1px solid var(--dl-line); border-bottom: 1px solid var(--dl-line); border-radius: 0; padding: 18px 20px; background: #fff; transition: background .15s; }
a.dl-qcard:hover { background: var(--dl-surface); }
.dl-qcard b { font-family: var(--dl-font-head); font-weight: 600; }
.dl-contact__main h2 { font-size: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--dl-line); }
.dl-form label { font: 600 13px/1.4 var(--dl-font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--dl-muted); }
.dl-notice { border-radius: 0; }
.dl-faq { margin-top: 56px; max-width: 860px; border-top: 2px solid var(--dl-ink); }
.dl-faq h2 { margin-top: 18px; }
.dl-faq details { padding: 0; border-bottom: 1px solid var(--dl-line); }
.dl-faq summary { position: relative; list-style: none; padding: 16px 40px 16px 0; font: 600 16.5px/1.45 var(--dl-font-head); }
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--dl-line); color: var(--dl-accent); font-weight: 600; }
.dl-faq details[open] summary::after { content: "–"; background: var(--dl-accent); color: #fff; border-color: var(--dl-accent); }
.dl-faq details > *:not(summary) { margin: 0 0 16px; color: var(--dl-muted); }
@media (max-width: 480px) { .dl-contact__cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Kiến thức + bài ---------- */
.dl-posts { gap: 0; border-top: 1px solid var(--dl-line); border-left: 1px solid var(--dl-line); }
.dl-post-card { border-right: 1px solid var(--dl-line); border-bottom: 1px solid var(--dl-line); background: #fff; }
.dl-post-card__img img { border-radius: 0; }
.dl-post-card__body { padding: 14px 18px 18px; }
.dl-post-card__meta { font-family: var(--dl-font-head); letter-spacing: .04em; }
.dl-post-card__title { font-size: 18px; }
.dl-post-card__title a:hover { color: var(--dl-accent); }
.dl-pagination .page-numbers, .woocommerce-pagination .page-numbers { border-radius: 0; }
.dl-pagination .current { background: var(--dl-accent) !important; }
.dl-post-hero img { border-radius: 0; border: 1px solid var(--dl-line); }
.dl-prose { line-height: 1.75; }
.dl-prose h2, .dl-prose h3 { margin-top: 1.5em; }
.dl-prose h2 { padding-bottom: 8px; border-bottom: 1px solid var(--dl-line); }
.dl-prose a { color: var(--dl-accent); }
.dl-prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--dl-accent); background: var(--dl-surface); }
.dl-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dl-prose th, .dl-prose td { padding: 9px 12px; border: 1px solid var(--dl-line); text-align: left; }
.dl-prose th { background: var(--dl-surface); }

/* ---------- 404 ---------- */
.tmc-404 { padding-top: 64px; }
.tmc-404__card { max-width: 640px; margin: 0 auto; border: 1px solid var(--dl-line); background: #fff; text-align: left; }
.tmc-404__bar { display: flex; justify-content: space-between; margin: 0; padding: 10px 22px; background: var(--dl-ink); color: #fff; font: 600 12.5px/1.4 var(--dl-font-head); letter-spacing: .1em; text-transform: uppercase; }
.tmc-404__card h1 { margin: 22px 22px 8px; font-size: clamp(26px, 3.4vw, 36px); }
.tmc-404__card > p:not(.tmc-404__bar) { margin: 0 22px 18px; color: var(--dl-muted); }
.tmc-404__act { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 6px; }
@media (max-width: 480px) { .tmc-404__act .dl-btn { flex: 1 1 100%; } }
