:root {
  --store-config-indigo: #28345c;
  --store-config-blue: #3477ef;
  --store-config-ink: #252c3b;
  --store-config-muted: #778193;
  --store-config-line: #dfe5ee;
  --store-config-bg: #f3f6fa;
  --store-config-green: #22a66a;
  --store-config-gold: #b77922;
}

.store-config-entry {
  position: relative;
}

.store-config-entry.active {
  background: #334d9a !important;
}

.store-config-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  color: var(--store-config-ink);
  background: var(--store-config-bg);
  animation: store-config-in 160ms ease-out;
}

.store-config-layer.closing {
  animation: store-config-out 160ms ease-in forwards;
}

.store-config-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.store-config-rail {
  width: 92px;
  flex: 0 0 92px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--store-config-indigo);
}

.store-config-rail-simple {
  width: 64px;
  flex-basis: 64px;
}

.store-config-rail-brand {
  height: 72px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #364574;
}

.store-config-rail-brand span {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.store-config-rail-simple .store-config-rail-brand span {
  width: 34px;
  height: 34px;
  font-size: 10px;
}

.store-config-rail-link {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 3px;
  color: #bcc6e7;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  font-size: 12px;
}

.store-config-rail-link b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 12px;
}

.store-config-rail-link.active {
  color: #ffffff;
  background: #344b91;
  border-left-color: #7ea3ff;
}

.store-config-rail-static {
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 3px;
  color: #ffffff;
  background: #344b91;
  border-left: 3px solid #7ea3ff;
  font-size: 12px;
}

.store-config-rail-static b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 12px;
}

.store-config-back {
  width: 38px;
  height: 38px;
  margin: auto auto 16px;
  color: #bfc8e5;
  background: #34406a;
  border: 1px solid #53618e;
  border-radius: 6px;
  font-size: 25px;
}

.store-config-workspace {
  min-width: 0;
  flex: 1;
  overflow: auto;
}

.store-config-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--store-config-line);
}

.store-config-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.store-config-return {
  height: 34px;
  padding: 0 10px;
  color: #5570a9;
  background: #ffffff;
  border: 1px solid #ced8e8;
  border-radius: 4px;
  font-size: 13px;
}

.store-config-header p,
.store-config-header h1,
.store-config-header span {
  display: block;
  margin: 0;
}

.store-config-header p {
  color: #6e7d9a;
  font-size: 12px;
}

.store-config-header h1 {
  margin-top: 5px;
  color: #20283a;
  font-size: 24px;
  font-weight: 650;
}

.store-config-header > div:first-child > span {
  margin-top: 7px;
  color: var(--store-config-muted);
  font-size: 13px;
}

.store-config-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
}

.store-config-store {
  padding: 8px 12px;
  color: #5570a9;
  background: #eef4ff;
  border: 1px solid #d4e2ff;
  border-radius: 5px;
  font-size: 12px;
}

.store-config-save {
  height: 40px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--store-config-blue);
  border: 0;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 5px 12px #3477ef2b;
}

.store-config-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1360px;
  margin: 20px auto 0;
  padding: 0 32px;
}

.store-config-summary article {
  min-height: 94px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--store-config-line);
  border-radius: 7px;
  box-shadow: 0 3px 12px #2b41610d;
}

.store-config-summary.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-config-summary span,
.store-config-summary strong,
.store-config-summary small {
  display: block;
}

.store-config-summary span {
  color: var(--store-config-muted);
  font-size: 12px;
}

.store-config-summary strong {
  margin-top: 8px;
  color: #31477b;
  font-size: 16px;
}

.store-config-summary small {
  margin-top: 6px;
  color: #9aa3b2;
  font-size: 11px;
}

.store-config-panel {
  max-width: 1360px;
  margin: 16px auto 32px;
  padding: 0 32px;
}

.store-config-panel[hidden] {
  display: none;
}

.store-config-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid var(--store-config-line);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.store-config-panel-heading h2,
.store-config-panel-heading p {
  margin: 0;
}

.store-config-panel-heading h2 {
  color: #293244;
  font-size: 18px;
}

