.toolbar-menu-administration > .toolbar-menu > .menu-item .toolbar-menu {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
@media (min-width: 769px) {
  form .field-multiple-table .field-multiple-drag {
    width: 50px;
    padding-right: 0;
  }
}
body .node-preview-container.node-preview-container .form-item,
body .node-preview-container.node-preview-container .node-preview-backlink {
  color: #fff;
}

body .node-preview-container.node-preview-container .node-preview-backlink::before {
  background-color: #fff;
}

body .node-preview-container.node-preview-container .node-preview-form-select {
  margin: 0;
  padding-left: 16px;
  padding-right: 16px;
}

.js body .field--widget-paragraphs-previewer .paragraphs-dropbutton-wrapper {
  margin: 0.75rem 0.5rem 0.75rem 0;
}

.ashoka-node-edit-modal .call-to-actions {
  gap: 0.75rem;
}

.gin--edit-form .ui-dialog {
  position: fixed;
}

.gin--edit-form .ui-dialog .ui-dialog-content {
  text-align: center;
  height: 100% !important;
}
.gin--edit-form .ui-dialog .ui-dialog-content .call-to-actions {
  display: flex;
  align-items: center;
}

.gin--edit-form .ui-dialog .ui-dialog-content .media-library-wrapper {
  text-align: left;
}

.seo-tab-wrapper .form-type--textarea .counter {
  top: 170px;
}

.views-exposed-form.views-exposed-form .form-item--langcode .chosen-single {
  min-width: 240px;
}
.form-element.chosen-container-single .chosen-single {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

table.views-table tbody td {
  max-width: 400px;
}

table .paragraph-bullet:after {
  content: "";
}

.paragraphs-tabs-wrapper .field-actions {
  align-items: center;
}

/* SEO tab changes */
.seo-tab-wrapper .form-item label {
  font-weight: bold;
  font-size: 16px;
}

.seo-tab-wrapper .layout-region-node-secondary .entity-meta .menu-link-form {
  display: none;
}

.seo-tab-wrapper .layout-region-node-secondary .form-wrapper fieldset:not(.fieldgroup) > legend {
  margin-bottom: 0;
}

.seo-tab-wrapper .layout-region-node-secondary .form-wrapper fieldset:not(.fieldgroup) > legend span {
  color: #999;
  font-size: 14px;
  padding: 0;
  margin: 0;
  font-weight: bold;
}

.seo-tab-wrapper .layout-region-node-secondary .form-wrapper .fieldset__wrapper {
  margin-right: 0;
  margin-left: 0;
}

.seo-tab-wrapper .layout-region-node-main .field--name-field-meta-tag-image {
  border: 2px solid #d0d0d0;
  padding: 20px;
  margin-bottom: 15px;
  background: #fff;
}

.seo-tab-wrapper .field--name-field-meta-tag-image #field_meta_tag_image-media-library-wrapper {
  text-align: left;
}

.seo-tab-wrapper .field--name-field-meta-tag-image fieldset#field_meta_tag_image-media-library-wrapper:not(.fieldgroup) > legend span {
  font-weight: bold;
  font-size: 16px;
  padding-left: 0;
}

body .paragraphs-subform .field-multiple-table.draggable-table .form-item {
  margin-block-end: 16px;
}
.seo-tab-wrapper .layout-region-node-secondary .form-wrapper .fieldset__wrapper {
  background: #f7f7f7;
  border: 1px solid #eee;
  overflow: hidden;
}
.seo-tab-wrapper .layout-region-node-secondary .form-wrapper .fieldset__wrapper .seo-preview-title {
  font-weight: 600;
}
.seo-tab-wrapper .layout-region-node-secondary .form-wrapper .fieldset__wrapper .form-item:not(.form-item--image) {
  padding: 0 15px 10px;
}
.seo-tab-wrapper .layout-region-node-secondary .form-wrapper .fieldset__wrapper .js-form-item-link {
  color: #999;
}
.seo-tab-wrapper .layout-region-node-secondary .form-wrapper#edit-google .fieldset__wrapper {
  padding: 0;
  background: transparent;
  border-color: transparent;
}
.seo-tab-wrapper .layout-region-node-secondary .form-wrapper#edit-google .fieldset__wrapper .form-item {
  padding-left: 0;
  padding-right: 0;
}
.seo-tab-wrapper {
  background-color: #fff;
  padding: var(--gin-spacing-l);
  border: 1px solid var(--gin-border-color-layer);
  box-shadow: var(--gin-shadow-l1);
  border-radius: var(--gin-border-l);
}
.seo-tab-wrapper .js-media-library-widget .media-library-selection {
  display: block;
}
/* End of SEO Tab Styles */

