@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

body {
  display: block;
  width: 100%;
  margin: 0;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  color: #3b332b;
  font-weight: 700;
  font-size: 20px;
  line-height: 22px;
  min-width: 320px;
}

a {
  text-decoration: none;
  color: #3b332b;
}

.main-page__search {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  margin: 30px 0 10px;
  align-items: center;
}

.options-page-card {
  padding: 20px 30px;
  width: 100%;
  background: #FFF;
  border-bottom: 1px solid #f1f1f1;
  border-radius: 10px;
  filter: drop-shadow(0px 2px 12px rgba(15, 13, 11, 0.055)) drop-shadow(0px 1px 7px rgba(15, 13, 11, 0.0655718)) drop-shadow(0px 1px 4px rgba(15, 13, 11, 0.079074));
  margin-bottom: 20px;

}

.options-page-card:last-child {
  margin-bottom: 0;
}

.options-page-card .block__title {
  font-size: 16px;
  line-height: 20px;
  color: #3b332b;
  opacity: 0.5;
}

.options-page-card .options-hr {
  width: calc(100% + 60px);
  height: 1px;
  background-color: #f1f1f1;
  margin: 20px 0 20px -30px;
}

.options-page-card .checkbox__group:last-child {
  margin-bottom: 0;
}

.options-body .main-page__image {
  position: sticky;
  height: 200px;
  display: block;
  top: 0;
}

.main-container {
  width: 100%;
  margin: 30px auto;
  padding: 0;
}

.main-page {
  display: flex;
  left: calc(50% - 455px);
  max-width: 910px;
  height: auto;
  margin: 50px auto;
  padding: 0 20px;
}

.main-page__title {
  font-size: 28px;
  line-height: 35px;
  font-weight: 600;
  margin-bottom: 50px;
}

.main-container__after-install .main-page {
  left: calc(50% - 360px);
  max-width: 720px;
}

.main-container__after-install .main-page__title {
  font-weight: 600;
  font-size: 40px;
  line-height: 50px;
  margin-bottom: 20px;
}

.main-page__info {
  max-width: 620px;
  margin-top: 30px;
  width: 620px;
}

.main-page__info.main-page__info-proxy_options {
  max-width: 640px;
  width: 640px;
}

.main-container__after-install .main-page__info {
  margin-right: 44px;
}

.main-page__image {
  margin-right: 70px;
}

.main-container__after-install .main-page__image {
  margin-right: 0;
}

.main-container__after-install .main-page__content {
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
}

.instruction {
  left: calc(50% - 360px);
  max-width: 720px;
  margin: 50px auto;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.03)) drop-shadow(0 5.84887px 33.4221px rgba(0, 0, 0, 0.0503198)) drop-shadow(0 3.12708px 17.869px rgba(0, 0, 0, 0.0417275)) drop-shadow(0 1.75302px 10.0172px rgba(0, 0, 0, 0.035)) drop-shadow(0 0.931014px 5.32008px rgba(0, 0, 0, 0.0282725)) drop-shadow(0 0.387416px 2.21381px rgba(0, 0, 0, 0.0196802));
  -webkit-filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.03)) drop-shadow(0 5.84887px 33.4221px rgba(0, 0, 0, 0.0503198)) drop-shadow(0 3.12708px 17.869px rgba(0, 0, 0, 0.0417275)) drop-shadow(0 1.75302px 10.0172px rgba(0, 0, 0, 0.035)) drop-shadow(0 0.931014px 5.32008px rgba(0, 0, 0, 0.0282725)) drop-shadow(0 0.387416px 2.21381px rgba(0, 0, 0, 0.0196802));
  -moz-filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.03)) drop-shadow(0 5.84887px 33.4221px rgba(0, 0, 0, 0.0503198)) drop-shadow(0 3.12708px 17.869px rgba(0, 0, 0, 0.0417275)) drop-shadow(0 1.75302px 10.0172px rgba(0, 0, 0, 0.035)) drop-shadow(0 0.931014px 5.32008px rgba(0, 0, 0, 0.0282725)) drop-shadow(0 0.387416px 2.21381px rgba(0, 0, 0, 0.0196802));
  -ms-filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.03)) drop-shadow(0 5.84887px 33.4221px rgba(0, 0, 0, 0.0503198)) drop-shadow(0 3.12708px 17.869px rgba(0, 0, 0, 0.0417275)) drop-shadow(0 1.75302px 10.0172px rgba(0, 0, 0, 0.035)) drop-shadow(0 0.931014px 5.32008px rgba(0, 0, 0, 0.0282725)) drop-shadow(0 0.387416px 2.21381px rgba(0, 0, 0, 0.0196802));
  -o-filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.03)) drop-shadow(0 5.84887px 33.4221px rgba(0, 0, 0, 0.0503198)) drop-shadow(0 3.12708px 17.869px rgba(0, 0, 0, 0.0417275)) drop-shadow(0 1.75302px 10.0172px rgba(0, 0, 0, 0.035)) drop-shadow(0 0.931014px 5.32008px rgba(0, 0, 0, 0.0282725)) drop-shadow(0 0.387416px 2.21381px rgba(0, 0, 0, 0.0196802));
}

