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 {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.foodord-setup-wizard__check {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

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

.foodord-setup-wizard__check-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.foodord-setup-wizard__check-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f3f4f6;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.foodord-setup-wizard__check-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  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: 13px;
  color: #6b7280;
  margin-top: 4px;
}

.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: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.foodord-setup-wizard__diagnostics-label input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #111827;
}

.foodord-setup-wizard__diagnostics-label span {
  display: grid;
  gap: 6px;
}

.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__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__primary-btn--inline {
    width: 100%;
  }
}