.store-config-panel-heading p {
  margin-top: 7px;
  color: var(--store-config-muted);
  font-size: 12px;
}

.store-config-panel-heading > b {
  padding: 5px 9px;
  color: #4a71c9;
  background: #eef4ff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
}

.store-config-settings {
  background: #ffffff;
  border: 1px solid var(--store-config-line);
}

.store-config-setting-row {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px;
  border-bottom: 1px solid #edf0f5;
}

.store-config-setting-row:last-child {
  border-bottom: 0;
}

.store-config-setting-row strong,
.store-config-setting-row span {
  display: block;
}

.store-config-setting-row strong {
  color: #303848;
  font-size: 14px;
}

.store-config-setting-row span {
  max-width: 760px;
  margin-top: 6px;
  color: var(--store-config-muted);
  font-size: 12px;
  line-height: 1.5;
}

.store-config-switch {
  min-width: 116px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8b95a5;
  background: #f0f2f5;
  border: 0;
  border-radius: 17px;
}

.store-config-switch i {
  width: 26px;
  height: 16px;
  padding: 2px;
  background: #c3cbd7;
  border-radius: 10px;
}

.store-config-switch i::after {
  width: 12px;
  height: 12px;
  display: block;
  content: "";
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #2b3b5540;
  transition: transform 160ms ease;
}

.store-config-switch em {
  font-size: 11px;
  font-style: normal;
}

.store-config-switch.on {
  color: #2c8b5f;
  background: #e8f7ef;
}

.store-config-switch.on i {
  background: var(--store-config-green);
}

.store-config-switch.on i::after {
  transform: translateX(10px);
}

.store-config-rule-tag {
  padding: 6px 9px;
  color: #93692c;
  background: #fff6e7;
  border: 1px solid #f2dfbc;
  border-radius: 4px;
  font-size: 11px;
}

.store-config-callout {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: #416195;
  background: #eff6ff;
  border: 1px solid #d7e7ff;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  font-size: 12px;
  line-height: 1.5;
}

.store-config-callout strong {
  flex: 0 0 auto;
}

.store-config-callout.warning {
  color: #88602c;
  background: #fff8eb;
  border-color: #f1dfbd;
}

.store-config-display-rule {
  background: #ffffff;
  border: 1px solid var(--store-config-line);
  border-top: 0;
}

.store-config-display-rule-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 22px;
  border-bottom: 1px solid #edf0f5;
}

.store-config-display-rule-head strong,
.store-config-display-rule-head span {
  display: block;
}

.store-config-display-rule-head strong {
  color: #333d50;
  font-size: 14px;
}

.store-config-display-rule-head span {
  margin-top: 5px;
  color: #778397;
  font-size: 11px;
}

