.integration-channel-tabs {
  border-bottom: 1px solid #e9eaf0;
  display: flex;
  gap: 18px;
  margin: -5px 0 20px;
}

.integration-channel-tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #9699aa;
  cursor: pointer;
  font:600 12px "DM Sans";
  padding: 0 1px 11px;
}

.integration-channel-tabs button.active {
  border-color: #6e63e8;
  color: #6259d2;
}

[data-integration-panel][hidden] {
  display: none;
}

.email-integration-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.email-brand {
  align-items: center;
  display: flex;
  gap: 11px;
}

.email-brand > span {
  background: #528fd3;
  border-radius: 10px;
  box-shadow: 0 6px 13px rgba(82, 143, 211, 0.2);
  color: #fff;
  font:700 18px "Plus Jakarta Sans";
  height: 39px;
  line-height: 39px;
  text-align: center;
  width: 39px;
}

.email-brand p {
  color: #528fd3;
  font-size:10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 5px;
}

.email-brand h3 {
  font:700 16px "Plus Jakarta Sans";
  margin: 0;
}

.email-brand small {
  color: #9b9eae;
  display: block;
  font-size:11px;
  margin-top: 5px;
}

.email-connection-status {
  align-items: center;
  background: #eaf3fd;
  border-radius: 12px;
  color: #4d88c7;
  display: flex;
  font-size:10px;
  gap: 5px;
  padding: 6px 8px;
}

.email-connection-status i {
  background: #528fd3;
  border-radius: 50%;
  height: 5px;
  width: 5px;
}

.email-connection-status b {
  font-weight: 600;
}

.email-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  margin-top: 18px;
}

.email-config-form,
.email-test-panel,
.email-activity {
  border: 1px solid #e9eaf0;
  border-radius: 11px;
  padding: 17px;
}

.email-section-heading {
  align-items: center;
  display: flex;
  gap: 8px;
}

.email-section-heading.sender {
  border-top: 1px solid #ededf2;
  margin-top: 17px;
  padding-top: 15px;
}

.email-section-heading > span {
  background: #eaf3fd;
  border-radius: 6px;
  color: #4d88c7;
  flex: 0 0 auto;
  font-size:11px;
  font-weight: 700;
  height: 25px;
  line-height: 25px;
  text-align: center;
  width: 25px;
}

.email-section-heading strong,
.email-section-heading small {
  display: block;
}

.email-section-heading strong {
  color: #5d6174;
  font-size:12px;
}

.email-section-heading small {
  color: #9da0af;
  font-size:10px;
  margin-top: 3px;
}

.email-form-grid {
  display: grid;
  gap: 11px 12px;
  grid-template-columns: minmax(0, 1fr) 90px 130px;
  margin-top: 15px;
}

.email-form-grid label.host {
  grid-column: auto;
}

.email-form-grid label.full {
  grid-column: 1 / -1;
}

.email-form-grid label > span,
.email-test-panel form label > span {
  color: #666a7d;
  display: block;
  font-size:10px;
  font-weight: 600;
  margin-bottom: 5px;
}

.email-form-grid label > span b,
.email-test-panel form label > span b {
  color: #dc6570;
}

.email-form-grid input,
.email-form-grid select,
.email-test-panel input,
.email-test-panel textarea {
  background: #fff;
  border: 1px solid #dfe1e9;
  border-radius: 7px;
  color: #55596d;
  font:13px "DM Sans";
  outline: none;
  width: 100%;
}

.email-form-grid input,
.email-form-grid select,
.email-test-panel input {
  height: 35px;
  padding: 0 10px;
}

.email-form-grid input:focus,
.email-form-grid select:focus,
.email-test-panel input:focus,
.email-test-panel textarea:focus {
  border-color: #6c9fd7;
  box-shadow: 0 0 0 3px rgba(82, 143, 211, 0.09);
}

.email-form-grid label > small {
  color: #a2a5b4;
  display: block;
  font-size:9px;
  margin-top: 4px;
}

.email-password-field {
  display: block;
  position: relative;
}

.email-password-field input {
  padding-right: 70px;
}

.email-password-field button {
  background: #f3f4f7;
  border: 0;
  border-radius: 5px;
  color: #6f7386;
  cursor: pointer;
  font:600 10px "DM Sans";
  padding: 6px 8px;
  position: absolute;
  right: 5px;
  top: 5px;
}

.email-config-actions {
  align-items: center;
  border-top: 1px solid #ededf2;
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 13px;
}

