/* Optional settings: no overrides are active until an administrator saves them. */
html[data-font-body] body:not(.admin-body) { --font-ui: var(--site-body-font); --account-font: var(--site-body-font); font-family: var(--site-body-font); }
html[data-font-body] #app :is(.home-site-header .header-inner,.home-footer .footer-group,.recommendation-product-caption) { font-family: var(--site-body-font); }
html[data-font-heading] #app :is(h1,h2,h3,h4) { font-family: var(--site-heading-font); }
html[data-font-heading] #app :is(h1,h2,h3,h4) > :is(a,span) { font-family: inherit; }
html[data-font-display] #app :is(.home-footer-title,.recommendation-title,.account-panel-title,.contact-panel-title,.contact-success-title,.home-hero-title,.about-hero-title,.shopping-list-title) { font-family: var(--site-display-font); }
html[data-font-display] body:not(.admin-body) { --font-condensed: var(--site-display-font); --account-display: var(--site-display-font); }
.product-page--template .detail-media--configurator[data-image-ratio] { aspect-ratio: var(--editable-image-ratio); align-self: start; }
.product-page--template .detail-media--configurator[data-image-fit] .detail-main-image { object-fit: var(--editable-image-fit); }
.product-page--template .config-group[data-image-ratio] .config-choice-image { aspect-ratio: var(--editable-image-ratio); height: auto; }
.product-page--template .config-group[data-image-fit] .config-choice-image img { object-fit: var(--editable-image-fit); }
.catalog-page--figma .catalog-image-link img { object-fit: var(--catalog-image-fit,cover); }

