:root {
  /* container */
  --polly-feedback-container-display: flex;
  --polly-feedback-container-justify: center;
  --polly-feedback-container-text-align: center;

  /* border */
  --polly-feedback-border-radius: var(--polly-border-radius--sm);
  --polly-feedback-border-width: var(--polly-border-width--sm);

  /* font */
  --polly-feedback-font-size: var(--polly-font-size--sm);
  --polly-feedback-font-colour: var(--polly-font-colour);
  --polly-feedback-font-weight: var(--polly-font-weight--regular);

  /* inputs */
  --polly-feedback-input-background-colour: var(--polly-grey--50);
  --polly-feedback-input-border-colour: var(--polly-grey--300);
  --polly-feedback-input-float: right;

  /* submit button */
  --polly-feedback-submit-background-colour: var(--polly-button-line-bg-colour);
  --polly-feedback-submit-background-colour--hover: var(--polly-button-line-bg-colour--hover);
  --polly-feedback-submit-font-size: var(--polly-font-size--sm);

  /* email option */
  --polly-feedback-email-border-width: var(--polly-border-width--sm);
  --polly-feedback-email-text-decoration: none;
  --polly-feedback-email-background-colour--hover: var(--polly-button-line-bg-colour--hover);

  /* feedback buttons */
  --polly-feedback-button-border-colour: var(--polly-button-line-border-colour);
  --polly-feedback-button-border-width: var(--polly-border-width--sm);
  --polly-feedback-button-border-radius: var(--polly-border-radius--sm);
  --polly-feedback-button-font-weight: var(--polly-font-weight--regular);

  /* feedback line-height */
  --polly-feedback-line-height: var(--polly-line-height--md);
}

/* feedback component */
#polly-help-article-feedback-container {
  display: var(--polly-feedback-container-display);
  padding-top: 16.187px;
  align-items: center;
  justify-content: var(--polly-feedback-container-justify);
  gap: 5px;
  align-self: stretch;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: var(--polly-feedback-container-text-align);

  color: var(--polly-feedback-font-colour);
  font-family: var(--polly-font-family);
  font-size: var(--polly-feedback-font-size);
  font-style: normal;
  font-weight: var(--polly-feedback-font-weight);
}

#polly-help-article-feedback-container table {
  width: 100%;
}

#polly-help-article-feedback-container table td {
  width: 50%;
  padding: 5px;
  overflow: hidden;
  color: var(--polly-feedback-font-colour);
  text-overflow: ellipsis;
  font-family: var(--polly-font-family);
  font-size: var(--polly-feedback-font-size);
  font-style: normal;
  font-weight: var(--polly-feedback-font-weight);
  line-height: var(--polly-feedback-line-height);
}

#polly-help-article-feedback-container table td label {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

#polly-help-article-feedback-container #submit {
  margin-left: 0.5em;
}

#feedbackNegativeReason {
  display: flex;
  float: var(--polly-feedback-input-float);
  padding: 9.443px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;

  border-radius: var(--polly-feedback-border-radius);
  border: var(--polly-feedback-border-width) solid var(--polly-feedback-input-border-colour);

  font-weight: var(--polly-feedback-font-weight);
}

.polly-help-article-feedback-label-top {
	text-align: left;
  margin-right: auto;
	padding: 0.5em 0.5em 0 0.5em;
}

.polly-help-article-feedback-element {
	padding: 0.5em;
}

.polly-help-article-feedback-element textarea {
  width: 100%;
  padding: 0.5em;
  resize: vertical;

  border-radius: var(--polly-feedback-border-radius);
  border: var(--polly-feedback-border-width) solid var(--polly-feedback-input-border-colour);
  background: var(--polly-feedback-input-background-colour);
  
}

.polly-help-article-feedback-negative-email-option {
  display: inline-flex;
}

.polly-help-article-feedback-negative-email-option .polly-help-contact-cta {
  display: inline-flex;
  padding: 8px 12px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: var(--polly-feedback-border-radius);
  border: var(--polly-feedback-email-border-width) solid var(--polly-feedback-submit-background-colour--hover);
  background: var(--polly-feedback-submit-background-colour);
  color: var(--polly-feedback-font-colour);
  text-decoration: none;
  font-family: var(--polly-font-family);
  font-size: var(--polly-feedback-submit-font-size);
  font-style: normal;
  font-weight: var(--polly-feedback-font-weight);
  line-height: var(--polly-feedback-line-height);
}

.polly-help-article-feedback-negative-email-option .polly-help-contact-cta:hover {
  text-decoration: var(--polly-feedback-email-text-decoration);
  background: var(--polly-feedback-email-background-colour--hover);
}