.instruction svg {
  width: 100%;
  height: auto;
}

.main-page__turn,
.option__link,
.main-page__link,
.extension__title,
.option__title,
.disclaimer__title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
}

.title {
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  margin-bottom: 7px;
}

.disclaimer__text {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #6d675f;
  margin-right: 70px;
}

.disclaimer__text {
  margin-right: 0;
  margin-top: 5px;
}

.main-page__link {
  margin-top: 50px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.option__link {
  cursor: pointer;
}

.option__link {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 7px;
}

.center-text {
  justify-content: center !important;
}

.extension__title {
  margin-bottom: 10px;
}

.main-page__turn {
  margin-bottom: 7px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.toggle-text {
  flex-grow: 1;
}

.toggle-button {
  position: relative;
  display: inline-block;
  margin: 0;
  vertical-align: top;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 38px;
  height: 20px;
  left: 0;
  top: 0;
  background-color: #e0e0e0;
  border-radius: 20px;
}

.toggle-button::after {
  content: "";
  display: inline-block;
  position: absolute;
  left: 1px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  top: 2px;
  background: #fff;
  box-shadow: 0 2.01027px 11.8382px rgba(15, 13, 11, 0.055), 0 1.12694px 6.63642px rgba(15, 13, 11, 0.0655718), 0 0.598509px 3.52455px rgba(15, 13, 11, 0.079074);
  transform: translateX(0);
  transition: all 150ms ease-in-out;
}

.toggle-button:checked::after {
  transform: translateX(calc(100% + 3px));
  background-color: #fff;
}

.toggle-button:checked {
  background: linear-gradient(319.24deg, #3ca55c 0%, #b5ac49 100%), #fff;
}

.emergency:checked {
  background: linear-gradient(319.24deg, #e57373 0%, #e75565 100%), #fff;
}

.use_proxy__link {
  color: #5173d3;
}

.main-page__turn:hover,
.toggle-text:hover,
.option:hover,
.main-page__link:hover > span,
.use_proxy__link:hover {
  color: #625c55;
  cursor: pointer;
}

.toggle-text:focus,
.toggle-text:active,
.main-page__turn:focus,
.main-page__link:focus > span,
.main-page__turn:active,
.main-page__link:active > span {
  color: #2a251f;
}

.main-page__about,
.description,
.extension__text {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #6d675f;
  margin-right: 70px;
  cursor: text;
}

.use_proxy__text {
  margin-bottom: 10px;
}

.extension__text,
.description {
  margin-bottom: 20px;
}

.main-page__extension {
  margin-top: 25px;
  margin-bottom: 25px;
  background-color: #f4f7fa;
  border-radius: 4px;
  padding: 20px 30px;
}

.default-btn {
  background-color: #3b332b;
  font-size: 14px;
  line-height: 15px;
  color: #fff;
  padding: 9px 20px;
  display: inline-block;
  font-weight: 400;
  box-shadow: 0 2.01027px 11.8382px rgba(15, 13, 11, 0.055), 0 1.12694px 6.63642px rgba(15, 13, 11, 0.0655718), 0 0.598509px 3.52455px rgba(15, 13, 11, 0.079074);
  border-radius: 4px;
  margin-right: 15px;
}

.default-btn:hover {
  cursor: pointer;
  background-color: #625c55;
}

.default-btn:active,
.default-btn:focus {
  background-color: #2a251f;
}

@media (max-width: 768px) {
  .main-page {
    flex-direction: column;
    left: 0;
    top: 20%;
  }

  .main-page__info {
    margin-left: 0;
    margin-top: 20px;
  }
}

.extension__name {
  display: inline;
}

.extensions__link {
  cursor: pointer;
}

.checkbox__group, .option {
  margin-bottom: 25px;
}

.link-ignored {
  margin-top: 0;
  margin-bottom: 7px;
}

.main-page__link svg {
  fill: #3b332b;
}

.main-page__link:hover svg {
  fill: #625c55;
}

/* Proxy Options Page */
.input-proxy {
  border: 1px solid #c4c2bf;
  box-sizing: border-box;
  border-radius: 4px;
  padding: 0 11px;
  color: #6d675f;
  width: 100%;
  margin: 0;
  height: 37px;
}

#saveCustomProxyButton {
  margin-left: 10px;
}

#customProxyPort {
  width: 100px;
  margin-left: 10px;
}

#proxyPortInput {
  width: 100px;
  margin-left: 10px;
}

.input-proxy:active {
  outline: none;
  border: 1px solid #2a251f !important;
}

.radio-buttons-group {
  display: flex;
  margin: 5px 0;
  flex-direction: column;
}

.radio-button {
  margin: 15px 0;
  display: inline-block;
  position: relative;
}

.radio-button input[type=radio] {
  display: none;
}

.radio-button input[type=radio] + label::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 15px;
  position: absolute;
  left: 0;
  bottom: -4px;
  background: #fff;
  border: 1px solid #3b332b;
}

