/* print-preview-style.css */
#print-preview-back{
    cursor: pointer;
}
.pp {
  margin: 0;
  background: #f4f4f4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.pp * {
  box-sizing: border-box;
}

.pp-topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  height: 30px;
  background: #c5392f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.pp-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pp-back {
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  line-height: 20px;
  background: none;
}
.pp-back:hover {
  padding-left: 4px;
  border-left: solid 1px;
  border-radius: 50%;
  line-height: 16px;
  background: none;
}
.pp-title {
    font-size: 14px;
}
.pp-print {
  font-size: 10px;
  background: unset;
  color: #ffffff;
  border: unset;
  line-height: 22px;
  cursor: pointer;
}
.arrow-symbol {
  font-size: 18px;
}
.arrow-symbol:hover {
  color: #ffcdcd;
}

.pp-wrap {
  padding: 12px;
}
.paper-80 .pp-wrap > div,
.paper-80 main .pp-wrap {
  max-width: 460px;
  margin: 0 auto;
}
.paper-58 .pp-wrap > div,
.paper-58 main .pp-wrap {
  max-width: 340px;
  margin: 0 auto;
}

.pp-content {
  color: #313131;
}
.order-meta {
  font-size: 14px;
  margin-bottom: 10px;
}
.order-section {
  font-size: 24px;
  line-height: 1.35;
}

.order-items {
  margin-top: 10px;
}

.order-heading {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.order-item {
  padding: 6px 0 2px;
}

.item-left {
  flex: 1;
  min-width: 0;
}
.item-name {
  font-weight: normal;
}
.item-sku {
  margin-top: 2px;
}

.item-meta {
  margin-top: 6px;
}
.meta-label {
    font-size: 12px;
}
.meta-value {
  display: inline;
}

.price {
  margin-top: 6px;
  text-align: right;
  font-size: 14px;
}

.bottom-list {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.bottom-list_cs {
  font-size: 22px;
}
.bottom-list-right {
  text-align: right;
  white-space: nowrap;
}

.order-note {
  line-height: 1.35;
}
.order-note span {
  font-size: 14px;
}

.mwt-border {
  display: block;
  border-top: 2px dashed #bbb;
  margin: 4px 0;
}
.qr_shipping-address {
  margin-top: 10px;
  font-size: 11px;
}


/* --- Layout (smartphone and tablet) --- */
body.pp.paper-80 {
  font-size:20px;
}

@media only screen and (max-width: 767px) {
  .pp-print-container {
    padding:20px 5px;
  }
}

.pp-print-container {
  padding:20px 15px;
}
@media (min-width: 768px) and (max-width: 1024px) {
  .pp-print-container {
      padding:20px 10px;
  } 
}
#order-print-preview{
  max-height: 100vh;
  overflow-y: auto;
  height: 100%!important;
}

/* --- Print (thermal) --- */
@media print {
  .no-print {
    display: none !important;
  }
  .pp {
    background: #fff;
  }

  .pp-wrap {
    padding: 0 !important;
  }
  @page {
    margin: 4mm;
  }

  /* Thermal width */
  body.paper-80 {
    width: 80mm;
  }
  body.paper-58 {
    width: 58mm;
  }

  /* Tighten */
  body.pp.paper-80 {
    font-size:16px;
  }
  .pp-content {
    color: #000000;
  }

  .order-meta {
    font-size: 12px;
  }
  .order-section {
    font-size: 20px;
  }
  .order-heading {
    font-size: 12px;
  }
  .meta-label {
    font-size: 12px;
  }
  .bottom-list {
    font-size: 12px;
  }
  .order-note span {
    font-size: 12px;
  }
  .bottom-list_cs {
    font-size: 18px;
  }
  .qr_shipping-address {
    font-size: 10px;
  }
  .pp-content {
    padding: 0 10px !important;
  }
}