.mcidlookup-wrap,
.mcidlookup-wrap * {
  box-sizing: border-box;
}

.mcidlookup-wrap {
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100%;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mcidlookup-tool {
  width: 100%;
  border-radius: 28px;
  padding: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.mcidlookup-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #5e3bea;
}

.mcidlookup-brand {
  background: rgba(94, 59, 234, 0.08);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 14px;
}

.mcidlookup-inner {
  width: 100%;
  text-align: center;
}

.mcidlookup-field-wrap {
  width: 100%;
}

.mcidlookup-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  min-height: 56px;
  border-radius: 18px;
  border: 1.5px solid rgba(94, 59, 234, 0.22);
  background: #ffffff;
  padding: 15px 18px;
  font-size: 17px;
  line-height: 1.35;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.mcidlookup-input:focus {
  border-color: #5e3bea;
  box-shadow: 0 0 0 4px rgba(94, 59, 234, 0.10);
}

.mcidlookup-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 168px;
  margin: 14px auto 0;
  padding: 14px 24px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #5e3bea 0%, #ff5fb2 100%);
  box-shadow: 0 14px 28px rgba(94, 59, 234, 0.24);
}

.mcidlookup-btn:hover {
  transform: translateY(-1px);
}

.mcidlookup-spinner {
  width: 28px;
  height: 28px;
  margin: 16px auto 0;
  border-radius: 50%;
  border: 3px solid rgba(94, 59, 234, 0.16);
  border-top-color: #5e3bea;
  animation: mcidlookup-spin 0.8s linear infinite;
  display: none;
}

.mcidlookup-spinner.is-active {
  display: block;
}

@keyframes mcidlookup-spin {
  to { transform: rotate(360deg); }
}

.mcidlookup-message {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

.mcidlookup-message.is-error {
  color: #c81e4a;
}

.mcidlookup-result {
  margin-top: 18px;
  text-align: left;
}

.mcidlookup-card {
  background: transparent;
  border-radius: 24px;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: #22314f;
}

.mcidlookup-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.mcidlookup-avatar-box {
  width: 110px;
  min-width: 110px;
  height: 110px;
  border-radius: 20px;
  background: rgba(247, 239, 255, 0.45);
  border: 1px solid rgba(94, 59, 234, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: none;
}

.mcidlookup-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.mcidlookup-avatar--placeholder {
  font-size: 13px;
  font-weight: 700;
  color: #61708f;
}

.mcidlookup-head {
  flex: 1;
  min-width: 0;
}

.mcidlookup-headname {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  color: #1f2f50;
  word-break: break-word;
  margin-top: 4px;
}

.mcidlookup-sub {
  margin-top: 8px;
  font-size: 13px;
  color: #5a6b8a;
}

.mcidlookup-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: transparent;
}

.mcidlookup-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border: 1px solid rgba(94, 59, 234, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
}

.mcidlookup-table th,
.mcidlookup-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(94, 59, 234, 0.10);
  vertical-align: top;
  background: transparent;
}

.mcidlookup-table tr:last-child th,
.mcidlookup-table tr:last-child td {
  border-bottom: 0;
}

.mcidlookup-table th {
  width: 34%;
  font-size: 14px;
  font-weight: 700;
  color: #3f4f70;
  background: rgba(94, 59, 234, 0.03);
}

.mcidlookup-table td {
  font-size: 14px;
  color: #22314f;
  word-break: break-word;
}

.mcidlookup-copywrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mcidlookup-value {
  flex: 1;
  min-width: 0;
}

.mcidlookup-copy {
  flex-shrink: 0;
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #5e3bea;
  background: rgba(94, 59, 234, 0.10);
}

.mcidlookup-copy--head {
  padding: 8px 12px;
}

