:root {
  --clr-poll-form-background: #fff;
  --clr-poll-form-input-background: #e8e6e6;
}

.element-form:has(.poll-form-element), .element-richtext:has(.poll-form-confirmation) {
  box-shadow: 0px 0.2rem 1.2rem 0px rgba(0, 0, 0, 0.1490196078);
  padding: 4rem;
  gap: 3rem;
  margin-top: 2.6rem !important;
  width: 100%;
  position: relative;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: var(--clr-poll-form-background);
}
.element-form:has(.poll-form-element) > form {
  display: flex;
  flex-direction: column;
}
.element-form:has(.poll-form-element) .width--full {
  max-width: 34rem;
}
.element-form:has(.poll-form-element) .poll-form-element__title h2 {
  margin-bottom: 2rem;
}
.element-form:has(.poll-form-element) .element-form-input {
  margin: 0;
  margin-top: 3rem;
}

.element-form:has(.poll-form-element) .element-form-input input[type="text"] {
  max-height: 40px;
}

.element-form:has(.poll-form-element) > form > div.element-form-checkbox {
  margin-top: 3rem;
  margin-bottom: 1rem;
  max-width: 100%;
}

.element-form:has(.poll-form-element)
  .element-form-checkbox
  input[type="checkbox"] {
  width: 2rem;
  height: 2rem;
  border-radius: 0.3rem;
  background-color: var(--clr-poll-form-input-background);
  border: 0;
}

.element-form:has(.poll-form-element)
  .element-form-checkbox
  input[type="checkbox"]:checked,
.element-form:has(.poll-form-element)
  .element-form-input
  input[type="text"]:focus {
  background-color: var(--clr-poll-form-background);
  border: 0.2rem solid #000;
}

.element-form:has(.poll-form-element)
  .element-form-checkbox
  input[type="checkbox"].error,
.element-form:has(.poll-form-element)
  .element-form-input
  input[type="text"].error {
  background-color: var(--clr-poll-form-background);
  border: 0.2rem solid #c00942;
}

.element-form:has(.poll-form-element)
  > form
  > div.element-form-checkbox
  ~ div.element-form-checkbox {
  margin-top: 0;
  margin-bottom: 0;
}

.element-form:has(.poll-form-element) > form > div:last-of-type {
  margin-top: 3rem !important;
}

.element-form:has(.poll-form-element) button.button {
  border-radius: 0.8rem;
  padding: 1rem 5rem;
  background-color: #c00942;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.element-form:has(.poll-form-element) .input__error {
  display: block;
  color: red;
  font-size: 1.4rem;
  line-height: 1.3;
  margin-top: 0.8rem;
  width: 100%;
}

/* Poll Option Select */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.poll-form-element__select-pseudo {
  background-color: var(--clr-poll-form-input-background);
  width: 34rem;
  height: 4rem;
  border-radius: 0.8rem;
  padding: 0.3rem 1.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  cursor: pointer;
}
.poll-form-element__select-pseudo .selected-label {
  color: #000;
  font-weight: 400;
  font-size: 1.6rem;
  width: 28.8rem;
  height: 2rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.poll-form-element__select-pseudo .select-arrow-icon path {
  fill: #929292;
}
.poll-form-element__select-pseudo .poll-form-element__dropdown {
  position: absolute;
  top: 4.2rem;
  left: 0;
  background-color: var(--clr-poll-form-background);
  border: 0.2rem solid #000;
  border-radius: 0.8rem;
  padding: 0.5rem 0;
  z-index: 2;
  max-height: 35rem;
  overflow-y: auto;
  width: 100%;
}
.poll-form-element__select-pseudo .poll-form-element__option {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1.5rem;
}
.poll-form-element__select-pseudo .poll-form-element__option.is-selected,
.poll-form-element__select-pseudo .poll-form-element__option:hover,
.poll-form-element__select-pseudo .poll-form-element__option:focus {
  background-color: var(--clr-poll-form-input-background);
}
.poll-form-element__select-pseudo
.poll-form-element__option
.poll-form-element__wrapper {
  flex: 1;
}
.poll-form-element__select-pseudo
  .poll-form-element__option
  .poll-form-element__option-image {
  display: flex;
  justify-content: center;
  flex-basis: 7rem;
  width: 7rem;
  height: 7rem;
  border-radius: 0.8rem;
}
.poll-form-element__select-pseudo
.poll-form-element__option
.poll-form-element__option-image
img {
  height: 100%;
  width: auto;
}
.poll-form-element__select-pseudo .poll-form-element__option-title {
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.poll-form-element__select-pseudo .poll-form-element__option-title,
.poll-form-element__select-pseudo .poll-form-element__option-subtitle {
  font-size: 1.6rem;
  color: #000;
}
.poll-form-element__select-pseudo .poll-form-element__text {
  margin-bottom: 1rem;
}
.poll-form-element__select-pseudo .poll-form-element__option-content > a {
  color: #c00942;
  text-decoration: underline;
}
.poll-form-element__select-pseudo[aria-expanded="true"] {
  background-color: var(--clr-poll-form-background);
  border: 0.2rem solid #000;
  padding: 1rem 1.5rem;
}
.poll-form-element__select-pseudo[aria-expanded="true"] .selected-label {
  color: #929292;
}
.poll-form-element__select-pseudo[aria-expanded="true"]
  .select-arrow-icon
  path {
  fill: #000;
}
.poll-form-element__select-pseudo.error {
  background-color: var(--clr-poll-form-background);
  border: 0.2rem solid #c00942;
  padding: 1rem 1.5rem;
  display: flex;
}
.poll-form-element__select-pseudo.error .selected-label {
  color: #c00942;
}
.poll-form-element__select-pseudo.error .select-arrow-icon path {
  fill: #c00942;
}
