/* Đặt trước trên trang SP (05/11/2026, sh-preorder.js) — bám kiểu trang SP sẵn có: chữ HelveticaNeue mảnh in hoa cho tiêu đề / nhãn,
   Arial cho chữ thường, viền #e2e2e2, nút đen #0f0f0f góc vuông, chữ phụ #6f6f6f. Không dùng gap / inset (Safari cũ trong app Zalo, FB). */
.sh-po-tag[hidden], .sh-po-tagline[hidden], .sh-po-hint[hidden], .sh-po-modal[hidden] { display: none !important; }
/* BH-1456 (06/11): nhãn "Sắp về" là DÒNG RIÊNG cuối khối giá — khối giá giữ y trang SP thường (giá 1 dòng, khung "Giá tạm tính" của
   khách đăng nhập rộng hết chiều ngang bên dưới); trước đây .fl-badge bị ép flex 1 hàng làm khung Giá tạm tính bị bóp hẹp. */
.sh-po-tagline { display: block; margin: 8px 0 4px; }
.sh-po-tag { display: inline-block; border: 1px solid #0f0f0f; padding: 3px 8px 2px; font: 300 11px/1.3 HelveticaNeue, sans-serif;
  text-transform: uppercase; letter-spacing: .06em; color: #0f0f0f; }
.sh-po-hint { margin: 10px 0 0; font: 400 12px/1.5 Arial, sans-serif; color: #6f6f6f; text-transform: none; }
.sh-po-hint b { font-weight: 400; color: #0f0f0f; }
#add-item-form .swatch.is-color .swatch-element label.sh-po-ctext { width: auto !important; min-width: 40px; height: 34px !important;
  padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }

.sh-po-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center; }
.sh-po-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(15, 15, 15, .45); opacity: 0; transition: opacity .2s; }
.sh-po-sheet { position: relative; box-sizing: border-box; width: 480px; max-width: calc(100% - 32px); max-height: calc(100% - 48px); overflow: auto;
  -webkit-overflow-scrolling: touch; padding: 0 24px 24px; background: #fff; color: #0f0f0f; font: 400 14px/1.5 Arial, sans-serif; text-align: left;
  opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.sh-po-modal.on .sh-po-bg { opacity: 1; }
.sh-po-modal.on .sh-po-sheet { opacity: 1; transform: none; }
.sh-po-top { position: -webkit-sticky; position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 14px; background: #fff; border-bottom: 1px solid #e2e2e2; }
.sh-po-top h3 { margin: 0; font: 300 16px/1.3 HelveticaNeue, sans-serif; text-transform: uppercase; color: #0f0f0f; }
.sh-po-x { margin: -6px; padding: 6px; background: none; border: 0; line-height: 0; cursor: pointer; }
.sh-po-item { display: flex; padding: 16px 0; border-bottom: 1px solid #e2e2e2; }
.sh-po-thumb { flex: 0 0 72px; height: 96px; margin-right: 14px; background: #f5f5f5; overflow: hidden; }
.sh-po-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh-po-name { font: 300 14px/1.4 HelveticaNeue, sans-serif; text-transform: uppercase; }
.sh-po-var { margin-top: 4px; font-size: 13px; color: #6f6f6f; }
.sh-po-price { margin-top: 6px; font: 300 14px/1.4 HelveticaNeue, sans-serif; }
.sh-po-l { display: block; margin: 16px 0 8px; font: 300 12px/1.4 HelveticaNeue, sans-serif; text-transform: uppercase; color: #0f0f0f; }
.sh-po-qty { display: inline-flex; border: 1px solid #e2e2e2; }
.sh-po-qty button { width: 32px; height: 32px; padding: 0; background: #fff; border: 0; font-size: 18px; line-height: 1; color: #0f0f0f; cursor: pointer; }
.sh-po-qty button:disabled { color: #c4c4c4; cursor: default; }
.sh-po-qty output { display: flex; align-items: center; justify-content: center; width: 40px; height: 32px; font-size: 14px;
  border-left: 1px solid #e2e2e2; border-right: 1px solid #e2e2e2; }
.sh-po-f { display: block; box-sizing: border-box; width: 100%; padding: 10px 12px; background: #fff; border: 1px solid #e2e2e2; border-radius: 0;
  font: 400 16px/1.4 Arial, sans-serif; color: #0f0f0f; -webkit-appearance: none; appearance: none; box-shadow: none; }
.sh-po-f:focus { outline: none; border-color: #0f0f0f; }
.sh-po-f::placeholder { color: #9b9b9b; }
textarea.sh-po-f { min-height: 64px; resize: vertical; }
/* Địa chỉ: số nhà + đường gõ tay, tỉnh / quận / phường chọn trong danh sách — nhãn nhỏ nằm trong ô như khung địa chỉ trang thanh toán
   (anh Dương gửi mẫu 06/11). Tỉnh 1 hàng, quận + phường chung 1 hàng; màn < 400px (đa số điện thoại) mỗi ô 1 hàng cho khỏi cắt chữ. */
.sh-po-addr-pick[hidden], .sh-po-free[hidden] { display: none !important; }
.sh-po-fl { position: relative; box-sizing: border-box; border: 1px solid #e2e2e2; background: #fff; }
.sh-po-fl:focus-within { border-color: #0f0f0f; }
.sh-po-fl label { position: absolute; top: 7px; left: 12px; right: 28px; font: 400 12px/1.2 Arial, sans-serif; color: #8a8a8a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.sh-po-fl input, .sh-po-fl select { display: block; box-sizing: border-box; width: 100%; height: 50px; margin: 0; padding: 21px 12px 5px;
  background: transparent; border: 0; border-radius: 0; font: 400 16px/1.3 Arial, sans-serif; color: #0f0f0f; box-shadow: none;
  -webkit-appearance: none; appearance: none; }
.sh-po-fl input:focus, .sh-po-fl select:focus { outline: none; }
.sh-po-fl input::placeholder { color: #b5b5b5; }
.sh-po-fl select { padding-right: 28px; text-overflow: ellipsis; cursor: pointer; }
.sh-po-fl select:disabled { color: #b5b5b5; cursor: default; opacity: 1; }
.sh-po-dd:after { content: ''; position: absolute; top: 50%; right: 13px; width: 6px; height: 6px; margin-top: -2px;
  border-right: 1px solid #6f6f6f; border-bottom: 1px solid #6f6f6f; -webkit-transform: rotate(45deg); transform: rotate(45deg); pointer-events: none; }
.sh-po-loc { display: flex; flex-wrap: wrap; margin: 8px -4px 0; }
.sh-po-loc .sh-po-fl { flex: 1 1 0; min-width: 0; margin: 0 4px; }
.sh-po-loc .sh-po-fl:first-child { flex: 1 1 100%; margin-bottom: 8px; }
@media (max-width: 399px) {
  .sh-po-loc .sh-po-fl { flex: 1 1 100%; }
  .sh-po-loc .sh-po-fl + .sh-po-fl + .sh-po-fl { margin-top: 8px; }
}
.sh-po-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sh-po-note { margin: 18px 0 0; padding: 12px 14px; background: #f7f7f7; font-size: 13px; line-height: 1.6; color: #6f6f6f; }
.sh-po-note b { font-weight: 400; color: #0f0f0f; }
.sh-po-err { margin: 12px 0 0; font-size: 13px; color: #c62828; }
.sh-po-go { display: block; width: 100%; height: 48px; margin-top: 18px; padding: 0 12px; background: #0f0f0f; border: 0; border-radius: 0;
  font: 400 16px/1 Arial, sans-serif; text-transform: uppercase; color: #fff; cursor: pointer; }
.sh-po-go:disabled { opacity: .6; cursor: default; }
.sh-po-done { padding: 28px 0 0; text-align: center; }
.sh-po-ok { display: flex; flex-direction: column; align-items: center; font: 300 16px/1.3 HelveticaNeue, sans-serif; text-transform: uppercase; }
.sh-po-ok svg { margin-bottom: 12px; }
.sh-po-sum { margin: 14px 0 6px; font: 300 14px/1.5 HelveticaNeue, sans-serif; }
.sh-po-done p { margin: 8px 0 0; }
html.sh-po-lock, html.sh-po-lock body { overflow: hidden; }
@media (max-width: 767px) {
  .sh-po-modal { align-items: flex-end; }
  .sh-po-sheet { width: 100%; max-width: 100%; max-height: 92%; padding: 0 16px 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateY(40px); }
}
