.ecupro-ask-expert-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--ecupro-surface-soft);
  border-radius: 4px;
  padding: 25px 30px;
  margin-bottom: 1.5em;
}

.ecupro-ask-expert-widget__main {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  flex: 1 1 400px;
  min-width: 0;
}

.ecupro-ask-expert-widget__avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 80px;
}

.ecupro-ask-expert-widget__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 0;
  gap: 2px;
  line-height: 1.5;
}

.ecupro-ask-expert-widget__top {
  display: flex;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  flex-wrap: wrap;
}

.ecupro-ask-expert-widget__name {
  font-size: 1.2em;
  line-height: 1.2;
  color: var(--ecupro-accent);
}

.ecupro-ask-expert-widget__description {
  font-size: 0.95em;
  line-height: 1.45;
  color: var(--ecupro-text-muted);
  opacity: 0.8;
  text-align: left;
}

.ecupro-ask-expert-widget__select-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: #222;
}

.ecupro-ask-expert-widget__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  line-height: inherit;
  cursor: pointer;
}

.ecupro-ask-expert-widget__workshop-current {
  font-size: 0.95em;
  color: #666;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.ecupro-ask-expert-widget__picker-caret {
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  color: #666;
  transform: rotate(45deg) translateY(-0.12em);
}

.ecupro-ask-expert-widget__workshop-select {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: block !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
  background-image: none !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer;
  z-index: 2;
}

.ecupro-ask-expert-widget__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.ecupro-ask-expert-test-dialog {
  width: min(92vw, 520px);
  max-height: min(80vh, 420px);
  border: 1px solid var(--ecupro-border);
  z-index: 100050;
}

.ecupro-ask-expert-test-dialog[open] {
  position: fixed;
  left: 50%;
  top: 10vh;
  transform: translateX(-50%);
  margin: 0;
}

.ecupro-ask-expert-test-dialog::backdrop {
  background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 767px) {
  .ecupro-ask-expert-widget {
    align-items: flex-start;
    padding: 16px 18px;
  }

  .ecupro-ask-expert-widget__main {
    flex: 1 1 100%;
  }

  .ecupro-ask-expert-widget__avatar {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
  }

  .ecupro-ask-expert-widget__content {
    flex: 1 1 0;
  }

  .ecupro-ask-expert-widget__actions {
    flex: 1 1 100%;
  }

  .ecupro-ask-expert-test-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
  }

  .ecupro-ask-expert-test-dialog[open] {
    top: 12px;
  }
}
