/* BASIC css start */
/* ============================================================
   THE LAB CHEMICAL — 상품상세 모바일 CSS
   shopdetail.mobile.css
============================================================ */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  background: #f7f8fc;
  margin: 0; padding: 0;
}

#productDetail {
  --navy: #0C025B;
  --navy-dk: #080142;
  color: #1a1a2e;
  padding-bottom: 120px;
}

/* ══════════════════════════════════════
   갤러리
══════════════════════════════════════ */
.prd-gallery {
  background: #fff;
  padding: 16px;
}

#multi_image_thumb_list { display: none !important; }

.prd-main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 280px;
  margin: 0 auto 10px;
  background: #f8fafd;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prd-main-img img,
.prd-main-img #lens_img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
  border: none !important;
}

.prd-thumbs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.prd-thumb-item {
  width: 52px; height: 52px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
}
.prd-thumb-item img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prd-thumb-item span { display: none; }
.prd-thumb-item.active { border-color: var(--navy); }

/* ══════════════════════════════════════
   상품 정보
══════════════════════════════════════ */
.center-section {
  background: #fff;
  padding: 16px 16px 12px;
  border-top: 1px solid #f1f2f6;
}

.prd-brand-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.prd-brand-wrap a {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  text-transform: uppercase;
}
.prd-brand-sep { color: #d1d5db; font-size: 12px; }
.prd-model { font-size: 12px; color: #6b7280; }

.prd-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  letter-spacing: -.3px;
  margin: 0 0 4px;
}

/* 한글명 (상품명 아래) */
.prd-name-kr {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 8px;
  font-weight: 500;
}

/* ══════════════════════════════════════
   서브네임 — CAS 단독 칩 (옵션 3)
══════════════════════════════════════ */
.prd-subname-wrap,
.mo-prd-subname-wrap {
  margin: 4px 0 12px;
}

.prd-subname-list,
.mo-prd-subname-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: none;
  background: transparent;
  gap: 0;
}

.prd-subname-item.prd-subname-cas {
  display: inline-flex !important;
  align-items: stretch !important;
  border: 1px solid #c4bfee !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  align-self: flex-start !important;
  width: auto !important;
  background: #fff !important;
  border: none !important;   
}

.prd-subname-item.prd-subname-cas .subname-key {
  background: #0C025B !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 7px 12px !important;
  letter-spacing: .5px !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  border: none !important;        /* ← 추가 */
}

.prd-subname-item.prd-subname-cas .subname-val {
  background: #f0eeff !important;
  color: #0C025B !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 7px 14px !important;
  letter-spacing: .3px !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  border: none !important;        /* ← 추가 */
}

/* 할인 배지 */
.prd-dc-row { margin-bottom: 6px; }
.prd-dc-badge {
  background: #dc2626; color: #fff;
  font-size: 13px; font-weight: 800;
  padding: 3px 10px; border-radius: 4px;
}