.email-config-actions > span {
  color: #9599aa;
  font-size:9px;
}

.email-config-actions button {
  background: #528fd3;
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font:600 11px "DM Sans";
  padding: 9px 10px;
}

.email-test-panel {
  background: #fbfcfe;
}

.email-test-panel form {
  margin-top: 15px;
}

.email-test-panel form > label {
  display: block;
  margin-top: 11px;
}

.email-test-panel form > label:first-child {
  margin-top: 0;
}

.email-test-panel textarea {
  line-height: 1.45;
  padding: 9px 10px;
  resize: vertical;
}

.email-test-panel label > small {
  color: #a4a7b5;
  display: block;
  font-size:9px;
  margin-top: 4px;
  text-align: right;
}

.email-test-panel label > small b {
  color: #777b8e;
}

.email-test-button {
  align-items: center;
  background: #528fd3;
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font:600 11px "DM Sans";
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
  padding: 10px;
  width: 100%;
}

.email-test-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.email-test-button b {
  font-weight: 600;
}

.email-test-result {
  align-items: flex-start;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  margin-top: 11px;
  padding: 10px;
}

.email-test-result > span {
  border-radius: 50%;
  flex: 0 0 auto;
  font-size:10px;
  font-weight: 700;
  height: 18px;
  line-height: 18px;
  text-align: center;
  width: 18px;
}

.email-test-result p {
  margin: 0;
}

.email-test-result strong,
.email-test-result small {
  display: block;
}

.email-test-result strong {
  color: #62667a;
  font-size:10px;
}

.email-test-result small {
  color: #979aaa;
  font-size:9px;
  margin-top: 3px;
}

.email-test-result.idle {
  background: #f0f1f5;
}

.email-test-result.idle > span {
  background: #e2e3e9;
  color: #85899b;
}

.email-test-result.pending {
  background: #fff4e2;
}

.email-test-result.pending > span {
  background: #f8dfb6;
  color: #c5812f;
}

.email-test-result.success {
  background: #eaf3fd;
}

.email-test-result.success > span {
  background: #d4e6f8;
  color: #4d88c7;
}

.email-activity {
  margin-top: 14px;
}

.email-activity > header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.email-activity > header p {
  color: #528fd3;
  font-size:9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin: 0 0 4px;
}

.email-activity > header h4 {
  color: #5d6174;
  font:700 12px "Plus Jakarta Sans";
  margin: 0;
}

.email-activity > header > span {
  background: #f1f2f5;
  border-radius: 10px;
  color: #9296a6;
  font-size:9px;
  padding: 5px 7px;
}

.email-activity-empty {
  align-items: center;
  border-top: 1px solid #ededf2;
  color: #a1a4b3;
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 13px;
}

.email-activity-empty > span {
  font-size:21px;
}

.email-activity-empty p {
  margin: 0;
}

.email-activity-empty strong,
.email-activity-empty small {
  display: block;
}

.email-activity-empty strong {
  color: #73778a;
  font-size:10px;
}

.email-activity-empty small {
  font-size:9px;
  margin-top: 3px;
}

.email-activity-row {
  align-items: center;
  border-top: 1px solid #ededf2;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  margin-top: 12px;
  padding-top: 13px;
}

.email-activity-row .activity-check {
  background: #eaf3fd;
  border-radius: 50%;
  color: #4d88c7;
  font-size:10px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  width: 24px;
}

.email-activity-row strong,
.email-activity-row small {
  display: block;
}

.email-activity-row strong {
  color: #5f6376;
  font-size:11px;
}

.email-activity-row small {
  color: #999dad;
  font-size:9px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-activity-row > b {
  color: #8d91a2;
  font-size:10px;
}

.email-activity-row > em {
  background: #eaf3fd;
  border-radius: 10px;
  color: #4d88c7;
  font-size:9px;
  font-style: normal;
  font-weight: 600;
  padding: 5px 7px;
}

@media (max-width: 1000px) {
  .email-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .email-integration-heading {
    gap: 12px;
  }

  .email-brand {
    align-items: flex-start;
  }

  .email-connection-status {
    flex: 0 0 auto;
  }

  .email-form-grid {
    grid-template-columns: 1fr;
  }

  .email-form-grid label.full {
    grid-column: auto;
  }

  .email-config-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .email-config-actions button {
    width: 100%;
  }

  .email-activity-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .email-activity-row > em {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