.radio-button:hover label::after,
.radio-button input[type=radio]:checked + label::after {
  content: "";
  display: inline-block;
  position: absolute;
  left: 6px;
  bottom: 2px;
  background: #6c9e2c;
  width: 10px;
  height: 10px;
  border-radius: 5px;
}

.radio-button label {
  cursor: pointer;
  position: relative;
  padding-left: 45px;
  display: inline-block;
  font-size: 16px;
  line-height: 15px;
  font-weight: normal;
}

.main-page__info-proxy_options .radio-button label {
  padding-left: 35px;
}

.proxy-options-inputs {
  display: flex;
  margin-left: 45px;
  margin-bottom: 20px;
}

/* Ignore Editor Page */

.main-page__return {
  width: 270px;
  height: 30px;
  text-align: left;
  padding-top: 2px;
}

.main-page__return svg {
  vertical-align: text-bottom;
  fill: #3b332b;
}

.main-page__return:hover svg {
  cursor: pointer;
  fill: #625c55;
}

.title-mb {
  margin-bottom: 10px !important;
}

.main-page__about code {
  font-weight: 500;
}

.input-search {
  border: 1px solid #c4c2bf;
  box-sizing: border-box;
  border-radius: 4px;
  width: 100%;
  height: 30px;
  padding: 0 11px;
  color: #6d675f;
}

.input-search:focus,
.input-search:active {
  outline: none;
  border: 1px solid #2a251f !important;
}

.highlight {
  background-color: rgba(70, 115, 245, 0.3);
}

.return-link {
  padding-right: 13px;
}

.mt-10 {
  margin-top: 10px;
}

/* CodeMirror */
.CodeMirror {
  width: 100%;
  border: 1px solid #c4c2bf;
  border-radius: 4px;
  color: #3b332b !important;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  line-height: 24px;
  font-size: 14px;
  font-weight: 400;
  height: calc(100vh - 300px) !important;
  max-height: 60% !important;
  min-height: 25% !important;
}

.CodeMirror .CodeMirror-gutters {
  background-color: transparent;
  border-right: 1px solid #c4c2bf;
  text-align: right;
  box-sizing: border-box;
  padding-right: 5px;
  font-size: 11px;
}

.CodeMirror .CodeMirror-linenumber {
  color: #3b332b;
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  line-height: 24px;
  font-size: 11px;
}

.CodeMirror-activeline-background,
.CodeMirror-focused .CodeMirror-activeline-background {
  background: rgba(237, 242, 247, 0.6);
}

.CodeMirror:not(.CodeMirror-focused) .CodeMirror-activeline-background {
  background: unset;
}

#grantPrivateBrowsingPermissionsButton {
  font-size: 14px;
  line-height: 15px;
  font-weight: 400;
  cursor: pointer;
}

.mt-4 {
  margin-top: 41px;
}

.btn {
  display: inline-block;
  border-radius: 4px;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  padding: 10px 20px;
  font-size: 16px;
  line-height: 15px;
  color: inherit;
  font-family: inherit;
}

