/* Pass D — polls */

/* ===== pollPreviewStyle ===== */

.poll-preview {
  margin: .8rem 0;
  padding: 1rem;
  border: 1px solid #d5e4da;
  border-radius: 16px;
  background: #fff;
}

.poll-preview .title {
  align-items: center;
}

.poll-preview h2 {
  font-size: 1rem;
}

.poll-preview p {
  margin: .25rem 0;
  color: var(--muted);
  font-size: .84rem;
}

.poll-preview button:not(.poll-delete) {
  min-height: 38px;
  border: 1px solid #b9d8c4;
  border-radius: 10px;
  padding: .4rem .65rem;
  background: var(--soft);
  color: var(--deep);
  font-weight: 900;
}

.poll-preview-form {
  display: grid;
  gap: .55rem;
  margin-top: .8rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}

.poll-preview-form input {
  min-height: 40px;
  padding: .55rem .65rem;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.poll-preview-form small {
  color: var(--muted);
}

/* ===== pollDisplayStyle ===== */

.poll-preview {
  margin: .45rem 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  container-type: inline-size;
}

.poll-preview h2 {
  font-size: .92rem;
}

.poll-preview p {
  font-size: .77rem;
}

.poll-preview .title {
  align-items: center;
  padding: .15rem 0;
  margin-bottom: .45rem;
}

.poll-preview .title > button {
  min-height: 32px;
  padding: .35rem .5rem;
  font-size: .72rem;
}

.poll-preview > .title > .eyebrow {
  margin: 0;
}

.poll-active {
  position: relative;
  margin: .45rem 0;
  padding: .45rem .6rem;
  border: 1px solid #d9e2dc;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.poll-active:first-of-type {
  margin-top: .35rem;
}

.poll-active:last-of-type {
  margin-bottom: 0;
}

.poll-active-head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: .45rem;
  min-height: 30px;
}

.poll-active .coach-card-menu {
  position: static;
  flex: 0 0 auto;
}

.poll-delete {
  align-self: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--red);
  font-size: 1.05rem;
  line-height: 1;
}

.poll-active-toggle {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center;
  gap: .35rem;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: #26352c !important;
  text-align: left;
  cursor: pointer;
}

.poll-active-toggle:hover, .poll-active-toggle:focus {
  background: transparent !important;
  color: #26352c !important;
  box-shadow: none !important;
}

.poll-active-heading {
  display: grid;
  min-width: 0;
  gap: .12rem;
}

.poll-active-title {
  min-width: 0;
  color: #26352c !important;
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.poll-active-date {
  color: #7b887f !important;
  font-size: .62rem;
  font-weight: 600;
  line-height: 1.1;
}

.poll-active-chevron {
  color: #26352c !important;
  font-size: .9rem;
  font-weight: 900;
}

.poll-response-status {
  align-self: center;
  padding: .16rem .4rem;
  border: 1px solid #d7dfda;
  border-radius: 999px;
  color: #7b887f;
  font-size: .6rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.poll-response-status.is-answered {
  border-color: #a9d2b5;
  color: #197346;
  background: #f2faf4;
}

.poll-response-status.is-pending {
  background: #f8faf8;
}

.poll-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: .2rem;
  margin-top: .35rem;
}

.poll-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-width: 0;
  min-height: 32px;
  padding: .2rem .45rem;
  border: 1px solid #d7e0da;
  border-radius: 6px;
  background: #fff;
  color: var(--deep);
  font-size: .73rem;
  line-height: 1.2;
  text-align: left;
}

.poll-options button.selected {
  border-color: #19834a;
  background: #f3fbf5;
  box-shadow: inset 3px 0 0 #19834a;
}

.poll-options button span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.poll-options button small {
  flex: 0 0 auto;
  align-self: center;
  width: auto;
  min-width: 5.4rem;
  padding: 0;
  color: #7b887f;
  font-size: .6rem;
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 520px) {
  .poll-options button {
    min-height: 34px;
  }
  .poll-active-date {
    font-size: .6rem;
  }
  .poll-response-status {
    font-size: .56rem;
    padding: .14rem .32rem;
  }
}
