#actionDialog.self-order-dialog {
  width: min(820px, calc(100vw - 32px));
  max-height: min(850px, calc(100dvh - 40px));
  padding: 0;
  border: 1px solid #3b3e4c;
  border-radius: 16px;
  background: #202127;
  color: #eff0f6;
  box-shadow: 0 24px 90px #11142466;
  color-scheme: dark;
  overflow: hidden;
}
#actionDialog.self-order-dialog::backdrop { background: #12152382; backdrop-filter: blur(3px); }
.self-order-dialog [hidden] { display: none !important; }
.self-order-dialog * { box-sizing: border-box; }
.self-order-dialog button, .self-order-dialog input, .self-order-dialog select, .self-order-dialog textarea { font: inherit; }
.self-order-dialog button { cursor: pointer; }
.self-order-dialog button:disabled { opacity: .45; cursor: default; }
.self-order-dialog button:focus-visible, .self-order-dialog input:focus-visible, .self-order-dialog textarea:focus-visible, .self-order-dialog select:focus-visible, .self-order-dialog summary:focus-visible { outline: 2px solid #8c9aff; outline-offset: 3px; }
.so-form { display: flex; flex-direction: column; max-height: min(850px, calc(100dvh - 40px)); font-size: 13px; }
.so-header { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #343640; background: linear-gradient(120deg, #272832, #202431); }
.so-header > div { display: flex; align-items: center; gap: 16px; }
.so-header h2 { margin: 0; font-size: 20px; font-weight: 650; color: #f5f6fd; }
.so-notice-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: #91a0ff; font-size: 12px !important; }
.so-close { display: grid; place-items: center; border: 0; border-radius: 6px; width: 32px; height: 32px; background: transparent; color: #93a0ff; font-size: 28px !important; line-height: 1; }
.so-close:hover { background: #363a50; }
.so-body { min-height: 0; overflow-y: auto; padding: 0 24px; scrollbar-width: thin; scrollbar-color: #4a4d60 transparent; overscroll-behavior: contain; }
.so-notice { border: 1px solid #40475f; border-radius: 8px; background: #282e41; padding: 13px 16px; margin-top: 16px; line-height: 1.8; font-size: 12px; }
.so-notice strong { color: #c2caff; }.so-notice p { color: #b7bece; margin: 5px 0 0; }
.so-steps { margin: 0 0 22px; padding: 22px 0 18px; display: grid; grid-template-columns: 1fr 1fr; list-style: none; border-bottom: 1px solid #383a46; }
.so-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; color: #878b9c; font-size: 12px; font-weight: 600; }
.so-steps li::after { content: ''; position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: #3a405e; }
.so-steps li:last-child::after { display: none; }
.so-steps b { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 11px; background: #333744; border: 1px solid #4b5066; font-size: 13px; }
.so-steps [aria-current] { color: #9aa7ff; }.so-steps [aria-current] b, .so-steps .is-done b { color: #fff; background: #546bf3; border-color: #7184ff; box-shadow: 0 0 0 5px #546bf315; }
.so-steps .is-done::after { background: #6076f5; }
.so-section-heading { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: 14px; font-weight: 600; }
.so-section-heading > b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #566cf3; font-size: 12px; color: #fff; }
.so-section-heading > span { margin-left: auto; font-size: 11px; border: 1px solid #4f5a8e; border-radius: 5px; color: #abb6ff; padding: 3px 9px; font-weight: 400; }
.so-games { display: flex; gap: 10px; margin-bottom: 24px; overflow-x: auto; padding: 1px 1px 5px; scrollbar-width: thin; }
.so-game { flex: 0 0 111px; display: flex; align-items: center; flex-direction: column; gap: 9px; padding: 13px 8px 10px; border: 1px solid #3d3e48; border-radius: 9px; background: #26272e; color: #dce0ec; }
.so-game[aria-pressed="true"] { border-color: #7f8dff; background: #2b3044; color: #a8b3ff; }.so-game:hover { border-color: #737dab; }
.so-game strong { font-size: 12px; font-weight: 500; white-space: nowrap; }
.so-game-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #558f91; border-radius: 50%; color: #68d8c7; background: #183638; }
.so-game-tone-1 { color: #fb9094; background: #3b272f; border-color: #a26878; }.so-game-tone-2 { color: #b5a2ff; background: #322948; border-color: #7f6cb6; }.so-game-tone-3 { color: #8dc6fb; background: #283747; border-color: #617eaa; }
.so-field { display: grid; grid-template-columns: 95px minmax(0,1fr); align-items: center; gap: 20px; margin: 18px 0; color: #b6bdcf; }
.so-field em { color: #8b9bff; font-style: normal; font-size: 12px; }
.so-field input, .so-field textarea { border: 1px solid #41444f; border-radius: 7px; padding: 11px 12px; background: #2b2d35; color: #eff0f7; width: 100%; min-width: 0; outline: none; }
.so-field input::placeholder, .so-field textarea::placeholder { color: #8b91a2; font-size: 12px; }
.so-field textarea { resize: vertical; min-height: 68px; max-height: 170px; }
.so-remark { align-items: start; }.so-remark > label { padding-top: 12px; }
.so-service-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; width: 100%; padding: 11px 13px; min-height: 42px; border: 1px solid #41444f; border-radius: 7px; background: #2b2d35; color: #9299ae; }
.so-service-trigger[aria-expanded="true"] { border-color: #7e8df7; }.so-service-trigger.has-selection { color: #e5e9ff; }.so-service-trigger svg { flex: none; }.so-service-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.so-cascader { display: grid; grid-template-columns: .9fr .85fr 1.25fr; border: 1px solid #4b5062; border-radius: 9px; background: #31333d; margin: -8px 0 20px; box-shadow: 0 10px 25px #0003; overflow: hidden; }
.so-cascader.so-cascader-direct { grid-template-columns: .9fr 2.1fr; }
.so-cascader > section { min-width: 0; padding: 14px 12px 10px; border-right: 1px solid #505363; }.so-cascader > section:last-child { border-right: 0; }
.so-cascader h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: #f1f2f9; }
.so-search { display: flex; align-items: center; gap: 6px; border: 1px solid #656b7b; border-radius: 4px; padding: 8px; margin-bottom: 8px; color: #b8bfd1; }
.so-search svg { flex: none; }.so-search input { background: none; border: 0; padding: 0; min-width: 0; width: 100%; outline: none; color: #eef0f7; font-size: 12px; }.so-search input::placeholder { color: #bdc1cf; }
.so-options { max-height: 232px; overflow-y: auto; scrollbar-width: thin; }
.so-option { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 5px; width: 100%; min-height: 48px; padding: 9px 8px; border: 0; border-radius: 4px; color: #e3e6f0; background: none; }
.so-option > span { min-width: 0; }.so-option svg { flex: none; color: #a1a9c2; }.so-option strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }.so-option small { display: block; font-size: 10px; color: #a5adc0; margin-top: 3px; }
.so-option:hover { background: #404554; }.so-option.is-selected { background: #434a65; color: #c6ceff; }.so-option.is-selected svg { color: #bac5ff; }
.so-option small, #soSelectionText { overflow-wrap: anywhere; }
.so-option-guarantee { display: block; margin-top: 4px; color: #89d8c7; font-size: 12px; overflow-wrap: anywhere; }
.so-guarantee { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin: 0 0 20px; padding: 12px 14px; border-left: 3px solid #6ec4b4; background: #263a38; }
.so-guarantee > span { display: inline-flex; align-items: center; gap: 7px; color: #a5cbc4; flex: none; font-size: 12px; }
.so-guarantee strong { color: #b5eadf; font-size: 13px; text-align: right; overflow-wrap: anywhere; }
.so-search-empty, .so-empty { color: #a2aabd; font-size: 12px; padding: 10px 0; }
.so-duration { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }.so-duration > small { color: #8e96ac; font-size: 11px; }
.so-stepper { display: flex; border: 1px solid #454957; border-radius: 6px; overflow: hidden; height: 36px; background: #2d303a; }
.so-stepper button { border: 0; background: #363a47; color: #d8def4; width: 34px; font-size: 18px !important; }
.so-stepper input { appearance: textfield; -moz-appearance: textfield; border: 0; border-radius: 0; width: 58px; text-align: center; padding: 0; }.so-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.so-muted { font-size: 11px; color: #919aaf; line-height: 1.6; }
.so-error { font-size: 12px; color: #ffb0a9; line-height: 1.6; margin: 12px 0; min-height: 18px; }
.so-footer { flex: none; display: flex; align-items: center; gap: 12px; justify-content: space-between; background: #262934; padding: 17px 24px; border-top: 1px solid #3b3f4e; }
.so-price > span { display: flex; align-items: baseline; gap: 10px; font-size: 12px; color: #bfc5d5; }.so-price strong { color: #a9b6ff; font-size: 24px; font-weight: 600; }.so-price > small { display: block; color: #969fb7; font-size: 11px; margin-top: 4px; }
.so-footer-actions { display: flex; gap: 9px; }.so-submit { display: flex; align-items: center; justify-content: center; gap: 12px; background: #566cf3; color: #fff; border: 1px solid #7082ff; border-radius: 7px; padding: 11px 17px; min-height: 43px; font-weight: 500 !important; }.so-submit:hover { background: #647bff; }.so-back { background: transparent; color: #c3cada; border: 1px solid #606779; padding: 10px 12px; border-radius: 7px; }
.so-confirm-card { background: #2b2e38; border: 1px solid #444a5c; border-radius: 10px; padding: 4px 20px; }.so-confirm-card dl { margin: 0; }.so-confirm-card dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; border-bottom: 1px solid #3c414f; padding: 10px 0; line-height: 1.6; }.so-confirm-card dl > div:last-child { border-bottom: 0; }.so-confirm-card dt { color: #969fb6; font-size: 12px; }.so-confirm-card dd { color: #e5e9f6; font-size: 13px; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }.so-payment-note { color: #a6b1cb; font-size: 12px; line-height: 1.7; padding: 5px 0; }
@media (max-width: 600px) {
  #actionDialog.self-order-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 20px); border-radius: 11px; }
  .so-form { max-height: calc(100dvh - 20px); }.so-header { padding: 12px 16px; }.so-body { padding: 0 16px; }.so-header h2 { font-size: 18px; }
  .so-games { margin-bottom: 16px; }.so-game { flex-basis: 97px; }
  .so-field { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; margin: 14px 0; font-size: 12px; }.so-duration { gap: 7px; }.so-duration > small { display: block; width: 100%; }
  .so-cascader { grid-template-columns: minmax(0, 1fr); }.so-cascader > section { padding: 10px 12px; border-right: 0; border-bottom: 1px solid #505363; }.so-cascader > section:last-child { border-bottom: 0; }.so-options { max-height: 112px; }.so-search { padding: 7px; }.so-search input { font-size: 12px; }.so-option { padding: 8px; }.so-option strong { font-size: 12px; }
  .so-cascader.so-cascader-direct { grid-template-columns: minmax(0, 1fr); }
  .so-footer { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }.so-footer-actions { margin-left: auto; }.so-submit { padding: 10px 12px; font-size: 12px !important; }.so-back { font-size: 12px !important; }.so-price strong { font-size: 21px; }
  .so-confirm-card { padding: 2px 13px; }.so-confirm-card dl > div { grid-template-columns: 75px 1fr; gap: 12px; }
}