.polly-help-article-feedback-negative-email-option .polly-help-contact-cta i {
  font-size: 0.875rem;
}

/* Feedback buttons */
.button {
  display: inline-flex;
  padding: 8px 12px;
  justify-content: center;
  align-items: center;
  gap: 4px; 

  border-radius: var(--polly-feedback-button-border-radius);
  border: var(--polly-feedback-button-border-width) solid var(--polly-feedback-button-border-colour);
  background: var(--polly-button-line-bg-colour);

  color: var(--polly-button-colour--dark);
  font-family: var(--polly-font-family);
  font-size: var(--polly-button-font-size);
  font-style: normal;
  font-weight: var(--polly-feedback-button-font-weight);
  line-height: var(--polly-feedback-line-height);
  
	cursor: pointer;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  text-shadow: none;
  box-shadow: none;
}

.button:hover {
  color: var(--polly-button-line-colour--hover);
  background: var(--polly-button-line-bg-colour--hover);
  border-color: var(--polly-button-line-border-colour--hover);
}

.button:focus {
  outline: 2px solid var(--polly-brand--300, #0066cc);
  outline-offset: 2px;
}

/* Helpcenter v2 inner article feedback styling */
.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container {
  padding-top: 0;
  margin-top: 1rem;
  gap: 0.625rem;
  justify-content: flex-start;
  color: var(--polly-hc-v2-text-secondary);
  font-size: 0.875rem;
  font-weight: var(--polly-font-weight--regular);
  line-height: 1.5;
}

.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container .button {
  padding: 0.5rem 0.875rem;
  gap: 0.375rem;
  border: 1px solid var(--polly-hc-v2-border-colour);
  border-radius: var(--polly-hc-v2-border-radius);
  background: var(--polly-hc-v2-surface-card);
  color: var(--polly-hc-v2-text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container .button:hover {
  border-color: var(--polly-hc-v2-primary-brand);
  background: var(--polly-hc-v2-surface-background, var(--polly-hc-v2-page-bg));
  color: var(--polly-hc-v2-primary-brand);
}

.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container .polly-help-article-feedback-element:first-child {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0;
}

.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container .polly-help-article-feedback-element:first-child label {
  margin: 0;
  color: var(--polly-hc-v2-text-primary);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
}

.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container #feedbackNegativeReason {
  float: none;
  min-width: 270px;
  max-width: 330px;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--polly-hc-v2-border-colour);
  border-radius: var(--polly-hc-v2-border-radius);
  background: var(--polly-hc-v2-surface-card);
  color: var(--polly-hc-v2-text-primary);
}

.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container .polly-help-article-feedback-label-top {
  width: 100%;
  margin: 0;
  padding: 0.25rem 0 0;
  color: var(--polly-hc-v2-text-primary);
  font-size: 0.8125rem;
  font-weight: 400;
  text-align: left;
}

.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container .polly-help-article-feedback-element textarea {
  border: 1px solid var(--polly-hc-v2-border-colour);
  border-radius: var(--polly-hc-v2-border-radius);
  background: var(--polly-hc-v2-surface-card);
  color: var(--polly-hc-v2-text-primary);
  min-height: 74px;
}

.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container #submit {
  margin: 0.25rem 0 0;
  border: 1px solid var(--polly-hc-v2-primary-brand);
  border-radius: var(--polly-hc-v2-border-radius);
  background: var(--polly-hc-v2-primary-brand);
  color: var(--polly-font-colour--white);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
}

.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container #submit:hover {
  filter: brightness(0.92);
}

.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container .polly-help-article-feedback-negative-email-option {
  margin-top: 0.25rem;
}

.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container .polly-help-article-feedback-negative-email-option .polly-help-contact-cta {
  border: 1px solid var(--polly-hc-v2-border-colour);
  border-radius: var(--polly-hc-v2-border-radius);
  background: var(--polly-hc-v2-surface-card);
  color: var(--polly-hc-v2-text-primary);
}

.hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container .polly-help-article-feedback-negative-email-option .polly-help-contact-cta:hover {
  border-color: var(--polly-hc-v2-primary-brand);
  background: var(--polly-hc-v2-surface-background, var(--polly-hc-v2-page-bg));
  color: var(--polly-hc-v2-primary-brand);
}

@media (max-width: 800px) {
  .hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container .polly-help-article-feedback-element:first-child {
    flex-direction: column;
    align-items: flex-start;
  }

  .hc-theme-v2.hc-v2-inner #polly-help-article-feedback-container #feedbackNegativeReason {
    max-width: none;
    min-width: 0;
  }
}
