/* Preview /ipad kiểu /mac — chỉ bổ sung bố cục ảnh + nút; tile/chip/cấu hình dùng mm-mac-dong-may.css */
.mmd.mmd-ipad{max-width:none;width:100%;margin:0;padding:18px 20px 80px;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Arial,sans-serif;color:#1d1d1f;-webkit-font-smoothing:antialiased}
@media (max-width:767.98px){.mmd.mmd-ipad{padding:10px 12px 96px}}
.mmd-ipad-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px 48px;align-items:start;margin-top:8px}
@media (max-width:899.98px){.mmd-ipad-grid{grid-template-columns:1fr;gap:8px}}
.mmd-ipad-media{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-height:280px}
.mmd-ipad-media img.product-main-img{max-width:100%;max-height:420px;width:auto;height:auto;object-fit:contain;display:block}
@media (max-width:899.98px){.mmd-ipad-media img.product-main-img{max-height:260px}}
.mmd-ipad-buy{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 8px}
.mmd-ipad-buy .mmd-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:12px;font-size:17px;font-weight:600;text-decoration:none;border:0;cursor:pointer}
.mmd-ipad-buy .mmd-btn-blue{background:#0071e3;color:#fff}
.mmd-ipad-buy .mmd-btn-blue:hover{background:#0077ed;color:#fff}
.mmd-ipad-buy .mmd-btn-ghost{background:#f5f5f7;color:#1d1d1f}
.mmd .mmd-product .as-configuration-maintitle{font-size:28px;font-weight:600;letter-spacing:-.02em;margin:8px 0 4px;line-height:1.2}
.mmd .mmd-product .as-price-now{font-size:28px;font-weight:700;color:#f56300;display:inline-block;padding-top:6px}
.mmd-ipad .mmd-g-war{order:50;margin-top:22px}
.mmd-ipad .mmd-g-war .as-optionselector-legend{display:block;font-size:18px;font-weight:600;margin:0 0 8px;padding:0;border:0}
.mmd-ipad .mmd-g-cfg .as-optionselector-legend{display:block;font-size:18px;font-weight:600;margin:16px 0 8px;padding:0;border:0}
.mmd-ipad .mmd-g-cfg .as-optionselector-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:479.98px){.mmd-ipad .mmd-g-cfg .as-optionselector-options{grid-template-columns:1fr 1fr}}
.mmd-ipad .mmd-g-cfg .as-optiontile-pricedelta{font-weight:600;font-size:15px;margin-top:4px;color:#1d1d1f}
.mmd-ipad .mmd-g-war .as-optionselector-options{display:flex;flex-wrap:wrap;gap:10px}
.mmd-ipad .mmd-g-war .as-optionselector-option{flex:1 1 160px}
.mmd-ipad .mmd-color-name{font-size:13px;color:#6e6e73;margin:0 0 0 4px;align-self:center}
.mmd-ipad .form-selector-title{height:auto!important;max-height:none!important;overflow:visible!important;display:block!important;-webkit-line-clamp:unset!important;font-size:15px!important;line-height:1.3!important;color:#1d1d1f}
.mmd-ipad .form-choice-selector-label,.mmd-ipad .form-choice-selector~.form-choice-selector-label{min-height:0!important;height:auto!important;border:0!important;padding:10px 14px!important;display:block!important;background:transparent!important}
.mmd-ipad .form-element{min-height:0}
.mmd-ipad .mmd-g-cfg .form-element{padding:2px 0}
.mmd-ipad .ipad-tiles,.mmd-ipad .ipad-cfgs,.mmd-ipad .ipad-wars{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.mmd-ipad .ipad-tiles{margin:18px 0 8px}
@media (max-width:479.98px){.mmd-ipad .ipad-cfgs{grid-template-columns:1fr 1fr}}
.mmd-ipad .ipad-tile{appearance:none;-webkit-appearance:none;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;width:100%;box-sizing:border-box;margin:0;padding:12px 14px;background:#f5f5f7;border:0;border-bottom:3px solid transparent;border-radius:16px;color:#1d1d1f;font:inherit;font-size:15px;line-height:1.3;text-align:left;cursor:pointer}
.mmd-ipad .ipad-tile.is-on{border-bottom-color:#0071e3;font-weight:600}
.mmd-ipad .ipad-cfg-price{font-weight:600;font-size:15px}
.mmd-ipad .ipad-legend{font-size:18px;font-weight:600;margin:18px 0 0;letter-spacing:-.02em}
.mmd-ipad .ipad-colors{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin:20px 0 4px}
.mmd-ipad .ipad-dots{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mmd-ipad .ipad-dot{appearance:none;-webkit-appearance:none;width:22px;height:22px;border-radius:50%;border:0;padding:0;margin:0;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.mmd-ipad .ipad-dot.is-on{box-shadow:0 0 0 2px #fff,0 0 0 4px #0071e3}
.mmd-ipad .ipad-wars{grid-template-columns:1fr;cursor:default}
.mmd-ipad .ipad-wars .ipad-tile{cursor:default}
/* /mac ẩn #mmd-product khi chưa .is-ready; preview luôn cho panel cao theo nội dung */
.mmd.mmd-ipad.is-ready #mmd-product,
.mmd.mmd-ipad #mmd-product{
  visibility:visible!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  margin:10px 0 0!important;
}
body #content.site-content,
body #main-content,
body #mmd{
  overflow:visible!important;
  height:auto!important;
  max-height:none!important;
}
.mmd-ipad .ipad-tiles:has(> .ipad-tile:only-child){grid-template-columns:1fr}

/* /mac layout: hàng chip trên ẩn; chip nằm cột phải. */
.mmd-ipad #mmd-chips{display:none!important}
.mmd-ipad .block-detail-product{margin-top:4px}
.mmd-ipad .mmd-ipad-media{display:flex;flex-direction:column;align-items:center}
.mmd-ipad .mmd-ipad-media img.product-main-img{max-width:100%;max-height:420px;width:auto;height:auto;object-fit:contain;display:block;margin:0 auto}
@media (max-width:899.98px){.mmd-ipad .mmd-ipad-media img.product-main-img{max-height:260px}}
.mmd-ipad .mmd-ipad-gallery{text-align:center;width:100%;margin:12px 0 4px}
.mmd-ipad .as-configuration-viewgallerybtn,
.mmd-ipad .as-configuration-viewgallerybtntext{color:#0071e3;text-decoration:none;font-size:15px}
.mmd-ipad button.as-configuration-viewgallerybtn{border:0;background:none;padding:0;margin:0;cursor:pointer;font-family:inherit;line-height:inherit;appearance:none;-webkit-appearance:none}
.mmd-ipad .as-configuration-viewgallerybtn:hover{text-decoration:underline}
.mmd-ipad .as-configuration-tradeup{width:100%;align-self:stretch}
.mmd-ipad .as-tradeupbanner-header{font-size:17px;font-weight:600;margin:12px 0 4px;padding-bottom:12px;color:#1d1d1f}
.mmd-ipad .as-configuration-tradeup .button-default{display:flex;align-items:center;justify-content:center;min-height:52px;padding:12px 14px;margin:8px 0;text-decoration:none;box-sizing:border-box}
.mmd-ipad .as-configuration-tradeup .background-blue{background:#00A3FF!important;color:#fff!important}
.mmd-ipad .mmd-g-cfg .mmd-cfg-more-bar{grid-column:1/-1;width:100%}
.mmd-ipad .mmd-g-cfg .mmd-cfg-more{width:100%}
.mmd-ipad .as-configuration-maintitle{font-size:28px;font-weight:600;letter-spacing:-.02em;margin:8px 0 4px;line-height:1.2}
.mmd-ipad .as-price-now{font-size:28px;font-weight:700;color:#f56300;display:inline-block;padding-top:6px}
/* desktop 2-col already from bootstrap col-md-6; stack on mobile */
@media (max-width:767.98px){
  .mmd-ipad .ipad-cfgs{grid-template-columns:1fr 1fr}
}
/* Theme .as-optionselector-option was wiping tile fill; force /mac tile rules. */
.mmd-ipad .mmd-g-cfg .ipad-cfg,
.mmd-ipad .mmd-g-cfg .as-optionselector-option{
  background:#f5f5f7!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  border-radius:16px!important;
  box-shadow:none!important;
}
.mmd-ipad .mmd-g-cfg .ipad-cfg.is-on,
.mmd-ipad .mmd-g-cfg .as-optionselector-option.is-on,
.mmd-ipad .mmd-g-cfg .mmd-cfg-on{
  border-bottom-color:#0071e3!important;
  font-weight:600;
}
/* Win over .mmd .mmd-product .mmd-g-cfg .as-optionselector-option { background:transparent!important; border:0!important } */
.mmd.mmd-ipad #mmd-product .mmd-g-cfg .as-optionselector-option,
.mmd.mmd-ipad #mmd-product .mmd-g-cfg .ipad-cfg{
  background:#f5f5f7!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  border-radius:16px!important;
  box-shadow:none!important;
}
.mmd.mmd-ipad #mmd-product .mmd-g-cfg .as-optionselector-option.is-on,
.mmd.mmd-ipad #mmd-product .mmd-g-cfg .ipad-cfg.is-on,
.mmd.mmd-ipad #mmd-product .mmd-g-cfg .mmd-cfg-on{
  border-bottom-color:#0071e3!important;
  font-weight:600;
}

/* t332u/t334u: mobile iPad — lưới cấu hình 2 ô/hàng cho mọi dòng (nhãn ngắn «Wifi | 128GB»). Desktop giữ 2 cột. */
@media (max-width:767.98px){
  .mmd.mmd-ipad #mmd-product .mmd-g-cfg .ipad-cfgs,
  .mmd.mmd-ipad #mmd-product .mmd-g-cfg .as-optionselector-options{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .mmd.mmd-ipad #mmd-product .mmd-g-cfg .as-optionselector-option,
  .mmd.mmd-ipad #mmd-product .mmd-g-cfg .ipad-cfg{
    padding:10px 10px!important;
    min-width:0;
    width:100%;
    box-sizing:border-box;
  }
  .mmd.mmd-ipad #mmd-product .mmd-g-cfg .form-selector-title{
    font-size:13px!important;
    line-height:1.25!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .mmd.mmd-ipad #mmd-product .mmd-g-cfg .ipad-cfg-price,
  .mmd.mmd-ipad #mmd-product .mmd-g-cfg .as-optiontile-pricedelta{
    font-size:13px!important;
    font-weight:700!important;
    line-height:1.25!important;
    white-space:nowrap;
  }
  .mmd.mmd-ipad #mmd-product .mmd-g-cfg .mmd-cfg-more-bar{grid-column:1/-1!important;width:100%!important}
}

/* t341u: /ipad full màn hình giống /mac sống — #mmd max-width none, padding 18px 20px, thanh dòng máy tràn ngang. */
.mmd.mmd-ipad,
body #mmd.mmd.mmd-ipad{
  max-width:none!important;
  width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}
@media (min-width:768px){
  .mmd.mmd-ipad{padding:18px 20px 80px;}
}

/* v52: thanh liên hệ mobile cố định đáy (trang /ipad cũ có sẵn trong <style> của collection; look do mm-contact-bar.css) */
@media (max-width:900px){
  .footer-icon{position:fixed;bottom:0;width:100%;z-index:10;padding:0 10px;background:#fff;box-sizing:border-box}
  .footer-icon ul{padding-inline-start:0!important;justify-content:space-around;display:flex;padding:10px 0;border-top:1px solid #ccc}
  .footer-icon ul img{max-width:35px}
  .block-copyright{padding-bottom:50px}
}

.mmd-ipad .as-configuration-tradeup button.button-default{width:100%;appearance:none;-webkit-appearance:none;cursor:pointer}
.mmd-ipad .as-configuration-tradeup button.button-default:disabled{opacity:.5;cursor:not-allowed}

/* Modal trả góp / liên hệ: CSS lấy từ trang SP CMS (không tự chế layout). */
.cm_product{display:flex;align-items:flex-start;gap:8px;margin-bottom:8px}
.cm_product .cm_image img{max-width:100px;padding-right:15px;height:auto}
.cm_product .cm_title{width:100%}
.cm_product .cm_title h4{font-size:16px;margin:0 0 6px;line-height:1.3}
#contactModal .modal-body,#installmentModal .modal-body{padding:22px}
#contactModal input,#contactModal textarea{width:100%;border-radius:15px;box-shadow:0 3px 11px 0 rgba(0,0,0,.10) inset;height:48px;padding:10px;margin-top:15px;border:0}
#contactModal textarea{height:auto}
.cm_footer{text-align:center}
.cm_footer button{border-radius:20px;background:#00A3FF;box-shadow:0 3px 11px 0 rgba(0,0,0,.10);padding:15px 30px;color:#fff;margin-top:15px;margin-bottom:10px;border:0;cursor:pointer}
.cm_footer-text{color:#8B8B8B;font-size:15px;font-weight:400;line-height:normal;margin-bottom:12px}
#contactModal .modal-content,#installmentModal .modal-content{border-radius:30px}
#installmentModal .contact-modal_body{max-height:80vh;overflow:auto}

/* v55: lightGallery kiểu Apple trên /ipad — mũi tên tròn nhỏ (không ô xám chữ nhật), một mũi tên, thanh trên trong suốt */
.lg-outer .lg-actions .lg-next,.lg-outer .lg-actions .lg-prev{width:40px;height:40px;margin-top:-20px;padding:0;border-radius:50%;background:rgba(255,255,255,.14);color:#f5f5f7;font-size:16px;line-height:40px;text-align:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.lg-outer .lg-actions .lg-next{right:12px}
.lg-outer .lg-actions .lg-prev{left:12px}
.lg-outer .lg-actions .lg-next:hover,.lg-outer .lg-actions .lg-prev:hover{background:rgba(255,255,255,.24);color:#fff}
.lg-outer .lg-toolbar{background-color:transparent}
.lg-outer .lg-toolbar .lg-icon{color:#f5f5f7}
@media (max-width:767px){.lg-outer .lg-actions .lg-next,.lg-outer .lg-actions .lg-prev{width:34px;height:34px;margin-top:-17px;line-height:34px;font-size:14px}.lg-outer .lg-actions .lg-next{right:8px}.lg-outer .lg-actions .lg-prev{left:8px}}

/* v56 (t378u): lưới Cấu hình 2 cột cố định Wifi | 5G, ô trống giữ chỗ — desktop và mobile */
.mmd.mmd-ipad #mmd-product .mmd-g-cfg .ipad-cfgs.ipad-cfgs-2col{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px}
.mmd.mmd-ipad #mmd-product .mmd-g-cfg .ipad-cfg-empty{display:block;visibility:hidden;pointer-events:none;min-height:0}
@media (max-width:767.98px){.mmd.mmd-ipad #mmd-product .mmd-g-cfg .ipad-cfgs.ipad-cfgs-2col{gap:8px!important}}
/* v58 28/11/2026 (anh Phú t403u): giãn khoảng cách + khôi phục nút «Xem thêm cấu hình»/«Thu gọn». Cũ → mới: ô cấu hình 10px→16px (≤767px: 8px→14px ngang 12px); nhãn Màu sắc↔chấm 12px→20px; chấm↔chấm 8px→16px. */
.mmd.mmd-ipad #mmd-product .mmd-g-cfg .ipad-cfgs.ipad-cfgs-2col{gap:16px!important}
@media (max-width:767.98px){.mmd.mmd-ipad #mmd-product .mmd-g-cfg .ipad-cfgs.ipad-cfgs-2col{gap:14px 12px!important}}
.mmd-ipad .ipad-colors{gap:12px 20px}
.mmd-ipad .ipad-dots{gap:16px}
.mmd.mmd-ipad #mmd-product .mmd-g-cfg .mmd-cfg-more-bar{grid-column:1/-1!important;width:100%!important;display:flex;margin:0;padding:0}
.mmd.mmd-ipad #mmd-product .mmd-g-cfg .mmd-cfg-more{display:flex;align-items:center;justify-content:center;width:100%;box-sizing:border-box;margin:0;padding:14px 16px;background:#f5f5f7!important;color:#0057b8!important;border:0!important;border-radius:24px!important;box-shadow:none!important;font-size:15px;font-weight:600;line-height:1.3;text-align:center;cursor:pointer;-webkit-appearance:none;appearance:none}
.mmd.mmd-ipad #mmd-product .mmd-g-cfg .mmd-cfg-more:hover{background:#ececf0!important}