/* 오늘출발 */
.today-delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 8px 0;
  background: #e8f5e9;
  border-radius: 6px;
  border: 1px solid #c8e6c9;
}
.today-delivery .icon {
  background: #2e7d32; color: #fff;
  padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.today-delivery .txt { font-size: 12px; color: #1b5e20; }

/* ══════════════════════════════════════
   SKU 테이블
══════════════════════════════════════ */
.sku-section {
  background: #fff;
  padding: 0 12px 12px;
  border-top: 8px solid #f7f8fc;
}

.sku-table-wrap {
  border: 1px solid #c4bfee;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.sku-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.sku-table col.col-spec  { width: 23%; }
.sku-table col.col-price { width: 26%; }
.sku-table col.col-stock { width: 27%; }
.sku-table col.col-qty   { width: 17%; }
.sku-table col.col-check { width: 7%; }

.sku-table thead th {
  padding: 8px 6px;
  background: linear-gradient(135deg, #0C025B, #1a0a7a);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.15);
  white-space: nowrap;
}
.sku-table thead th:first-child { text-align: center; padding-left: 6px; }
.sku-table thead th:last-child { border-right: none; }
.sku-table thead th small { font-weight: 400; opacity: .7; font-size: 9px; display: block; }

.sku-table tbody tr {
  border-bottom: 1px solid #e8eeff;
  background: #fff;
  cursor: pointer;
  transition: background .12s;
}
.sku-table tbody tr:last-child { border-bottom: none; }
.sku-table tbody tr:active { background: #f5f4ff; }
.sku-table tbody tr.sku-selected { background: #f0eeff; }
.sku-table tbody tr.sku-soldout { opacity: .5; pointer-events: none; }

.sku-table tbody td {
  padding: 8px 3px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #e8eeff;
}
.sku-table tbody td:last-child { border-right: none; }

.td-spec {
  font-size: 11px; font-weight: 700; color: #111;
  text-align: left; padding-left: 8px !important;
  word-break: break-all;
}
.td-price {
  font-size: 11.5px; font-weight: 900;
  color: var(--navy); white-space: nowrap;
}
.td-price strike {
  color: #dc2626; font-weight: 700;
  font-size: 10px; display: block;
}
.td-stock {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.25;
}

.stock-badge {
  display: inline-flex; align-items: center;
  height: 18px; padding: 0 5px;
  border-radius: 3px; font-size: 10px; font-weight: 700;
  white-space: nowrap;
}
.stock-badge.ok  { background: #e8f5e9; color: #2e7d32; }
.stock-badge.low { background: #fff3e0; color: #e65100; }
.stock-badge.out { background: #f3f4f6; color: #9ca3af; }

/* 수량 컨트롤 */
.sku-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9d6ef;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.sku-qty-btn {
  width: 16px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  cursor: pointer; font-size: 12px; font-weight: 700;
  color: #1a0a7a; flex-shrink: 0;
}
.sku-qty-btn:active { background: #f5f6f8; }
.sku-qty-input {
  width: 20px; height: 24px;
  border: none;
  border-left: 1px solid #c4bfee;
  border-right: 1px solid #c4bfee;
  text-align: center;
  font-size: 11px; font-weight: 700;
  font-family: inherit; color: #111;
  background: #fff; outline: none;
  -moz-appearance: textfield;
}
.sku-qty-input::-webkit-outer-spin-button,
.sku-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.td-check input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--navy); cursor: pointer;
}

/* MakeShop 원본 숨김 */
.mk-origin-area {
  position: absolute; left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
  pointer-events: none; clip: rect(0,0,0,0);
}

/* ══════════════════════════════════════
   하단 고정 구매 바
══════════════════════════════════════ */
.prd-buy-bar {
  position: fixed;
  bottom: 60px;
  left: 0; right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  padding: 10px 16px;
}

.buy-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.buy-bar-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.buy-bar-label { font-size: 11px; color: #999; margin-right: auto; }
.buy-bar-value {
  font-size: 20px; font-weight: 900;
  color: var(--navy); letter-spacing: -.5px;
}
.buy-bar-vat { font-size: 11px; color: #999; }

.buy-bar-btns {
  display: flex;
  gap: 8px;
}
.btn_cart, .btn_buy {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  height: 44px;
  font-size: 14px; font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.btn_cart {
  background: #fff; color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn_cart:active { background: #f0eeff; }
.btn_buy {
  background: linear-gradient(135deg, #0C025B, #1a0a7a);
  color: #fff; border: none;
  box-shadow: 0 3px 10px rgba(12,2,91,.25);
}
.btn_buy:active { opacity: .9; }
.btn_soldout {
  flex: 1; text-align: center; padding: 13px 0;
  font-weight: 700; border-radius: 6px;
  background: #f3f4f6; color: #9ca3af;
  border: 1.5px solid #e5e7eb;
}

.soldout-btns { display: none; }

/* ══════════════════════════════════════
   탭
══════════════════════════════════════ */
.detailTab {
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 10;
}
.detailTab::-webkit-scrollbar { display: none; }
.detailTab ul {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  min-width: max-content;
}
.detailTab ul li a {
  display: block;
  font-size: 13px; font-weight: 600;
  color: #999;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s;
}
.detailTab ul li a.active,
.detailTab ul li a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ══════════════════════════════════════
   상품 상세
══════════════════════════════════════ */
.prd-detail {
  background: #fff;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}
.prd-detail img { max-width: 100%; height: auto; }

#productWrap { margin: 0 0 20px; }
.tit-prd {
  font-size: 15px; font-weight: 800; color: var(--navy);
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
}
.product-info-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.product-info-table tr { border-bottom: 1px solid #e8eeff; }
.product-info-table th {
  width: 90px; padding: 9px 10px;
  background: #f5f4f8; font-weight: 700;
  color: #1a1a2e; text-align: left;
  vertical-align: top; font-size: 11.5px;
  white-space: nowrap;
}
.product-info-table td {
  padding: 9px 10px; color: #111827;
  font-size: 12.5px; line-height: 1.6;
  vertical-align: top; word-break: break-word;
}

/* ══════════════════════════════════════
   연관상품
══════════════════════════════════════ */
.related-wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 16px;
  background: #fff;
}
.related-wrap::-webkit-scrollbar { display: none; }

.related-card {
  flex-shrink: 0;
  width: 130px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.related-card:active { opacity: .85; }

.related-thumb {
  width: 100%; height: 100px;
  display: flex; align-items: center; justify-content: center;
  background: #f8fafd;
}
.related-thumb img { width: 80px; height: 80px; object-fit: contain; }

.related-body { padding: 8px; }
.related-name {
  font-size: 11.5px; font-weight: 600; color: #333;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.4; margin-bottom: 4px;
}
.related-price { font-size: 11px; }
.related-price .price { font-weight: 800; color: var(--navy); }
.related-price strike { color: #9ca3af; font-size: 10px; display: block; }
.soldout-txt { font-size: 11px; color: #9ca3af; font-weight: 600; }

/* ══════════════════════════════════════
   리뷰 / QnA
══════════════════════════════════════ */
.board-wrap {
  background: #fff;
  padding: 0 16px 8px;
}
.board-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f1f2f6;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}
.board-row:last-of-type { border-bottom: none; }
.board-row:active { background: #fafafa; }
.board-subject {
  flex: 1; font-size: 13px; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-meta { flex-shrink: 0; font-size: 11px; color: #bbb; white-space: nowrap; }
.board-empty { padding: 24px 0; text-align: center; color: #bbb; font-size: 13px; }
.board-write { padding: 8px 0 4px; display: flex; justify-content: flex-end; }
.board-write a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 16px;
  background: var(--navy); color: #fff;
  border-radius: 4px; font-size: 12px;
  font-weight: 700; text-decoration: none;
}

/* ══════════════════════════════════════
   item-under (구매안내 섹션)
══════════════════════════════════════ */
#item-under {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 13px; color: #333; line-height: 1.6;
}
.iu-section-title {
  text-align: center; padding: 28px 16px 20px;
}
.iu-section-title .iu-eyebrow {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #0C025B; opacity: .5; margin-bottom: 8px;
}
.iu-section-title h3 {
  font-size: 17px; font-weight: 900; color: #111;
  letter-spacing: -.3px; line-height: 1.3;
}
.iu-section-title h3 em { color: #0C025B; font-style: normal; }

.iu-hero {
  background: linear-gradient(135deg, #0C025B 0%, #1a0a7a 100%);
  color: #fff; padding: 32px 16px 24px; text-align: center;
}
.iu-hero .iu-hero-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 10px;
}
.iu-hero .iu-hero-title {
  font-size: 18px; font-weight: 900; line-height: 1.4;
  color: #fff; margin-bottom: 24px;
}
.iu-hero .iu-hero-title em { color: #bfdbfe; font-style: normal; }
.iu-hero-cards {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 100%;
}
.iu-hero-cards .card {
  padding: 14px 16px;
  background: rgba(255,255,255,.08);
  border-radius: 8px; text-align: left;
  display: flex; gap: 12px; align-items: center;
}
.iu-hero-cards .card-icon { font-size: 18px; color: #bfdbfe; flex-shrink: 0; }
.iu-hero-cards .card-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 3px;
}
.iu-hero-cards .card-value { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.6; }

.iu-notice { background: #fff; padding-bottom: 24px; }
.iu-notice-grid { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.iu-notice-card {
  border: 1px solid #c4bfee; border-radius: 6px;
  padding: 16px 14px; background: #faf9ff;
}
.nc-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; padding-bottom: 10px;
  border-bottom: 1px solid #e2eaff;
}
.nc-icon {
  width: 30px; height: 30px; border-radius: 4px;
  background: #0C025B;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; flex-shrink: 0;
}
.nc-title { font-size: 13px; font-weight: 800; color: #111; }
.iu-notice-list { list-style: none; margin: 0; padding: 0; }
.iu-notice-list li {
  position: relative; padding: 3px 0 3px 12px;
  font-size: 12px; color: #555; line-height: 1.7;
}
.iu-notice-list li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 4px; height: 4px; border-radius: 50%;
  background: #c4bfee;
}
.iu-notice-list .hi-red  { color: #d63031; font-weight: 700; }
.iu-notice-list .hi-blue { color: #0C025B; font-weight: 700; }
.iu-notice-list .note    { font-size: 10px; color: #aaa; }
.iu-notice-list .note::before { display: none; }

.iu-delivery { background: #f0f4ff; padding-bottom: 24px; }
.iu-delivery-icons {
  display: flex; gap: 8px;
  padding: 0 16px 16px;
}
.iu-delivery-icon-card {
  flex: 1;
  background: #fff; border: 1px solid #c4bfee;
  border-radius: 6px; padding: 16px 10px 14px;
  text-align: center;
}
.dic-icon {
  width: 44px; height: 44px; border-radius: 6px;
  background: linear-gradient(135deg, #0C025B, #1a0a7a);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; font-size: 18px; color: #fff;
}
.dic-title { font-size: 12px; font-weight: 800; color: #111; margin-bottom: 4px; }
.dic-desc { font-size: 10.5px; color: #888; line-height: 1.55; }
.iu-delivery-notes {
  list-style: none; margin: 0; padding: 0 16px;
}
.iu-delivery-notes li {
  position: relative; padding: 5px 0 5px 14px;
  font-size: 12px; color: #666; line-height: 1.7;
  border-bottom: 1px dashed #c4bfee;
}
.iu-delivery-notes li:last-child { border-bottom: none; }
.iu-delivery-notes li::before {
  content: ''; position: absolute; left: 2px; top: 13px;
  width: 5px; height: 5px; border-radius: 50%;
  background: #0C025B; opacity: .3;
}
.iu-delivery-notes .hi-red  { color: #d63031; font-weight: 700; }
.iu-delivery-notes .hi-blue { color: #0C025B; font-weight: 700; }

.iu-return { background: #fff; padding-bottom: 24px; }
.iu-return-list {
  list-style: none; margin: 0; padding: 0 16px;
  counter-reset: return-counter;
}
.iu-return-list li {
  counter-increment: return-counter;
  position: relative; padding: 10px 0 10px 22px;
  border-bottom: 1px solid #e8eeff;
  font-size: 12px; color: #444; line-height: 1.7;
}
.iu-return-list li:last-child { border-bottom: none; }
.iu-return-list li::before {
  content: counter(return-counter, decimal-leading-zero);
  position: absolute; left: 0; top: 12px;
  font-size: 9px; font-weight: 800; color: #0C025B; opacity: .35;
}
.iu-return-list .hi-red  { color: #d63031; font-weight: 700; }
.iu-return-list .hi-blue { color: #0C025B; font-weight: 700; }

.iu-cta {
  background: linear-gradient(135deg, #0C025B 0%, #1a0a7a 100%);
  padding: 28px 16px; text-align: center;
}
.iu-cta .cta-desc { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 12px; line-height: 1.7; }
.iu-cta .cta-contacts { list-style: none; margin: 0; padding: 0; }
.iu-cta .cta-contacts li { font-size: 11px; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.iu-cta .cta-contacts li strong { font-size: 14px; font-weight: 800; color: #fff; display: block; margin-top: 1px; }

/* detail_common */
.detail-common-wrap { margin-bottom: 16px; padding-bottom: 16px; }
.detail-common-fallback { border-top: 8px solid #f7f8fc; }

/* 유해물질 모달 */
#hazard-warning-modal {
  display: none; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 9999;
}
#hazard-warning-modal.open { display: flex; }
.hazard-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.5);
}
.hazard-modal-box {
  position: relative; background: #fff;
  border-radius: 12px; padding: 28px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  width: calc(100% - 32px); max-width: 380px;
  text-align: center; z-index: 10000;
}
.hazard-icon { font-size: 2.5em; margin-bottom: 6px; }
.modal-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.hazard-modal-msg { font-size: 13px; line-height: 1.8; }
.hazard-modal-msg p { margin: 0 0 6px; }
.hazard-modal-msg small { font-size: 11px; color: #999; }
.copy-email { cursor: pointer; color: var(--navy); font-weight: 700; }
.hazard-modal-close {
  margin-top: 16px; padding: 10px 32px;
  background: var(--navy); color: #fff;
  border: none; border-radius: 6px;
  font-size: 14px; font-weight: 700; cursor: pointer;
}

/* ============================================================
   P&A unified stock gate
   ============================================================ */
html.pa-gate-open,
html.pa-gate-open body {
  overflow: hidden;
}

.pa-gate[hidden] {
  display: none !important;
}

.pa-gate {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  font-family: inherit;
}

.pa-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .52);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: paGateFade .18s ease both;
}

.pa-gate__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  max-height: min(720px, calc(100vh - 48px));
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(12, 2, 91, .08);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(12, 2, 91, .24);
  animation: paGateUp .2s ease both;
}

.pa-gate__content {
  display: flex;
  flex-direction: column;
  max-height: min(720px, calc(100vh - 48px));
}

.pa-gate__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #eef0f4;
}

.pa-gate__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #98a2b3;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.pa-gate__close:hover,
.pa-gate__close:focus-visible {
  color: #344054;
  background: #f2f4f7;
  outline: none;
}

.pa-gate__status {
  padding: 34px 28px 30px;
  text-align: center;
}

.pa-gate__title {
  margin: 0;
  color: #0f172a;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.4px;
}

.pa-gate__message {
  margin: 7px 0 0;
  color: #667085;
  font-size: 13.5px;
  line-height: 1.65;
  word-break: keep-all;
}

.pa-gate__body {
  overflow-y: auto;
  padding: 18px 24px 4px;
  overscroll-behavior: contain;
}

.pa-gate__item {
  margin-bottom: 12px;
  padding: 15px 16px;
  background: #fafbfc;
  border: 1px solid #e8ebf0;
  border-radius: 10px;
}

.pa-gate__sku {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 800;
  word-break: break-all;
}

.pa-gate__sku span {
  flex-shrink: 0;
  color: #7d8592;
  font-size: 12px;
  font-weight: 600;
}

.pa-gate__line {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  color: #344054;
  font-size: 13.5px;
  line-height: 1.45;
}

.pa-gate__line strong {
  color: #101828;
  font-weight: 800;
}

.pa-gate__line small {
  color: #7d8592;
  font-size: 12px;
}

.pa-gate__line--unknown {
  color: #667085;
  font-weight: 700;
}

.pa-gate__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.pa-gate__dot--available {
  background: #1e5fa8;
}

.pa-gate__dot--backorder {
  background: #c2410c;
}

.pa-gate__note {
  margin: 4px 0 14px;
  padding: 12px 13px;
  color: #667085;
  background: #f5f6f8;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  word-break: keep-all;
}

.pa-gate__actions {
  display: flex;
  gap: 10px;
  padding: 16px 24px 22px;
  background: #fff;
}

.pa-gate__button {
  min-width: 0;
  height: 48px;
  flex: 1;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.pa-gate__button:active {
  transform: translateY(1px);
}

.pa-gate__button:focus-visible,
.pa-gate__text-btn:focus-visible {
  outline: 3px solid rgba(30, 95, 168, .24);
  outline-offset: 2px;
}

.pa-gate__button--secondary {
  color: #344054;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.pa-gate__button--secondary:hover {
  background: #e9ebef;
}

.pa-gate__button--primary {
  color: #fff;
  background: #0c025b;
  border-color: #0c025b;
}

.pa-gate__button--primary:hover {
  background: #080142;
  border-color: #080142;
}

.pa-gate__text-btn {
  margin-top: 18px;
  padding: 5px 8px;
  color: #667085;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pa-gate__spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 18px;
  border: 3px solid #e8f0fb;
  border-top-color: #0c025b;
  border-radius: 50%;
  animation: paGateSpin .72s linear infinite;
}

.pa-gate__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}

.pa-gate__status .pa-gate__icon {
  margin: 0 auto 16px;
}

.pa-gate__icon--warning {
  color: #9a3412;
  background: #ffedd5;
}

.pa-gate__icon--unknown {
  color: #475467;
  background: #eef0f3;
}

.pa-gate__icon--complete {
  color: #166534;
  background: #dcfce7;
}

.pa-gate--delayed .pa-gate__spinner {
  border-top-color: #c2410c;
}

@keyframes paGateFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes paGateUp {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes paGateSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .pa-gate {
    align-items: flex-end;
    padding: 12px;
  }

  .pa-gate__dialog {
    max-height: calc(100dvh - 24px);
    border-radius: 16px 16px 12px 12px;
  }

  .pa-gate__content {
    max-height: calc(100dvh - 24px);
  }

  .pa-gate__header {
    padding: 20px 18px 16px;
  }

  .pa-gate__status {
    padding: 30px 20px 24px;
  }

  .pa-gate__body {
    padding: 15px 18px 2px;
  }

  .pa-gate__actions {
    flex-direction: column-reverse;
    padding: 14px 18px 18px;
  }

  .pa-gate__button {
    width: 100%;
    flex: none;
  }

  .pa-gate__line {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pa-gate__backdrop,
  .pa-gate__dialog,
  .pa-gate__spinner {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Stock priority: available should be recognized first. */
.stock-badge.ok.clickable {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 9px !important;
  color: #fff !important;
  background: #0c025b !important;
  border: 1px solid #0c025b;
  border-radius: 6px;
  box-shadow: 0 2px 7px rgba(12, 2, 91, .18);
  line-height: 1.25;
  text-decoration: none !important;
}

.stock-badge.ok.clickable:hover,
.stock-badge.ok.clickable:focus-visible {
  color: #fff !important;
  background: #1e5fa8 !important;
  border-color: #1e5fa8;
  box-shadow: 0 3px 9px rgba(30, 95, 168, .24);
  text-decoration: none !important;
}

.stock-badge.ok.clickable .badge-i {
  border-color: rgba(255, 255, 255, .72);
  color: #fff;
  opacity: .9;
}

.stock-badge.backorder.clickable {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 3px 7px !important;
  color: #8a4b25 !important;
  background: #fffaf5 !important;
  border: 1px solid #ead8c8;
  border-radius: 6px;
  box-shadow: none;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none !important;
}

.stock-badge.backorder.clickable:hover,
.stock-badge.backorder.clickable:focus-visible {
  color: #7c3f1d !important;
  background: #fff5eb !important;
  border-color: #d9b99d;
  text-decoration: none !important;
}

.stock-badge.backorder.clickable .badge-i {
  opacity: .48;
}

.stock-badge.ok.clickable:focus-visible,
.stock-badge.backorder.clickable:focus-visible {
  outline: 3px solid rgba(30, 95, 168, .22);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .stock-badge.ok.clickable,
  .stock-badge.backorder.clickable {
    white-space: nowrap;
    font-size: 11.5px;
  }
}

/* Mobile stock table final tuning */
.td-stock .stock-badge.clickable {
  width: 100%;
  min-height: 28px;
  padding: 3px 3px !important;
  box-sizing: border-box;
  white-space: normal !important;
  word-break: keep-all;
  line-height: 1.2;
  text-align: center;
  font-size: 10px;
}

.td-stock .stock-badge.clickable .badge-i {
  display: none;
}

/* Compact mobile stock guide */
.pa-stock-guide {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0 0;
  padding: 8px 10px;
  color: #667085;
  background: #f5f6f8;
  border: 1px solid #eceef2;
  border-radius: 6px;
}

.pa-stock-guide .pag-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #fff;
  background: #1e5fa8;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.pa-stock-guide span {
  font-size: 0;
  line-height: 0;
}

.pa-stock-guide span::after {
  content: '실시간 재고는 장바구니에서 수량별로 확인합니다.';
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.2px;
}

/* BASIC css end */

