.vimeify-settings {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 20px 0;
  gap: 0;
}

.vimeify-settings-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #c3c4c7;
  border-right: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.vimeify-settings-main {
  flex: 1;
  min-width: 0;
}

.vimeify-settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.vimeify-settings-tab {
  padding: 14px 20px;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #50575e;
  text-align: left;
  position: relative;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.vimeify-settings-tab:last-child {
  border-bottom: none;
}
.vimeify-settings-tab:hover {
  color: #2271b1;
  background-color: rgba(34, 113, 177, 0.04);
}
.vimeify-settings-tab--active {
  color: #2271b1;
  background: #f6f7f7;
}
.vimeify-settings-tab--active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2271b1;
}

.vimeify-settings-form {
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.vimeify-settings-section {
  display: none;
  padding: 20px;
}
.vimeify-settings-section--active {
  display: block;
}

.vimeify-settings-field {
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
}
.vimeify-settings-field:last-child {
  border-bottom: none;
}
.vimeify-settings-field__label {
  font-weight: 600;
  font-size: 14px;
  color: #1d2327;
  margin-bottom: 8px;
}
.vimeify-settings-field__desc {
  color: #50575e;
  font-size: 13px;
  margin: 0 0 12px 0;
  line-height: 1.5;
}
.vimeify-settings-field__choices {
  margin-top: 8px;
}
.vimeify-settings-field__markup {
  margin-top: 8px;
}
.vimeify-settings-field__markup table {
  width: 100%;
  border-collapse: collapse;
}
.vimeify-settings-field__markup table th, .vimeify-settings-field__markup table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}
.vimeify-settings-field__markup table th {
  font-weight: 600;
}

.vimeify-settings-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
}
.vimeify-settings-checkbox input[type=checkbox] {
  margin: 2px 0 0 0;
  flex-shrink: 0;
}
.vimeify-settings-checkbox__label {
  font-size: 14px;
  color: #1d2327;
}
.vimeify-settings-checkbox__desc {
  display: block;
  font-size: 12px;
  color: #50575e;
  margin-top: 4px;
  line-height: 1.4;
}

.vimeify-settings-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
}
.vimeify-settings-radio input[type=radio] {
  margin: 0;
  flex-shrink: 0;
}
.vimeify-settings-radio__label {
  font-size: 14px;
  color: #1d2327;
}

.vimeify-settings-select {
  min-width: 300px;
  max-width: 100%;
}

.vimeify-settings-field--select .select2-container {
  min-width: 300px;
  max-width: 500px;
}
.vimeify-settings-field--select .select2-container--default .select2-selection--single {
  height: 32px;
  border-color: #c3c4c7;
}
.vimeify-settings-field--select .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 30px;
  padding-left: 10px;
}
.vimeify-settings-field--select .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 30px;
}
.vimeify-settings-field--select .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

.vimeify-settings-input {
  min-width: 300px;
  max-width: 100%;
}
.vimeify-settings-input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.vimeify-settings-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: #f6f7f7;
  border-top: 1px solid #e0e0e0;
}

.vimeify-settings-save:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.vimeify-settings-status {
  font-size: 13px;
  font-weight: 500;
}
.vimeify-settings-status--success {
  color: #00a32a;
}
.vimeify-settings-status--error {
  color: #d63638;
}

.vimeify-settings-docs-link {
  margin-left: auto;
  color: #50575e;
  text-decoration: none;
  font-size: 13px;
}
.vimeify-settings-docs-link:hover {
  color: #2271b1;
}

.vimeify-settings-field--html .vimeify-status-wrapper {
  width: 100%;
}
.vimeify-settings-field--html .vimeify-status-wrapper tr:nth-child(even) {
  background: #f6f7f7;
}
.vimeify-settings-field--html .vimeify-status-wrapper th {
  width: 200px;
  font-weight: 500;
  vertical-align: top;
}
.vimeify-settings-field--html .vimeify-status-wrapper td {
  vertical-align: top;
}
.vimeify-settings-field--html .vimeify-status-wrapper .vimeify-status-yes {
  color: #00a32a;
}
.vimeify-settings-field--html .vimeify-status-wrapper .vimeify-status-no {
  color: #d63638;
}

@media screen and (max-width: 782px) {
  .vimeify-settings {
    flex-direction: column;
  }
  .vimeify-settings-sidebar {
    width: 100%;
    border-right: 1px solid #c3c4c7;
    border-bottom: none;
  }
  .vimeify-settings-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
  }
  .vimeify-settings-tab {
    padding: 12px 16px;
    border-bottom: none;
    border-right: 1px solid #e0e0e0;
    flex: 1;
    text-align: center;
  }
  .vimeify-settings-tab:last-child {
    border-right: none;
  }
  .vimeify-settings-tab--active {
    background: #f6f7f7;
    color: #2271b1;
  }
  .vimeify-settings-tab--active::after {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 3px;
  }
  .vimeify-settings-select,
  .vimeify-settings-input {
    min-width: 100%;
    width: 100%;
  }
  .vimeify-settings-field--select .select2-container {
    min-width: 100%;
    max-width: 100%;
  }
  .vimeify-settings-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
