.mmpo-form { --mmpo-accent: currentColor; --mmpo-border: rgba(0,0,0,.18); --mmpo-muted: rgba(0,0,0,.6); --mmpo-error: #c62828; margin: 0 0 1.25em; width: 100%; clear: both; }
.mmpo-fields-wrap { display: flex; flex-wrap: wrap; }
.mmpo-field { width: 100%; margin: 0 0 1.1em; box-sizing: border-box; }
.mmpo-field[style*="width"] { flex: 0 0 auto; padding-right: 1em; }
.mmpo-field[hidden] { display: none !important; }
.mmpo-label { display: block; font-weight: 600; margin: 0 0 .35em; }
.mmpo-label abbr.required { color: var(--mmpo-error); text-decoration: none; border: 0; }
.mmpo-price-tag { font-weight: 400; color: var(--mmpo-muted); font-size: .92em; white-space: nowrap; }
.mmpo-desc { font-size: .9em; color: var(--mmpo-muted); margin: -.15em 0 .5em; }
.mmpo-control input[type=text], .mmpo-control input[type=email], .mmpo-control input[type=url],
.mmpo-control input[type=number]:not(.qty), .mmpo-control input[type=date], .mmpo-control textarea, .mmpo-control select { width: 100%; max-width: 100%; box-sizing: border-box; }
.mmpo-invalid input, .mmpo-invalid textarea, .mmpo-invalid select { border-color: var(--mmpo-error) !important; }
.mmpo-error { color: var(--mmpo-error); font-size: .88em; margin-top: .35em; }
.mmpo-heading { margin: .4em 0 .2em; }
.mmpo-image { margin: 0; }
.mmpo-image img { max-width: 100%; height: auto; }

/* Valg */
.mmpo-choices { display: flex; flex-wrap: wrap; gap: .5em .9em; }
.mmpo-layout-list { flex-direction: column; gap: .4em; }
.mmpo-layout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75em; }
.mmpo-choice { display: inline-flex; align-items: center; gap: .45em; cursor: pointer; margin: 0; font-weight: 400; }
.mmpo-choice input { margin: 0; }
.mmpo-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.mmpo-swatch { position: relative; display: inline-flex; flex-direction: column; align-items: center; cursor: pointer; margin: 0; font-weight: 400; gap: .3em; text-align: center; }
.mmpo-swatch .mmpo-sw { display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--mmpo-border); border-radius: 4px; transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.mmpo-swatch-color .mmpo-sw { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; }
.mmpo-swatch-text .mmpo-sw { padding: .45em .9em; min-height: 2.4em; }
.mmpo-swatch-image .mmpo-sw { width: 84px; height: 84px; overflow: hidden; padding: 0; }
.mmpo-swatch-image .mmpo-sw img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.mmpo-sw-label { font-size: .85em; max-width: 96px; }
.mmpo-swatch input:checked + .mmpo-sw { border-color: var(--mmpo-accent); box-shadow: 0 0 0 1px var(--mmpo-accent); }
.mmpo-swatch-color input:checked + .mmpo-sw { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--mmpo-accent); }
.mmpo-swatch input:focus-visible + .mmpo-sw, .mmpo-card input:focus-visible + .mmpo-card-inner { outline: 2px solid var(--mmpo-accent); outline-offset: 2px; }
.mmpo-swatch-color .mmpo-price-tag { font-size: .75em; }

.mmpo-card { display: block; cursor: pointer; margin: 0; font-weight: 400; position: relative; }
.mmpo-card-inner { display: flex; flex-direction: column; gap: .3em; height: 100%; padding: .8em; border: 2px solid var(--mmpo-border); border-radius: 6px; box-sizing: border-box; transition: border-color .15s; }
.mmpo-card input:checked + .mmpo-card-inner { border-color: var(--mmpo-accent); }
.mmpo-card-img img { width: 100%; height: auto; display: block; border-radius: 4px; margin: 0; }
.mmpo-card-title { font-weight: 600; }
.mmpo-card-desc { font-size: .88em; color: var(--mmpo-muted); }
.mmpo-type-cards .mmpo-layout-inline .mmpo-card { flex: 1 1 160px; }

.mmpo-child-img img { width: 40px; height: 40px; object-fit: cover; display: block; margin: 0; }
.mmpo-child.is-disabled { opacity: .5; cursor: not-allowed; }

/* Billeder + antal */
.mmpo-iq-item { display: flex; flex-direction: column; align-items: center; gap: .35em; text-align: center; width: 120px; }
.mmpo-layout-grid .mmpo-iq-item { width: auto; }
.mmpo-iq-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 4px; margin: 0; }
.mmpo-iq-label { font-size: .9em; }
.mmpo-iq-item input.qty { width: 4.5em; text-align: center; }

/* Toggle */
.mmpo-toggle { display: inline-flex; align-items: center; gap: .6em; cursor: pointer; font-weight: 400; margin: 0; position: relative; }
.mmpo-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mmpo-switch { position: relative; width: 42px; height: 24px; border-radius: 12px; background: rgba(0,0,0,.25); transition: background .15s; flex: none; }
.mmpo-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.mmpo-toggle input:checked + .mmpo-switch { background: #2e7d32; }
.mmpo-toggle input:checked + .mmpo-switch::after { transform: translateX(18px); }
.mmpo-toggle input:focus-visible + .mmpo-switch { outline: 2px solid var(--mmpo-accent); outline-offset: 2px; }

/* Upload */
.mmpo-file-list { list-style: none; margin: .5em 0 0; padding: 0; }
.mmpo-file-list li { display: flex; justify-content: space-between; gap: .5em; padding: .35em .5em; border: 1px solid var(--mmpo-border); border-radius: 4px; margin-bottom: .3em; font-size: .9em; }
.mmpo-file-list li.is-uploading { opacity: .6; }
.mmpo-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmpo-file-remove { color: var(--mmpo-error); }

/* Beregning */
.mmpo-calc-value { font-size: 1.1em; font-weight: 600; }

/* Totaler */
.mmpo-totals { border-top: 1px solid var(--mmpo-border); padding-top: .6em; margin-top: .2em; }
.mmpo-totals[hidden] { display: none; }
.mmpo-t-row { display: flex; justify-content: space-between; gap: 1em; padding: .15em 0; }
.mmpo-t-total { font-weight: 700; font-size: 1.1em; border-top: 1px dashed var(--mmpo-border); margin-top: .3em; padding-top: .4em; }
.single_add_to_cart_button.mmpo-busy { opacity: .6; cursor: progress; }

@media (max-width: 600px) {
	.mmpo-field[style*="width"] { width: 100% !important; }
}
