/* OtoPro: bổ sung nhỏ cho các trang không có trong theme gốc (khuyến mãi, bán xe, đặt cọc) */
.oto-promos{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px;margin-top:24px}
.oto-promo{overflow:hidden;display:flex;flex-direction:column;padding:0}
.oto-promo img{width:100%;aspect-ratio:16/9;object-fit:cover}
.oto-promo__body{padding:20px;display:flex;flex-direction:column;gap:10px}
.oto-promo__body h2{margin:0;font-size:1.15rem}
.oto-promo__badge{display:inline-block;align-self:flex-start;background:var(--color-badge,#f1f5ff);color:var(--color-primary);font-weight:700;font-size:.85rem;padding:4px 10px;border-radius:999px}
.oto-promo__date{color:var(--color-text-muted);font-size:.9rem;margin:0}
.oto-sell{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;margin-top:12px}
.oto-sell__steps{list-style:none;padding:0;display:grid;gap:10px}
.oto-sell__form{padding:24px}
.dtl-badge--deposit,.oto-deposit{background:var(--color-accent,#ffb800);color:#111}
@media(max-width:860px){.oto-sell{grid-template-columns:1fr}}
/* Lớp ẩn chuẩn của WordPress (theme dùng cho link "Bỏ qua đến nội dung") */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:#fff;clip:auto!important;clip-path:none;color:#111;display:block;height:auto;left:8px;padding:12px 18px;top:8px;width:auto;z-index:100000}
.oto-carpromo{margin:12px 0 4px;padding:12px 14px;border:1px dashed var(--color-primary);border-radius:var(--radius-md,12px);background:var(--color-badge,#f1f5ff)}
.oto-carpromo__final{margin:0 0 8px;font-size:1rem}.oto-carpromo__final strong{color:var(--color-primary);font-size:1.15rem}
.oto-carpromo__title{display:flex;align-items:center;gap:6px;margin:0 0 6px;font-weight:700;color:var(--color-primary)}
.oto-carpromo ul{margin:0;padding:0;list-style:none;display:grid;gap:6px}.oto-carpromo li{display:flex;flex-direction:column;font-size:.92rem}
.oto-carpromo li a{font-weight:600;color:inherit}.oto-carpromo li span{color:var(--color-text-muted);font-size:.85rem}
.oto-relposts__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.oto-relpost{display:flex;flex-direction:column;gap:8px;color:inherit;font-weight:600;line-height:1.35}
.oto-relpost img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--radius-md,12px)}
.oto-relpost:hover span{color:var(--color-primary)}
/* Banner đồng ý cookie (§25.3) */
.oto-consent{position:fixed;left:12px;right:12px;bottom:12px;z-index:9999;max-width:560px;margin:0 auto;background:#111827;color:#fff;border-radius:14px;padding:14px 16px;display:flex;gap:12px;align-items:center;box-shadow:0 10px 30px rgba(0,0,0,.3);font-size:.9rem;line-height:1.4}
.oto-consent p{margin:0;flex:1}
.oto-consent div{display:flex;gap:8px;flex-shrink:0}
.oto-consent button{border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;border-radius:999px;padding:7px 14px;font-weight:600;cursor:pointer}
.oto-consent button.is-primary{background:var(--color-primary,#2563eb);border-color:transparent}
.dtl-has-actionbar .oto-consent{bottom:84px}
@media(max-width:520px){.oto-consent{flex-direction:column;align-items:stretch}.oto-consent div{justify-content:flex-end}}
/* Menu mặc định của OtoPro nhiều mục hơn ảnh mẫu → giữ nút & mục menu trên một dòng, thu khoảng cách khi màn hẹp */
.dtl-hd__cta, .dtl-hd a, .dtl-hd .menu > li > a { white-space: nowrap; }
@media (max-width: 1360px) { .dtl-hd .menu { gap: 2px; } .dtl-hd .menu > li > a { padding-left: 9px; padding-right: 9px; } }
@media (max-width: 1180px) { .dtl-hd__phone, .dtl-hd [class*="hotline"] { display: none; } }
/* Khẩu hiệu dài (lấy từ hồ sơ người bán) → một dòng, cắt "…" thay vì tràn mép */
.dtl-hd__brand { min-width: 0; max-width: 100%; }
.dtl-hd__tagline { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
@media (max-width: 760px) { .dtl-hd__tagline { max-width: calc(100vw - 110px); } }

/* Nội dung soạn trong trình soạn thảo OtoPro: ảnh, video YouTube, bảng, căn lề */
.entry-content img, .dtl-prose img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content iframe, .dtl-prose iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; margin: 16px 0; }
.entry-content table, .dtl-prose table { width: 100%; border-collapse: collapse; margin: 16px 0; display: block; overflow-x: auto; }
.entry-content th, .entry-content td, .dtl-prose th, .dtl-prose td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; vertical-align: top; }
.entry-content th, .dtl-prose th { background: #f8fafc; font-weight: 600; }
.entry-content blockquote, .dtl-prose blockquote { border-left: 4px solid currentColor; margin: 16px 0; padding: 4px 0 4px 16px; opacity: .85; }
.entry-content hr, .dtl-prose hr { border: 0; border-top: 1px solid #e2e8f0; margin: 24px 0; }
.entry-content mark, .dtl-prose mark { background: #fef08a; padding: 0 2px; }
