.product-allergens { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 5px 0 8px; }
.product-allergens li { display: flex; align-items: center; min-height: 24px; }
.allergen-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; object-fit: contain; }
.allergen-icon-fallback { font-size: 10px; line-height: 1.2; padding: 3px 5px; border: 1px solid var(--neutral-200); border-radius: 4px; color: var(--neutral-700); }
.product-allergen-details { border-top: 1px solid var(--neutral-200); padding: 16px 4px 20px; margin-top: 10px; }
.product-allergen-details h4 { margin: 0 0 12px; font-size: 15px; font-weight: 750; }
.product-allergen-details h4:not(:first-child) { margin-top: 22px; }
.allergen-detail-list { display: grid; gap: 15px; }
.allergen-detail { display: flex; align-items: flex-start; gap: 12px; }
.allergen-detail > .allergen-icon { width: 36px; height: 36px; }
.allergen-detail > div { min-width: 0; }
.allergen-detail strong { display: block; margin-bottom: 4px; font-size: 13px; }
.allergen-detail p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--neutral-600); overflow-wrap: anywhere; white-space: pre-line; }
.allergen-warning { display: flex; align-items: flex-start; gap: 6px; margin: 7px 0; padding: 7px 9px; border: 1px solid #edc66a; border-radius: 6px; background: #fff8e6; color: #775009; font: 600 11px/1.4 Inter, sans-serif; }
.allergen-warning > span:first-child { font-size: 15px; line-height: 1; }
.allergen-preferences { width: min(520px,calc(100vw - 24px)); max-height: 90dvh; padding: 0; border: 0; border-radius: 15px; margin: auto; color: #242424; background: #fff; }
.allergen-preferences::backdrop { background: #0006; }
.allergen-preferences form { display: flex; flex-direction: column; max-height: 90vh; max-height: 90dvh; }
.allergen-preferences header,.allergen-preferences footer { flex-shrink: 0; }
.allergen-preferences header { display: flex; align-items: flex-start; gap: 12px; padding: 20px; border-bottom: 1px solid #e4e4e7; }
.allergen-preferences h2 { font-size: 19px; line-height: 1.3; margin: 0 0 7px; }
.allergen-preferences header p { font-size: 12px; line-height: 1.5; margin: 0; }
.allergen-preferences header button { flex-shrink: 0; width: 32px; height: 32px; margin-left: auto; border: 0; border-radius: 7px; color: #fff; background: var(--primary,var(--pink)); font-size: 24px; }
.allergen-preferences-body { overflow-y: auto; min-height: 0; padding: 18px 20px; }
.allergen-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.allergen-choices label { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #e4e4e7; border-radius: 7px; font: 600 12px/1.3 Inter,sans-serif; cursor: pointer; }
.allergen-choices input { width: 15px; height: 15px; flex: 0 0 15px; accent-color: var(--primary,var(--pink)); }
.allergen-choices img { object-fit: contain; }
.allergen-choices label { min-width: 0; }
.allergen-choices label > span { flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-word; hyphens: auto; }
.allergen-choices img { flex: 0 0 26px; }
.allergen-retention { min-width: 0; overflow-wrap: anywhere; }
@media(max-width:340px) { .allergen-choices { grid-template-columns: minmax(0,1fr); } }
.allergen-retention { border: 0; border-top: 1px solid #e4e4e7; padding: 16px 0 0; margin: 17px 0 0; }
.allergen-retention legend { padding-top: 16px; font-size: 13px; font-weight: 700; }
.allergen-retention label { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; }
.allergen-retention input { accent-color: var(--primary,var(--pink)); width: auto; }
.allergen-retention p,.allergen-help,#allergenPreferencesStatus { font-size: 11px; line-height: 1.5; margin-top: 12px; color: #626262; }
.allergen-preferences footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding: 15px 20px; border-top: 1px solid #e4e4e7; }
.allergen-preferences footer #allergenPreferencesStatus { flex: 0 0 100%; margin: 0 0 4px; color: #9b3925; font-size: 12px; overflow-wrap: anywhere; }
.allergen-preferences footer button { min-height: 44px; touch-action: manipulation; }
.allergen-primary,.allergen-secondary { border-radius: 7px; padding: 10px 13px; font: 600 12px/1.3 Inter,sans-serif; border: 1px solid #dedede; cursor: pointer; }
.allergen-primary { background: var(--primary,var(--pink)); color: #fff; border-color: var(--primary,var(--pink)); }
.allergen-secondary { background: #fff; color: #555; }
.allergen-forget { width: 100%; background: none; border: 0; color: #666; text-decoration: underline; font-size: 11px; padding-top: 4px; cursor: pointer; }
.allergen-settings-trigger { display: block; width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid var(--primary,var(--pink)); border-radius: 7px; background: #fff; color: var(--primary,var(--pink)); text-align: left; font-size: 12px; font-weight: 700; cursor: pointer; }
.allergen-load-error:not([hidden]) { position: fixed; bottom: 90px; left: 12px; right: 12px; z-index: 180; padding: 12px; border: 1px solid #edc66a; border-radius: 8px; background: #fff8e6; color: #775009; font: 600 12px/1.5 Inter,sans-serif; }
.allergen-load-error button { margin-left: 8px; text-decoration: underline; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