.btn:hover {
  cursor: pointer;
}

.btn-dark {
  background: #3b332b;
  color: #fff;
  margin-right: 30px;
  border: 1px solid transparent;
  box-shadow: 0 0.598509px 3.52455px rgba(15, 13, 11, 0.079074), 0 1.12694px 6.63642px rgba(15, 13, 11, 0.0655718), 0 2.01027px 11.8382px rgba(15, 13, 11, 0.055);
}

.btn-dark:hover {
  background: #4f4740;
}

.btn-dark:active {
  background: #352e27;
  border: 1px solid transparent;
}

.btn-dark:active > .btn__text {
  opacity: 1;
}

.btn-dark:hover > .btn__text {
  opacity: 0.9;
}

.btn__text {
  pointer-events: none;
}

.btn-light {
  border: 1px solid #3b332b;
}

.btn-light:hover {
  border: 1px solid #625c55;
}

.btn-light:hover > .btn__text {
  color: #625c55;
}

.btn-light:active > .btn__text {
  color: #352e27;
}

.btn-light:active {
  border: 1px solid #352e27;
}

.btn-disabled {
  opacity: 0.5;
}

.btn-hidden {
  display: none !important;
}

.btn.btn-disabled:hover {
  cursor: auto;
}

.btn-dark.btn-disabled:hover {
  background: #3b332b;
}

.btn-dark.btn-disabled:hover > .btn__text {
  opacity: 1;
}

.btn-light.btn-disabled:hover > .btn__text {
  color: #3b332b;
}

.btn-light.btn-disabled:hover {
  border-color: #3b332b;
}


.btn__addLocalProxy > svg {
  margin-right: 5px;
  fill: white; /* для SVG */
  stroke: none;
}

.btn.btn__addLocalProxy {
  display: none;
  align-items: center;
  padding: 5px 10px;
  font-size: 14px;
  position: absolute;
  right: 0;
  margin-right: 0;
}

.block_custom-local-proxy {
  display: none;
}

.block_custom-local-proxy .censortracker-not-found__wrapper {
  background-color: #f7eded;
  padding: 20px 30px;
  border-radius: 4px;
  margin-left: 35px;
  margin-bottom: 30px;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 400;
}


.block_custom-local-proxy .btn__censortracker-not-found {
  margin-top: 15px;
  border: 1px solid #3b332b;
}

.block_custom-local-proxy .add-proxy__wrapper {
  background-color: #fff;
  padding: 30px;
  border-radius: 4px;
  margin-left: 35px;
  margin-bottom: 30px;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 1px 4px 0 rgba(15, 13, 11, 0.08), 0 1px 7px 0 rgba(15, 13, 11, 0.07), 0 2px 12px 0 rgba(15, 13, 11, 0.05);
}

.block_custom-local-proxy .add-proxy__wrapper .add-proxy__inner {
  padding: 20px 0;
}

.block_custom-local-proxy .add-proxy__wrapper .add-proxy__inner div {
  text-align: center;
  opacity: 0.5;
}

.block_custom-local-proxy .add-proxy__wrapper .add-proxy__inner div:first-child {
  opacity: 1;
  font-size: 16px;
  margin-bottom: 10px;
}

.block_custom-local-proxy .add-proxy__wrapper .rks-vpn__wrapper {
  background-color: #f8f8f8;
  border: 1px solid #f1f1f1;
  border-radius: 10px;
  padding: 30px;
  background-image: url('../images/settings/block_rks_bg.svg');
  background-repeat: no-repeat;
  background-position: right center;
}

.rks-vpn__wrapper .rks-vpn__logo {
  margin-bottom: 25px;
}

.rks-vpn__wrapper .rks-vpn__title {
  font-weight: 700;
  font-size: 40px;
  line-height: 95%;
  margin-bottom: 10px;
  max-width: 395px;
}

.rks-vpn__wrapper .rks-vpn__text {
  max-width: 395px;
}

.rks-vpn__wrapper .btn__rks-vpn {
  font-size: 14px;
  margin-top: 25px;
}

.block_custom-local-proxy .proxy-list__wrapper {
  margin-left: 35px;
  gap: 10px;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 500;
}

.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block {
  box-shadow: 0 1px 4px 0 rgba(15, 13, 11, 0.08), 0 1px 7px 0 rgba(15, 13, 11, 0.07), 0 2px 12px 0 rgba(15, 13, 11, 0.05);
  border-radius: 10px;
  padding: 15px 20px;
}


