.oe-tabs{display:flex;gap:8px;margin:20px 0;flex-wrap:wrap}.oe-tabs button{border:1px solid var(--line,#ddd);border-radius:10px;background:transparent;padding:10px 14px;color:inherit;cursor:pointer}.oe-tabs [aria-selected=true]{background:#181818;color:white}.oe-editor fieldset{border:0;padding:0;margin:0;min-width:0}.oe-editor [hidden]{display:none!important}.oe-row{border:1px solid var(--line,#e1e1e1);border-radius:12px;margin:10px 0;background:var(--surface,#fff)}.oe-row summary{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px;cursor:pointer}.oe-row summary span{font-size:12px;color:#6b6b6b;text-align:right}.oe-row-body{border-top:1px solid #eee;padding:14px}.oe-row-actions{display:flex;justify-content:flex-end;gap:6px;margin-bottom:12px}.oe-row-actions button{border:1px solid #ddd;border-radius:7px;padding:6px 11px;background:transparent;color:inherit;cursor:pointer}.oe-checks{display:flex;gap:20px;margin:12px 0}.oe-check{display:flex;align-items:center;gap:8px;margin:12px 0}.oe-check input{width:18px;height:18px}.oe-preview{padding:20px;border:1px dashed #bbb;border-radius:12px;margin:16px 0;overflow-wrap:anywhere}.oe-editor>.switch-row{margin-bottom:12px}.oe-row .form-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}

.oe-payment-methods{border-top:1px solid var(--line,#ddd);margin-top:18px;padding-top:10px}.oe-payment-row{border:1px solid var(--line,#ddd);border-radius:10px;padding:12px;margin:12px 0}.oe-payment-row small{display:block;color:var(--muted,#666);margin:8px 0}.oe-payment-default{margin-top:16px}.oe-checks{flex-wrap:wrap}.oe-row summary strong{overflow-wrap:anywhere}.oe-editor .field{min-width:0}@media(max-width:480px){.oe-row .form-grid{grid-template-columns:1fr}.oe-row summary{gap:8px;padding:12px}.oe-row-body{padding:10px}.oe-payment-row{padding:10px}}

/* Keep the warning and save controls visible while the settings scroll. */
.company-admin-ui .modal-body:has(#orderExperienceEditor){overflow:hidden;padding-bottom:14px}
#orderExperienceEditor .oe-editor{display:flex;flex-direction:column;max-height:calc(100dvh - 210px);min-height:0}
.oe-settings-scroll{overflow:auto;min-height:0;padding-right:6px;overscroll-behavior:contain}
.oe-settings-scroll .oe-tabs{margin:0 0 18px}
.oe-feature-heading{display:flex;align-items:center;gap:16px;margin-bottom:12px}
.oe-feature-heading .form-hint{flex:1;margin:0}
.oe-feature-heading .button{flex-shrink:0}
.oe-feature{gap:20px;padding:15px 0;border-bottom:1px solid var(--line,#ddd)}
.oe-feature>div{flex:1;min-width:0}.oe-feature>div span{display:block;line-height:1.45;margin-top:4px}
.oe-feature input{flex-shrink:0;cursor:pointer}
.oe-settings-footer{display:flex;flex-direction:column;flex-shrink:0;gap:12px;padding-top:14px;border-top:1px solid var(--line,#ddd);background:var(--surface,#fff)}


.oe-settings-footer .modal-actions{margin:0;padding:0;border:0}
@media(max-width:600px){#orderExperienceEditor .oe-editor{max-height:calc(100dvh - 170px)}.oe-feature-heading{align-items:stretch;flex-direction:column;gap:10px}.oe-feature{padding:12px 0}.oe-settings-footer{gap:10px;padding-top:10px}.oe-settings-scroll .oe-tabs{gap:5px}.oe-settings-scroll .oe-tabs button{padding:8px 10px;font-size:12px}}
@media(max-height:500px) and (min-width:601px){#orderExperienceEditor .oe-editor{max-height:calc(100dvh - 150px)}.oe-settings-footer{flex-direction:row-reverse;align-items:center;gap:12px}.oe-settings-footer .modal-actions{flex-shrink:0}.company-admin-ui .company-modal:has(#orderExperienceEditor) .modal-header{padding:10px 26px}.company-admin-ui .modal-body:has(#orderExperienceEditor){padding-top:10px}}
.company-admin-ui .company-modal:has(#orderExperienceEditor){height:min(820px,calc(100dvh - 28px));max-height:calc(100dvh - 28px)}
.company-admin-ui .modal-body:has(#orderExperienceEditor){display:flex;flex-direction:column;min-height:0;max-height:none}
#orderExperienceEditor{display:flex;flex-direction:column;flex:1;min-height:0}
#orderExperienceEditor .oe-editor{flex:1;min-height:0;max-height:none}

.oe-feature:has(input:disabled){opacity:.6}.oe-feature input:disabled{cursor:not-allowed}
