/* Loaded after the original stylesheet on checkout pages only. */
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  *, *::before, *::after { box-sizing: border-box; }
  html, body { width: 100%; min-width: 0; margin: 0; }
  body { font-family: Arial, "Malgun Gothic", sans-serif; font-size: 16px; line-height: 1.55; background: #f6f8fb; color: #202c3b; }
  header { position: static; width: 100%; padding: 10px 0; }
  .content, .contente { width: 100%; max-width: 760px; margin: 0 auto; padding: 12px 14px; }
  header .content { padding-top: 0; padding-bottom: 0; }
  img { max-width: 100%; height: auto; }
  .logo { width: 180px; max-width: 65%; }
  .navi { display: flex; flex-wrap: wrap; gap: 4px 10px; width: 100%; padding: 8px 0 0; }
  .navilist { display: inline-flex; align-items: center; justify-content: center; flex: 1 1 28%; min-height: 44px; margin: 0; padding: 8px 4px; font-size: 14px; line-height: 1.35; text-align: center; }
  .white_line { width: 100%; max-width: 100%; }
  .images { padding-top: 0; }
  .main_image, .step-2, .full { width: 100%; max-width: 100%; }
  .small_blue { display: flex; gap: 6px; width: 100%; }
  .main_small_image { min-width: 0; width: calc((100% - 12px) / 3); height: auto; }
  .left_right { display: flex; flex-direction: column; gap: 18px; padding-top: 16px; }
  .left_right > .order_box { order: -1; }
  .order_box { width: 100%; min-width: 0; padding: 16px; border: 1px solid #dce3ec; border-radius: 12px; background: white; }
  .order_box h1 { font-size: 23px; margin: 20px 0 12px; }
  .order_box p { overflow-wrap: anywhere; margin: 12px 0; }
  .order_box p, .jumun, .gejua, .bedal, .sangdam, .mobiletext { font-size: 16px; line-height: 1.6; }
  #order-result-status { font-size: 19px; font-weight: 700; text-align: left; padding: 14px; background: #eef4ff; border-radius: 8px; }
  .product-container, .product-container-2 { width: 100%; min-width: 0; padding: 14px; gap: 18px; flex-direction: column; align-items: stretch; }
  .product-container #pic { width: 100%; text-align: center; }
  .product-image { width: auto; max-width: min(100%, 260px); max-height: 280px; object-fit: contain; }
  .quantity-container { width: 100%; min-width: 0; }
  .product-name, .good_amount { font-size: 17px; line-height: 1.6; margin: 10px 0; }
  input, textarea, select, button { font-family: inherit; font-size: 16px !important; line-height: 1.4; max-width: 100%; }
  input:not([type=hidden]):not([type=checkbox]), select { min-height: 48px; padding: 10px; border: 1px solid #aab9cb; border-radius: 7px; background: white; }
  textarea { min-height: 120px; padding: 12px; border: 1px solid #aab9cb; border-radius: 7px; resize: vertical; }
  input[type=checkbox] { width: 22px; height: 22px; margin: 6px 8px 6px 0; vertical-align: middle; }
  button, .buy-button { min-height: 48px; padding: 12px 16px; border-radius: 8px; touch-action: manipulation; }
  .buy-button, #submit-button { display: block; width: 100% !important; margin: 18px 0 8px; background: #175cab; color: white; border: 0; font-weight: bold; }
  .amount_btn { width: 48px; padding: 8px; }
  #quantity { width: 64px; min-width: 64px; text-align: center; margin: 0 6px; }
  .checkout-form-wrap { width: 100% !important; max-width: 620px; padding: 16px; background: white; border: 1px solid #dce3ec; border-radius: 12px; }
  #theform { width: 100%; min-width: 0; }
  #theform label { display: inline-block; font-size: 16px; margin-bottom: 6px; }
  #theform input:not([type=hidden]), #theform textarea { width: 100%; height: auto !important; }
  .checkout-phone { align-items: center; width: 100%; gap: 6px !important; }
  #theform #phone1, #theform #phone2, #theform #phone3 { flex: 1 1 0; width: 0 !important; min-width: 0; text-align: center; padding: 10px 4px; }
  .total_pay { font-size: 24px; }
  #checkout-feedback { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
  .order_detail table { width: 100% !important; table-layout: fixed; }
  .order_detail td { padding: 8px 3px; overflow-wrap: anywhere; vertical-align: top; }
  .order_detail .mobiletext { font-size: 14px; }
  .inquiry_box { width: 100%; height: auto; min-height: 0; padding: 18px; border: 1px solid #dce3ec; border-radius: 12px; gap: 10px; }
  .inquiry_padding_top, .inquiry_box .paddingtop { width: 100%; height: auto; padding: 0; }
  .inquiry_text, .inquiry_select, .inquiry_num, .inquiry_button { width: 100%; height: auto; }
  .inquiry_box p, .plz { margin: 0; font-size: 14px; }
  .phone_image { width: 100%; max-width: 300px; }
  .littlefooter { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; padding-top: 18px; }
  .littlefooter > * { width: 100%; max-width: 100%; min-width: 0; margin: 0; }
  .now_transfer, .comments, .textbox, .textboxcomment { font-size: 14px; overflow-wrap: anywhere; }
  footer .content > table { width: 100% !important; table-layout: fixed; }
  #colee_left { width: 100% !important; max-width: 100%; overflow: hidden; }
  .license { width: 100%; padding: 0; }
  .popup { z-index: 1000; padding: 16px; }
  .popup-content { max-width: 100%; max-height: 90vh; overflow: auto; }
  .popup img { width: 100%; max-width: 520px; }
  .close-btn { min-width: 44px; min-height: 44px; padding: 4px; background: white; border-radius: 50%; }
  :focus-visible { outline: 3px solid #226ed1; outline-offset: 3px; }
}
@media (max-width: 480px) {
  .order_detail table:first-of-type { display: none; }
  .order_detail table:nth-of-type(2), .order_detail table:nth-of-type(2) tbody { display: block; height: auto; }
  .order_detail table:nth-of-type(2) tr:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .order_detail table:nth-of-type(2) td { display: block; width: auto !important; text-align: left; padding: 8px; border-bottom: 1px solid #e1e7ef; }
  .order_detail table:nth-of-type(2) td:first-child, .order_detail table:nth-of-type(2) tr + tr { display: none; }
  .order_detail table:nth-of-type(2) td:nth-child(2), .order_detail table:nth-of-type(2) td:nth-child(5) { grid-column: 1 / -1; }
  .order_detail table:nth-of-type(2) td::before { display: block; font-size: 12px; color: #596b7e; margin-bottom: 4px; }
  .order_detail table:nth-of-type(2) td:nth-child(2)::before { content: "제품명"; }
  .order_detail table:nth-of-type(2) td:nth-child(3)::before { content: "가격"; }
  .order_detail table:nth-of-type(2) td:nth-child(4)::before { content: "수량"; }
  .order_detail table:nth-of-type(2) td:nth-child(5)::before { content: "합계"; }
}
