/* Product sidebar order box — overrides theme defaults for a cleaner layout */

.product-details-section .product-right-box .order-box-new {
  padding-inline: calc(12px + 6 * (100vw - 991px) / 929);
  padding-bottom: 0;
}

/* When qty has no discount, hide banner and restore full order-box border */
.product-details-section .product-right-box .promo-banner-new[hidden] {
  display: none !important;
}

.product-details-section .product-right-box .product-details-box:not(.has-promo) .order-box-new {
  border-top: 1px solid rgba(var(--border-color), 1);
  border-radius: calc(8px + 2 * (100vw - 320px) / 1600);
}

/* Quantity pricing table inside sidebar */
.product-details-section .product-right-box .order-box-new .product-qty-pricing-chart {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(var(--border-color), 1);
}

.product-details-section .product-right-box .order-box-new .product-qty-pricing-chart .product-title h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-details-section .product-right-box .order-box-new .product-qty-pricing-chart p.small {
  font-size: 12px;
  margin-bottom: 10px;
}

.product-details-section .product-right-box .order-box-new .product-qty-pricing-chart .table {
  margin-bottom: 0;
  font-size: 14px;
}

.product-details-section .product-right-box .order-box-new .product-qty-pricing-chart .table thead th {
  background: rgba(var(--background), 0.8);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
}

.product-details-section .product-right-box .order-box-new .product-qty-pricing-chart .table tbody td {
  padding: 8px 10px;
  vertical-align: middle;
}

.product-details-section .product-right-box .order-box-new .product-qty-pricing-chart .table-active td {
  background-color: rgba(var(--primary-color), 0.08);
  font-weight: 600;
  color: rgba(var(--title-color), 1);
}

/* Quantity block */
.product-details-section .product-right-box .order-box-new .pd-order-qty-stock {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0;
}

.product-details-section .product-right-box .order-box-new .pd-order-qty-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-details-section .product-right-box .order-box-new .pd-order-field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgba(var(--title-color), 1);
  margin: 0;
  letter-spacing: 0.2px;
}

.product-details-section .product-right-box .order-box-new .pd-order-stock {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: rgba(var(--content-color), 1);
  text-align: right;
  white-space: nowrap;
}

.product-details-section .product-right-box .order-box-new .pd-order-stock span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(var(--title-color), 1);
}

.product-details-section .product-right-box .order-box-new .pd-order-unit-price .pd-currency-code {
  font-size: 0.82em;
  font-weight: 600;
  color: rgba(var(--content-color), 0.95);
  margin: 0 2px;
  letter-spacing: 0.02em;
}

.product-details-section .product-right-box .order-box-new .pd-order-counter {
  display: flex;
  width: 100%;
  height: 44px;
  border: 1px solid rgba(var(--border-color), 1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(var(--white), 1);
}

.product-details-section .product-right-box .order-box-new .pd-order-counter button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(var(--background), 0.65);
  color: rgba(var(--title-color), 0.85);
  font-size: 18px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.product-details-section .product-right-box .order-box-new .pd-order-counter button:hover {
  background: rgba(var(--primary-color), 0.12);
  color: rgba(var(--primary-color), 1);
}

.product-details-section .product-right-box .order-box-new .pd-order-counter .count,
.product-details-section .product-right-box .order-box-new .pd-order-counter .pd-order-qty-input {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 44px;
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: rgba(var(--title-color), 1);
  border-left: 1px solid rgba(var(--border-color), 1);
  border-right: 1px solid rgba(var(--border-color), 1);
  border-top: none;
  border-bottom: none;
  background: rgba(var(--white), 1);
  line-height: 44px;
  text-align: center;
  padding: 0 8px;
  -moz-appearance: textfield;
}

.product-details-section .product-right-box .order-box-new .pd-order-counter .pd-order-qty-input::-webkit-outer-spin-button,
.product-details-section .product-right-box .order-box-new .pd-order-counter .pd-order-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-details-section .product-info-new .m-top .pd-order-counter .pd-order-qty-input {
  flex: 1;
  width: auto;
  min-width: 0;
  height: 44px;
  border-left: 1px solid rgba(var(--border-color), 1);
  border-right: 1px solid rgba(var(--border-color), 1);
  border-top: none;
  border-bottom: none;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  padding: 0 8px;
  -moz-appearance: textfield;
}

.product-details-section .product-info-new .m-top .pd-order-counter .pd-order-qty-input::-webkit-outer-spin-button,
.product-details-section .product-info-new .m-top .pd-order-counter .pd-order-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-details-section .product-right-box .order-box-new .product-qty-pricing-chart .table tbody td del {
  font-size: 0.9em;
  font-weight: 500;
  color: rgba(var(--content-color), 0.85);
  margin-right: 6px;
}

/* Price summary */
.product-details-section .product-right-box .order-box-new .pd-order-price-summary {
  margin-bottom: 16px;
}

.product-details-section .product-right-box .order-box-new .pd-order-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(var(--border-color), 0.9);
}