.appearance-card { grid-column: 1 / -1; padding: 26px; }
.appearance-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid #e2dfd7; }
.appearance-heading h2 { margin: 8px 0; font-size: 21px; font-weight: 500; }
.appearance-heading p { margin: 0; color: #777b72; font-size: 12px; line-height: 1.7; }
.appearance-editor-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 30px; padding-top: 24px; }
.appearance-font-fields { display: grid; gap: 14px; }
.appearance-font-fields .field + .field { margin: 0; }
.appearance-font-fields select { min-height: 42px; background: #fff; }
.appearance-money-fields { margin-top: 24px; border-top: 1px solid #e2dfd7; padding-top: 22px; }
.appearance-money-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.appearance-money-heading strong { color: #3b4238; font-size: 13px; font-weight: 600; }
.appearance-money-heading span { color: #85897e; font-size: 11px; }
.appearance-money-controls { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.appearance-money-controls .field { min-width: 0; margin: 0; }
.appearance-money-controls select { min-height: 42px; background: #fff; }
.appearance-currency-fields { margin-top: 24px; border-top: 1px solid #e2dfd7; padding-top: 22px; }
.currency-add-row { display: flex; align-items: end; gap: 10px; margin: 14px 0; }
.currency-add-row label { display: grid; flex: 1; gap: 7px; color: #484d45; font-size: 12px; }
.currency-add-row select { width: 100%; min-height: 42px; border: 1px solid #d9ddd6; padding: 0 12px; background: #fff; color: #343a33; font: inherit; }
.currency-add-row button { flex: 0 0 auto; }
.currency-add-row button:disabled { border-color: #dedbd2; background: #e8e5dd; color: #8b8c84; cursor: not-allowed; }
.currency-config-list { display: grid; gap: 10px; }
.currency-config-row { min-width: 0; border: 1px solid #e5e2d9; padding: 14px; background: #fff; }
.currency-config-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.currency-config-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.currency-config-heading strong { color: #354238; font-size: 13px; }
.currency-config-heading span { color: #83897f; font-size: 11px; }
.currency-config-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.currency-config-fields > label { min-width: 0; display: grid; gap: 6px; color: #484d45; font-size: 11px; }
.currency-config-fields input:not([type="file"]) { width: 100%; min-height: 38px; border: 1px solid #d9ddd6; padding: 0 10px; background: #fff; color: #343a33; font: inherit; }
.currency-config-image { grid-column: 1 / -1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid #eeeae2; padding-top: 10px; }
.currency-symbol-preview { width: 72px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e5e2d9; background: #f7f5ef; color: #30372f; font-size: 20px; font-weight: 700; overflow: hidden; }
.currency-symbol-preview img { display: block; width: auto; height: 28px; max-width: 62px; object-fit: contain; }
.currency-config-image .appearance-upload-button { min-height: 36px; }
.currency-config-status { grid-column: 1 / -1; min-height: 15px; color: #4d6655; font-size: 11px; overflow-wrap: anywhere; }
.currency-config-empty { margin: 0; padding: 13px; border: 1px dashed #dcd9cf; color: #73786e; font-size: 11px; line-height: 1.6; }
.appearance-font-upload { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; margin-top: 24px; border-top: 1px solid #e2dfd7; padding-top: 22px; }
.appearance-font-upload > :is(p,span) { grid-column: 1 / -1; margin: 0; font-size: 11px; line-height: 1.65; color: #73786e; }
.appearance-font-upload > [data-font-upload-status] { color: #34443a; overflow-wrap: anywhere; }
.appearance-upload-button { position: relative; display: inline-flex; min-height: 40px; align-items: center; cursor: pointer; }
.appearance-upload-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.appearance-upload-button:focus-within { outline: 2px solid #34443a; outline-offset: 3px; }
.appearance-font-preview { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 32px; background: #f0ecdf; border: 1px solid #e4dfd1; overflow: hidden; }
.appearance-preview-label { color: #838478; font-size: 10px; line-height: 1.7; letter-spacing: .08em; }
.appearance-font-preview h3 { margin: 26px 0 18px; color: #3b4238; font-size: clamp(24px,2.5vw,42px); font-weight: 500; line-height: 1.15; overflow-wrap: anywhere; }
.appearance-font-preview p { margin: 0 0 30px; color: #66695f; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.appearance-font-preview > div:not(.appearance-price-preview) { padding-top: 22px; border-top: 1px solid #cac4b5; font: 600 30px/1.1 'QIOCARE Account Display','Arial Narrow',sans-serif; overflow-wrap: anywhere; }
.appearance-price-preview { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 18px; margin-top: 20px; border-top: 1px solid #cac4b5; padding-top: 16px; }
.appearance-price-preview > span:first-child { color: #838478; font-size: 10px; }
.appearance-price-preview strong { color: #3b4238; font-size: 22px; font-weight: 600; white-space: nowrap; }
.appearance-font-preview > .appearance-preview-label:last-child { margin-top: 20px; letter-spacing: 0; }
.appearance-font-library { display: grid; gap: 8px; margin-top: 14px; }
.appearance-font-library > strong { padding-bottom: 4px; font-size: 11px; font-weight: 500; color: #73786e; }
.appearance-font-library > span:not(.notice) { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e5e2d9; background: #fff; font-size: 12px; overflow-wrap: anywhere; }
.appearance-font-library small { flex: 0 0 auto; color: #85897e; font-size: 10px; }
.product-config-group-fields.media-settings { border-bottom: 1px solid #e4e6e1; background: #f5f6f1; }
.media-settings [hidden] { display: none; }
.media-settings label { min-width: 0; }
.media-settings select,.media-settings input { width: 100%; }
.product-config-choice-preview[style*="object-fit"] img { object-fit: inherit; }
.about-content-card > h3 { margin: 26px 0 16px; border-top: 1px solid #dedbd2; padding-top: 20px; font-size: 14px; font-weight: 500; }
@media (max-width: 1000px) {
  .appearance-editor-grid { grid-template-columns: minmax(0,1fr); }
  .appearance-font-preview h3 { font-size: 36px; }
}
@media (max-width: 600px) {
  .appearance-card { padding: 18px; }
  .appearance-heading { align-items: start; flex-direction: column; gap: 14px; }
  .appearance-money-controls { grid-template-columns: minmax(0,1fr); }
  .appearance-money-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .currency-add-row { align-items: stretch; flex-direction: column; }
  .currency-add-row button { width: 100%; }
  .currency-config-fields { grid-template-columns: minmax(0,1fr); }
  .currency-config-image { grid-column: 1; }
  .currency-config-status { grid-column: 1; }
  .appearance-font-upload { grid-template-columns: minmax(0,1fr); }
  .appearance-font-preview { padding: 24px; }
}
