/* Gian chính thức của Chiaki (#7d3e6fd2). Chỉ nạp khi Store::isChiakiOfficial() đúng;
   dùng chung desktop / mobile / tablet, KHÔNG nằm trong build min.css. Màu lấy biến có sẵn (--primary, --white, --dark, --silver). */

/* ---- Khối đầu trang gian ---- */
.chiaki-official-wrap {
    margin-top: 16px;
    margin-bottom: 16px;
}

.chiaki-official-box {
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 16px 20px;
    color: var(--dark);
}

.chiaki-official-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chiaki-official-logo {
    flex: 0 0 auto;
    width: 152px;
    height: auto;
}

.chiaki-official-head-text {
    min-width: 0;
}

.chiaki-official-title {
    margin: 0 0 4px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--primary);
}

.chiaki-official-intro {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.chiaki-official-commits {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.chiaki-official-commit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.chiaki-official-commits .chiaki-official-commit svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.chiaki-official-rating {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--silver);
}

/* Mobile (bản mobile và màn hẹp): xếp dọc, chữ vẫn >= 13px */
.chiaki-official-wrap.is-mobile {
    margin: 12px;
}

.chiaki-official-wrap.is-mobile .chiaki-official-box {
    padding: 12px;
}

.chiaki-official-wrap.is-mobile .chiaki-official-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.chiaki-official-wrap.is-mobile .chiaki-official-logo {
    width: 120px;
}

.chiaki-official-wrap.is-mobile .chiaki-official-title {
    font-size: 16px;
}

.chiaki-official-wrap.is-mobile .chiaki-official-intro {
    font-size: 14px;
}

.chiaki-official-wrap.is-mobile .chiaki-official-commits {
    flex-direction: column;
    gap: 6px;
}

.chiaki-official-wrap.is-mobile .chiaki-official-commit {
    font-size: 14px;
}

.chiaki-official-wrap.is-mobile .chiaki-official-rating {
    font-size: 13px;
}

/* ---- Khối người bán ở trang sản phẩm ---- */
/* Không đặt overflow:hidden: nhãn "Yêu thích"/"Chiaki Mall" treo dưới avatar sẽ bị cắt. */
.chiaki-official-avatar {
    border-color: var(--primary);
}

.chiaki-official-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chiaki-official-seller {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.chiaki-official-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    white-space: nowrap;
}

/* Mobile có luật ".store-info .text svg" tô vàng icon: tăng độ ưu tiên để giữ chữ trắng. */
.chiaki-official-seller .chiaki-official-badge svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    color: var(--white);
}

.chiaki-official-seller-line {
    font-size: 13px;
    line-height: 1.4;
    color: var(--dark);
}
