/* All rules stay inside .spe; no theme-wide changes. */
.spe { --spe-accent:#f0c358; --spe-ink:#292b2e; --spe-muted:#717478; --spe-line:#e5e6e8; --spe-soft:#fff9eb; box-sizing:border-box; width:100%; max-width:100%; margin:18px 0; padding:0; border:1px solid #dedfe1; border-top:3px solid var(--spe-accent); border-radius:9px; color:var(--spe-ink); background:#fff; font-family:inherit; font-size:14px; line-height:1.5; text-align:left; letter-spacing:normal; overflow-wrap:break-word; clear:both; }
.spe *, .spe *::before, .spe *::after {box-sizing:border-box;}
.spe [hidden] {display:none!important;}
.spe p {padding:0; border:0; background:none; box-shadow:none; font-size:inherit; line-height:inherit; margin:0;}
.spe button,.spe input,.spe select {font-family:inherit; box-shadow:none; letter-spacing:normal;}
.spe button {width:auto; min-width:0; height:auto; margin:0; cursor:pointer; text-shadow:none; text-transform:none;}
.spe button::before,.spe button::after {content:none;}
.spe a {color:#476a82; background:transparent; text-decoration:underline; text-underline-offset:2px; font-size:inherit;}
.spe :is(button,select,input,summary,a):focus-visible {outline:2px solid #8d6812; outline-offset:3px;}
.spe .spe__header {display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:15px 18px 10px;}
.spe .spe__title {margin:0; padding:0; font-weight:700; font-size:19px; line-height:1.4; color:var(--spe-ink);}
.spe .spe__controls {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; padding:0 18px 12px;}
.spe .spe__control {display:block; min-width:0; margin:0; padding:0;}
.spe .spe__control>span {display:block; font-size:11px; font-weight:600; margin:0 0 4px; line-height:1.4;}
.spe .spe__control select {display:block; width:100%; max-width:100%; height:38px; min-height:38px; margin:0; padding:7px 26px 7px 9px; border:1px solid #ced0d3; border-radius:5px; color:var(--spe-ink); background-color:#fff; font-size:13px; line-height:1.4; cursor:pointer; appearance:auto;}
.spe .spe__control select:disabled {color:#45474a; background:#f7f7f7; opacity:1; cursor:default;}
.spe .spe__kiosk-intro {grid-column:span 2; color:var(--spe-muted); align-self:center; font-size:12px;}
.spe .spe__estimate {display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 18px; padding:11px 14px; border:1px solid #efdcab; border-radius:6px; background:var(--spe-soft);}
.spe .spe__estimate-label {font-size:11px; font-weight:600; color:#5f5541; line-height:1.4;}
.spe .spe__total {font-size:27px; line-height:1.3; font-weight:750; letter-spacing:-.035em; color:#322b21; font-variant-numeric:tabular-nums; margin:2px 0;}
.spe .spe__estimate-foot {font-size:10px; line-height:1.4; color:#82765f;}
.spe .spe__subtotal {flex:0 0 auto; max-width:47%; font-size:10px; color:#6f6657; line-height:1.8;}
.spe .spe__subtotal>div {display:flex; gap:12px; justify-content:space-between;}
.spe .spe__subtotal>div>span:last-child {font-variant-numeric:tabular-nums; text-align:right; font-weight:600;}
.spe .spe__unpriced {font-size:11px; color:#906022; line-height:1.45; margin:2px 0; font-weight:600;}
.spe .spe__results {padding:0 18px;}
.spe .spe__group-title {display:flex; align-items:center; gap:7px; font-size:11px; line-height:1.4; font-weight:600; margin:12px 0 2px;}
.spe .spe__group-title--optional {margin-top:8px;}
.spe .spe__badge {display:inline-block; background:#f0f1f2; color:#64676b; border:1px solid #dadcde; border-radius:3px; font-size:10px; line-height:1.4; padding:1px 6px; font-weight:500;}
.spe .spe__badge--required {background:#f8e4b4; border-color:#ead194; color:#665027;}
.spe .spe__item {display:flex; align-items:flex-start; gap:9px; padding:8px 0 7px; margin:0; border-bottom:1px solid #eff0f1;}
.spe .spe__image {display:inline-flex; flex:0 0 56px; width:56px; height:48px; align-items:center; justify-content:center; background:#fff; border:1px solid #ececed; border-radius:4px; overflow:hidden;}
.spe .spe__image img {display:block!important; float:none!important; width:100%!important; height:100%!important; max-width:100%!important; max-height:100%!important; padding:2px!important; margin:0!important; object-fit:contain; border:0!important; border-radius:0!important; box-shadow:none!important;}
.spe .spe__image img[hidden] {display:none!important;}
.spe .spe__image-fallback {font-size:9px; color:#9b9da0; line-height:1.4;}
.spe .spe__item-main {flex:1 1 auto; min-width:0;}
.spe .spe__item-top {display:flex; align-items:baseline; justify-content:space-between; gap:10px;}
.spe .spe__item-name {font-size:13px; font-weight:600; line-height:1.45;}
.spe .spe__item-price {flex-shrink:0; font-size:13px; font-weight:600; line-height:1.45; color:#33363a; font-variant-numeric:tabular-nums; white-space:nowrap;}
.spe .spe__item-bottom {display:flex; align-items:center; justify-content:space-between; gap:10px; margin:1px 0;}
.spe .spe__own {display:flex; flex:0 0 auto; align-items:center; gap:4px; white-space:nowrap; font-size:10px; line-height:1.6; color:#676a6e; cursor:pointer; margin:0; padding:2px 0;}
.spe input[type="checkbox"] {appearance:auto; -webkit-appearance:checkbox; width:14px; height:14px; min-height:0; margin:0!important; padding:0; border-radius:2px; accent-color:#aa7d21; vertical-align:middle; flex:0 0 14px; cursor:pointer;}
.spe details {margin:0; padding:0; border:0; box-shadow:none; background:transparent;}
.spe summary {position:static; display:list-item; list-style:disclosure-closed inside; min-height:0; padding:0; margin:0; border:0; color:var(--spe-muted); background:none; font-weight:400; text-align:left; cursor:pointer; box-shadow:none;}
.spe details[open]>summary {list-style-type:disclosure-open;}
.spe summary::before,.spe summary::after {content:none;}
.spe .spe__item-detail>summary {font-size:10px; line-height:1.5; width:fit-content; padding:1px 0;}
.spe .spe__detail-content {display:flex; gap:12px; background:#f8f9fa; border-radius:4px; padding:10px; margin:6px 0 2px;}
.spe .spe__image--large {flex:0 0 130px; width:130px; height:100px;}
.spe .spe__detail-text {flex:1; min-width:0; font-size:11px; line-height:1.55;}
.spe .spe__detail-text p {margin:0 0 4px;font-size: 11px !important;}
.spe .spe__muted {color:var(--spe-muted); font-size:10px; line-height:1.5;}
.spe .spe__edit {display:flex; flex-wrap:wrap; align-items:flex-end; gap:6px; margin:8px 0 5px; font-size:11px;}
.spe .spe__edit label {display:block; margin:0; font-size:10px; line-height:1.4;}
.spe .spe__edit input {display:block; width:66px; max-width:100%; min-height:34px; height:34px; padding:5px 6px; margin:2px 0 0; font-size:14px; line-height:1.4; background:#fff; color:#333; border:1px solid #c9ccd0; border-radius:4px;}
.spe .spe__edit input[data-action="price"] {width:145px;}
.spe .spe__edit>span {padding-bottom:8px;}
.spe .spe__options {margin:10px 18px 0; border:1px solid #dddfe2; border-radius:5px;}
.spe .spe__options>summary {padding:9px 11px; color:#4b4f53; font-size:12px; font-weight:600; line-height:1.5;}
.spe .spe__option-grid {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; padding:0 10px 10px;}
.spe .spe__option {display:flex; align-items:center; gap:7px; min-width:0; padding:8px; margin:0; border:1px solid #e4e5e7; border-radius:5px; background:#fff; cursor:pointer;}
.spe .spe__option:hover {border-color:#c5b387;}
.spe .spe__option.is-selected {border-color:#dfc07b; background:#fffaf0;}
.spe .spe__option .spe__image {width:43px; height:40px; flex-basis:43px;}
.spe .spe__option-body {min-width:0; display:block;}
.spe .spe__option-name {display:block; font-size:11px; font-weight:600; line-height:1.4;}
.spe .spe__option-price {display:block; font-size:11px; line-height:1.5; color:#696357; font-variant-numeric:tabular-nums;}
.spe .spe__footer {padding:10px 18px 11px;}
.spe .spe__actions {display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:0 0 7px;}
.spe .spe__copy {padding:6px 10px; border:1px solid #d4bb82; border-radius:4px; background:#fff; color:#62502d; font-size:11px; font-weight:500; line-height:1.6;}
.spe .spe__copy:hover {background:#fff7e4;}
.spe .spe__reset {padding:5px 0; border:0; border-radius:0; background:transparent; color:#82858a; font-size:10px; line-height:1.6; text-decoration:underline; text-underline-offset:2px;}
.spe .spe__copy-status {font-size:10px; color:#7c6b46;}
.spe .spe__disclosure {margin-top:4px;}
.spe .spe__disclosure>summary {font-size:10px; line-height:1.4; padding:2px 0;}
.spe .spe__disclosure p {font-size:10px!important; color:#7a7e83; line-height:1.5!important; margin:5px 0;}
.spe .spe__disclosure a {font-size:10px;}
.spe .spe__loading,.spe .spe__empty,.spe noscript p {padding:10px 14px; margin:0; font-size:12px; color:var(--spe-muted);}
@media (max-width:600px) {
 .spe .spe__header {padding:12px 12px 9px; gap:8px;}
 .spe .spe__title {font-size:17px;}
 .spe .spe__controls {padding:0 12px 10px; gap:7px;}
 .spe .spe__control select {font-size:13px; height:39px; padding:6px;}
 .spe .spe__control>span {font-size:10px;}
 .spe .spe__estimate {margin:0 12px; padding:10px 11px; flex-wrap:wrap; gap:5px;}
 .spe .spe__total {font-size:25px;}
 .spe .spe__subtotal {display:flex; flex-wrap:wrap; flex:1 1 100%; max-width:none; gap:4px 14px;}
 .spe .spe__subtotal>div {gap:7px; font-size:9px;}
 .spe .spe__results {padding:0 12px;}
 .spe .spe__image {width:48px; height:45px; flex-basis:48px;}
 .spe .spe__item {gap:7px; padding:7px 0;}
 .spe .spe__item-name,.spe .spe__item-price {font-size:12px;}
 .spe .spe__item-bottom {display:block; margin:1px 0;}
 .spe .spe__own {width:fit-content;}
 .spe .spe__item-detail>summary {font-size:9px;}
 .spe .spe__options {margin:9px 12px 0;}
 .spe .spe__option-grid {gap:6px; padding:0 8px 8px;}
 .spe .spe__option {flex-wrap:wrap; gap:5px; padding:7px;}
 .spe .spe__option-body {flex:1 0 calc(100% - 2px);}
 .spe .spe__option-name,.spe .spe__option-price {font-size:11px;}
 
 .spe .spe__footer {padding:9px 12px 10px;}
 
 .spe .spe__detail-content {display:block; padding:8px;}
 .spe .spe__image--large {width:130px; height:92px; margin-bottom:6px;}
 .spe .spe__edit input {font-size:12px;}
}
@media (max-width:400px) {
 .spe .spe__header {display:block;}
 .spe .spe__controls {grid-template-columns:repeat(2,minmax(0,1fr));}
 .spe .spe__control:first-child {grid-column:1 / -1;}
 .spe .spe__control:first-child select {width:100%;}
 .spe .spe__item-top {display:block;}
 .spe .spe__item-name {display:block;}
 .spe .spe__item-price {display:block; font-size:12px;}
 .spe .spe__own {font-size:10px;}
 .spe .spe__total {font-size:24px;}
 .spe .spe__kiosk-intro {grid-column:1 / -1;}
}
@media (prefers-reduced-motion:reduce) { .spe * {scroll-behavior:auto!important; transition:none!important;} }

/* Compact result grid; details expand only after an explicit action. */
.spe {container-type:inline-size;}
.spe .spe__item-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;align-items:start;}
.spe .spe__item-top {display:block;}
.spe .spe__item-bottom {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 8px;}
.spe .spe__item-name {font-size:12px;}
.spe .spe__item-price {font-size:12px;}
.spe .spe__item-detail>summary {font-size:9px;line-height:1.5;padding:1px 0;}
.spe .spe__item {padding:7px 0 6px;min-width:0;}
.spe .spe__detail-content {display:block;}
.spe .spe__image--large {margin-bottom:6px;}
.spe .spe__header {padding-top:12px;padding-bottom:8px;}
.spe .spe__title {font-size:18px;}
.spe .spe__estimate {padding-top:9px;padding-bottom:9px;}
.spe .spe__group-title {margin-top:9px;}
@media(max-width:600px){
 .spe .spe__header {display:flex;align-items:flex-start;padding:10px 12px 8px;}
 .spe .spe__title {font-size:16px;}
 .spe .spe__controls {grid-template-columns:1.0fr 1.5fr .8fr;gap:6px;padding-bottom:9px;}
 .spe .spe__control:first-child {grid-column:auto;}
 .spe .spe__control select {height:37px;min-height:37px;font-size:13px;padding:4px;}
 .spe .spe__item-grid {grid-template-columns:minmax(0,1fr);}
 .spe .spe__item {gap:8px;}
 .spe .spe__item-top {display:block;}
 .spe .spe__item-name,.spe .spe__item-price {font-size:12px;display:inline;}
 .spe .spe__item-bottom {display:flex;margin:1px 0;}
 .spe .spe__subtotal--no-option {display:none;}
 .spe .spe__total {font-size:24px;}
 .spe .spe__kiosk-intro {grid-column:2 / -1;}
}
@container(max-width:580px){
 .spe .spe__item-grid {grid-template-columns:minmax(0,1fr);}
 .spe .spe__subtotal {display:none;}
 .spe .spe__estimate {flex-wrap:wrap;}
}

/* v1.1.0: consolidated supporting text and service CTAs. */
.spe .spe__header {display:block;padding-bottom:10px;}
.spe .spe__title {font-size:18px;line-height:1.4;}
.spe .spe__badge {font-size:11px;font-weight:600;padding:2px 7px;}
.spe .spe__image--square {width:52px;height:52px;flex-basis:52px;}
.spe .spe__image--large.spe__image--square {width:116px;height:116px;flex-basis:116px;}
.spe .spe__footer {display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;padding-top:8px;padding-bottom:10px;}
.spe .spe__actions {display:flex;align-items:center;gap:10px;margin:0;}
.spe .spe__copy {padding:3px 0;border:0;background:transparent;color:#5e6267;line-height:1.6;text-decoration:underline;text-underline-offset:2px;}
.spe .spe__copy:hover {background:transparent;color:#292b2e;}
.spe .spe__reset {padding:3px 0;}
.spe .spe__copy-status:empty {display:none;}
.spe .spe__disclosure {margin:0;font-size:10px;}
.spe .spe__disclosure[open] {flex-basis:100%;}
.spe .spe__disclosure>summary {padding:3px 0;line-height:1.6;}
.spe .spe__context-notes {margin:5px 0;padding:4px 8px;border-left:2px solid var(--spe-accent);background:#fffaf0;}
.spe .spe__context-notes p {margin:3px 0;color:#665739;}
.spe .spe__cta {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0 18px 13px;}
.spe .spe__cta--dual {grid-template-columns:repeat(2,minmax(0,1fr));}
.spe .spe__cta-item {position:relative;display:block;min-width:0;margin:0;padding:0;border:0;background:transparent;font-weight:700;}
.spe a.spe__cta-button {display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%;min-height:42px;margin:0;padding:10px 12px;border:1px solid #1d5feb;border-radius:5px;background:#1d5feb;color:#fff;font-family:inherit;font-size:13px;font-weight:700;line-height:1.45;letter-spacing:normal;text-align:center;text-decoration:none;box-shadow:none;transition:background-color .15s,border-color .15s;}
.spe a.spe__cta-button--secondary {background:#fff;color:#1d5feb;}
.spe a.spe__cta-button:hover {background:#164dc4;border-color:#164dc4;color:#fff;}
.spe a.spe__cta-button--secondary:hover {background:#f0f5ff;color:#1d5feb;border-color:#1d5feb;}
.spe a.spe__cta-button:focus-visible {outline:2px solid #1d5feb;outline-offset:3px;}
.spe a.spe__cta-button::before,.spe a.spe__cta-button::after {content:none;}
.spe .spe__tracking {position:absolute!important;left:0!important;bottom:0!important;display:block!important;width:1px!important;height:1px!important;min-width:1px!important;max-width:1px!important;min-height:1px!important;max-height:1px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;pointer-events:none!important;}
@media(max-width:600px){
 .spe .spe__title {font-size:16px;}
 .spe .spe__image--square {width:46px;height:46px;flex-basis:46px;}
 .spe .spe__image--large.spe__image--square {width:110px;height:110px;flex-basis:110px;}
 .spe .spe__control select {font-size:13px;}
 .spe .spe__cta {margin:0 12px 11px;gap:7px;}
 .spe a.spe__cta-button {min-height:42px;padding:9px 6px;font-size:12px;}
 .spe .spe__footer {gap:2px 10px;}
}
@container(max-width:580px){
 .spe .spe__control select {font-size:13px;}
 .spe .spe__cta--dual {grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* Keep the price and ownership control in the same visual cluster. */
.spe .spe__item-bottom {justify-content:flex-start;gap:3px 12px;}


/* v1.2.0: native mobile control dimensions, scoped to this widget only. */
.spe input[type="checkbox"] {
  display:inline-block!important; float:none!important; position:static!important;
  width:14px!important; min-width:14px!important; max-width:14px!important;
  height:14px!important; min-height:14px!important; max-height:14px!important;
  inline-size:14px!important; min-inline-size:14px!important; max-inline-size:14px!important;
  block-size:14px!important; min-block-size:14px!important; max-block-size:14px!important;
  flex:0 0 14px!important; margin:0!important; padding:0!important;
  appearance:auto!important; -webkit-appearance:checkbox!important;
}
.spe .spe__own {display:inline-flex!important;justify-content:flex-start!important;width:auto!important;min-width:0!important;max-width:100%;gap:4px!important;flex:0 0 auto;}
.spe .spe__own-text {display:inline-block;flex:0 0 auto;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;font-size:inherit;line-height:inherit;}
.spe .spe__own::before,.spe .spe__own::after,.spe .spe__own-text::before,.spe .spe__own-text::after,.spe .spe__option::before,.spe .spe__option::after {content:none!important;display:none!important;}
.spe .spe__campaign {margin:3px 0 1px;}
.spe .spe__campaign>summary,.spe .spe__campaign-tag {width:fit-content;max-width:100%;padding:2px 6px;border:1px solid #ecd8a5;border-radius:4px;background:#fff9eb;color:#71531c;font-size:10px;font-weight:500;line-height:1.45;}
.spe .spe__campaign>summary {display:list-item;list-style-position:inside;}
.spe .spe__campaign-tag {display:inline-block;margin-top:3px;}
.spe .spe__campaign-panel {margin:5px 0 3px;padding:7px 9px;border:1px solid #ece9e0;border-radius:5px;background:#fffdf7;}
.spe .spe__campaign-offer+.spe__campaign-offer {margin-top:7px;padding-top:6px;border-top:1px solid #eee7d6;}
.spe .spe__campaign-offer strong,.spe .spe__campaign-offer a {font-size:11px;line-height:1.5;}
.spe .spe__campaign-offer p,.spe .spe__campaign-note {margin:3px 0 0!important;font-size:10px!important;line-height:1.5!important;color:#65615a;}
.spe .spe__campaign-note {padding-top:6px!important;border-top:1px solid #eee7d6!important;margin-top:7px!important;}
@media(max-width:600px){
 .spe .spe__option {display:grid;grid-template-columns:14px 34px minmax(0,1fr);gap:5px;align-items:center;}
 .spe .spe__option .spe__image {width:34px;height:34px;min-width:0;}
 .spe .spe__option--no-image {grid-template-columns:14px minmax(0,1fr);}
 .spe .spe__option-body {min-width:0;flex:none;}
 .spe .spe__campaign-tag {font-size:9px;padding:1px 4px;}
}
