.size-app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: space-between;
}

.size-app-chart-trigger,
.size-app-fit-button {
  display: inline-block;
}

.size-app-chart-trigger--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 16px;
  border: 1px solid #000000;
  border-radius: 4px;
  background: #ffffff;
  color: #000000;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.size-app-chart-trigger--button:hover,
.size-app-chart-trigger--button:focus {
  background: #fafafa;
}

.size-app-chart-trigger--text {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
}

.size-app-chart-trigger[hidden],
.size-app-fit-button[hidden] {
  display: none;
}

/* Fit predictor modal — widget styling lives in Entersize embed/fit-predictor.js */
.size-app-fit-modal[hidden] {
  display: none;
}

.size-app-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);
}

.size-app-fit-modal__slot {
  width: 100%;
  max-width: 400px;
}

.size-app-fit-modal__error-card {
  padding: 16px;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  background: #fff;
  color: #000;
}

.size-app-fit-modal__error-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
}

.size-app-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;
}

.size-app-fit-modal__error-close:hover {
  opacity: 0.7;
}

.size-app-chart-message {
  margin: 0;
  color: #555;
}

.size-app-chart-message.is-error {
  color: #a00;
}

.size-app-admin,
.size-app-admin *,
.size-app-admin *::before,
.size-app-admin *::after {
  box-sizing: border-box;
}

.size-app-admin__shell {
  display: flex;
  width: 400px;
  max-width: calc(100vw - 40px);
  min-height: calc(100vh - 96px);
  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;
}

.size-app-admin__title {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.size-app-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;
}

.size-app-admin__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 0;
}

.size-app-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;
}

.size-app-admin__woo-icon,
.size-app-admin__entersize-icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.size-app-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;
}

.size-app-admin__entersize-mark {
  display: grid;
  width: 32px;
  height: 32px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}

.size-app-admin__entersize-mark span {
  display: block;
  background: #000;
}

.size-app-admin__entersize-mark span:nth-child(1) {
  grid-column: 3;
  grid-row: 1;
}

.size-app-admin__entersize-mark span:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
}

.size-app-admin__entersize-mark span:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

.size-app-admin__entersize-mark span:nth-child(4) {
  grid-column: 1 / 4;
  grid-row: 3;
}

.size-app-admin__arrows,
.size-app-admin__check {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.size-app-admin__arrows svg,
.size-app-admin__check svg {
  display: block;
  width: 32px;
  height: 32px;
}

.size-app-admin__status {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.size-app-admin__status--connected {
  color: #aeaeae;
}

.size-app-admin__status--pending {
  color: #aeaeae;
}

.size-app-admin__button {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  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;
}

.size-app-admin__button:hover,
.size-app-admin__button:focus {
  background: #111;
  color: #fff;
  text-decoration: none;
}

.size-app-admin__support {
  margin: 0;
  color: #000;
  font-size: 14px;
}

.size-app-admin__disconnect {
  width: 100%;
  color: #aeaeae;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: underline;
}

.size-app-admin__disconnect:hover,
.size-app-admin__disconnect:focus {
  color: #000;
}

.size-app-admin__hint {
  margin: 8px 0 0;
  color: #aeaeae;
  font-size: 12px;
}