body .help-icon__description-toggle {
  height: 20px;
  width: 20px;
  margin-top: -4px;
}

body .help-icon__description-toggle:before {
  background-image: url('../images/helptext-icon.gif') !important;
  mask: none !important;
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}

body .help-icon__description-toggle:hover:before {
  background-color: transparent;
}

/* ckEditor help text style */
.details-wrapper > .form-wrapper {
  margin-bottom: 16px;
}
.js-text-full .js-filter-wrapper {
  position: relative;
}
.filter-help {
  width: 100%;
  text-align: right;
  position: absolute;
  top: 40px;
}
.form-item--editor-format {
  float: right;
  margin-bottom: 40px !important;
}
@media (max-width: 520px) {
  .form-item--editor-format {
    width: 100% !important;
  }
}
.filter-tips__toggle-link.filter-tips__item--short {
  list-style: none;
}
.filter-tips__toggle-link a::after,
.help-text__toggle-link::after {
  display: inline-block;
  content: '';
  height: 20px;
  width: 20px;
  background-image: url('../images/helptext-icon.gif') !important;
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  margin: 0 0 -5px 7px;
}

.help-text__toggle-link {
  display: block;
  margin-top: 12px;
}

.filter-tips {
  margin-top: 0;
  margin-bottom: 32px;
  float: left;
  width: 100%;
}
/* End ckEditor help text style */

/* Back to top */
body #backtotop {
  background: #003f72;
  border: 1px solid #003f72;
  border: 0;
  height: 3.125rem;
  width: 3.125rem;
  padding: 0.9375rem;
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
  font-size: 0;
  min-width: auto;
}

body #backtotop:after {
  content: "\f106";
  font-family: "Font Awesome\ 5 Free", sans-serif;
  display: inline;
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25rem;
}
body #backtotop:hover {
  background: #003f72;
  border-color: #003f72;
  opacity: 0.8;
}

.ui-dialog .ui-widget-content.ui-dialog-content {
  max-height: 500px !important;
}
.button a {
  text-decoration: none;
}

