.pampuha-configurator{max-width:1180px;margin:auto;color:#222}.pc-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr);gap:28px}.pc-kicker,.pc-label{font-size:11px;letter-spacing:.14em;color:#777}.pampuha-configurator h2{font-size:34px;margin:6px 0}.pc-intro,.pc-help{color:#777;line-height:1.5}.pampuha-configurator section{border-top:1px solid #ddd;padding:22px 0}.pampuha-configurator h3{font-size:18px;margin:0 0 12px}.pampuha-configurator h3 b{font-size:11px;color:#888;margin-right:10px}.pc-options{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.pc-options button,.pc-material,.pc-checks label,.pc-add,.pc-save{border:1px solid #ddd;background:#fff;border-radius:10px;padding:13px;color:inherit;cursor:pointer}.pc-options button.active,.pc-material.active{border:2px solid #222;background:#f5f5f2;padding:12px}.pc-options small{display:block;color:#777;margin-top:4px}.pc-materials{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pc-material{display:flex;flex-direction:column;gap:8px;text-align:left;min-height:110px}.pc-material i{display:block;height:52px;border-radius:7px;background:#222}.pc-material i.walnut{background:linear-gradient(135deg,#4b2f1e,#a36c3d,#321d12)}.pc-material i.birch{background:linear-gradient(135deg,#bca47d,#e3d2a9,#88724f)}.pc-material i.micarta{background:linear-gradient(135deg,#4a4033,#8b7a61,#3b3329)}.pc-material i.rosewood{background:linear-gradient(135deg,#351710,#8a4028,#2b100b)}.pc-material i.macassar{background:linear-gradient(135deg,#17120f,#765038,#bd9660,#17120f)}.pc-checks{display:grid;gap:8px}.pc-checks label{display:flex;align-items:center;gap:10px}.pc-checks small{color:#777}.pc-summary{min-width:0}.pc-sticky{position:sticky;top:20px;border:1px solid #ddd;border-radius:14px;padding:18px;background:#fff}.pc-visual{height:180px;background:#f5f5f2;border-radius:10px;display:grid;place-items:center;font-size:28px;font-weight:700;margin-bottom:18px}.pc-summary p{display:flex;justify-content:space-between;border-bottom:1px solid #eee;padding:8px 0;margin:0}.pc-total{font-size:26px;font-weight:700;padding:18px 0}.pc-add,.pc-save{width:100%;min-height:48px}.pc-add{background:#222;color:#fff;border:0;font-weight:700}.pc-save{margin-top:8px}.pc-msg{font-size:13px;margin-top:9px}@media(max-width:800px){.pc-grid{grid-template-columns:1fr}.pc-sticky{position:static}.pc-materials{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){.pc-options{grid-template-columns:1fr}.pampuha-configurator h2{font-size:28px}}
.pampuha-material-image{display:block;height:62px;border-radius:7px;overflow:hidden;background:#f1f1ee}.pampuha-material-image img{width:100%;height:100%;object-fit:cover;display:block}.pampuha-material-placeholder{display:block;width:100%;height:100%;background:#e7e7e2}.pc-material-image{cursor:pointer;position:relative}.pc-material-count{display:block;color:#777;font-size:11px;margin-top:2px}.pampuha-lightbox[hidden]{display:none}.pampuha-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center}.pampuha-lightbox-inner{max-width:92vw;max-height:82vh;padding:30px}.pampuha-lightbox-inner img{max-width:100%;max-height:78vh;display:block;object-fit:contain}.pampuha-lightbox-close,.pampuha-lightbox-prev,.pampuha-lightbox-next{position:absolute;border:0;background:rgba(255,255,255,.14);color:#fff;border-radius:50%;width:44px;height:44px;font-size:30px;cursor:pointer}.pampuha-lightbox-close{right:22px;top:22px}.pampuha-lightbox-prev{left:22px;top:50%}.pampuha-lightbox-next{right:22px;top:50%}.pampuha-lightbox-caption{position:absolute;bottom:20px;left:0;right:0;text-align:center;color:#fff;font-size:14px}
.pc-visual{position:relative;overflow:hidden}
.pc-config-image{width:100%;height:100%;object-fit:contain;display:none}
.pc-config-placeholder{display:block}
\n.pc-order-form{display:grid;gap:8px;margin:12px 0 10px}.pc-order-form input,.pc-order-form textarea{width:100%;box-sizing:border-box;border:1px solid #ddd;border-radius:8px;padding:10px;font:inherit;background:#fff}.pc-order-form textarea{resize:vertical}.pc-order-form input:focus,.pc-order-form textarea:focus{outline:none;border-color:#222}.pc-msg{margin-top:10px;font-size:14px;line-height:1.4}\n
.pc-material-image img{transition:transform .2s}.pc-material:hover .pc-material-image img{transform:scale(1.03)}

.pampuha-variant-panel{margin-top:16px;padding-top:14px;border-top:1px solid #eee}
.pampuha-variant-options{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:8px}
.pampuha-variant{border:1px solid #ddd;background:#fff;border-radius:9px;padding:8px;text-align:left;cursor:pointer}
.pampuha-variant.active{border:2px solid #222;padding:7px}
.pampuha-variant img,.pampuha-variant-placeholder{display:block;width:100%;height:70px;object-fit:cover;border-radius:6px;background:#eee;margin-bottom:6px}
.pampuha-variant span:last-child{font-size:13px}
@media(max-width:800px){.pampuha-variant-options{grid-template-columns:repeat(2,1fr)}}



/* 1.7.7: stable native sticky; no JS fixed-position switching */
.pc-grid{align-items:start}
.pc-summary{align-self:start;min-width:0}
.pc-sticky{position:-webkit-sticky;position:sticky;top:20px;z-index:20;transform:none;will-change:auto}
.pampuha-steel-price-table{overflow:hidden}
.pampuha-steel-price-table th,.pampuha-steel-price-table td{vertical-align:top}
.pampuha-steel-price-table .pampuha-steel-name{width:130px;min-width:110px}
@media(max-width:800px){
  .pc-grid{grid-template-columns:1fr;gap:18px}
  .pc-summary{order:-1}
  .pc-sticky{position:static!important;top:auto}
  .pc-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pc-materials{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pc-visual{height:210px}
  .pc-total{font-size:24px}
  .pampuha-configurator{padding-left:14px;padding-right:14px}
}
@media(max-width:560px){
  .pampuha-configurator h2{font-size:27px;line-height:1.15}
  .pc-options{grid-template-columns:1fr}
  .pc-materials{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .pc-material{min-height:100px;padding:10px}
  .pc-material.active{padding:9px}
  .pc-material-image{height:58px}
  .pampuha-variant-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .pampuha-variant img,.pampuha-variant-placeholder{height:62px}
  .pc-checks label{padding:12px 10px}
  .pc-order-form input,.pc-order-form textarea{font-size:16px}
  .pc-add,.pc-save{min-height:50px}
  .pampuha-steel-price-table{display:block;overflow-x:auto;white-space:nowrap}
}

/* 1.7.8: keep the dynamic steel price table inside the WordPress admin content */
.pampuha-steel-price-table{
  width:100% !important;
  max-width:100% !important;
  table-layout:fixed;
  box-sizing:border-box;
}
.pampuha-steel-price-table th,
.pampuha-steel-price-table td{
  box-sizing:border-box;
  overflow:hidden;
}
.pampuha-steel-price-table th:first-child,
.pampuha-steel-price-table td:first-child{
  width:90px;
}
.pampuha-steel-price-table .pampuha-steel-col{
  width:auto;
}
.pampuha-steel-price-table .pampuha-steel-name{
  display:block;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  box-sizing:border-box;
}
.pampuha-steel-price-table .pampuha-steel-price{
  max-width:90px;
  box-sizing:border-box;
}
.pampuha-steel-price-table .button-link-delete{
  white-space:nowrap;
}
@media screen and (max-width:782px){
  .pampuha-steel-price-table{
    font-size:13px;
  }
  .pampuha-steel-price-table th:first-child,
  .pampuha-steel-price-table td:first-child{
    width:72px;
  }
  .pampuha-steel-price-table .pampuha-steel-name{
    font-size:13px;
  }
}

/* 1.7.9: stable order panel + required contact fields */
.pampuha-configurator,
.pampuha-configurator .pc-grid,
.pampuha-configurator .pc-summary{
  overflow:visible !important;
}
.pampuha-configurator .pc-grid{
  align-items:start;
}
.pampuha-configurator .pc-summary{
  align-self:start;
  min-width:0;
}
.pampuha-configurator .pc-sticky{
  position:-webkit-sticky !important;
  position:sticky !important;
  top:16px !important;
  align-self:start;
  transform:none !important;
  will-change:auto !important;
  contain:layout style;
}
.pc-order-form .pc-field{
  display:block;
  margin:0;
}
.pc-order-form .pc-field > span{
  display:block;
  font-size:13px;
  margin:0 0 5px;
  color:#555;
}
.pc-order-form .pc-field > span b{
  color:#b00000;
}
.pc-order-form .pc-field input{
  display:block;
}
.pc-order-form .pc-field-error{
  display:block;
  min-height:17px;
  margin:3px 0 0;
  font-size:12px;
  line-height:1.3;
  color:#b00000;
}
.pc-order-form .pc-field-invalid{
  border-color:#b00000 !important;
  box-shadow:0 0 0 1px #b00000;
}
.pc-msg{
  min-height:20px;
}
@media(max-width:800px){
  .pampuha-configurator .pc-sticky{
    position:static !important;
    top:auto !important;
    contain:none;
  }
}
@media(max-width:560px){
  .pc-order-form .pc-field > span{font-size:12px}
  .pc-order-form input,.pc-order-form textarea{min-height:46px}
}

/* 1.8.0: compact steel price table */
.pampuha-steel-price-table{
  width:100% !important;
  max-width:1100px !important;
  table-layout:fixed !important;
  box-sizing:border-box !important;
}
.pampuha-steel-price-table th,
.pampuha-steel-price-table td{
  box-sizing:border-box !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  padding:8px 10px !important;
}
.pampuha-steel-price-table th:first-child,
.pampuha-steel-price-table td:first-child{
  width:85px !important;
  max-width:85px !important;
}
.pampuha-steel-price-table .pampuha-steel-col{
  width:auto !important;
}
.pampuha-steel-price-table .pampuha-steel-name{
  display:block !important;
  width:100% !important;
  max-width:190px !important;
  min-width:0 !important;
  margin:0 0 4px !important;
  box-sizing:border-box !important;
}
.pampuha-steel-price-table .pampuha-steel-price{
  width:85px !important;
  max-width:85px !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}
.pampuha-steel-price-table .pampuha-remove-steel{
  font-size:12px !important;
}
@media screen and (max-width:1100px){
  .pampuha-steel-price-table{
    max-width:100% !important;
  }
  .pampuha-steel-price-table .pampuha-steel-name{
    max-width:150px !important;
  }
}
@media screen and (max-width:782px){
  .pampuha-steel-price-table{
    font-size:13px !important;
  }
  .pampuha-steel-price-table .pampuha-steel-name{
    max-width:120px !important;
  }
  .pampuha-steel-price-table th,
  .pampuha-steel-price-table td{
    padding:6px !important;
  }
}

/* 1.8.1: normal compact steel table in WP admin */
.pampuha-steel-table-wrap{width:100%;max-width:1050px;overflow-x:auto;box-sizing:border-box}
.pampuha-steel-table-wrap .pampuha-steel-price-table{width:100% !important;max-width:none !important;table-layout:fixed !important}
.pampuha-steel-table-wrap .pampuha-steel-price-table th:first-child,.pampuha-steel-table-wrap .pampuha-steel-price-table td:first-child{width:90px !important}
.pampuha-steel-table-wrap .pampuha-steel-price-table .pampuha-steel-col{width:180px !important}
.pampuha-steel-table-wrap .pampuha-steel-name{width:150px !important;max-width:150px !important;min-width:0 !important;display:block !important}
.pampuha-steel-table-wrap .pampuha-steel-price{width:80px !important;max-width:80px !important;min-width:0 !important}
.pampuha-steel-table-wrap .pampuha-remove-steel{font-size:12px;white-space:nowrap}
@media screen and (max-width:782px){.pampuha-steel-table-wrap{max-width:100%;overflow-x:auto}.pampuha-steel-table-wrap .pampuha-steel-price-table{min-width:700px}.pampuha-steel-table-wrap .pampuha-steel-col{width:145px !important}.pampuha-steel-table-wrap .pampuha-steel-name{width:125px !important;max-width:125px !important}}


/* 1.8.7 mobile layout: order form follows the configurator */
@media (max-width:800px){
  .pampuha-configurator .pc-grid{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
  }
  .pampuha-configurator .pc-grid > main{
    order:1 !important;
    width:100% !important;
  }
  .pampuha-configurator .pc-grid > .pc-summary{
    order:2 !important;
    width:100% !important;
    position:static !important;
    top:auto !important;
    margin-top:24px !important;
  }
  .pampuha-configurator .pc-sticky{
    position:static !important;
    top:auto !important;
    transform:none !important;
    will-change:auto !important;
  }
  .pampuha-configurator .pc-mobile-order-bar{
    display:none !important;
  }
  .pampuha-configurator{
    padding-bottom:0 !important;
  }
  /* Safari/WebKit: option labels stay dark, not link-blue. */
  .pampuha-configurator .pampuha-variant,
  .pampuha-configurator .pampuha-variant:visited,
  .pampuha-configurator .pampuha-variant:hover,
  .pampuha-configurator .pampuha-variant:focus{
    color:#222 !important;
    -webkit-text-fill-color:#222 !important;
    text-decoration:none !important;
  }
  .pampuha-configurator .pampuha-variant span{
    color:inherit !important;
    -webkit-text-fill-color:inherit !important;
  }
}

/* 1.8.8: validation and clean summary layout */
.pc-summary p{
  display:grid !important;
  grid-template-columns:minmax(80px,.75fr) minmax(0,1.25fr);
  gap:14px;
  align-items:start;
  line-height:1.4;
}
.pc-summary p strong{
  min-width:0;
  text-align:right;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.4;
}
.pc-order-form .pc-contact-phone,
.pc-order-form .pc-contact-email{
  letter-spacing:.01em;
}
.pc-msg{
  line-height:1.5;
  color:#333;
}
.pc-msg:empty{display:none}
@media(max-width:800px){
  .pc-summary p{grid-template-columns:minmax(90px,.7fr) minmax(0,1.3fr);gap:10px}
}
@media(max-width:560px){
  .pc-summary p{grid-template-columns:minmax(82px,.7fr) minmax(0,1.3fr);gap:8px}
  .pc-summary p strong{font-size:15px}
}

/* 1.8.9: price breakdown and steel surcharges */
.pc-price-breakdown{border-top:1px solid #eee;margin-top:8px;padding-top:6px}
.pc-price-breakdown > div{display:flex;justify-content:space-between;gap:14px;align-items:baseline;border-bottom:1px solid #eee;padding:7px 0;font-size:13px;line-height:1.35}
.pc-price-breakdown > div:last-child{border-bottom:0}
.pc-price-breakdown strong{font-weight:600;text-align:right;white-space:nowrap}
.pc-price-extras:empty{display:none}
.pc-price-extra-row{margin:0!important;padding:7px 0!important;border-bottom:1px solid #eee!important}
.pc-price-extra-row span{min-width:0}
.pc-total{border-top:1px solid #ddd;margin-top:4px;padding-top:14px}
.pampuha-base-label{color:#777;font-size:13px;font-weight:600}
.pampuha-plus-prefix{display:inline-block;margin-right:3px;color:#555}
@media(max-width:560px){
  .pc-price-breakdown > div{font-size:14px}
  .pc-price-breakdown strong{white-space:normal}
}

/* 1.9.0: material descriptions and client-only final price */
.pc-material-description{display:block !important;width:100%;box-sizing:border-box;margin:0;color:#777;font-size:12px;line-height:1.35;font-style:normal;font-weight:400;white-space:normal;overflow-wrap:anywhere;word-break:normal;}
.pc-material-description br{display:block;}
.pc-material > span:not(.pc-material-image){display:block;line-height:1.25;}
.pc-save:disabled{opacity:.65;cursor:wait;}
.pc-field-invalid{border-color:#b42318 !important;}

/* 1.9.1: short buyer-friendly descriptions for models and steels */
.pc-options .pc-option-description{
  display:block;
  margin-top:6px;
  color:#777;
  font-size:12px;
  font-style:normal;
  line-height:1.35;
  font-weight:400;
}
.pc-options button.active .pc-option-description{color:#666}
@media(max-width:560px){
  .pc-options .pc-option-description{font-size:12px;line-height:1.3}
}

/* 1.9.2: stable buyer-friendly model/steel descriptions */
.pc-options button{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-width:0;
  box-sizing:border-box;
  overflow:hidden;
}
.pc-options button > small{
  width:100%;
  line-height:1.3;
}
.pc-options .pc-option-description{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  margin-top:6px;
  color:#777;
  font-size:12px;
  font-style:normal;
  font-weight:400;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.pc-options button.active .pc-option-description{color:#666}
@media(max-width:800px){
  .pc-options .pc-option-description{font-size:12px;line-height:1.3}
}
@media(max-width:560px){
  .pc-options button{min-height:86px}
  .pc-options .pc-option-description{font-size:12px;line-height:1.3;-webkit-line-clamp:2}
}

/* 1.9.2: admin description form */
.pampuha-description-save{margin-top:12px}
.pampuha-description-table{max-width:1050px}
.pampuha-description-table th:first-child{width:180px}
.pampuha-description-table input{width:100%;max-width:100%;box-sizing:border-box}
.pampuha-description-table td{vertical-align:middle}

/* 1.9.7: show selected extra option prices in the customer summary */
.pc-summary-extras{margin-top:0;}
.pc-summary-extras:empty{display:none;}
.pc-summary-extra-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:baseline;border-bottom:1px solid #eee;padding:7px 0;font-size:13px;line-height:1.35;}
.pc-summary-extra-row span{min-width:0;overflow-wrap:anywhere;}
.pc-summary-extra-row strong{font-weight:600;text-align:right;white-space:nowrap;}
@media(max-width:560px){
  .pc-summary-extra-row{font-size:14px;gap:8px;}
  .pc-summary-extra-row strong{white-space:normal;}
}

/* 1.9.8: optional buyer notice for all materials */
.pc-material-notice{display:flex;align-items:flex-start;gap:6px;box-sizing:border-box;color:#6f6f6f;font-size:12px;line-height:1.5;font-weight:400;}
.pc-material-notice b{flex:0 0 auto;color:#b40000;font-weight:700;}

/* 1.9.11: material notice is presented as a subtle, readable note above material cards */
.pc-material-notice-materials{margin:8px 0 12px;padding:8px 12px;border-radius:9px;background:#f7f7f5;}
.pc-material-notice-materials b{font-size:13px;}

/* Summary notice remains above the final price */
.pc-material-notice-summary{margin:12px 0 10px;padding:0;font-size:12px;line-height:1.5;color:#777;}
.pc-material-notice-summary b{color:#b40000;font-weight:600;}
@media(max-width:560px){
  .pc-material-notice-materials{margin:7px 0 11px;padding:8px 10px;font-size:12px;}
  .pc-material-notice-summary{font-size:12px;}
}
