.sej-portal {
  --sej-green: #00843d;
  --sej-orange: #f58220;
  --sej-red: #de350b;
  --sej-ink: #263238;
  --sej-muted: #61707f;
  --sej-line: #dfe5ea;
  --sej-bg: #f4f7f9;
  color: var(--sej-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", Meiryo, sans-serif;
  margin: 36px auto 32px;
  max-width: 920px;
}

body.sej-robot-portal-page .storefront-breadcrumb {
  display: none !important;
}

body.sej-robot-portal-page .entry-header {
  display: none !important;
}

body.sej-robot-portal-page .entry-title {
  display: none !important;
}

body.sej-robot-portal-page .site-branding .site-title,
body.sej-robot-portal-page .site-branding .site-description,
body.sej-robot-portal-page .main-navigation,
body.sej-robot-portal-page .primary-navigation,
body.sej-robot-portal-page .storefront-primary-navigation,
body.sej-robot-portal-page .site-search,
body.sej-robot-portal-page .woocommerce-product-search,
body.sej-robot-portal-page .site-header-cart,
body.sej-robot-portal-page .sej-header-nav {
  display: none !important;
}

body.sej-robot-portal-page .site-branding {
  float: none !important;
  width: auto !important;
}

body.sej-robot-portal-page .site-header {
  padding-bottom: 18px !important;
  padding-top: 18px !important;
}

body.sej-robot-portal-page .site-header .col-full {
  align-items: center !important;
  display: flex !important;
  min-height: 0 !important;
}

body.sej-robot-portal-page .site-branding img,
body.sej-robot-portal-page .custom-logo,
body.sej-robot-portal-page .site-logo img {
  height: auto !important;
  max-height: 70px !important;
  max-width: 70px !important;
  width: auto !important;
}

body.sej-robot-portal-page .site-content,
body.sej-robot-portal-page .site-main,
body.sej-robot-portal-page .content-area,
body.sej-robot-portal-page .entry-content {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: none !important;
  padding-top: 0 !important;
  width: 100% !important;
}

body.sej-robot-portal-page .site-content .col-full {
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1180px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

body.sej-robot-portal-page .hentry {
  margin: 0 !important;
}

body.sej-robot-portal-page .site-footer {
  background: #f4f7f9 !important;
  border-top: 0 !important;
  color: #6f7f8e !important;
  padding: 42px 0 !important;
}

body.sej-robot-portal-page .site-footer .site-info {
  font-size: 13px !important;
  padding: 0 !important;
  text-align: center !important;
}

body.sej-robot-portal-page .site-footer .site-info a,
body.sej-robot-portal-page .site-footer .site-info span[role="separator"] {
  display: none !important;
}

@media (max-width: 640px) {
  body.sej-robot-portal-page .entry-header {
    display: none !important;
  }
}

.sej-portal * {
  box-sizing: border-box;
}

.sej-card {
  background: #fff;
  border: 1px solid var(--sej-line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(31, 48, 63, 0.08);
  padding: 32px;
}

.sej-hero {
  border-top: 6px solid var(--sej-green);
  text-align: center;
}

.sej-eyebrow {
  color: var(--sej-green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.sej-portal h1 {
  color: var(--sej-green);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 14px;
  text-align: center;
}

.sej-portal h2 {
  border-bottom: 2px solid var(--sej-orange);
  border-top: 2px solid #4a9fd8;
  color: var(--sej-ink);
  font-size: 18px;
  margin: 32px 0 18px;
  padding: 12px 0 8px;
}

.sej-menu {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.sej-menu-card {
  appearance: none;
  background: #fff;
  border: 2px solid var(--sej-line);
  border-radius: 8px;
  color: var(--sej-ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  padding: 24px 20px;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.sej-menu-card:hover {
  border-color: var(--sej-orange);
  box-shadow: 0 8px 18px rgba(31, 48, 63, 0.1);
  transform: translateY(-2px);
}

.sej-menu-card span {
  color: var(--sej-green);
  font-size: 19px;
  font-weight: 800;
}

.sej-menu-card small {
  color: var(--sej-muted);
  font-size: 13px;
  line-height: 1.5;
}

.sej-menu-primary {
  background: #f3fbf5;
  border-color: var(--sej-green);
}

.sej-prepare {
  background: #fff9f1;
  font: inherit;
}

.sej-form {
  max-width: 820px;
  margin: 0 auto;
}

.sej-fixed-model,
.sej-result-message,
.sej-selected-single,
.sej-store-empty {
  background: var(--sej-bg);
  border: 1px solid var(--sej-line);
  border-radius: 6px;
  color: var(--sej-muted);
  margin: 12px 0;
  padding: 12px 14px;
}

.sej-search-results .sej-result-message {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  padding: 8px 10px;
}

.sej-model-preview {
  align-items: center;
  background: #fff;
  border: 1px solid var(--sej-line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 150px 1fr;
  margin: 16px 0 4px;
  padding: 16px;
}

.sej-model-preview[hidden] {
  display: none;
}

.sej-model-preview img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  width: 150px;
}

.sej-model-preview strong {
  color: var(--sej-green);
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.sej-model-preview p {
  color: var(--sej-muted);
  font-size: 13px;
  margin: 0;
}

.sej-model-preview--fixed {
  margin-bottom: 22px;
}

.sej-price-notice {
  background: #f7faf8;
  border-left: 4px solid var(--sej-green);
  margin-top: 14px;
  padding: 12px 16px;
}

.sej-price-notice p {
  color: var(--sej-ink);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.sej-price-notice p + p {
  margin-top: 6px;
}

.sej-payment-total {
  background: #f4f8f4;
  border-left: 4px solid var(--sej-green);
  border-radius: 4px;
  margin: 14px 0 26px;
  padding: 14px 16px;
}

.sej-payment-total strong {
  color: var(--sej-ink);
  display: block;
  margin-bottom: 5px;
}

.sej-payment-total p {
  margin: 0;
}

.sej-label {
  color: var(--sej-ink);
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 7px;
}

.sej-portal .sej-label > span {
  background: var(--sej-red);
  border-radius: 3px;
  color: #fff !important;
  display: inline-block;
  font-size: 11px;
  margin-left: 6px;
  padding: 2px 6px;
}

.sej-portal input[type="text"],
.sej-portal input[type="email"],
.sej-portal input[type="tel"],
.sej-portal input[type="number"],
.sej-portal input[type="file"],
.sej-portal select,
.sej-portal textarea {
  background: #fff;
  border: 1px solid #cdd6df;
  border-radius: 6px;
  color: var(--sej-ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.sej-portal textarea {
  min-height: 96px;
  resize: vertical;
}

.sej-portal input:focus,
.sej-portal select:focus,
.sej-portal textarea:focus {
  border-color: var(--sej-green);
  box-shadow: 0 0 0 3px rgba(0, 132, 61, 0.14);
  outline: 0;
}

.sej-search-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 120px;
}

.sej-store-search {
  position: relative;
}

.sej-primary,
.sej-secondary,
.sej-mini-button,
.sej-remove {
  align-items: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.sej-primary {
  background: var(--sej-orange);
  color: #fff;
  margin-top: 24px;
  width: 100%;
}

.sej-secondary {
  background: #53616f;
  color: #fff;
}

.sej-mini-button {
  background: var(--sej-green);
  color: #fff;
  min-width: 132px;
}

.sej-remove {
  background: #eef2f5;
  color: #33414f;
  min-height: 36px;
}

.sej-primary:hover,
.sej-secondary:hover,
.sej-mini-button:hover {
  filter: brightness(0.96);
}

.sej-mini-button:disabled,
.sej-result-item.is-added .sej-mini-button {
  background: #8a96a3;
  cursor: not-allowed;
  filter: none;
}

.sej-search-results {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 48, 63, 0.12);
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-height: 360px;
  overflow: auto;
}

.sej-store-guide {
  margin-top: -8px;
  padding: 12px 14px;
  border-left: 4px solid #009944;
  background: #f1fbf5;
  color: #244b35;
}

.sej-manual-store {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  padding: 0 2px;
}

.sej-manual-store .sej-help {
  font-size: 12px;
  margin: 0;
}

.sej-manual-store .sej-secondary {
  background: transparent;
  border: 1px solid #53616f;
  color: #3f4d5a;
  font-size: 12px;
  min-height: 34px;
  padding: 6px 10px;
}

.sej-portal .sej-store-number {
  display: inline-block;
  margin: 0 10px 6px 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: #009944;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.sej-search-results:empty {
  display: none;
}

.sej-result-item,
.sej-store-card {
  background: #fff;
  border: 1px solid var(--sej-line);
  border-radius: 8px;
  padding: 14px;
}

.sej-result-item {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

.sej-result-item span,
.sej-store-card span {
  color: var(--sej-muted);
  font-size: 13px;
}

.sej-selected-stores {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.sej-store-head {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}

.sej-link {
  color: var(--sej-green);
  display: inline-block;
  font-weight: 700;
  margin-top: 16px;
}

.sej-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.sej-actions .sej-primary {
  margin-top: 0;
}

.sej-confirm-list {
  display: grid;
  grid-template-columns: 190px 1fr;
  margin: 0;
}

.sej-confirm-list dt,
.sej-confirm-list dd {
  border-bottom: 1px solid var(--sej-line);
  margin: 0;
  padding: 12px 0;
}

.sej-confirm-list dt {
  color: var(--sej-muted);
  font-weight: 700;
}

.sej-help {
  color: var(--sej-muted);
  font-size: 13px;
  margin: 8px 0 0;
}

.sej-complete {
  max-width: 760px;
  margin: 0 auto;
}

.sej-receipt {
  background: #fff9f1;
  border: 2px dashed var(--sej-orange);
  border-radius: 8px;
  color: var(--sej-ink);
  font-size: 22px;
  font-weight: 800;
  margin: 20px 0;
  padding: 18px;
  text-align: center;
}

.sej-inline {
  width: auto;
}

.sej-debug-version {
  color: #8a96a3;
  font-size: 12px;
  margin: 18px 0 0;
  text-align: center;
}

@media (max-width: 760px) {
  .sej-portal {
    margin: 24px auto 18px;
  }

  .sej-card {
    padding: 22px 18px;
  }

  .sej-portal h1 {
    font-size: 23px;
  }

  .sej-menu,
  .sej-search-row,
  .sej-result-item,
  .sej-model-preview,
  .sej-store-head,
  .sej-actions,
  .sej-confirm-list {
    grid-template-columns: 1fr;
  }

  .sej-menu-card {
    min-height: 120px;
  }
}
.sej-robot-account-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 12px;
  margin-left: 18px;
  padding: 8px 0;
}

.sej-robot-account-nav a {
  color: #263238;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.sej-robot-account-nav .sej-robot-account-create {
  border-radius: 8px;
  background: #008f00;
  color: #fff;
  padding: 10px 14px;
}

@media (max-width: 1280px) {
  .sej-robot-account-nav {
    margin-left: auto;
    margin-right: 10px;
  }
}

@media (max-width: 767px) {
  .sej-robot-account-nav {
    display: none !important;
  }
}
