/* A scoped grid also handles Elementor widgets forcing flex-wrap: nowrap !important. */
.spt-cart-form, .spt-form-scope form.cart {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.spt-cart-form > :not(.quantity):not(.single_add_to_cart_button),
.spt-form-scope form.cart > :not(.quantity):not(.single_add_to_cart_button) {
  grid-column: 1 / -1;
  min-width: 0;
}
.spt-cart-form > .spt-card, .spt-form-scope form.cart > .spt-card { margin-bottom: 0; }
.spt-cart-form > .single_add_to_cart_button,
.spt-form-scope form.cart > .single_add_to_cart_button { justify-self: stretch; }
@media (max-width: 480px) {
  .spt-cart-form, .spt-form-scope form.cart { grid-template-columns: minmax(0, 1fr); }
  .spt-cart-form > .quantity, .spt-form-scope form.cart > .quantity { justify-self: start; }
}
.spt-card, .spt-dialog {
  --spt-green: #80a708;
  --spt-green-ink: #4f6805;
  --spt-coral: #c9402c;
  --spt-coral-ink: #a92e1c;
  --spt-ink: #292e27;
  --spt-muted: #62695e;
  --spt-line: #dce2d3;
  --spt-soft: #f3f6ed;
  --spt-radius: 16px;
  --spt-field-height: 50px;
  color: var(--spt-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  box-sizing: border-box;
}
.spt-card *, .spt-dialog * { box-sizing: border-box; }
.spt-card [hidden], .spt-dialog [hidden] { display: none !important; }
.spt-card { flex: 0 0 100%; width: 100%; margin: 0 0 20px; padding: 22px; border: 1px solid var(--spt-line); border-radius: var(--spt-radius); background: #fffefb; scroll-margin-top: var(--spt-scroll-offset, 160px); }
.spt-sticky-choose { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; white-space: nowrap; text-align: center; }
.spt-sticky-choose:focus-visible { outline: 3px solid #80a708; outline-offset: 3px; }
.spt-card .spt-card-heading { display: flex; align-items: center; gap: 12px; }
.spt-card h3 { margin: 0; padding: 0; font: inherit; font-size: 19px; font-weight: 700; color: var(--spt-ink); }
.spt-card .spt-card-heading p { margin: 2px 0 0; color: var(--spt-muted); }
.spt-card .spt-mark { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--spt-soft); color: var(--spt-green-ink); font-size: 27px; }
.spt-card .spt-count { margin-left: auto; flex-shrink: 0; border-radius: 20px; padding: 4px 10px; background: var(--spt-soft); font-size: 12px; font-weight: 700; color: var(--spt-green-ink); }
.spt-card .spt-muted, .spt-dialog .spt-muted { font-size: 13px; color: var(--spt-muted); margin: 14px 0; }
.spt-card button, .spt-dialog button { font-family: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: none; }
.spt-card .spt-edit { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #b6c691; border-radius: 9px; background: var(--spt-soft); color: var(--spt-green-ink); font-size: 14px; font-weight: 700; }
.spt-card .spt-edit:hover { background: #eaf1df; }
.spt-card .spt-help { margin: 12px 0 0; font-size: 12px; color: var(--spt-muted); line-height: 1.6; }
.spt-card .spt-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.spt-card .spt-tags span { padding: 5px 10px; background: var(--spt-soft); border: 1px solid var(--spt-line); border-radius: 6px; font-size: 13px; }
.spt-card .spt-native label { display: block; margin: 12px 0 5px; font-weight: 600; }
.spt-card .spt-native select { width: 100%; min-height: var(--spt-field-height); background: white; color: var(--spt-ink); border: 1px solid var(--spt-line); border-radius: 8px; padding: 10px; }
.spt-dialog { position: fixed; inset: 0; width: min(600px, calc(100% - 32px)); max-width: none; max-height: min(900px, calc(100dvh - 48px)); margin: auto; padding: 0; border: 1px solid #e8ebdf; border-radius: var(--spt-radius); background: #fffefb; box-shadow: 0 24px 90px #18220d38; overflow: hidden; }
.spt-dialog:not([open]) { display: none; }
.spt-dialog[open] { display: flex; flex-direction: column; }
.spt-dialog::backdrop { background: rgb(22 30 16 / 45%); }
.spt-dialog .spt-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px 18px; flex-shrink: 0; border-bottom: 1px solid var(--spt-line); }
.spt-dialog .spt-eyebrow { margin: 0 0 5px; color: var(--spt-green-ink); font-size: 12px; font-weight: 700; }
.spt-dialog h2 { font-family: inherit; font-weight: 700; font-size: 26px; line-height: 1.25; margin: 0; color: var(--spt-ink); }
.spt-dialog .spt-close { display: grid; place-items: center; background: #f0f2ea; color: #545c4c; border: 0; border-radius: 50%; min-width: 44px; width: 44px; height: 44px; padding: 0; font-size: 28px; font-weight: 400; line-height: 1; }
.spt-dialog .spt-dialog-body { padding: 0 28px 16px; overflow-y: auto; min-height: 110px; overscroll-behavior: contain; }
.spt-dialog .spt-progress { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 18px 0; font-size: 12px; font-weight: 600; color: var(--spt-green-ink); }
.spt-dialog .spt-progress-track { width: 120px; height: 5px; border-radius: 5px; background: #e4e9db; }
.spt-dialog .spt-progress-track > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--spt-green); transition: width .15s ease; }
.spt-dialog .spt-field { margin: 0 0 15px; }
.spt-dialog .spt-field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.spt-dialog .spt-combo { width: 100%; min-height: var(--spt-field-height); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px; border: 1px solid #cfd6c7; border-radius: 9px; background: #fff; color: var(--spt-muted); font-size: 15px; font-weight: 400; text-align: left; }
.spt-dialog .spt-combo:hover, .spt-dialog .spt-combo[aria-expanded=true] { border-color: var(--spt-green); background: #fbfcf7; }
.spt-dialog .spt-has-value { color: var(--spt-ink); background: #fcfdf8; }
.spt-dialog .spt-chevron { width: 8px; height: 8px; flex: 0 0 8px; border-right: 1.5px solid var(--spt-green-ink); border-bottom: 1.5px solid var(--spt-green-ink); transform: rotate(45deg); margin-right: 3px; margin-top: -4px; }
.spt-dialog .spt-combo[aria-expanded=true] .spt-chevron { transform: rotate(225deg); margin-top: 4px; }
.spt-dialog .spt-list { position: fixed; z-index: 2; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid #c8d6b4; border-radius: 10px; padding: 5px; box-shadow: 0 8px 24px #25390c26; }
.spt-dialog .spt-option { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; cursor: pointer; color: var(--spt-ink); font-size: 14px; }
.spt-dialog .spt-option > span:first-child { flex: 1; }
.spt-dialog .spt-option small { font-size: 10px; line-height: 1.5; padding: 2px 6px; border: 1px solid #dbe1d3; border-radius: 4px; color: #59634d; }
.spt-dialog .spt-option[aria-selected=true], .spt-dialog .spt-active-option { background: #edf4e1; color: #3f5603; }
.spt-dialog .spt-active-option { outline: 1px solid #b7ca94; outline-offset: -1px; }
.spt-dialog .spt-option-check { visibility: hidden; width: 15px; color: var(--spt-green-ink); }
.spt-dialog .spt-option[aria-selected=true] .spt-option-check { visibility: visible; }
.spt-dialog .spt-price-note { margin: 18px 0 0; background: var(--spt-soft); color: #586546; font-size: 12px; line-height: 1.6; padding: 11px 13px; border-radius: 8px; }
.spt-dialog .spt-dialog-footer { flex-shrink: 0; padding: 18px 28px 16px; border-top: 1px solid var(--spt-line); background: #fff; }
.spt-card .spt-breakdown, .spt-dialog .spt-breakdown { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 6px; font-size: 13px; color: var(--spt-muted); }
.spt-card .spt-total, .spt-dialog .spt-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 16px; padding-top: 12px; border-top: 1px solid var(--spt-line); font-size: 16px; font-weight: 600; }
.spt-card .spt-total strong, .spt-dialog .spt-total strong { font-size: 27px; color: var(--spt-green-ink); font-weight: 700; white-space: nowrap; }
.spt-dialog .spt-total small { display: block; color: var(--spt-muted); font-size: 11px; font-weight: 400; margin-top: 2px; }
.spt-dialog .spt-save { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 9px; background: var(--spt-coral); color: #fff; font-size: 15px; font-weight: 700; }
.spt-dialog .spt-save:hover:not(:disabled) { background: #b53624; }
.spt-dialog .spt-save:disabled { background: #e8ebdf; color: #666e5b; cursor: not-allowed; }
/* Keep component text readable when theme/Elementor button states override colors.
   Limit important declarations to these controls, including their label/icon spans. */
.spt-card button.spt-edit,
.spt-card button.spt-edit:is(:hover, :focus, :active) { color: var(--spt-green-ink) !important; }
.spt-dialog button.spt-combo,
.spt-dialog button.spt-combo:is(:hover, :focus, :active) { color: var(--spt-muted) !important; }
.spt-dialog button.spt-combo.spt-has-value,
.spt-dialog button.spt-combo.spt-has-value:is(:hover, :focus, :active) { color: var(--spt-ink) !important; }
.spt-dialog button.spt-close,
.spt-dialog button.spt-close:is(:hover, :focus, :active) { color: #545c4c !important; }
.spt-dialog button.spt-save,
.spt-dialog button.spt-save:is(:hover, :focus, :active) { color: #fff !important; }
.spt-dialog button.spt-save:disabled { color: #666e5b !important; }
.spt-card button.spt-edit span,
.spt-dialog button:is(.spt-combo, .spt-close, .spt-save) span { color: inherit !important; }
.spt-dialog .spt-footer-help { margin: 9px 0 0; text-align: center; color: var(--spt-muted); font-size: 11px; }
.spt-card :focus-visible, .spt-dialog :focus-visible { outline: 3px solid var(--spt-green-ink); outline-offset: 3px; }
.spt-dialog .spt-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .spt-card { padding: 17px; }
  .spt-card h3 { font-size: 17px; }
  .spt-card .spt-mark { width: 36px; height: 36px; }
  .spt-dialog { inset: auto 0 0; margin: 0 auto; width: 100%; max-height: calc(100dvh - 12px); border-radius: var(--spt-radius) var(--spt-radius) 0 0; border-bottom: 0; }
  .spt-dialog .spt-dialog-header { padding: 18px 20px 15px; }
  .spt-dialog h2 { font-size: 23px; }
  .spt-dialog .spt-dialog-body { padding: 0 20px 14px; }
  .spt-dialog .spt-dialog-footer { padding: 14px 20px max(12px, env(safe-area-inset-bottom)); }
  .spt-dialog .spt-field { margin-bottom: 12px; }
  .spt-dialog .spt-total { margin: 9px 0 12px; padding-top: 9px; }
}
@media (max-height: 560px) {
  .spt-dialog { max-height: calc(100dvh - 16px); }
  .spt-dialog .spt-dialog-header { padding-top: 10px; padding-bottom: 10px; }
  .spt-dialog h2 { font-size: 21px; }
  .spt-dialog .spt-dialog-body { min-height: 70px; }
  .spt-dialog .spt-dialog-footer { padding-top: 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .spt-dialog .spt-breakdown { display: inline-flex; flex-direction: column; align-items: flex-start; vertical-align: top; width: 32%; gap: 0; margin-bottom: 2px; font-size: 11px; }
  .spt-dialog .spt-total { margin: 5px 0 8px; padding-top: 5px; }
  .spt-dialog .spt-footer-help { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) { .spt-dialog *, .spt-card * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
