/* AppNho Địa chỉ Việt Nam */
.appnho-vn-hidden { display: none !important; }
.appnho-vn-hidden-input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.appnho-vn-select { width: 100%; }

/* Chọn kiểu địa chỉ: 2 nút */
.appnho-vn-mode .woocommerce-input-wrapper { display: flex; flex-wrap: wrap; gap: 8px; }
.appnho-vn-mode input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.appnho-vn-mode label.radio { flex: 1 1 200px; display: flex; align-items: center; justify-content: center; text-align: center; margin: 0 !important; padding: 10px 12px; min-height: 44px; border: 1px solid #d4d4d8; border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; line-height: 1.3; transition: border-color .15s, background .15s; }
.appnho-vn-mode input[type=radio]:checked + label.radio { border-color: #8b5cf6; background: #f5f3ff; color: #4c1d95; font-weight: 600; box-shadow: 0 0 0 1px #8b5cf6 inset; }
.appnho-vn-mode input[type=radio]:focus-visible + label.radio { outline: 2px solid #8b5cf6; outline-offset: 2px; }
.appnho-vn-mode.is-loading { opacity: .6; pointer-events: none; }
.appnho-vn-mode > label:first-child { display: block; margin-bottom: 6px; }

/* Tìm nhanh */
.appnho-vn-search-row { position: relative; display: flex; flex-wrap: wrap; }
.appnho-vn-search-row > * { flex: 1 1 100%; width: 100%; }
.appnho-vn-search { display: block; position: relative; }
.appnho-vn-search input[type=search] { width: 100% !important; max-width: none !important; box-sizing: border-box; padding-left: 36px !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 10px center; }
.appnho-vn-suggest { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid #e4e4e7; border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .16); max-height: 320px; overflow-y: auto; }
.appnho-vn-suggest li { display: flex; flex-direction: column; gap: 1px; padding: 9px 10px; border-radius: 7px; cursor: pointer; line-height: 1.3; text-align: left; }
.appnho-vn-suggest li b { font-weight: 600; color: #18181b; }
.appnho-vn-suggest li span { font-size: 12.5px; color: #71717a; }
.appnho-vn-suggest li.is-active, .appnho-vn-suggest li:hover { background: #f5f3ff; }
.appnho-vn-suggest li.is-empty { cursor: default; color: #71717a; font-size: 13px; }
.appnho-vn-hint { display: block; margin-top: 4px; font-size: 12px; color: #71717a; }
.appnho-vn-search-row:not(.is-ready) .appnho-vn-hint::after { content: " Đang tải danh sách…"; }

@media (max-width: 480px) {
	.appnho-vn-search input[type=search], .appnho-vn-select { font-size: 16px; } /* iPhone không tự phóng to */
	.appnho-vn-mode label.radio { flex-basis: 100%; }
}

.appnho-vn-mode > label:first-child .required, .appnho-vn-mode label.radio .required, .appnho-vn-mode label.radio .optional { display: none; }