.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-title {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  gap: 10px;
  line-height: 125%;
  margin-left: 5px;
}

.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-title.active {
  margin-bottom: 15px;
}

.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-title::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-top: -5px;
}

.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-title.active::before {
  transform: rotate(-135deg);
  margin-top: 9px;
}


.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-items {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-items .proxy-list__block-item {
  margin: 15px 0;
}

.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block > .proxy-list__block-item {
  margin: 0;
}

.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-item {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-item .radio-button-label {
  display: flex;
  flex-grow: 1;
}

.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-item__btn {
  display: flex;
  align-items: center;
  margin-left: auto;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
  position: relative;
  order: 2;
  flex-grow: 0;
}

.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-item:hover .proxy-list__block-item__btn,
.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-title:hover .proxy-list__block-item__btn {
  opacity: 1;
}

.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-item__btn:hover,
.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-item__btn.active {
  background-color: rgba(237, 242, 247, 0.6);
  opacity: 1;
}

.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-item .radio-button-label span,
.block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-title span {
  margin-left: auto;
  font-weight: 400;
  font-size: 14px;
  color: #6d675f;
  flex-grow: 1;
  text-align: right;
}


.proxy-list__wrapper .proxy-list__block-item__menu {
  position: absolute;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: none;
  z-index: 10;
  box-shadow: 0 0px 2px 0 rgba(0, 0, 0, 0.02), 0 1px 5px 0 rgba(0, 0, 0, 0.03), 0 2px 10px 0 rgba(0, 0, 0, 0.04), 0 3px 18px 0 rgba(0, 0, 0, 0.04), 0 6px 33px 0 rgba(0, 0, 0, 0.05), 0 14px 40px 0 rgba(0, 0, 0, 0.03);
  background: rgba(255, 255, 255, 0.98);
  padding: 15px;
}

.proxy-list__wrapper .proxy-list__block-item__menu.active {
  display: block;
}

.proxy-list__wrapper .proxy-list__block-item__menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.proxy-list__wrapper .proxy-list__block-item__menu li {
  margin: 0;
  padding: 5px;
  font-weight: 400;
  font-size: 13px;
  color: #5173d3;
}

.proxy-list__wrapper .proxy-list__block-item__menu li:hover {
  cursor: pointer;
  text-decoration: underline;
}

.proxy-list__block__popup {
  position: fixed;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.97);
  z-index: 15;
  top: 0;
  left: 0;
  display: none;
}

.proxy-list__block__popup .popup-add-proxy__inner {
  display: flex;
  flex-direction: column;
  margin: 50px auto;
  padding: 40px;
  max-width: 720px;
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
}

.proxy-list__block__popup .popup-add-proxy__title {
  font-weight: 700;
  font-size: 28px;
  line-height: 107%;
  margin-bottom: 40px;
}

.proxy-list__block__popup textarea {
  margin: 10px 0;
  border: 1px solid #c4c2bf;
  border-radius: 4px;
  padding: 5px 15px;
  /*width: 640px;*/
  height: 150px;
}

.proxy-list__block__popup .popup-add-proxy__text {
  display: flex;
  gap: 5px;
  align-items: center;
}

.proxy-list__block__popup .popup-add-proxy__text a {
  color: #5173d3;
}

.proxy-list__block__popup .btn {
  border: 1px solid #3b332b;
  margin-top: 40px;
  gap: 20px;
}

.proxy-list__block__popup .popup-add-proxy__btn-close {
  margin-top: 25px;
  margin-right: 25px;
  margin-left: auto;
  width: fit-content;
}

.proxy-list__block__popup .popup-add-proxy__btn-close:hover {
  cursor: pointer;
  opacity: 0.8;
}

.proxy-list__block__popup .popup-add-proxy__input {
  max-width: 400px;
}

.proxy-list__block__popup .popup-add-proxy__input-error {
  max-width: 400px;
  margin-top: 10px;
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  color: #b61414;
}


.mt-filler {
  margin-top: 20px;
}

#feedbackLink {
  margin-top: 35px;
}

kbd {
  margin: 0 .1em;
  font-size: 12px;
  padding: .1em .6em;
  border-radius: 3px;
  display: inline-block;
  overflow-wrap: break-word;
  border: 1px solid hsl(210, 8.6%, 63.5%);
  box-shadow: 0 1px 1px hsl(210deg 8% 5% / 44%), inset 0 1px 0 0 hsl(0deg 0% 42% / 14%);
}

