/* Setup wizard dialog: manager settings and new workplace creation on the account page. */
.pw-setup-dialog * { box-sizing: border-box; }
.pw-setup-dialog :focus-visible { outline: 2px solid #3157c4; outline-offset: 3px; }
.pw-setup-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #dbe2ed; border-radius: 14px; color: #233047; background: white; box-shadow: 0 24px 90px #14233d40; overflow: auto; font-family: inherit; }
.pw-setup-dialog::backdrop { background: #14233d80; backdrop-filter: blur(3px); }
.pw-setup-dialog form { margin: 0; display: block; }
.pw-setup-header { position: relative; padding: 26px 28px 18px; border-bottom: 1px solid #e8edf3; }
.pw-setup-header > span { font-size: 12px; color: #64738a; }
.pw-setup-header > button { position: absolute; top: 16px; right: 18px; }
.pw-setup-header h2 { font-size: 24px; line-height: 1.4; letter-spacing: -.04em; margin: 18px 0; }
.pw-setup-progress { height: 4px; background: #edf1f8; border-radius: 2px; overflow: hidden; }
.pw-setup-progress span { display: block; height: 100%; background: #3157c4; }
.pw-setup-header > small { display: block; margin-top: 8px; text-align: right; color: #64738a; }
.pw-setup-body { padding: 22px 28px; }
.pw-setup-body > p { margin: 0 0 18px; font-size: 14px; line-height: 1.7; }
.pw-setup-fields { display: grid; gap: 16px; margin: 18px 0; }
.pw-setup-field { display: grid; gap: 7px; font-size: 13px; }
.pw-setup-field input { width: 100%; min-height: 44px; padding: 10px 12px; background: white; color: #233047; border: 1px solid #c8d2e1; border-radius: 6px; font: inherit; font-size: 16px; }
.pw-setup-body .pw-setup-note { color: #68758a; font-size: 12px; }
.pw-setup-choices { display: grid; gap: 10px; margin-bottom: 18px; }
.pw-setup-choice { display: flex; align-items: start; gap: 12px; padding: 14px; border: 1px solid #dce3ec; border-radius: 7px; cursor: pointer; }
.pw-setup-choice:has(input:checked) { border-color: #5076ce; background: #f2f6ff; }
.pw-setup-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #3157c4; }
.pw-setup-choice strong { display: block; font-size: 14px; }
.pw-setup-choice small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.6; color: #64738a; }
.pw-setup-review { margin: 0; }
.pw-setup-review > div { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid #edf0f5; font-size: 13px; line-height: 1.6; }
.pw-setup-review dt { color: #657287; }
.pw-setup-review dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.pw-setup-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 28px; border-top: 1px solid #e8edf3; background: #fafbfd; }
.pw-setup-dialog button { min-height: 40px; padding: 9px 14px; border: 1px solid #d2dbe8; border-radius: 6px; background: white; color: #33465f; font: inherit; font-size: 14px; cursor: pointer; }
.pw-setup-dialog button.primary { background: #3157c4; border-color: #3157c4; color: white; font-weight: 650; }
.pw-setup-dialog button:disabled { opacity: .55; cursor: wait; }
.pw-setup-dialog .pw-setup-error { padding: 12px; margin: 16px 0 0; border-radius: 5px; background: #fff0ed; color: #ab3328; }
.pw-setup-success { padding: 34px 28px; }
.pw-setup-success h2 { font-size: 23px; margin: 0 0 18px; }
.pw-setup-dialog [hidden] { display: none !important; }
@media(max-width: 600px) {
 .pw-setup-header, .pw-setup-body, .pw-setup-actions { padding-left: 20px; padding-right: 20px; }
 .pw-setup-header h2 { font-size: 21px; }
 .pw-setup-review > div { grid-template-columns: 105px minmax(0,1fr); gap: 10px; }
}
.pw-setup-dialog h2:focus { outline: none; }

/* New workplace (account page): the map is the location field. */
.pw-setup-dialog.is-create { width: min(760px, calc(100vw - 32px)); }
.pw-setup-map-field { position: relative; margin: 0 0 16px; }
.pw-setup-map .map-picker-inline { border-radius: 10px; }
.pw-setup-map .map-picker-inline-canvas { min-height: 340px; }
/* Invisible anchor for the "click the map" bubble, at the bottom centre of the map. */
.pw-setup-map-proxy { position: absolute; left: 50%; bottom: 12px; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.pw-setup-success-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* Inline (account page): the wizard is part of the page, not a modal. */
.pw-setup-dialog.is-inline { position: static; display: block; width: 100%; max-height: none; margin: 0; overflow: visible; box-shadow: none; border-radius: 12px; }
.store-create-wizard-slot { margin-top: 4px; }
