body.tajfb-enabled .summary > .price,
body.tajfb-enabled .summary-inner > .price{display:none!important}

.tajfb-builder{--tajfb-accent:#FBBA2A;--tajfb-dark:#3b4143;margin:10px 0 16px;font-family:inherit}
.tajfb-top-price{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:15px}
.tajfb-top-price strong{font-size:26px;color:#d70016}.tajfb-top-price del{color:#999;font-weight:700}.tajfb-top-sale{background:#d70016;color:#fff;font-weight:800;padding:5px 18px;border-radius:2px}
.tajfb-builder-head{background:var(--tajfb-dark);color:#fff;text-align:center;padding:12px 16px;border-radius:5px;margin-bottom:12px}
.tajfb-builder-title{font-size:21px;font-weight:800;line-height:1.2}.tajfb-builder-subtitle{font-size:13px;margin-top:3px}
.tajfb-section{margin-bottom:12px}.tajfb-section-title{background:var(--tajfb-dark);color:#fff;font-weight:700;font-size:14px;padding:9px 12px;border-radius:4px;margin-bottom:10px}
.tajfb-options{display:flex;flex-wrap:wrap;gap:12px}.tajfb-option{position:relative;display:flex;flex-direction:column;width:92px;cursor:pointer;text-align:center;margin:0;border:2px solid transparent;border-radius:5px;background:#fff;transition:.15s ease;overflow:visible}
.tajfb-option input{position:absolute;opacity:0;pointer-events:none}.tajfb-option-image{display:block;width:88px;height:88px;overflow:hidden;border-radius:4px;background:#f3f3f3}.tajfb-option-image img{display:block;width:100%;height:100%;object-fit:cover}
.tajfb-option-label{display:block;padding:5px 3px 2px;font-size:11px;line-height:1.2;color:#555}.tajfb-option.is-selected{border-color:var(--tajfb-accent)}.tajfb-option.is-selected .tajfb-option-label{color:var(--tajfb-accent);font-weight:700}
.tajfb-selected-mark{display:none;position:absolute;right:-7px;top:-7px;z-index:8;width:18px;height:18px;line-height:16px;border-radius:50%;background:var(--tajfb-accent);color:#222;border:1px solid #fff;font-size:15px;font-weight:800;cursor:pointer;user-select:none;touch-action:manipulation}.tajfb-option.is-selected .tajfb-selected-mark{display:block}
.tajfb-options-height{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tajfb-height-option{width:auto;min-height:32px;border:1px solid #ddd;border-radius:2px;justify-content:center}.tajfb-height-option .tajfb-option-label{padding:7px;font-size:12px;font-weight:700}.tajfb-height-option.is-selected{border-color:var(--tajfb-accent)}
.tajfb-info-note{margin:8px 0 0;padding:8px 10px;background:#f6f6f6;border-radius:4px;color:#777;font-size:11px;line-height:1.4}
/* Configuration summary board */
.tajfb-summary{margin:16px 0 12px;border:1px solid #e3e6e8;border-radius:7px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(20,28,32,.06);color:#333}
.tajfb-summary-head{display:flex;align-items:center;gap:10px;background:var(--tajfb-dark);color:#fff;padding:11px 14px}
.tajfb-summary-check{display:flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;background:var(--tajfb-accent);color:#222;font-size:15px;font-weight:900;line-height:1}
.tajfb-summary-head-copy{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.tajfb-summary-head-copy strong{font-size:14px;font-weight:800;color:#fff}
.tajfb-summary-head-copy small{margin-top:2px;font-size:10px;font-weight:500;color:rgba(255,255,255,.72)}
.tajfb-summary-board{padding:4px 14px 6px;background:#fff}
.tajfb-summary-row{display:grid;grid-template-columns:minmax(115px,.8fr) minmax(0,1.2fr);align-items:center;gap:14px;min-height:38px;padding:8px 0;border-bottom:1px solid #edf0f1}
.tajfb-summary-row:last-child{border-bottom:0}
.tajfb-summary-name{position:relative;padding-left:13px;color:#777;font-size:11px;font-weight:600}
.tajfb-summary-name:before{content:"";position:absolute;left:0;top:50%;width:5px;height:5px;border-radius:50%;background:var(--tajfb-accent);transform:translateY(-50%)}
.tajfb-summary-choice{justify-self:end;max-width:100%;color:#222;font-size:12px;font-weight:800;text-align:right;overflow-wrap:anywhere}
.tajfb-total-box{display:flex;align-items:center;gap:10px;border:1px solid #ddd;padding:12px 15px;margin-top:12px}.tajfb-sale-badge{background:#d70016;color:#fff;font-weight:800;padding:7px 20px}.tajfb-total-label{margin-left:auto;font-weight:700}.tajfb-total-box strong{color:#d70016;font-size:24px}.tajfb-total-box del{color:#999;font-weight:700}
body.tajfb-enabled form.cart .single_add_to_cart_button{background:var(--tajfb-accent,#FBBA2A)!important;color:#1f2326!important;font-weight:800!important}
body.tajfb-enabled form.cart .quantity{margin-right:0}
body.tajfb-enabled form.cart .single_add_to_cart_button:disabled{opacity:.5!important;cursor:not-allowed!important}

@media(max-width:767px){
 .tajfb-builder-title{font-size:19px}.tajfb-options{gap:10px}.tajfb-option{width:88px}.tajfb-option-image{width:84px;height:84px}.tajfb-options-height{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tajfb-total-box{flex-wrap:wrap}.tajfb-total-label{margin-left:0}.tajfb-total-box strong{font-size:22px}
 .tajfb-summary{margin:14px 0 12px;border-radius:6px}.tajfb-summary-head{padding:10px 12px}.tajfb-summary-board{padding:3px 12px 5px}.tajfb-summary-row{grid-template-columns:minmax(100px,.85fr) minmax(0,1.15fr);gap:10px;min-height:36px;padding:7px 0}.tajfb-summary-name{font-size:10.5px}.tajfb-summary-choice{font-size:11.5px}
}

/* v1.5 smooth variation preview switching */
body.tajfb-enabled .woocommerce-product-gallery__image img{
  transition:opacity .20s ease,transform .20s ease;
  will-change:opacity,transform;
}
body.tajfb-enabled .woocommerce-product-gallery__image img.tajfb-preview-switching{
  opacity:.25;
  transform:scale(.992);
}

/* v1.6 accessory group polish */
.tajfb-accessory-section .tajfb-options{align-items:flex-start}
.tajfb-accessory-section .tajfb-option{min-height:1px}
.tajfb-accessory-section .tajfb-option.is-selected{box-shadow:0 0 0 1px var(--tajfb-accent)}


/* v1.6.1 conditional Post Type -> Accessories */
.tajfb-post-system-options{align-items:flex-start}
.tajfb-post-system-option{width:150px;min-height:1px}
.tajfb-post-system-option .tajfb-option-image{width:146px;height:105px}
.tajfb-post-system-option .tajfb-option-label{padding:7px 5px 5px;font-size:11px;line-height:1.25}
.tajfb-system-fallback{display:flex;width:146px;height:72px;align-items:center;justify-content:center;border-radius:4px;background:#f1f3f4;color:#70777a;font-size:34px;font-weight:700}
.tajfb-accessory-section{margin-left:12px;padding-left:12px;border-left:3px solid color-mix(in srgb,var(--tajfb-accent) 55%,#d9dddf)}
.tajfb-accessory-section .tajfb-section-title{background:#4a5052}
@media(max-width:767px){
  .tajfb-post-system-option{width:calc(50% - 5px);max-width:155px}
  .tajfb-post-system-option .tajfb-option-image,.tajfb-system-fallback{width:100%;height:92px}
  .tajfb-accessory-section{margin-left:6px;padding-left:8px}
}


/* v1.6.2: split the two post systems into separate frontend sections */
.tajfb-post-system-section{margin-bottom:12px}
.tajfb-post-system-section .tajfb-post-system-options{display:flex;align-items:flex-start}
.tajfb-post-system-section .tajfb-post-system-option{width:150px;max-width:100%}
.tajfb-post-system-section .tajfb-info-note{margin-top:8px}
@media(max-width:767px){
  .tajfb-post-system-section .tajfb-post-system-option{width:150px;max-width:48%}
}

/* v1.8 flexible reusable element buttons (Size-style) */
.tajfb-options-buttons{display:flex;flex-wrap:wrap;gap:10px}
.tajfb-options-buttons .tajfb-option-button{width:auto;min-width:48px;display:inline-flex;justify-content:center;border:1px solid #d7dce0;border-radius:4px;background:#fff;overflow:visible}
.tajfb-options-buttons .tajfb-option-button .tajfb-option-image{display:none}
.tajfb-options-buttons .tajfb-option-button .tajfb-option-label{padding:8px 12px;font-size:12px;font-weight:700;color:#2f3437}
.tajfb-options-buttons .tajfb-option-button.is-selected{border-color:var(--tajfb-accent);background:var(--tajfb-accent)}
.tajfb-options-buttons .tajfb-option-button.is-selected .tajfb-option-label{color:#1f2326}
@media(max-width:767px){.tajfb-options-buttons{gap:8px}.tajfb-options-buttons .tajfb-option-button .tajfb-option-label{padding:7px 10px}}

/* v1.8.5: Brand image cards match the requested frontend reference. */
.tajfb-brand-section .tajfb-options{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 12px}
.tajfb-brand-section .tajfb-option{box-sizing:border-box;flex:0 0 82px;width:82px;max-width:82px;padding:2px 2px 3px;border:1px solid transparent;border-radius:5px;overflow:visible;background:#fff;box-shadow:none;min-width:0}
.tajfb-brand-section .tajfb-option-image{box-sizing:border-box;width:100%;height:95px;border-radius:2px;background:#f3f3f3;overflow:hidden}
.tajfb-brand-section .tajfb-option-image img{width:100%;height:100%;object-fit:cover}
.tajfb-brand-section .tajfb-option-label{box-sizing:border-box;width:100%;padding:5px 0 2px;font-size:10px;line-height:1.2;font-weight:400;color:#333;white-space:normal;overflow-wrap:anywhere}
.tajfb-brand-section .tajfb-option.is-selected{border-color:#ffae16;box-shadow:none}
.tajfb-brand-section .tajfb-option.is-selected .tajfb-option-label{color:#ff9f00;font-weight:400}
.tajfb-brand-section .tajfb-selected-mark{display:none!important}
@media(max-width:767px){.tajfb-brand-section .tajfb-options{gap:8px}.tajfb-brand-section .tajfb-option{flex-basis:calc((100% - 24px)/4);width:calc((100% - 24px)/4);max-width:82px}.tajfb-brand-section .tajfb-option-image{height:clamp(65px,19vw,95px)}.tajfb-brand-section .tajfb-option-label{font-size:9px}}

/* v1.9.3: readable brand and fence colour labels, desktop + mobile */
.tajfb-brand-section .tajfb-option-label,
#tajfb-section-colour .tajfb-option-label{
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.4!important;
  letter-spacing:0!important;
  color:#252a2c;
  text-align:center;
  padding:7px 2px 5px!important;
  white-space:normal;
  overflow-wrap:break-word;
}
.tajfb-brand-section .tajfb-option.is-selected .tajfb-option-label,
#tajfb-section-colour .tajfb-option.is-selected .tajfb-option-label{
  color:#db8200!important;
  font-weight:800!important;
}
.tajfb-brand-section .tajfb-option{flex-basis:100px;width:100px;max-width:100px}
#tajfb-section-colour .tajfb-option{min-width:98px;width:98px;max-width:110px}
@media(max-width:767px){
  .tajfb-brand-section .tajfb-options,
  #tajfb-section-colour .tajfb-options{gap:9px 7px}
  .tajfb-brand-section .tajfb-option{flex:0 0 calc((100% - 21px)/4);width:calc((100% - 21px)/4);max-width:none}
  .tajfb-brand-section .tajfb-option-label,
  #tajfb-section-colour .tajfb-option-label{font-size:12px!important;line-height:1.35!important;padding:6px 1px 4px!important}
  #tajfb-section-colour .tajfb-option{min-width:0;width:calc((100% - 21px)/4);max-width:none}
}

/* v1.9.4: Brand-only four-column, single-line labels. Colour cards are unchanged. */
.tajfb-brand-section .tajfb-options{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  align-items:start;
}
.tajfb-brand-section .tajfb-option{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  flex:none!important;
  padding:2px!important;
}
.tajfb-brand-section .tajfb-option-label{
  display:block!important;
  width:100%!important;
  white-space:nowrap!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  font-size:clamp(9px, 1.0vw, 12px)!important;
  line-height:1.5!important;
  letter-spacing:-.3px!important;
  padding:5px 0 3px!important;
}
@media(max-width:767px){
  .tajfb-brand-section .tajfb-options{gap:4px!important}
  .tajfb-brand-section .tajfb-option-label{font-size:clamp(8px,2.15vw,11px)!important;letter-spacing:-.4px!important}
  .tajfb-brand-section .tajfb-option-image{height:clamp(60px,18vw,95px)}
}

/* Desktop-only gallery-attached summary. Woodmart handles the gallery stickiness;
   the mirrored summary remains anchored BELOW the gallery, never fixed to viewport. */
@media (min-width: 1025px) {
  body.tajfb-has-gallery-summary #tajfb-builder > #tajfb-summary { display:none!important; }
  body.tajfb-has-gallery-summary .woocommerce-product-gallery:has(> .tajfb-gallery-summary-slot) {
    overflow:visible!important;
    padding-bottom:var(--tajfb-summary-space, 0px)!important;
    box-sizing:border-box!important;
  }
  body.tajfb-has-gallery-summary .woocommerce-product-gallery > .tajfb-gallery-summary-slot {
    position:absolute!important;
    display:block!important;
    top:calc(100% - var(--tajfb-summary-space, 0px))!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    margin:12px 0 0!important;
    z-index:3;
    box-sizing:border-box;
    pointer-events:none;
  }
  body.tajfb-has-gallery-summary .tajfb-gallery-summary-copy {
    display:block;
    width:100%;
    margin:0;
    box-sizing:border-box;
    pointer-events:auto;
    --tajfb-accent:#FBBA2A;
    --tajfb-dark:#3b4143;
  }
}

/* v1.10.3: the summary follows the gallery's native sticky lifecycle. */
@media (min-width:1025px) {
  body.tajfb-has-gallery-summary .tajfb-gallery-summary-slot,
  body.tajfb-has-gallery-summary .tajfb-gallery-summary-copy {
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    transition:none!important;
  }
}