#proxyMetaInfo {
  font-size: 15px;
  font-weight: 500;
}

.state-title {
  opacity: 0.5;
  color: #3B332B;
  font-size: 13px;
  line-height: 17px;
  margin-left: 400px;
}

.invalid-input {
  border: 1px solid #f11111 !important;
}

.hidden {
  display: none;
}

.border-line {
  border-top: 1px solid rgba(59, 51, 43, 0.2);
  margin-bottom: 40px;
}

.popup {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(255, 255, 255, 0.97);
  padding: 10px;
  box-sizing: border-box;
  display: none;
}

.popup.popup-show {
  display: block;
}

.popup .popup-content {
  max-width: 567px;
  margin: 140px auto;
}

.popup .popup-content .popup-title {
  margin-bottom: 10px;
}

.popup .popup-content .popup-text {
  font-weight: 400;
  margin-bottom: 40px;
}


.popup .popup-content .close-popup {
  position: absolute;
  top: 25px;
  right: 25px;
}

.popup .popup-content .close-popup path {
  stroke: #3B332B;
}

.popup .popup-content .close-popup:hover {
  cursor: pointer;
}

.popup .popup-content .close-popup:hover path {
  stroke: #625C55;
}

.proxy__disclaimer {
  background-color: #fff8eb;
  border-radius: 4px;
  padding: 20px 30px;
  margin-bottom: 30px;
}

#debugInfoJSON {
  width: 570px;
  height: 520px;
}

/* Region Select */

.select {
  width: 100%;
  position: relative;
}

.select-toggle {
  display: flex;
  background-color: #fff;
  border: 1px solid #c4c2bf;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  width: 100%;
  font-size: 14px;
  padding: 3px 15px;
  line-height: 24px;
  user-select: none;
  justify-content: space-between;
  color: #3b332b;
  font-family: inherit;
}

.select-toggle::after {
  content: '';
  width: 12px;
  height: 8px;
  flex-shrink: 0;
  margin-left: 1rem;
  background-size: cover;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" height="8" width="12"%3E%3Cpath d="M6.58301 1.08366L11.333 5.75033C11.6663 6.08366 11.6663 6.58366 11.333 6.91699C10.9997 7.25033 10.4997 7.25033 10.1663 6.91699L6.08301 2.83366L1.99967 6.91699C1.83301 7.08366 1.66634 7.16699 1.41634 7.16699C0.916341 7.16699 0.583008 6.83366 0.583008 6.33366C0.583008 6.08366 0.66634 5.91699 0.833007 5.75033L5.58301 1.00033C5.74967 0.750325 6.24967 0.750326 6.58301 1.08366Z"/%3E%3C/svg%3E');
  transform: rotate(180deg);
}

.select-toggle:focus {
  outline: none;
  border: 1px solid #767676;
}


.select-toggle:hover {
  border: 1px solid #767676;
}

.select-dropdown {
  display: none;
  position: absolute;
  top: 2.5rem;
  left: 0;
  right: 0;
  border: 1px solid #C4C2BF;
  max-height: 14rem;
  overflow-y: auto;
  border-radius: 4px;
  z-index: 2;
  background-color: #fff;
  font-size: 14px;
  font-family: inherit;
  font-weight: 400;
  line-height: 24px;
}

.show-countries .select-toggle::after {
  transform: rotate(360deg);
}

.show-countries .select-dropdown {
  display: block;
}

.show-countries {
  display: block;
}

.show-protocols .select-toggle::after {
  transform: rotate(360deg);
}

.show-protocols .select-dropdown {
  display: block;
}

.show-protocols {
  display: block;
}

#selectProxyProtocol {
  width: 110px;
  margin-right: 10px;
}

#selectProxyProtocol .select-toggle {
  height: 37px;
}

.select-options {
  margin: 0;
  padding: 0;
  list-style: none;
}

.select-option {
  padding: 3px 15px;
}

.option-selected {
  background-color: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.select-option:hover {
  cursor: pointer;
  background-color: #f5f5f5;
  transition: 0.2s background-color ease-in-out;
}

#options-region-title {
  margin-bottom: 28px;
}

#selectRegion,
#registry-select-source {
  margin-top: 25px;
}

