.customer-settings-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 40px);border:1px solid #e5d5c8;border-radius:20px;padding:22px;background:#fffcf8;color:#443d35;box-shadow:0 20px 70px #332c3440;overflow:auto}
.customer-settings-dialog::backdrop{background:#332b285c;backdrop-filter:blur(3px)}
.customer-settings-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-settings-dialog h2{margin:0;font-size:22px}.customer-settings-dialog [data-close]{width:34px;height:34px;border:0;border-radius:50%;background:#f2eae3;font-size:22px}
.customer-settings-dialog label{display:block;font-size:14px;font-weight:600;margin:12px 0}.customer-settings-dialog input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:8px 10px;margin-top:6px;border:1px solid #decbbd;border-radius:9px;background:white;color:#443d35;font:inherit}.customer-settings-dialog input:disabled{background:#f4eee8;color:#625345}
.customer-settings-dialog [data-identity]{overflow-wrap:anywhere;font-size:14px;margin:12px 0}.customer-settings-dialog details{border-top:1px solid #e8dace;margin-top:18px;padding-top:14px}.customer-settings-dialog summary{cursor:pointer;font-size:14px}.customer-settings-dialog summary strong{float:right}.customer-settings-dialog table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}.customer-settings-dialog th{font-size:13px;font-weight:500;text-align:left}.customer-settings-dialog td{padding:2px 4px}.customer-settings-dialog th:last-child{width:35px}.customer-settings-dialog td button{border:0;background:none;font-size:20px}.customer-settings-dialog h3{font-size:14px;margin:16px 0 8px}.customer-settings-dialog p{font-size:14px}.customer-settings-dialog [role=status]{color:#b23e30;min-height:20px;margin-bottom:8px}
.customer-settings-dialog footer{display:flex;justify-content:flex-end;gap:10px;position:sticky;bottom:-22px;margin:0 -22px -22px;padding:14px 22px;background:#fffcf8;border-top:1px solid #e8dace}.customer-settings-dialog button{cursor:pointer;font:inherit;border:1px solid #decbbd;border-radius:9px;padding:8px 14px;background:#fffaf5;color:#624e40;min-height:36px}.customer-settings-dialog button.primary{background:#c8633e;color:white;border-color:#c8633e}.customer-settings-dialog button:disabled{cursor:default;opacity:.55}.customer-settings-dialog :focus-visible{outline:2px solid #bb5e3a;outline-offset:2px}
.customer-settings-action{flex-shrink:0;width:28px;height:28px;padding:0;border:1px solid #decbbd;border-radius:50%;background:#fff7ef;color:#a14f31;cursor:pointer;font-size:16px;line-height:26px}.customer-settings-action:hover{background:#f6e4d7}.customer-name-view{gap:8px}.customer-identity{min-width:0}
@media(max-width:540px){.customer-settings-dialog{padding:16px;max-height:calc(100dvh - 24px)}.customer-settings-dialog footer{bottom:-16px;margin:0 -16px -16px;padding:12px 16px}.customer-settings-dialog summary strong{float:none;display:block;margin:6px 0}}

/* Compact settings layout and explicit pin control. */
.customer-settings-dialog{width:min(500px,calc(100vw - 32px));padding:0;overflow:hidden}
.customer-settings-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 40px)}
.customer-settings-dialog header{padding:22px 24px 12px}
.customer-settings-dialog [data-close]{display:grid;place-items:center;flex:0 0 34px;padding:0;line-height:1;color:#6f6258}
.customer-settings-dialog form>p[data-identity],.customer-settings-dialog form>label,.customer-settings-dialog form>details,.customer-settings-dialog form>[role=status]{margin-left:24px;margin-right:24px}
.customer-settings-dialog .customer-pin-control{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:14px;padding:12px 0;border-top:1px solid #eee1d7;border-bottom:1px solid #eee1d7}
.customer-settings-dialog .customer-pin-control span{display:grid;gap:3px}.customer-settings-dialog .customer-pin-control b{font-size:14px}.customer-settings-dialog .customer-pin-control small{font-size:12px;font-weight:400;color:#81746a}
.customer-settings-dialog .customer-pin-control input{appearance:none;width:44px;min-height:24px;height:24px;margin:0;padding:2px;border:0;border-radius:999px;background:#d8cec6;box-shadow:inset 0 0 0 1px #cfc1b6;transition:.15s}
.customer-settings-dialog .customer-pin-control input:before{content:"";display:block;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #49362d35;transition:.15s}
.customer-settings-dialog .customer-pin-control input:checked{background:#d66b43}.customer-settings-dialog .customer-pin-control input:checked:before{transform:translateX(20px)}
.customer-settings-dialog footer{position:static;margin-top:auto;margin-left:0;margin-right:0;margin-bottom:0;padding:14px 24px}
.customer-pin-badge{flex:0 0 auto;padding:2px 7px;border-radius:999px;background:#fff0e7;color:#b4512d;font-size:11px;font-weight:700}
@media(max-width:540px){.customer-settings-dialog header{padding:18px 18px 10px}.customer-settings-dialog form>p[data-identity],.customer-settings-dialog form>label,.customer-settings-dialog form>details,.customer-settings-dialog form>[role=status]{margin-left:18px;margin-right:18px}.customer-settings-dialog footer{padding:12px 18px}}
.customer-settings-dialog [data-shop-body]{padding:4px 0 10px}.customer-settings-dialog [data-shop-body] p{margin:0 0 10px;color:#867568;font-size:12px;line-height:1.6}.customer-settings-dialog [data-shop-reset]{min-height:30px;padding:4px 9px;border-color:#ead7c9;background:#fff8f2;color:#a45232;font-size:12px}.customer-settings-dialog [data-shop] summary strong{color:#b85532}
