body[class*="foodord-setup"] #wpadminbar,
body[class*="foodord-setup"] #adminmenumain,
body[class*="foodord-setup"] #adminmenuback,
body[class*="foodord-setup"] #adminmenuwrap,
body[class*="foodord-setup"] #wpfooter,
body[class*="foodord-setup"] .notice,
body[class*="foodord-setup"] .update-nag {
  display: none;
}

body[class*="foodord-setup"] #wpcontent {
  margin-left: 0;
  padding-left: 0;
}

body[class*="foodord-setup"] #wpwrap {
  background: #f9fafb;
}

body[class*="foodord-setup"] #wpbody-content {
  padding-bottom: 0;
}

body[class*="foodord-setup"] {
  background: #f9fafb;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.foodord-setup-wizard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  box-sizing: border-box;
}

.foodord-setup-wizard__header {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  text-align: center;
}

.foodord-setup-wizard__brand {
  font-size: 28px;
  font-weight: 800;
  color: #333333;
  letter-spacing: -0.03em;
  margin: 0;
}

.foodord-setup-wizard__steps {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.foodord-setup-wizard__step {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.foodord-setup-wizard__step::after {
  content: "/";
  margin-left: 12px;
  color: #e5e7eb;
}

.foodord-setup-wizard__step:last-child::after {
  display: none;
}

.foodord-setup-wizard__step.is-active {
  color: #111827;
  font-weight: 600;
}

.foodord-setup-wizard__content {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 56px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.foodord-setup-wizard__title {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.foodord-setup-wizard__text {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.foodord-setup-wizard__form {
  margin-top: 32px;
}

.foodord-setup-wizard__primary-btn {
  appearance: none;
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.foodord-setup-wizard__primary-btn:hover {
  background: #333333;
  border-color: #333333;
  transform: translateY(-1px);
}

.foodord-setup-wizard__primary-btn:active {
  transform: translateY(0);
}

.foodord-setup-wizard__skip {
  margin-top: 32px;
  order: 10;
  /* Move skip button below content in visual order if flex allows, but here it's in header */
}

.foodord-setup-wizard__skip-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.foodord-setup-wizard__skip-btn:hover {
  color: #111827;
}

.foodord-setup-wizard__link {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.2s ease;
  background: #ffffff;
}

.foodord-setup-wizard__link:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.foodord-setup-wizard__notice {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  background: #f9fafb;
  margin: 24px 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.foodord-setup-wizard__notice.is-error {
  border-color: #fca5a5;
  background: #fffafb;
  color: #b91c1c;
}

.foodord-setup-wizard__alert {
  margin: 32px 0 0;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.foodord-setup-wizard__alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foodord-setup-wizard__alert-icon {
  color: #f59e0b;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.foodord-setup-wizard__alert-text {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  line-height: 1.5;
}

.foodord-setup-wizard__alert .foodord-setup-wizard__link {
  font-size: 13px;
  padding: 8px 14px;
  background: #f9fafb;
  white-space: nowrap;
}

.foodord-setup-wizard__checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  list-style: none;
  margin: 24px 0 0;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  overflow: visible;
}

.foodord-setup-wizard__check {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.foodord-setup-wizard__check:first-child {
  border-top: 1px solid #e5e7eb;
}

.foodord-setup-wizard__check-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}

.foodord-setup-wizard__check-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.foodord-setup-wizard__check-status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.foodord-setup-wizard__check.is-ok .foodord-setup-wizard__check-status {
  background: #ecfdf5;
  color: #059669;
}

.foodord-setup-wizard__check.is-fail .foodord-setup-wizard__check-status {
  background: #fef2f2;
  color: #dc2626;
}

.foodord-setup-wizard__check-message {
  grid-column: 1 / -1;
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
  margin-top: 0;
}

.foodord-setup-wizard__diagnostics {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.foodord-setup-wizard__diagnostics-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.foodord-setup-wizard__diagnostics-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.foodord-setup-wizard__diagnostics-label strong {
  font-size: 14px;
  line-height: 1.4;
  color: #111827;
}

.foodord-setup-wizard__diagnostics-label small {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.foodord-setup-wizard__diagnostics-toggle {
  --foodord-setup-toggle-knob: 16px;
  --foodord-setup-toggle-travel: 16px;
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.foodord-setup-wizard__diagnostics-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.foodord-setup-wizard__diagnostics-toggle-control {
  position: relative;
  display: inline-flex;
  flex: 0 0 38px;
  width: 38px;
  height: 22px;
  background: #dcdcde;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  box-sizing: border-box;
  transition: background-color 0.28s ease, border-color 0.28s ease;
}

.foodord-setup-wizard__diagnostics-toggle-control::before {
  position: absolute;
  top: 2px;
  left: 2px;
  width: var(--foodord-setup-toggle-knob);
  height: var(--foodord-setup-toggle-knob);
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  content: "";
  transform: translate3d(0, 0, 0) rotate(0deg);
  transform-origin: center center;
  transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

.foodord-setup-wizard__diagnostics-checkbox:checked + .foodord-setup-wizard__diagnostics-toggle-control {
  background: #22c55e;
  border-color: #22c55e;
}

.foodord-setup-wizard__diagnostics-checkbox:checked + .foodord-setup-wizard__diagnostics-toggle-control::before {
  transform: translate3d(var(--foodord-setup-toggle-travel), 0, 0) rotate(180deg);
}

.foodord-setup-wizard__diagnostics-checkbox:focus-visible + .foodord-setup-wizard__diagnostics-toggle-control {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18);
  outline: none;
}

.foodord-setup-wizard__diagnostics-label:hover .foodord-setup-wizard__diagnostics-toggle-control {
  background: #c3c4c7;
  border-color: #c3c4c7;
}

.foodord-setup-wizard__diagnostics-checkbox:checked:hover + .foodord-setup-wizard__diagnostics-toggle-control {
  background: #16a34a;
  border-color: #16a34a;
}

.foodord-setup-wizard__summary {
  list-style: none;
  margin: 32px 0;
  padding: 0;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.foodord-setup-wizard__summary li {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  color: #4b5563;
}

.foodord-setup-wizard__summary li:first-child {
  border-top: 0;
}

/* Button Loading State */
body .foodord-setup-wizard__primary-btn.is-loading,
body .foodord-setup-wizard__link.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.foodord-setup-wizard__primary-btn.is-loading::after,
.foodord-setup-wizard__link.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: foodord-spin 0.6s linear infinite;
}

.foodord-setup-wizard__link.is-loading::after {
  border: 2px solid rgba(17, 24, 39, 0.1);
  border-top-color: #111827;
}

@keyframes foodord-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.foodord-setup-wizard__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.foodord-setup-wizard__theme-card {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.foodord-setup-wizard__theme-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  color: #111827;
}

.foodord-setup-wizard__theme-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.foodord-setup-wizard__theme-text:last-child {
  margin-bottom: 0;
}

.foodord-setup-wizard__theme-actions {
  margin-top: 20px;
}

.foodord-setup-wizard__primary-btn--inline {
  width: auto;
}

.foodord-setup-wizard__primary-btn--inline,
.foodord-setup-wizard__primary-btn--inline:visited,
.foodord-setup-wizard__primary-btn--inline:focus,
.foodord-setup-wizard__primary-btn--inline:focus-visible {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
  text-decoration: none;
  box-shadow: none;
}

.foodord-setup-wizard__primary-btn--inline:hover {
  background: #ea004b;
  border-color: #ea004b;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(234, 0, 75, 0.18);
}

.foodord-setup-wizard__primary-btn--inline:active {
  background: #c70040;
  border-color: #c70040;
  color: #ffffff;
  box-shadow: none;
}

@media (max-width: 640px) {
  .foodord-setup-wizard {
    padding: 40px 16px;
  }

  .foodord-setup-wizard__content {
    padding: 40px 24px;
  }

  .foodord-setup-wizard__title {
    font-size: 26px;
  }

  .foodord-setup-wizard__checks {
    grid-template-columns: 1fr;
  }

  .foodord-setup-wizard__primary-btn--inline {
    width: 100%;
  }
}