.button:hover a,
.button:active a,
.button:focus a,
.button:hover:focus a {
  color: #fff;
}
/* Orange button styling in ckeditor */
.ck-content .orange-button,
.ck-content .button.orange-button,
.ck-content .button.orange-button:not(:focus) {
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.ck-content .orange-button a {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.25rem;
  color: #fff;
  border: 0;
  text-decoration: none;
  border-radius: 0;
  padding: 0.6875rem 0.9375rem;
  min-width: 7.5rem;
  text-align: center;
  background-color: #e98300;
  border: 2px #e98300 solid;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}
.ck-content .orange-button a:hover,
.ck-content .orange-button a:focus {
  background-color: #000000;
  color: #fff;
  border-color: #000000;
}
/* Quote styling in ckeditor */
.ck-content .customeditor-pull-quote {
  position: relative;
  line-height: 1;
  display: inline-block;
  font-size: 1.5625rem;
  color: #000;
  font-weight: 300;
  z-index: 1;
  position: relative;
}
.ck-content .customeditor-pull-quote:before {
  content: "\0022";
  font-size: 3.05187rem;
  display: inline-block;
  color: #e98300;
  font-weight: 900;
  font-family: "Noto Sans";
  line-height: normal;
  z-index: 0;
}

@media (max-width: 768px) {
  .button.paragraphs-icon-button-edit.paragraphs-previewer {
    background-image: none !important;
    height: 36px;
  }
  .button.paragraphs-icon-button-collapse.paragraphs-previewer {
    background-image: none;
    height: 36px;
  }
  .field-multiple-table thead th {
    height: auto;
  }
  .paragraphs-dropdown .paragraphs-dropdown-toggle {
    border: 2px solid var(--gin-color-text-light);
  }
  .button.paragraphs-icon-button-edit:not(.paragraphs-previewer):disabled,
  .button.paragraphs-icon-button-edit:disabled:not(.paragraphs-previewer):active {
    background-image: url('/modules/contrib/paragraphs/icons/icon-edit-disabled.svg') !important;
  }
  .js .field--widget-paragraphs .field-multiple-drag {
    min-width: 20px !important;
  }
  form .field-multiple-table .field-multiple-drag {
    width: 30px !important;
  }
  .js .field--widget-paragraphs-previewer .draggable .tabledrag-handle {
    min-width: 30px !important;
  }
}

/* Fixed layout issue */
@media (max-width: 599px) {
  .region-sticky__items .gin-sticky-form-actions {
    width: 100% !important;
  }
  .js .paragraph-top .paragraphs-actions {
    grid-row: 3 !important;
    grid-column: 4 !important;
    width: 100%;
  }
}
@media (max-width: 480px) {
  #gin-sticky-edit-submit {
    margin-bottom: 0;
  }
  #gin-sticky-edit-preview {
    margin-top: 0;
  }
  .region-sticky__items .gin-sticky-form-actions {
    gap: 4px;
  }
  .filter-help {
    margin-top: 30px;
  }
  .form-item--editor-format .form-item__label,
  .form-element--editor-format .form-item__label {
    width: 100%;
    margin-bottom: 0;
  }
  html.js .dropbutton-wrapper .dropbutton__items {
    right: auto !important;
    left: 16px !important;
    max-width: 350px !important;
  }
}

@media (max-width: 768px) {
  .button.paragraphs-icon-button-collapse.paragraphs-previewer {
    background-image: none;
  }
}

.field--name-field-recurring-details .field-multiple-table .field-multiple-drag,
.field--name-field-recurring-details .field-add-more-submit,
.field--name-field-recurring-details .draggable.even {
  display: none;
}
.smartdate--widget .repeat--label {
  margin-top: 25px;
}
.smartdate--widget .recur-repeat .form-radios {
  display: flex;
  width: 50%;
  justify-content: space-evenly;
}
.smartdate--widget .smartdate--time-inline .time-start .js-form-item .visually-hidden {
  display: inline;
  position: unset !important;
}
.smartdate--widget .duration-wrapper {
  display: none !important;
}
.smartdate--widget #edit-field-recurring-details-0-daily-help,
.smartdate--widget #edit-field-recurring-details-0-weekly-help,
.smartdate--widget #edit-field-recurring-details-0-monthly-help,
.smartdate--widget #edit-field-recurring-details-0-advanced-help {
  display: list-item;
  margin-left: 16px !important;
}

/* Fellow backend layout  */
#edit-group-top-banner-section {
  display: flex;
  flex-wrap: wrap;
}
#edit-group-top-banner-section > summary {
  width: 100%;
}
#edit-group-top-banner-section > .details-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

#edit-group-top-banner-section .field--name-field-media-profile-image,
#edit-group-top-banner-section #edit-group-top-right-detail {
  flex: 1;
}

#edit-group-top-banner-section .field--name-field-media-profile-image .media-library-item--grid {
  width: 50%;
}
/* Hide some field form Organizations section for fellow */
#edit-group-top-right-detail #field-link-organizations-values tbody tr.draggable:last-child,
#edit-group-top-right-detail #field-link-organizations-values tbody tr td:first-child .tabledrag-cell-content,
#edit-group-top-right-detail #field-link-organizations-values tbody tr td:nth-child(3),
#edit-group-top-right-detail #field-link-organizations-add-more-wrapper .form-item > .field-actions {
  display: none;
}

/* End of Fellow backend layout */
