.es-buttons {
  --es-trigger-accent: #000000;
  --es-trigger-accent-foreground: #ffffff;
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: flex-start;
}

.es-buttons--left {
  justify-content: flex-start;
}

.es-buttons--center {
  justify-content: center;
}

.es-buttons--right {
  justify-content: flex-end;
}

.es-fit-button {
  display: inline-block;
}

.es-fit-button--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: var(--es-trigger-accent);
  color: var(--es-trigger-accent-foreground);
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.es-fit-button--button:hover,
.es-fit-button--button:focus {
  background: var(--es-trigger-accent);
  opacity: 0.8;
}

.es-fit-button--text {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
}

.es-buttons--size-sm .es-fit-button--button {
  height: 24px;
  padding: 0 12px;
  font-size: 12px;
}

.es-buttons--size-lg .es-fit-button--button {
  height: 40px;
  padding: 0 20px;
}

.es-buttons--size-sm .es-fit-button--text {
  font-size: 12px;
}

.es-buttons--size-lg .es-fit-button--text {
  font-size: 16px;
}

.es-fit-button[hidden],
.es-buttons[hidden],
.es-chart-notice[hidden] {
  display: none;
}

.es-chart-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  width: 100%;
  min-height: 32px;
  padding: 8px 12px;
  box-sizing: border-box;
  border: 1px solid var(--es-notice-border, #eaeaea);
  border-radius: var(--es-notice-radius, 4px);
  background: var(--es-notice-background, #eaeaea);
  color: var(--es-notice-foreground, inherit);
}

.es-chart-notice svg {
  flex-shrink: 0;
}

.es-chart-notice__text {
  margin: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

/* Fit predictor modal — widget styling lives in Entersize embed/fit-predictor.js */
.es-fit-modal[hidden] {
  display: none;
}

.es-fit-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.es-fit-modal__slot {
  width: 100%;
  max-width: 400px;
}

.es-fit-modal__error-card {
  padding: 16px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  background: #fff;
  color: #000;
}

.es-fit-modal__error-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
}

.es-fit-modal__error-close {
  float: right;
  margin: -4px -4px 8px 12px;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.es-fit-modal__error-close:hover {
  opacity: 0.7;
}

.es-chart-message {
  margin: 0;
  color: #555;
}

.es-chart-message.is-error {
  color: #a00;
}

.es-admin,
.es-admin *,
.es-admin *::before,
.es-admin *::after {
  box-sizing: border-box;
}

.es-admin__shell {
  display: flex;
  width: 400px;
  padding-top: 64px;
  max-width: calc(100vw - 40px);
  margin: 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  color: #000;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.es-admin__title {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.es-admin__card {
  width: 100%;
  padding: 16px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.es-admin__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 0;
}

.es-admin__logo-box {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  background: #fff;
  flex: 0 0 auto;
}

.es-admin__woo-icon,
.es-admin__entersize-icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.es-admin__woo-mark {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #7c3cff;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  font-family: Georgia, serif;
  line-height: 1;
}

.es-admin__entersize-mark {
  display: grid;
  width: 32px;
  height: 32px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}

.es-admin__entersize-mark span {
  display: block;
  background: #000;
}

.es-admin__entersize-mark span:nth-child(1) {
  grid-column: 3;
  grid-row: 1;
}

.es-admin__entersize-mark span:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
}

.es-admin__entersize-mark span:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

.es-admin__entersize-mark span:nth-child(4) {
  grid-column: 1 / 4;
  grid-row: 3;
}

.es-admin__arrows,
.es-admin__check {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.es-admin__arrows svg,
.es-admin__check svg {
  display: block;
  width: 32px;
  height: 32px;
}

.es-admin__status {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.es-admin__status--connected {
  color: #aeaeae;
}

.es-admin__status--pending {
  color: #aeaeae;
}

.es-admin__button {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid #000;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.es-admin__button:hover,
.es-admin__button:focus {
  background: #111;
  color: #fff;
  text-decoration: none;
}

.es-admin__support {
  margin: 0;
  color: #000;
  font-size: 14px;
}

.es-admin__disconnect {
  width: 100%;
  color: #aeaeae;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: underline;
}

.es-admin__disconnect:hover,
.es-admin__disconnect:focus {
  color: #000;
}

.es-admin__hint {
  margin: 8px 0 0;
  color: #aeaeae;
  font-size: 12px;
}

.es-admin__card--shortcodes {
  text-align: left;
}

.es-admin__shortcodes-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.es-admin__shortcodes-copy {
  margin: 0;
  color: #000;
  font-size: 14px;
  line-height: 1.4;
}

.es-admin__shortcodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.es-admin__shortcode {
  display: block;
  padding: 8px 12px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  background: #fafafa;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}

.es-admin__shortcodes-hint {
  margin: 0;
  color: #aeaeae;
  font-size: 12px;
  line-height: 1.4;
}