.store-config-display-rule-head > b {
  padding: 6px 9px;
  color: #377452;
  background: #e9f8ef;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}

.store-config-example-label {
  padding: 10px 22px 0;
  color: #5e6e85;
  background: #ffffff;
  font-size: 12px;
  font-weight: 650;
}

.store-config-merge-preview {
  min-height: 122px;
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 13px 22px 15px;
  background: #f9fbfe;
}

.store-config-merge-preview.merged {
  grid-template-columns: minmax(260px, 1.3fr) 150px minmax(220px, 1fr);
}

.store-config-merge-label span,
.store-config-merge-label strong,
.store-config-merge-label small,
.store-config-merge-total span,
.store-config-merge-total strong,
.store-config-merge-total small {
  display: block;
}

.store-config-merge-label span,
.store-config-merge-total span {
  color: #7a879a;
  font-size: 11px;
}

.store-config-merge-label strong {
  margin-top: 7px;
  color: #31415d;
  font-size: 14px;
}

.store-config-merge-label small,
.store-config-merge-total small {
  margin-top: 6px;
  color: #8994a4;
  font-size: 10px;
}

.store-config-merge-total {
  padding: 12px 14px;
  text-align: center;
  background: #edf7ff;
  border: 1px solid #d8e9fb;
  border-radius: 5px;
}

.store-config-merge-total strong {
  margin-top: 6px;
  color: #2b66b6;
  font-size: 20px;
}

.store-config-merge-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.store-config-merge-codes b {
  padding: 7px 9px;
  color: #647085;
  background: #ffffff;
  border: 1px solid #e0e6ee;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.store-config-merge-preview.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-config-merge-preview.split > div {
  min-height: 70px;
  padding: 11px 13px;
  background: #ffffff;
  border: 1px solid #e1e6ee;
  border-radius: 5px;
}

.store-config-merge-preview.split strong,
.store-config-merge-preview.split span,
.store-config-merge-preview.split b {
  display: block;
}

.store-config-merge-preview.split strong {
  color: #354055;
  font-size: 13px;
}

.store-config-merge-preview.split span {
  margin-top: 6px;
  color: #7d8999;
  font-size: 10px;
}

.store-config-merge-preview.split b {
  margin-top: 6px;
  color: #3b7096;
  font-size: 11px;
}

.store-config-merge-preview.split > small {
  grid-column: 1 / -1;
  color: #8792a2;
  font-size: 11px;
}

.store-config-policy {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  color: #375985;
  background: #f1f7ff;
  border: 1px solid #d8e7fb;
}

.store-config-policy strong,
.store-config-policy span {
  display: block;
}

.store-config-policy strong {
  color: #30476c;
  font-size: 14px;
}

.store-config-policy span {
  margin-top: 6px;
  color: #627895;
  font-size: 12px;
}

.store-config-policy > b {
  padding: 6px 9px;
  color: #24744f;
  background: #e7f8ef;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}

.store-config-table {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--store-config-line);
  border-top: 0;
}

.store-config-table-head,
.store-config-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.25fr 0.7fr 0.7fr;
  gap: 14px;
  align-items: center;
  padding: 0 20px;
}

.store-config-table-head {
  min-height: 42px;
  color: #68758a;
  background: #f4f7fb;
  border-bottom: 1px solid var(--store-config-line);
  font-size: 11px;
}

.store-config-table-row {
  min-height: 66px;
  color: #5d697b;
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
}

.store-config-table-row:last-child {
  border-bottom: 0;
}

.store-config-table-row strong,
.store-config-table-row small {
  display: block;
}

.store-config-table-row strong {
  color: #2e3747;
}

.store-config-table-row small {
  margin-top: 5px;
  color: #98a1ae;
  font-size: 10px;
}

.store-config-table-row b {
  color: #2f496e;
}

.store-config-rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--store-config-line);
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.store-config-rule-list span {
  padding: 11px 12px;
  color: #738094;
  background: #f8fafc;
  border: 1px solid #e9edf3;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.55;
}

.store-config-rule-list b {
  color: #44516a;
}

.store-config-bundle-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 42px minmax(0, 1.2fr) 42px minmax(0, 1.2fr);
  align-items: stretch;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--store-config-line);
}

.store-config-bundle-flow article {
  min-height: 132px;
  padding: 15px;
  background: #f8fbff;
  border: 1px solid #dbe7f7;
  border-radius: 6px;
}

.store-config-bundle-flow article.bundle {
  background: #f4fbf8;
  border-color: #d3eee2;
}

.store-config-bundle-flow article.deduct {
  background: #fff9ee;
  border-color: #f4e3c6;
}

.store-config-bundle-flow article span,
.store-config-bundle-flow article strong,
.store-config-bundle-flow article b,
.store-config-bundle-flow article small {
  display: block;
}

.store-config-bundle-flow article span {
  color: #7c8aa0;
  font-size: 11px;
}

.store-config-bundle-flow article strong {
  min-height: 38px;
  margin-top: 8px;
  color: #30415c;
  font-size: 14px;
  line-height: 1.35;
}

.store-config-bundle-flow article b {
  margin-top: 8px;
  color: #287d59;
  font-size: 13px;
}

.store-config-bundle-flow article small {
  margin-top: 7px;
  color: #8b98a9;
  font-size: 10px;
}

