.pb-tshirt-ui{margin:28px 0;padding:24px;border:1px solid #e6e6e6;background:#fff;border-radius:10px}.pb-ui-heading{font-size:19px;font-weight:800;margin-bottom:12px;color:#222}.pb-size-heading{margin-top:22px}.pb-color-grid{display:flex;flex-wrap:wrap;gap:10px}.pb-color-swatch{width:72px;min-height:76px;padding:5px;border:2px solid transparent;background:#fff;border-radius:8px;cursor:pointer;text-align:center;transition:.18s}.pb-color-swatch span{display:block;width:58px;height:42px;margin:0 auto 5px;border-radius:6px;border:1px solid #888}.pb-color-swatch small{display:block;font-size:10px;line-height:1.1}.pb-color-swatch:hover{transform:translateY(-1px);border-color:#aaa}.pb-color-swatch.is-selected{border-color:#111;box-shadow:0 0 0 1px #111}.pb-size-grid{display:grid;grid-template-columns:repeat(5,minmax(90px,1fr));gap:10px}.pb-size-card{border:1px solid #bbb;background:#f2f2f2;border-radius:3px;padding:11px 7px;text-align:center}.pb-size-card.is-disabled{opacity:.45}.pb-size-name{font-size:20px;font-weight:800}.pb-stock{font-size:12px;color:#555;margin-top:5px;min-height:16px}.pb-price{font-size:14px;font-weight:800;color:#087a3b;margin-top:4px;min-height:18px}.pb-qty{display:flex;justify-content:center;align-items:center;margin-top:9px}.pb-qty button{width:30px;height:30px;border:1px solid #999;background:#fff;cursor:pointer;font-size:18px}.pb-qty input{width:42px;height:30px;border:1px solid #999;border-left:0;border-right:0;text-align:center;padding:0}.pb-ui-summary{display:flex;justify-content:space-between;margin:20px 0 15px;padding-top:15px;border-top:1px solid #eee;font-size:16px}.pb-total-price{color:#087a3b;font-size:22px}.pb-total-qty{font-size:20px}.pb-ui-actions{display:flex;gap:12px;flex-wrap:wrap}.pb-btn{border:0;background:#111;color:#fff;padding:14px 25px;font-size:16px;font-weight:800;cursor:pointer;min-height:48px}.pb-btn.pb-buy-now{background:#087a3b}.pb-ui-message{margin-top:12px;font-size:14px}.pb-ui-message.success{color:#087a3b}.pb-ui-message.error{color:#b00020}@media(max-width:700px){.pb-tshirt-ui{padding:16px}.pb-size-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pb-color-swatch{width:60px}.pb-color-swatch span{width:48px}.pb-ui-summary{display:block}.pb-ui-actions .pb-btn{width:100%}}
.pb-color-swatch .pb-color-icon{display:block;width:58px;height:42px;margin:0 auto 5px;border-radius:6px;border:1px solid #888;object-fit:contain;background:#fff}.pb-color-swatch.is-selected .pb-color-icon{outline:1px solid #111}

/* V4: separate button-style size options */
.pb-size-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(92px,1fr));
  gap:10px;
  margin:8px 0 16px;
}
.pb-size-card{
  min-width:0;
  border:1px solid #d9d9d9;
  border-radius:7px;
  background:#fff;
  padding:0 0 9px;
  text-align:center;
  overflow:hidden;
  transition:.15s ease;
}
.pb-size-card:hover{
  border-color:#888;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.pb-size-card.has-quantity{
  border-color:#222;
}
.pb-size-option{
  width:100%;
  min-height:54px;
  border:0;
  border-bottom:1px solid #e4e4e4;
  background:#f7f7f7;
  cursor:pointer;
  padding:7px 5px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
}
.pb-size-option:hover{background:#eee}
.pb-size-option.is-selected{
  background:#111;
  color:#fff;
}
.pb-size-option:disabled{
  cursor:not-allowed;
  opacity:.45;
}
.pb-size-name{
  font-size:17px;
  font-weight:700;
  line-height:1.1;
}
.pb-size-price{
  font-size:11px;
  font-weight:500;
  opacity:.85;
}
.pb-stock{
  font-size:10px;
  line-height:1.2;
  min-height:16px;
  margin:5px 3px 3px;
  opacity:.72;
}
.pb-qty{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:0;
  margin-top:5px;
}
.pb-qty button{
  width:28px;
  height:28px;
  padding:0;
  border:1px solid #cfcfcf;
  background:#f5f5f5;
  cursor:pointer;
  font-size:17px;
  line-height:26px;
}
.pb-qty input{
  width:36px;
  height:28px;
  padding:0 2px;
  border:1px solid #cfcfcf;
  border-left:0;
  border-right:0;
  text-align:center;
  font-size:13px;
  box-sizing:border-box;
}
.pb-size-card.is-disabled .pb-qty{display:none}

/* V5.0.1: Saira Medium for the main and selected-variation prices */
.single-product div.product .summary > .price,
.single-product div.product .summary > .price .amount,
.single-product div.product .woocommerce-variation-price .price,
.single-product div.product .woocommerce-variation-price .price .amount,
.single-product div.product .woocommerce-variation-price .woocommerce-Price-amount,
.single-product div.product .pb-size-price,
.single-product div.product .pb-price,
.single-product div.product .pb-total-price,
.single-product div.product .pb-total-price .amount{
  font-family:'Saira',sans-serif !important;
  font-weight:500 !important;
}

@media(max-width:520px){
  .pb-size-grid{grid-template-columns:repeat(3,1fr);gap:7px}
  .pb-size-name{font-size:15px}
}

/* V5: convert the native WooCommerce Size dropdown into real buttons */
.pb-native-size-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:6px 0 10px;
}
.pb-native-size-btn{
  min-width:48px;
  height:42px;
  padding:0 14px;
  border:1px solid #cfcfcf;
  border-radius:4px;
  background:#fff;
  color:#222;
  font-size:14px;
  font-weight:700;
  line-height:40px;
  text-align:center;
  cursor:pointer;
  box-shadow:none;
  transition:border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.pb-native-size-btn:hover:not(:disabled){
  border-color:#222;
  transform:translateY(-1px);
}
.pb-native-size-btn.is-selected{
  background:#111;
  border-color:#111;
  color:#fff;
}
.pb-native-size-btn:disabled,
.pb-native-size-btn.is-disabled{
  opacity:.35;
  cursor:not-allowed;
  text-decoration:line-through;
  transform:none;
}
.variations .pb-reset-variations{
  display:inline-block;
  margin-left:8px;
  font-size:12px;
}
@media(max-width:520px){
  .pb-native-size-buttons{gap:6px}
  .pb-native-size-btn{
    min-width:44px;
    height:40px;
    padding:0 10px;
    line-height:38px;
    font-size:13px;
  }
}