.product-details-section .product-right-box .order-box-new .pd-order-price-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(var(--content-color), 1);
}

.product-details-section .product-right-box .order-box-new .pd-order-unit-price {
  font-size: 16px;
  font-weight: 600;
  color: rgba(var(--title-color), 1);
  text-align: right;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.product-details-section .product-right-box .order-box-new .pd-order-unit-price .offer,
.product-details-section .product-info-new .product-price .offer,
.product-details-section .product-info-new .pd-order-price-summary-mobile .pd-order-unit-price .offer {
  color: rgba(var(--error), 1);
  font-size: 0.88em;
  font-weight: 600;
  white-space: nowrap;
}

.product-details-section .product-right-box .order-box-new .pd-order-unit-price del {
  font-size: 0.88em;
  font-weight: 500;
  color: rgba(var(--content-color), 0.85);
  margin-right: 6px;
}

.product-details-section .product-right-box .order-box-new .pd-order-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  border-top: none;
}

.product-details-section .product-right-box .order-box-new .pd-order-total-row .label {
  font-size: 16px;
  font-weight: 600;
  color: rgba(var(--title-color), 0.9);
  margin: 0;
}

.product-details-section .product-right-box .order-box-new .pd-order-total-row .price {
  font-size: 22px;
  font-weight: 700;
  color: rgba(var(--primary-color), 1);
  margin: 0;
}

/* Share bar flush with order-box outer border */
.product-details-section .product-right-box .order-box-new .action-buttons {
  margin-bottom: 0;
}

.product-details-section .product-right-box .order-box-new .link-actions {
  margin-top: 16px;
  margin-inline: calc(-12px - 6 * (100vw - 991px) / 929);
  margin-bottom: 0;
  border-radius: 0 0 calc(8px + 2 * (100vw - 320px) / 1600) calc(8px + 2 * (100vw - 320px) / 1600);
}

.product-details-section .product-info-new .product-price {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.product-details-section .product-info-new .product-price del {
  font-size: 0.82em;
  font-weight: 500;
  margin-left: 0;
}

.product-details-section .product-right-box .order-box-new .product-qty-pricing-chart .table tbody td .offer {
  color: rgba(var(--error), 1);
  font-size: 0.88em;
  font-weight: 600;
  margin-left: 6px;
  white-space: nowrap;
}

.product-details-section .product-info-new .pd-order-qty-stock-mobile {
  margin-bottom: 12px;
}

.product-details-section .product-info-new .pd-order-qty-stock-mobile .pd-order-qty-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.product-details-section .product-info-new .pd-order-qty-stock-mobile .pd-order-field-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.product-details-section .product-info-new .pd-order-qty-stock-mobile .pd-order-stock {
  margin: 0;
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.product-details-section .product-info-new .pd-order-price-summary-mobile .pd-order-unit-price {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.product-details-section .product-info-new .pd-order-price-summary-mobile .pd-order-unit-price .pd-currency-code {
  font-size: 0.82em;
  font-weight: 600;
  color: rgba(var(--content-color), 0.95);
}

.product-details-section .product-info-new .pd-order-price-summary-mobile {
  max-width: 360px;
  margin-inline: auto;
  padding: 12px 14px;
  border: 1px solid rgba(var(--border-color), 1);
  border-radius: 10px;
  background: rgba(var(--background), 0.35);
}

.product-details-section .product-info-new .pd-order-price-summary-mobile .pd-order-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(var(--border-color), 0.9);
}

.product-details-section .product-info-new .pd-order-price-summary-mobile .pd-order-unit-price del {
  font-size: 0.88em;
  font-weight: 500;
  color: rgba(var(--content-color), 0.85);
  margin-right: 6px;
}

.product-details-section .product-info-new .pd-order-price-summary-mobile .pd-order-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  border-top: none;
}