.options-link {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.options-links {
  margin-top: 25px;
}

#options-version {
  padding: 0 30px;
  width: 100%;
  margin-bottom: 20px;
  text-align: center;
}

#version {
  opacity: 0.5;
  width: 570px;
  height: 20px;
  bottom: 93px;
  font-size: 13px;
  font-weight: 500;
}

.page-main-title {
  margin-bottom: 28px;
}

#saveChanges {
  margin-top: 10px;
}

.option-link-text {
  cursor: pointer;
}

.update-btn {
  background-color: #2B3B2D;
  font-size: 14px;
  line-height: 15px;
  color: #fff;
  padding: 9px 20px;
  display: inline-block;
  font-weight: 400;
  box-shadow: 0 2.01027px 11.8382px rgba(15, 13, 11, 0.055), 0 1.12694px 6.63642px rgba(15, 13, 11, 0.0655718), 0 0.598509px 3.52455px rgba(15, 13, 11, 0.079074);
  border-radius: 4px;
  margin-right: 15px;
}

.update-btn:hover {
  cursor: pointer;
  background-color: #3d5643;
}

.update-btn:active,
.update-btn:focus {
  background-color: #2a251f;
}

.disclaimer-mb {
  margin-bottom: 15px;
}

.update_available {
  background-color: #EFF6E5;
  border-radius: 4px;
  padding: 26px 30px;
  margin-bottom: 30px;
  width: calc(100% + 0px);
}

