/* Disable the 'About text formats' link globally */
.field--widget-text-textarea .filter-wrapper {
  display: none;
}

/*
 * Counter styling.
 * Does not apply for smartphones.
 */
@media only screen and (min-width: 360px) {
  .field--name-field-counter-items .field--name-field-price-value,
  .field--name-field-counter-items .field--name-field-suffix {
    display: inline-block;
  }
  .field--name-field-counter-items .field--name-field-price-value {
    margin-right: 15px;
  }
}
/* END of Counter styling */

/* 
 * Published (status) - without this, the Published checkbox looks
 * glued to the tabs bar, doesn't look good.
 * 
 * <div> elements with a class ending in "-subform-status-value" since
 * classes can take the form of 'form-item--hero-banner-0-subform-status-value'.
 */
div[class$="-subform-status-value"] {
  padding-top: 25px;
}
/* END of Published (status) */

/*
 * FactSet styling
 */
/* From/To date fields on the same line */
.form-item--field-content-0-subform-field-factset-widget-0-widget-config-chart-roulette-timeframe-specific-from,
.form-item--field-content-0-subform-field-factset-widget-0-widget-config-chart-roulette-timeframe-specific-to {
  display: inline-block;
}
/* END of FactSet styling */
/* Hide the tablefield caption */
.tablefield-caption {
  display: none;
}
/* END of Hide the tablefield caption */

/* Chosen - color fix for select elements */
.form-element.chosen-container-single .chosen-single {
  color: inherit;
}
.chosen-container .chosen-drop {
  left: 0;
  margin-top: 3px;
}
.chosen-container .chosen-results {
  margin-top: 5px;
}
/* END of Chosen */

/* Sidebar checkbox fixes */
#drupal-off-canvas-wrapper .form-item--revision-log-toggle label {
  padding-left: 25px;
}
#drupal-off-canvas-wrapper .moderation-sidebar-revision-log-toggle {
  margin-top: 5px;
}
/* END of Sidebar checkbox fixes */

/* Paragraphs secondary tabs fixes */
.paragraphs-tabs.tabs--secondary {
  margin-left: -10px !important;
}
.paragraphs-tabs.tabs--secondary::after {
  border-bottom: 0 !important;
}
/* END of Paragraphs secondary tabs fixes */

.media-library-item img,
.view-media .views-field img {
  border-radius: 20px;
  border: 2px solid beige;
}
/* Changes the cursor to a pointer on hover */
.clickable-label {
  cursor: pointer;
}

.form-actions .workflow-buttons-needs_review,
.form-actions .workflow-buttons-needs_expert_review,
.form-actions .workflow-buttons-needs_legal_review {
  background: brown;
  color: white;
  border: 2px solid brown !important
}

/* Different colors for moderation statuses */
.button.button--primary[data-drupal-selector="edit-moderation-state-in-review"],
.button.button--primary[data-drupal-selector="edit-moderation-state-in-expert-review"],
.button.button--primary[data-drupal-selector="edit-moderation-state-in-legal-review"] {
  background: var(--gin-color-primary-light);
  color: var(--gin-color-primary-dark);
}

/* Long Document names in Media library Grid style */
.view-media-library .media-library-views-form .views-field.views-field-name .field-content {
  word-break: break-word;
}
