/* Editor */
/* WP Core */
.block-editor-iframe__html {
  padding: 0 30px;
}

.is-root-container.is-desktop-preview.is-layout-flow.wp-block-post-content-is-layout-flow.wp-block-post-content.block-editor-block-list__layout {
  padding: 0 30px;
}

:root :where(p.has-background) {
  padding: 0;
  margin: 0;
}

:root :where(.is-layout-flow) > * {
  margin-block-start: 0;
}

h1:where(.wp-block-heading).has-background,
h2:where(.wp-block-heading).has-background,
h3:where(.wp-block-heading).has-background,
h4:where(.wp-block-heading).has-background,
h5:where(.wp-block-heading).has-background,
h6:where(.wp-block-heading).has-background {
  padding: 0;
  margin: 0;
}

:root :where(.wp-block-list.has-background) {
  margin: 0;
}

.is-style-thin-heading {
  font-weight: 100;
}

p,
ul,
li {
  font-size: 18px;
  line-height: 30px;
}

.is-btn-white {
  background-color: none;
  border: 1px solid white;
  color: white !important;
  margin-bottom: 10px;
}

.media-text-bg {
  background-image: url('../images/media-text-bg.png') !important;
}

.media-text-block .mht-button span a {
  color: white;
}

.media-text-block .mht-button:hover span a {
  color: var(--primary);
}

.wp-block-heading {
  margin: 0 !important;
}

.mht-header-search .mht-search-bar {
  width: 100%;
}

/* ACF Patches */
.acf-field-true-false {
  display: flex;
  gap: 15px;
}

/* SVG Grid Editor buttons */
button.components-button.mht-icon-button.mht-tile.is-pressed {
  background-color: var(--primary);
}

button.components-button.mht-icon-button.mht-tile svg {
  fill: none;
  stroke: black;
  width: 30px;
  height: 30px;
}


/* Tooltip on hover */
.witzend-cardarrowbutton .mht-tile {
  position: relative;
}

.witzend-cardarrowbutton .mht-tile:hover::after {
  content: attr(data-label);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  pointer-events: none;
  z-index: 9999;
}


.mht-card-resource-file .mht-card-resource-file__footer .mht-card-resource-file__meta .mht-card-resource-file__icon .mht-icon {
  height: 35px;
  width: 35px;
}
.mht-card-person__editor-button {
  margin-top: 1rem;
  width: 100%;
}

.article-body>.mht-card-person {
  padding-inline: 0;
}

/* fix: image blocking editor controls on video card */
.editor-styles-wrapper .mht-card-media__head {
  position: relative;
}

.editor-styles-wrapper .mht-card-media__head img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.editor-styles-wrapper .mht-card-media__image {
  display: block;
  width: 100%;
  height: auto;
}

.editor-styles-wrapper .mht-card-media__image-wrapper {
  position: relative;
}

.editor-styles-wrapper .mht-card-media__button {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}

.editor-styles-wrapper .mht-card-media__image {
  display: block;
  width: 100%;
  height: auto;
}

.editor-styles-wrapper .mht-card-media__button {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.editor-styles-wrapper .mht-card-media__image-wrapper:hover .mht-card-media__button {
  opacity: 1;
}

.block-editor-link-control {
  min-width: 250px !important;
}

.components-base-control.block-editor-url-input.block-editor-link-control__field.block-editor-link-control__search-input {
  min-width: unset;
}

.mht-icon.mht-icon--small{ 
  width: 20px !important;
  height: 20px !important;
}

.mht-icon.white{
  stroke: white !important;
} 

.mht-accordion-editor {
  background: #f3f3f3;
}

.accordion-item-editor {
  margin-bottom: 15px;
}

 .has-background .mht-card.mht-card-contact { 
  background: #FFFFFF; 
 }

 /* Heading */
.wp-block-heading {
  margin-bottom: 15px !important;
}

/* Contact Form */
.mht-contact-form .block-editor-inner-blocks { 
  width: 100%;
}

/* Card Person */ 
:where(.editor-styles-wrapper) .mht-card-person .mht-card-person__image {
  aspect-ratio: unset;
  flex: 1 1;
}

/* Forms */ 
.mht-form.end .gform-footer.gform_footer.top_label {
  align-self: end;
}

.gfield_label.gform-field-label {
  font-size: 1.125rem;
  color: var(--tertiary);
}

.gform_wrapper.gravity-theme .gfield_label { 
  font-weight: inherit !important;
}

input[type='submit'].gform_button.button {
  width: fit-content;
  padding: 12px 28px;
  border-radius: 6px;
  background-color: var(--primary);
  color: white;
}

/** Visualizer Overwritting Styles **/
/* Table format */ 
/* Table wrapper */
.visualizer-front table.google-visualization-table-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 6px;
  font-size: 16px;
}

/* Header row */
.visualizer-front thead th {
  background-color: #f3f3f3 !important;
  color: #004953 !important;
  font-weight: 800;
}

/* Header cells */
.visualizer-front th.google-visualization-table-th,
.visualizer-front th {
  padding: 14px 16px;
  border: 0 !important;
  text-align: left;
}

/* Data cells */
.visualizer-front td.google-visualization-table-td {
  padding: 14px 16px;
  border: 0 !important;
  vertical-align: top;
}

/* Zebra striping */
.visualizer-front tr.google-visualization-table-tr-even td {
  background: white;
}

.visualizer-front tr.google-visualization-table-tr-odd td {
  background: #f3f3f3;
}

/* Remove Google borders */
.visualizer-front table,
.visualizer-front tbody,
.visualizer-front tr,
.visualizer-front td,
.visualizer-front th {
  border: none !important;
  box-shadow: none !important;
}

/* Sort indicator alignment */
.visualizer-front .google-visualization-table-sortind {
  margin-left: 6px;
}

@media (max-width: 781px) {
  .wp-block-group[style*="padding"] {
    padding-inline: 1rem !important;
  }

  .wp-block-group[style*="margin"] {
    margin-inline: 0 !important;
  }
}

.mht-card.mht-card-feature.mht-card-feature--clickable h3,
.mht-card.mht-card-feature.mht-card-feature--clickable p {
  word-break: break-word;
  hyphens: auto;
}