.close-icon {
  color: black;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }

  .dots-spinner div {
    background: white !important;
  }

  #invalidLocalProxyConfig {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.15);
  }

  .options-body, body {
    background-color: #181A1B;
    color: #F4F1F1;
  }

  .block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-item__btn:hover,
  .block_custom-local-proxy .proxy-list__wrapper .proxy-list__block .proxy-list__block-item__btn.active {
    background-color: transparent !important;
    opacity: 1;
  }


  .close-icon {
    color: white;
  }

  .proxy-list__block__popup {
    background: #181a1b !important;
  }

  .block_custom-local-proxy .censortracker-not-found__wrapper {
    border: 1px solid #f7eded;
    background-color: transparent;
  }

  .block_custom-local-proxy .btn__censortracker-not-found {
    border: 1px solid #f7eded;
    margin-top: 15px
  }

  .block_custom-local-proxy .add-proxy__wrapper {
    background-color: #242728;
  }

  .block_custom-local-proxy .add-proxy__wrapper .rks-vpn__wrapper {
    background-color: #242728;
    border: 1px solid #f1f1f1;
  }

  .block_custom-local-proxy .proxy-list__wrapper .proxy-list__block {
    border-radius: 10px;
    background-color: #242728;
    color: #ddd;
    padding: 15px 20px;
  }

  .options-page-card {
    background-color: #242728;
  }

  .main-page__title {
    color: #F4F1F1;
  }

  .options-page-card .block__title {
    color: #F4F1F1;
    opacity: 0.5;
  }

  a {
    color: #F4F1F1;
  }

  label {
    color: #F4F1F1;
  }

  .description, .extension__text, .main-page__about {
    color: #F4F1F1;
    opacity: 0.5;
  }

  .options-page-card {
    border-bottom: none;
  }

  .options-page-card .options-hr {

  }

  .options-links .option-link-text {
    color: #F4F1F1;
    opacity: none;
  }

  .main-page__link svg {
    fill: #F4F1F1;
  }

  .main-page__return svg {
    fill: #F4F1F1;
  }

  .state-title {
    color: #F4F1F1;
    opacity: 0.5;
    font-size: 13px;
    line-height: 17px;
    margin-left: 400px;
  }

  .main-page__link:hover,
  .link-ignored:hover {
    color: #F4F1F1;
    opacity: 0.8;
  }

  #version {
    color: #F4F1F1;
    opacity: 0.5;
  }

  .option__link,
  .option__title,
  .extension__title,
  .popup-text {
    color: #F4F1F1;
  }

  .main-page__extension {
    background-color: #242728;
  }

  .btn-dark,
  .default-btn {
    background: #484C51;
    border-radius: 4px;
    color: #cbccc6;
  }

  .btn:hover,
  .default-btn:hover {
    background: #61666B;
  }

  .options-page-card .options-hr {
    height: 0;
    border: 0.1px solid #3A3C3E;
  }

  a {
    color: #F4F1F1;
  }

  a:hover {
    color: #FFFFFF;
  }

  .btn-what-this-mean:hover {
    color: #FFFFFF;
  }

  .main-page__turn:hover,
  .toggle-text:hover,
  .option:hover,
  .main-page__link:hover > span,
  .use_proxy__link:hover {
    color: #FFFFFF;
    cursor: pointer;
  }

  .popup {
    background-color: #181A1B;
  }

  .toggle-button {
    background: #61666B;
  }

  .popup .popup-content .close-popup path {
    stroke: #F1F1F1;
  }

  textarea, input {
    background: #242728;
    color: #F4F1F1;
    caret-color: #F4F1F1;
  }

  #optionsRegistryIsEmptyWarning {
    border: 1px solid #61666B;
  }

  .proxy__disclaimer {
    border: 1px solid #61666B;
    background-color: #242728;
    color: #F4F1F1;
  }

  .proxy__disclaimer .disclaimer__text {
    color: #F4F1F1;
  }

  .proxy__disclaimer .disclaimer__text a {
    text-decoration: underline;
  }

  #privateBrowsingPermissionsRequiredMessage {
    border: .1px solid #3a3c3e;
  }

  .cm-s-ayu-mirage.CodeMirror {
    background: #1f2430;
    color: #cbccc6 !important;
  }

  .cm-s-ayu-mirage .CodeMirror-linenumber {
    color: #636466 !important;
  }

  .cm-s-ayu-mirage.CodeMirror {
    background: #242728 !important;
  }

  .cm-s-ayu-mirage .CodeMirror-gutters {
    background: #242728 !important;
  }

  .CodeMirror .CodeMirror-gutters {
    border-right: 1px solid #484d572e !important;
  }

  .select-options {
    background: #242728;
    color: #c4c2bf;
  }

  .select-option {
    color: #c4c2bf;
  }

  #selectProxyProtocol .select-toggle {
    height: 37px;
    background: #242728;
    color: #c4c2bf;
  }

  .select-toggle:after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#c4c2bf' height='8' width='12'%3E%3Cpath d='m6.583 1.084 4.75 4.666a.806.806 0 0 1 0 1.167.806.806 0 0 1-1.167 0L6.083 2.834 2 6.917a.756.756 0 0 1-.584.25c-.5 0-.833-.333-.833-.833 0-.25.083-.417.25-.584L5.583 1c.167-.25.667-.25 1 .084Z'/%3E%3C/svg%3E");
  }

  .select-option:hover {
    background-color: #4e52535c;
  }

  .select-toggle {
    background: #242728;
    color: #c4c2bf;
    border-color: #292828;
  }

  .main-page__return:hover svg {
    fill: #c4c2bf;
    cursor: pointer;
  }

  .select-toggle:focus,
  .select-toggle:hover {
    border: 1px solid #292828;
  }

  .input-proxy {
    border: 1px solid #292828;
  }

  .input-proxy:active {
    border: transparent;
  }

  .invalid-input {
    border: 1px solid #9e5757 !important;
  }

  .update_available {
    color-scheme: light;
  }
}

#localProxyOptions {
  padding: 20px;
}

#localProxyOptions p {
  font-size: 16px;
  color: #5a5a5a;
  margin-bottom: 10px;
}

#localProxyOptions a {
  text-decoration: none;
  font-weight: 600;
}

#localProxyOptions a:hover {
  text-decoration: underline;
}

.local-proxy-disclaimer {
  background-color: #fbecec;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #5a5a5a;
}

.local-proxy-disclaimer .disclaimer__text {
  font-size: 14px;
  margin-bottom: 15px;
}

.btn-light {
  color: #2c2c2c;
  padding: 5px 20px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-light:hover {
  background-color: rgba(251, 236, 236, 0.77);
}

#localProxyConfigBlock label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

#localProxyConfigBlock textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  resize: none;
  height: 150px;
}

#localProxyConfigBlock {
  padding-bottom: 5px;
}


#localProxyConfigValueDescr {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  font-family: IBM Plex Sans, Arial, sans-serif;
  color: #6d675f;
}

#invalidLocalProxyConfig {
  color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.1);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.loading-dots {
  display: none;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.loading-dots div {
  width: 10px;
  height: 10px;
  margin: 4px;
  background: black;
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}

/* Second and third dot delay */
.loading-dots div:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots div:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(1.5);
    opacity: 0.3;
  }
}