.store-config-bundle-flow > i {
  align-self: center;
  color: #7692bd;
  font-size: 21px;
  font-style: normal;
  text-align: center;
}

.store-config-bundle-table {
  background: #ffffff;
  border: 1px solid var(--store-config-line);
  border-top: 0;
}

.store-config-bundle-table > div {
  min-height: 50px;
  display: grid;
  grid-template-columns: 1.25fr 1.5fr 0.6fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 0 20px;
  color: #667387;
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
}

.store-config-bundle-table > div:first-child {
  min-height: 40px;
  color: #68758a;
  background: #f4f7fb;
  font-size: 11px;
}

.store-config-bundle-table > div:last-child {
  border-bottom: 0;
}

.store-config-bundle-table strong {
  color: #303a4a;
}

.store-config-bundle-table b {
  color: #30476c;
}

.store-config-bundle-table em {
  color: #2a875e;
  font-style: normal;
}

.store-config-demo {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  background: #ffffff;
  border: 1px solid var(--store-config-line);
  border-top: 0;
}

.store-config-demo strong,
.store-config-demo span {
  display: block;
}

.store-config-demo strong {
  color: #364055;
  font-size: 13px;
}

.store-config-demo span {
  max-width: 760px;
  margin-top: 5px;
  color: #738094;
  font-size: 11px;
  line-height: 1.5;
}

.store-config-demo > div:last-child {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.store-config-demo button {
  height: 34px;
  padding: 0 13px;
  color: #4e6fbe;
  background: #ffffff;
  border: 1px solid #bcd0ff;
  border-radius: 4px;
  font-size: 12px;
}

.store-config-demo button.primary {
  color: #ffffff;
  background: var(--store-config-blue);
  border-color: var(--store-config-blue);
}

.store-config-rules {
  margin: 0;
  padding: 6px 22px 20px 46px;
  background: #ffffff;
  border: 1px solid var(--store-config-line);
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.store-config-rules li {
  padding: 15px 0 15px 2px;
  color: #6e798a;
  border-bottom: 1px solid #edf0f4;
  font-size: 13px;
  line-height: 1.6;
}

.store-config-rules li:last-child {
  border-bottom: 0;
}

.store-config-rules strong {
  color: #354056;
}

.store-config-toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  z-index: 1300;
  padding: 12px 17px;
  color: #ffffff;
  background: #25324e;
  border-radius: 5px;
  box-shadow: 0 10px 24px #15233d36;
  font-size: 13px;
  transform: translateX(-50%);
  animation: store-config-toast-in 180ms ease-out;
}

.store-config-toast.leave {
  animation: store-config-toast-out 220ms ease-in forwards;
}

@keyframes store-config-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes store-config-out {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(7px); }
}

@keyframes store-config-toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes store-config-toast-out {
  to { opacity: 0; transform: translate(-50%, 8px); }
}

@media (max-width: 900px) {
  .store-config-rail { width: 70px; flex-basis: 70px; }
  .store-config-rail-link { min-height: 68px; font-size: 10px; }
  .store-config-header { padding: 18px; }
  .store-config-header-actions { align-items: flex-end; flex-direction: column; }
  .store-config-summary, .store-config-panel { padding-left: 18px; padding-right: 18px; }
  .store-config-summary, .store-config-summary.compact { grid-template-columns: 1fr; }
  .store-config-bundle-flow { grid-template-columns: 1fr; }
  .store-config-bundle-flow > i { min-height: 28px; transform: rotate(90deg); }
  .store-config-rule-list { grid-template-columns: 1fr; }
  .store-config-merge-preview.merged { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .store-config-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .store-config-header-actions { width: 100%; align-items: center; flex-direction: row; justify-content: space-between; }
  .store-config-store { overflow: hidden; text-overflow: ellipsis; }
  .store-config-table, .store-config-bundle-table { overflow-x: auto; }
  .store-config-table-head, .store-config-table-row { min-width: 700px; }
  .store-config-bundle-table > div { min-width: 620px; }
  .store-config-demo { align-items: flex-start; flex-direction: column; }
}
