.rc-corresp {
  --rc-ink: #1c1916;
  --rc-muted: #5c564c;
  --rc-line: #d5d0c8;
  --rc-paper: #f6f4f0;
  --rc-accent: #9e2b24;
  --rc-focus: #1a7a72;
  --rc-ok: #1d6a42;
  --rc-warn: #8a5a12;
  color: var(--rc-ink);
  font-family: inherit;
  max-width: 760px;
  line-height: 1.4;
  box-sizing: border-box;
}

.rc-corresp *,
.rc-corresp *::before,
.rc-corresp *::after {
  box-sizing: border-box;
}

.rc-corresp [hidden] {
  display: none !important;
}

.rc-corresp__modes {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
}

.rc-corresp__tab {
  appearance: none !important;
  background: var(--rc-paper) !important;
  color: var(--rc-muted) !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  margin: 0 !important;
  font: inherit !important;
  font-size: 14px !important;
  cursor: pointer;
  width: auto !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.rc-corresp__tab.is-on {
  background: #fff !important;
  color: var(--rc-ink) !important;
  border-color: var(--rc-line) !important;
  box-shadow: 0 1px 2px rgba(28, 25, 22, 0.06) !important;
}

.rc-corresp__line {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.rc-corresp__field {
  flex: 1;
  min-width: 0;
}

.rc-corresp__label {
  display: block;
  margin: 0 0 6px;
  color: var(--rc-muted);
  font-size: 13px;
}

.rc-corresp__arrow {
  flex: 0 0 auto;
  padding: 0 0 12px;
  color: var(--rc-muted);
  font-size: 14px;
}

.rc-corresp__input,
.rc-corresp select.rc-corresp__input {
  display: block;
  width: 100% !important;
  box-sizing: border-box;
  height: 44px;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #cfc9c0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--rc-ink) !important;
  font: inherit !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.rc-corresp__input:focus,
.rc-corresp select.rc-corresp__input:focus {
  outline: none;
  border-color: var(--rc-focus) !important;
  box-shadow: 0 0 0 3px rgba(26, 122, 114, 0.16) !important;
}

.rc-corresp__search {
  position: relative;
  margin-top: 14px;
}

.rc-corresp__combo {
  position: relative;
}

.rc-corresp__combo .rc-corresp__input {
  padding-right: 40px !important;
}

.rc-corresp__caret {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 36px !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #555 !important;
  font-size: 12px !important;
  cursor: pointer;
  box-shadow: none !important;
}

.rc-corresp__search.is-open .rc-corresp__caret {
  transform: rotate(180deg);
}

.rc-corresp__search.is-open .rc-corresp__input {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.rc-corresp__list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 24px rgba(28, 25, 22, 0.08);
  z-index: 30;
}

.rc-corresp__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  cursor: pointer;
}

.rc-corresp__opt.is-active,
.rc-corresp__opt:hover {
  background: #eef6f5;
}

.rc-corresp__optchip {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(28, 25, 22, 0.16);
  flex: 0 0 28px;
}

.rc-corresp__opttext {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rc-corresp__optcode {
  font-size: 14px;
}

.rc-corresp__optname,
.rc-corresp__empty {
  color: var(--rc-muted);
  font-size: 12px;
}

.rc-corresp__empty {
  padding: 8px 12px;
  list-style: none;
}

.rc-corresp__rgb {
  margin-top: 14px;
}

.rc-corresp__rgbrow {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rc-corresp__picker {
  width: 44px !important;
  height: 44px !important;
  padding: 3px !important;
  border: 1px solid #cfc9c0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  flex: 0 0 44px;
  cursor: pointer;
}

.rc-corresp__rgbrow .rc-corresp__input {
  flex: 1;
}

.rc-corresp__hint,
.rc-corresp__note {
  margin: 8px 0 0;
  color: var(--rc-muted);
  font-size: 13px;
}

.rc-corresp__go {
  appearance: none !important;
  margin: 16px 0 0 !important;
  padding: 11px 20px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--rc-ink) !important;
  color: #f7f4ee !important;
  font: inherit !important;
  font-size: 15px !important;
  cursor: pointer;
  width: auto !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.rc-corresp__go:disabled {
  opacity: 0.55;
  cursor: wait;
}

.rc-corresp__result {
  margin-top: 22px;
  padding: 8px 0 4px 14px;
  border-left: 3px solid transparent;
}

.rc-corresp__result.is-close {
  border-left-color: var(--rc-ok);
}

.rc-corresp__result.is-near {
  border-left-color: var(--rc-warn);
}

.rc-corresp__result.is-none {
  border-left-color: var(--rc-accent);
}

.rc-corresp__pair,
.rc-corresp__also {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  align-items: stretch;
}

.rc-corresp__alsohead {
  flex: 1 0 100%;
  color: var(--rc-muted);
  font-size: 13px;
}

.rc-corresp__swatch {
  display: flex;
  flex-direction: column;
  width: 200px;
  max-width: 100%;
  padding: 8px;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.rc-corresp__chip {
  width: 100%;
  height: 112px;
  border: 1px solid rgba(28, 25, 22, 0.16);
  border-radius: 10px;
  margin-bottom: 8px;
}

.rc-corresp__kicker,
.rc-corresp__name {
  color: var(--rc-muted);
  font-size: 13px;
}

.rc-corresp__swatch .rc-corresp__name {
  min-height: 2.5em;
}

.rc-corresp__code {
  font-size: 17px;
}

.rc-corresp__eq {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 58px;
  color: var(--rc-muted);
  font-size: 22px;
  line-height: 1;
}

.rc-corresp__linkrow {
  margin-top: auto;
  min-height: 1.4em;
  padding-top: 8px;
}

.rc-corresp__lead {
  margin: 14px 0 0;
  font-size: 16px;
}

.rc-corresp__asked {
  margin-top: 4px;
}

.rc-corresp__card {
  width: 184px;
  padding: 8px;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.rc-corresp__card.is-bad {
  opacity: 0.45;
}

.rc-corresp__card.is-approx {
  background: #f7f6f3;
}

.rc-corresp__cardchip {
  width: 100%;
  max-width: 100%;
  height: 72px;
  border-radius: 8px;
  border: 1px solid rgba(28, 25, 22, 0.14);
  margin-bottom: 8px;
}

.rc-corresp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 14px;
}

.rc-corresp__fiche {
  display: inline-block;
  padding: 8px 14px !important;
  background: var(--rc-ink) !important;
  color: #f7f4ee !important;
  text-decoration: none !important;
  font-size: 14px;
  border-radius: 8px;
}

.rc-corresp__quiet {
  color: var(--rc-accent) !important;
  font-size: 14px;
}

.rc-corresp__swatch .rc-corresp__quiet {
  display: inline-block;
  margin-top: 0;
}

.rc-corresp__suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.rc-corresp__chipbtn {
  appearance: none !important;
  background: var(--rc-paper) !important;
  color: var(--rc-ink) !important;
  border: 1px solid var(--rc-line) !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  font: inherit !important;
  font-size: 13px !important;
  cursor: pointer;
  width: auto !important;
  box-shadow: none !important;
  text-transform: none !important;
}

.rc-corresp button:focus-visible,
.rc-corresp a:focus-visible {
  outline: 2px solid var(--rc-focus);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .rc-corresp__line,
  .rc-corresp__pair {
    flex-direction: column;
    align-items: stretch;
  }

  .rc-corresp__arrow,
  .rc-corresp__eq {
    margin-top: 0;
    align-self: center;
    text-align: center;
  }

  .rc-corresp__swatch {
    width: 100%;
  }
}
