.vpc-configurator { margin: 1.5em 0; }
.vpc-loading { padding: 1em 0; color: #666; }

/* Accordion */
.vpc-acc { border: 1px solid #e2e2e2; border-radius: 8px; margin: 0 0 .6em; overflow: hidden; background: #fff; }
.vpc-acc.is-open { border-color: #bbb; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.vpc-acc-head { width: 100%; display: flex; align-items: center; gap: .75em; padding: .9em 1em; background: #fafafa; border: 0; cursor: pointer; font: inherit; text-align: left; }
.vpc-acc.is-open .vpc-acc-head { background: #fff; }
.vpc-acc-title { font-weight: 600; flex: 0 0 auto; }
.vpc-acc-value { margin-left: auto; color: #1a7f43; font-weight: 600; font-size: .92rem; }
.vpc-acc.is-done .vpc-acc-title::before { content: "\2713"; color: #1a7f43; margin-right: .4em; }
.vpc-acc-chev { flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid #999; border-bottom: 2px solid #999; transform: rotate(45deg); transition: transform .15s; margin-left: .25em; }
.vpc-acc.is-open .vpc-acc-chev { transform: rotate(-135deg); }
.vpc-acc-body { max-height: 0; overflow: hidden; transition: max-height .2s ease; padding: 0 1em; }
.vpc-acc.is-open .vpc-acc-body { max-height: 1400px; padding: 1em; }

/* Option chips — grid tracks keep every tile the same width as its siblings,
   regardless of label length. */
.vpc-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .6em; align-items: stretch; }
.vpc-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: .35em; padding: .7em .6em; border: 2px solid #ddd; border-radius: 8px; cursor: pointer; line-height: 1.2; background: #fff; transition: border-color .12s, box-shadow .12s; overflow-wrap: anywhere; }
.vpc-opt:hover { border-color: #999; }
.vpc-opt.is-checked { border-color: #1a7f43; box-shadow: 0 0 0 1px #1a7f43 inset; }
.vpc-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.vpc-opt:focus-within { border-color: #1a7f43; box-shadow: 0 0 0 3px rgba(26,127,67,.35); outline: none; }
.vpc-ico { width: 56px; height: 56px; background-size: contain; background-repeat: no-repeat; background-position: center; display: block; }
.vpc-opt-label { font-size: .9rem; font-weight: 500; }
.vpc-opt-hint { font-size: .8rem; color: #1a7f43; margin-top: auto; }
/* Quantity row stays compact, not on the equal-width grid. */
.vpc-opts-chips { display: flex; flex-wrap: wrap; }
.vpc-opts-chips .vpc-opt { min-width: 56px; flex-direction: row; }

.vpc-input[type="text"], textarea.vpc-input, select.vpc-input { width: 100%; max-width: 420px; padding: .5em; }
select.vpc-input { max-width: 260px; }

/* Colour swatch tiles — 3 columns, square + inline label */
.vpc-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; }
.vpc-swatch-opt { position: relative; display: flex; align-items: center; gap: .5em; padding: .4em .55em; border: 2px solid #ddd; border-radius: 8px; cursor: pointer; line-height: 1.2; background: #fff; transition: border-color .12s, box-shadow .12s; }
.vpc-swatch-opt:hover { border-color: #999; }
.vpc-swatch-opt.is-checked { border-color: #1a7f43; box-shadow: 0 0 0 1px #1a7f43 inset; }
.vpc-swatch-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.vpc-swatch-opt:focus-within { border-color: #1a7f43; box-shadow: 0 0 0 3px rgba(26,127,67,.35); outline: none; }
.vpc-swatch { width: 30px; height: 30px; border-radius: 4px; border: 1px solid rgba(0,0,0,.2); flex: 0 0 auto; }
.vpc-swatch-label { font-size: .85rem; overflow-wrap: anywhere; }
@media (max-width: 600px) { .vpc-swatches { grid-template-columns: repeat(2, 1fr); } }

/* Summary — compact sticky bar: message/total + button on one row */
.vpc-summary { margin-top: 1em; padding: .5em .75em !important; background: #fafafa; border: 1px solid #e5e5e5; border-radius: 8px; position: sticky; bottom: 0; }
.vpc-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.vpc-summary-left { display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap; min-width: 0; }
.vpc-total-wrap { display: inline-flex; align-items: baseline; gap: .4em; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.vpc-total-label { font-size: .9rem; font-weight: 600; }
.vpc-total-note { font-size: .7em; font-weight: 500; color: #777; }
.vpc-errors { color: #777; font-size: .9rem; }
.vpc-errors p { margin: 0; display: inline; }
.vpc-breakdown-wrap { margin: .4em 0 0; font-size: .82rem; color: #555; }
.vpc-breakdown-wrap > summary { cursor: pointer; color: #666; font-size: .8rem; }
.vpc-breakdown { list-style: none; margin: .35em 0 0; padding: 0; }
.vpc-breakdown li { display: flex; justify-content: space-between; padding: .1em 0; }
.vpc-quote[hidden], .vpc-breakdown-wrap[hidden] { display: none !important; }
.vpc-errors { color: #777; margin: .4em 0 0; font-size: .85rem; }
.vpc-errors p { margin: .15em 0; }
.vpc-quote { padding: .6em .9em; background: #fff7e6; border: 1px solid #ffd591; border-radius: 6px; margin-bottom: .75em; }
.vpc-cart-form { margin: 0; flex: 0 0 auto; }
.vpc-cart-form .vpc-add { margin: 0; white-space: nowrap; }
.vpc-add, .vpc-add:hover, .vpc-add:focus { background: #FBDD05 !important; color: #000 !important; border-color: #FBDD05 !important; }
.vpc-add[disabled] { opacity: .5; cursor: not-allowed; }

@media (max-width: 600px) {
	.vpc-acc-value { font-size: .82rem; }
	.vpc-opt { min-width: 80px; }
	.vpc-ico { width: 46px; height: 46px; }
}
