:root {
  --orichi-limit-table-header-bg: #f7ca00;
  --orichi-limit-table-header-color: #000000;
  --orichi-limit-modal-error-bg: #fff;
  --orichi-limit-modal-error-text: #000;
}

.orichi-limit-error {
  color: red;
}
#oc-error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
}
#oc-error-modal .oc-modal-content {
  width: 423px;
  display: flex;
  z-index: 1001;
  border: 1px solid var(--orichi-limit-modal-error-bg);
  padding: 16px;
  border-radius: 10px;
  background-color: var(--orichi-limit-modal-error-bg);
}
#oc-error-modal .oc-modal-content .oc-list-error {
  margin: 0;
  flex: 1;
  padding-left: 16px;
  color: var(--orichi-limit-modal-error-text);
}

#oc-error-modal .oc-modal-content button {
  margin: 0;
  padding: 0;
  border: none;
  width: 20px;
  height: 20px;
  cursor: pointer;
  background-color: var(--orichi-limit-modal-error-bg);
  color: var(--orichi-limit-modal-error-text);
}

#oc-error-modal .oc-modal-content button path {
  fill: var(--orichi-limit-modal-error-text);
}

.orichi-limit-modal-error {
  cursor: not-allowed !important;
  background-color: #868686 !important;
  border: none !important;
}
.orichi-limit-modal-error:hover {
  background-color: #868686 !important;
  border: none !important;
}

.orichi-limit-new-error {
  display: flex;
  gap: 10px;
  padding: 11px;
  margin: 10px 0;
}
.orichi-limit-new-error__icon {
  width: 18px;
  height: 18px;
  img {
    width: 100%;
    height: 100%;
  }
}
.orichi-limit-new-error__text {
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

/* CSS variables for Limit Table */

/* Limit Table Styles - Based on Figma Design */
.orichi-limit-table {
  margin-top: 20px;
  width: 100%;
  max-width: 312px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow:
    0px 0px 1px 0px rgba(0, 0, 0, 0.25),
    0px 2px 1px 0px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  overflow: hidden;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  display: flex;
  flex-direction: column;
}

/* Header with Grid Layout */
.orichi-limit-table__header {
  display: grid;
  grid-template-columns: 1fr 90px 90px;
  gap: 4px;
  padding: 16px 10px 16px 20px;
  background: var(--orichi-limit-table-header-bg);
  box-shadow: inset 0px -1px 0px 0px rgba(225, 227, 229, 1);
  align-items: start;
}

.orichi-limit-table__header-cell {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4285714285714286em;
  color: var(--orichi-limit-table-header-color);
  display: flex;
  justify-content: center;
}

.orichi-limit-table__header-cell--label {
  text-align: left;
  justify-content: flex-start;
  display: block !important;
}

.orichi-limit-table__header-cell--min {
  text-align: center;
}

.orichi-limit-table__header-cell--max {
  text-align: center;
}

/* Body container */
.orichi-limit-table__body {
  display: flex;
  flex-direction: column;
}

/* Row with Grid Layout - matches header columns */
.orichi-limit-table__row {
  display: grid;
  grid-template-columns: 1fr 90px 90px;
  gap: 4px;
  padding: 16px;
  padding-right: 10px;
  padding-left: 20px;
  background: #ffffff;
  box-shadow: inset 0px -1px 0px 0px rgba(225, 227, 229, 1);
  align-items: start;
}

.orichi-limit-table__row:last-child {
  box-shadow: none;
}

.orichi-limit-table__cell {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4285714285714286em;
  color: #303030;
  min-height: 20px;
  display: flex;
  align-items: center;
}

.orichi-limit-table__cell--label {
  text-align: left;
  justify-content: flex-start;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  align-items: flex-start;
  padding-top: 2px;
  min-width: 0;
  max-width: 100%;
}

.orichi-limit-table__cell--min {
  text-align: center;
  justify-content: center;
}

.orichi-limit-table__cell--max {
  text-align: center;
  justify-content: center;
}
