/* Graham single-product UOM and purchase controls. */
.graham-uom-purchase-row {
  align-items: stretch !important;
  background: #f6f9fb;
  border: 1px solid #dce6ee;
  border-radius: 12px;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  margin: 16px 0 14px !important;
  padding: 16px !important;
  width: 100%;
}

.graham-uom-purchase-row .graham-product-uom-picker {
  display: grid;
  gap: 6px;
  margin: 0 !important;
  min-width: 0;
  width: 100% !important;
}

.graham-uom-purchase-row .graham-product-uom-picker label,
.graham-uom-purchase-row .quantity::before {
  color: #526c80;
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.graham-uom-purchase-row .graham-product-uom-picker select,
.graham-uom-purchase-row .graham-product-uom-single,
.graham-uom-purchase-row .quantity .qty,
.graham-uom-purchase-row .single_add_to_cart_button {
  box-sizing: border-box !important;
  height: 50px !important;
  min-height: 50px !important;
}

.graham-uom-purchase-row .graham-product-uom-picker select {
  appearance: auto;
  background: #fff;
  border: 1px solid #9eb8c8;
  border-radius: 8px;
  color: #17324a;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  min-width: 0;
  padding: 0 36px 0 12px;
  width: 100%;
}

.graham-uom-purchase-row .graham-product-uom-picker select:focus,
.graham-uom-purchase-row .quantity .qty:focus {
  border-color: #075b9d;
  box-shadow: 0 0 0 3px rgba(7, 91, 157, 0.12);
  outline: 0;
}

.graham-uom-purchase-row .graham-product-uom-single {
  align-items: center;
  background: #fff;
  border: 1px solid #9eb8c8;
  border-radius: 8px;
  color: #17324a;
  display: flex;
  font-size: 1rem;
  font-weight: 800;
  padding: 0 12px;
}

body.single-product .graham-uom-purchase-row .quantity,
body.single-product .graham-uom-purchase-row .variations_button .quantity {
  display: grid !important;
  flex: 0 0 auto !important;
  gap: 6px;
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}

body.single-product .graham-uom-purchase-row .quantity::before {
  content: "Qty to purchase";
  white-space: nowrap;
}

body.single-product .graham-uom-purchase-row .quantity .qty {
  background: #fff;
  border: 1px solid #9eb8c8;
  border-radius: 8px;
  color: #17324a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 50px;
  margin: 0 !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 8px;
  text-align: center;
  width: 100% !important;
}

body.single-product .graham-uom-purchase-row .single_add_to_cart_button {
  align-items: center;
  align-self: stretch;
  background: #1eaa52 !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 7px 16px rgba(30, 170, 82, 0.18) !important;
  color: #fff !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  gap: 9px;
  justify-content: center;
  line-height: 1.1 !important;
  margin: 0 !important;
  max-width: 100% !important;
  min-width: 100% !important;
  overflow-wrap: normal !important;
  padding: 0 20px !important;
  white-space: nowrap !important;
  width: 100% !important;
}

body.single-product .graham-uom-purchase-row .single_add_to_cart_button::before {
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2 10h10l2-7H7'/%3E%3Ccircle cx='9' cy='19' r='1.5'/%3E%3Ccircle cx='17' cy='19' r='1.5'/%3E%3Cpath d='M15 2v6M12 5h6'/%3E%3C/svg%3E");
  content: "";
  flex: 0 0 22px;
  height: 22px;
  width: 22px;
}

body.single-product .graham-uom-purchase-row .single_add_to_cart_button:hover,
body.single-product .graham-uom-purchase-row .single_add_to_cart_button:focus-visible {
  background: #12833c !important;
  transform: translateY(-1px);
}

.graham-uom-purchase-row .graham-product-uom-helper {
  color: #687e8f;
  font-size: 0.72rem;
  line-height: 1.35;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.graham-product-uom-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.graham-product-uom-picker label { margin: 0; }
.graham-product-uom-picker select {
  min-width: 84px;
  min-height: 38px;
  padding: 5px 28px 5px 9px;
}
.graham-product-uom-single {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 3px 9px;
  border: 1px solid #d8e1e8;
  border-radius: 6px;
  background: #f7f9fa;
  font-weight: 600;
}

.graham-uom-live-price {
  align-items: center;
  background: #fff;
  border: 1px solid #cbdce8;
  border-left: 4px solid #16853d;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  justify-content: space-between;
  margin-top: 2px;
  max-width: 100%;
  min-width: 0;
  padding: 8px 10px;
  width: 100%;
}

.graham-uom-live-price-label {
  color: #526c80;
  flex: 1 1 90px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.graham-uom-live-price-value {
  color: #075b9d;
  flex: 0 1 auto;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: right;
}

.graham-uom-live-price-value .graham-customer-price-label {
  font-size: 0.58rem;
  margin-right: 4px;
  vertical-align: middle;
}

.graham-uom-live-price-value .graham-price-review {
  font-size: 0.82rem;
}

.graham-targeted-main-price {
  align-items: baseline;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  max-width: 100%;
}

.graham-targeted-main-price-label {
  color: #075b9d;
  flex-basis: 100%;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.graham-targeted-main-price-regular {
  align-items: baseline;
  color: #60778a;
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 3px 6px;
}

.graham-targeted-main-price-regular small {
  font-size: 0.68rem;
  font-weight: 700;
}

.graham-targeted-main-price-regular del,
.graham-targeted-main-price-regular del .woocommerce-Price-amount {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: 600 !important;
}

.graham-targeted-main-price-current {
  color: #075b9d;
  font-size: inherit;
  font-weight: 900;
  white-space: nowrap;
}

.graham-targeted-main-price-current small {
  color: #526c80;
  font-size: 0.46em;
  font-weight: 750;
}

.graham-targeted-main-price--limited_time .graham-targeted-main-price-label,
.graham-targeted-main-price--limited_time .graham-targeted-main-price-current {
  color: #11833d;
}

.graham-targeted-main-price--clearance .graham-targeted-main-price-label,
.graham-targeted-main-price--clearance .graham-targeted-main-price-current {
  color: #b4233f;
}

@keyframes graham-uom-price-pulse {
  0% { background-color: #dcf5e5; }
  100% { background-color: #fff; }
}

.graham-uom-live-price.is-updated {
  animation: graham-uom-price-pulse 420ms ease-out;
}

.graham-uom-price-updated {
  animation: graham-uom-price-pulse 420ms ease-out;
}

.graham-volume-pricing {
  align-items: stretch;
  background: #edf8f1;
  border: 1px solid #b9dfc6;
  border-radius: 8px;
  box-sizing: border-box;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 2px;
  min-width: 0;
  padding: 8px 10px;
  width: 100%;
}

.graham-volume-pricing[hidden] {
  display: none !important;
}

.graham-volume-pricing-label {
  color: #176b38;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.2;
  min-width: 0;
  text-transform: uppercase;
}

.graham-volume-pricing-tiers {
  background: #fff;
  border: 1px solid #c7ddcf;
  border-radius: 5px;
  display: grid;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.graham-volume-tier {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #dbe9e0;
  color: #17324a;
  display: grid;
  font-size: 0.8rem;
  gap: 12px;
  grid-template-columns: minmax(78px, 1fr) auto;
  line-height: 1.25;
  padding: 6px 8px;
}

.graham-volume-tier:last-child {
  border-bottom: 0;
}

.graham-volume-tier strong {
  color: #176b38;
}

.graham-volume-tier.is-active {
  background: #ddf3e5;
  color: #123c27;
}

.graham-volume-tier.is-active strong {
  color: #0d6a34;
}

.graham-volume-tier-price {
  font-weight: 800;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
}

.graham-volume-tier-price small {
  color: #526a5c;
  font-size: 0.72rem;
  font-weight: 650;
}

.graham-volume-price-uom {
  color: #52667a;
  font-size: 0.48em;
  font-weight: 750;
}

.graham-volume-pricing-next {
  color: #176b38;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.3;
  min-width: 0;
}

.graham-cart-uom-picker {
  margin-top: 7px;
  font-size: 13px;
}
.graham-cart-uom-picker label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.graham-cart-uom-picker label > span {
  font-weight: 600;
}
.graham-cart-uom-picker select {
  min-width: 78px;
  min-height: 34px;
  padding: 3px 26px 3px 8px;
}

.graham-product-measurements {
  background: #f8fafb;
  border: 1px solid #dfe6eb;
  border-radius: 10px;
  margin: 12px 0 14px;
  padding: 12px 14px;
}
.graham-product-measurements h3 {
  color: #17324a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.graham-product-measurements dl {
  display: grid;
  gap: 0 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.graham-product-measurements dl > div {
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr;
  padding: 5px 0;
}
.graham-product-measurements dt {
  color: #63778a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.graham-product-measurements dd {
  color: #17324a;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 700px) {
  .graham-uom-purchase-row {
    gap: 11px !important;
    padding: 14px !important;
  }
  .graham-uom-purchase-row .graham-product-uom-picker {
    min-width: 0;
  }
  body.single-product .graham-uom-purchase-row .quantity,
  body.single-product .graham-uom-purchase-row .quantity .qty {
    width: 100% !important;
  }
  .graham-product-measurements dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  body.single-product .graham-uom-purchase-row .quantity,
  body.single-product .graham-uom-purchase-row .quantity .qty {
    width: 100% !important;
  }
  .graham-uom-live-price {
    align-items: flex-start;
    flex-direction: column;
  }
  .graham-uom-live-price-label {
    flex-basis: auto;
  }
  .graham-uom-live-price-value {
    text-align: left;
  }
  .graham-volume-pricing {
    align-items: stretch;
    gap: 5px;
    max-width: 100%;
    padding: 7px;
  }
  .graham-volume-pricing-tiers {
    max-width: 100%;
  }
  .graham-volume-tier {
    gap: 6px;
    grid-template-columns: minmax(62px, .8fr) minmax(104px, 1.2fr);
    padding: 7px 8px;
  }
  .graham-volume-tier strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .graham-volume-tier-price {
    font-size: .76rem;
  }
  .graham-volume-tier-price small {
    font-size: .66rem;
  }
}