@media (max-width: 767px) {
  .mcidlookup-tool {
    padding: 14px;
    border-radius: 22px;
  }

  .mcidlookup-input {
    min-height: 52px;
    font-size: 16px;
    border-radius: 16px;
    transform: none !important;
    zoom: 1;
  }

  .mcidlookup-btn {
    width: auto;
    min-width: 150px;
    font-size: 15px;
    border-radius: 14px;
  }

  .mcidlookup-card {
    padding: 12px;
    border-radius: 20px;
  }

  .mcidlookup-card-top {
    align-items: flex-start;
    gap: 12px;
  }

  .mcidlookup-avatar-box {
    width: 88px;
    min-width: 88px;
    height: 88px;
    border-radius: 16px;
  }

  .mcidlookup-headname {
    font-size: 20px;
  }

  .mcidlookup-sub,
  .mcidlookup-table th,
  .mcidlookup-table td,
  .mcidlookup-message {
    font-size: 12px;
  }

  .mcidlookup-table th,
  .mcidlookup-table td {
    padding: 10px 9px;
  }

  .mcidlookup-table th {
    width: 40%;
  }

  .mcidlookup-copy {
    padding: 6px 9px;
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .mcidlookup-card-top {
    flex-direction: row;
  }

  .mcidlookup-copywrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .mcidlookup-headname {
    font-size: 18px;
  }
}


.mcidlookup-table th,
.mcidlookup-table td,
.mcidlookup-value,
.mcidlookup-headname,
.mcidlookup-sub {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .mcidlookup-wrap {
    margin: 12px auto;
  }

  .mcidlookup-tool {
    padding: 12px;
    border-radius: 20px;
  }

  .mcidlookup-brand {
    font-size: 11px;
    padding: 6px 10px;
    margin-bottom: 10px;
  }

  .mcidlookup-result {
    margin-top: 14px;
  }

  .mcidlookup-card {
    padding: 10px;
    border-radius: 18px;
  }

  .mcidlookup-card-top {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .mcidlookup-avatar-box {
    width: 72px;
    min-width: 72px;
    height: 72px;
    border-radius: 14px;
  }

  .mcidlookup-headname {
    font-size: 17px;
    gap: 6px;
    margin-top: 0;
  }

  .mcidlookup-sub {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.3;
  }

  .mcidlookup-table {
    border-radius: 14px;
  }

  .mcidlookup-table th,
  .mcidlookup-table td {
    padding: 8px 8px;
    font-size: 11.5px;
    line-height: 1.35;
  }

  .mcidlookup-table th {
    width: 36%;
  }

  .mcidlookup-copywrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
  }

  .mcidlookup-copy,
  .mcidlookup-copy--head {
    padding: 5px 8px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .mcidlookup-tool {
    padding: 10px;
    border-radius: 18px;
  }

  .mcidlookup-input {
    min-height: 48px;
    padding: 13px 14px;
    font-size: 15px;
    border-radius: 14px;
  }

  .mcidlookup-btn {
    min-width: 132px;
    margin-top: 12px;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 13px;
  }

  .mcidlookup-card-top {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 8px;
  }

  .mcidlookup-avatar-box {
    width: 60px;
    min-width: 60px;
    height: 60px;
    border-radius: 12px;
  }

  .mcidlookup-headname {
    font-size: 15px;
  }

  .mcidlookup-sub,
  .mcidlookup-message,
  .mcidlookup-table th,
  .mcidlookup-table td,
  .mcidlookup-value {
    font-size: 10.5px;
  }

  .mcidlookup-table th,
  .mcidlookup-table td {
    padding: 7px 6px;
  }

  .mcidlookup-table th {
    width: 34%;
  }

  .mcidlookup-copy,
  .mcidlookup-copy--head {
    padding: 4px 7px;
    font-size: 9px;
    border-radius: 9px;
  }
}


@media (max-width: 480px) {
  .mcidlookup-wrap {
    margin: 12px auto;
  }

  .mcidlookup-tool {
    border-radius: 20px;
    padding: 10px;
  }

  .mcidlookup-brand {
    font-size: 11px;
    padding: 5px 10px;
    margin-bottom: 10px;
  }

  .mcidlookup-input {
    min-height: 46px;
    border-radius: 14px;
    padding: 11px 13px;
    font-size: 14px;
  }

  .mcidlookup-btn {
    min-width: 142px;
    margin-top: 10px;
    padding: 11px 18px;
    border-radius: 14px;
    font-size: 14px;
  }

  .mcidlookup-result {
    margin-top: 12px;
  }

  .mcidlookup-card {
    border-radius: 18px;
    padding: 10px;
  }

  .mcidlookup-card-top {
    gap: 10px;
    margin-bottom: 10px;
  }

  .mcidlookup-avatar-box {
    width: 62px;
    min-width: 62px;
    height: 62px;
    border-radius: 14px;
  }

  .mcidlookup-headname {
    gap: 6px;
    font-size: 17px;
    line-height: 1.15;
    margin-top: 0;
  }

  .mcidlookup-sub {
    margin-top: 4px;
    font-size: 11px;
  }

  .mcidlookup-table {
    border-radius: 14px;
  }

  .mcidlookup-table th,
  .mcidlookup-table td {
    padding: 8px 10px;
  }

  .mcidlookup-table th {
    width: 39%;
    font-size: 11px;
    line-height: 1.25;
  }

  .mcidlookup-table td {
    font-size: 11px;
    line-height: 1.28;
  }

  .mcidlookup-copywrap {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .mcidlookup-value {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11px;
    line-height: 1.28;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .mcidlookup-copy,
  .mcidlookup-copy--head {
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 10px;
    padding: 4px 8px;
    font-size: 10px;
    line-height: 1.1;
  }
}


@media (max-width: 640px) {
  .mcidlookup-wrap .mcidlookup-input {
    font-size: 16px !important;
    line-height: 1.3 !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    -webkit-text-size-adjust: 100% !important;
    transform: none !important;
  }

  .mcidlookup-wrap .mcidlookup-table th,
  .mcidlookup-wrap .mcidlookup-table td,
  .mcidlookup-wrap .mcidlookup-value,
  .mcidlookup-wrap .mcidlookup-sub,
  .mcidlookup-wrap .mcidlookup-message {
    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }

  .mcidlookup-wrap .mcidlookup-headname {
    font-size: 15px !important;
    line-height: 1.15 !important;
  }

  .mcidlookup-wrap .mcidlookup-table th,
  .mcidlookup-wrap .mcidlookup-table td {
    padding: 7px 8px !important;
  }

  .mcidlookup-wrap .mcidlookup-copywrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  .mcidlookup-wrap .mcidlookup-copy,
  .mcidlookup-wrap .mcidlookup-copy--head {
    white-space: nowrap !important;
    font-size: 9.5px !important;
    padding: 4px 7px !important;
  }
}

@media (max-width: 420px) {
  .mcidlookup-wrap .mcidlookup-table th,
  .mcidlookup-wrap .mcidlookup-table td,
  .mcidlookup-wrap .mcidlookup-value {
    font-size: 10px !important;
  }

  .mcidlookup-wrap .mcidlookup-headname {
    font-size: 14px !important;
  }
}

.mcidlookup-wrap, .mcidlookup-result { background: transparent !important; }
