
/* 
 * Centre For Hearing
 * Non-Critical Styles
 */

/* START NON-CRITICAL GENERAL */
.cfh-find-a-clinic h2 a {
  text-decoration: none !important;
}

.cfh-find-a-clinic h2 a:hover {
  color: #1e4d4d !important;
}

.cfh-find-a-clinic-btn a {
  padding: 0;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cfh-find-a-clinic-btn a:hover {
  background-color: #f1f1e6 !important;
}

.p-mark mark {
  border-bottom: 2px solid #cf8a3f;
}

.cfh-trust-building-assets {
  overflow: visible;
}

.cfh-trust-building-assets img {
  border-radius: 20px;
}

.cfh-trust-building-assets .wp-block-cover__inner-container {
  position: relative;
  height: 100%;
}

.cfh-trust-building-assets aside {
  width: fit-content;
  position: absolute;
  margin: 0;
}

.cfh-trust-building-assets aside:nth-child(1) {
  top: -7%;
  right: 5%;
}
.cfh-trust-building-assets aside:nth-child(2) {
  top: 20%;
  left: 5%;
}
.cfh-trust-building-assets aside:nth-child(3) {
  top: 45%;
  right: -7%;
}
.cfh-trust-building-assets aside:nth-child(4) {
  bottom: 20%;
  left: -7%;
}
.cfh-trust-building-assets aside:nth-child(5) {
  bottom: -7%;
  left: 33%;
}

.cfh-assymetrical-cols
  .wp-block-column:first-child
  .wp-block-cover__background {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgb(0, 0, 0)
  ) !important;
  opacity: 0.35 !important;
}
.cfh-assymetrical-cols
  .wp-block-column:nth-child(2)
  .wp-block-cover__background {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 25%, #036161);
  opacity: 0.5;
}
.cfh-assymetrical-cols
  .wp-block-column:nth-child(3)
  .wp-block-cover__background {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, #036161);
  opacity: 0.5;
}
.cfh-assymetrical-cols .wp-block-column .wp-block-cover,
.cfh-assymetrical-cols .wp-block-column .wp-block-video {
  height: clamp(250px, 66.67vh, 500px);
}
.cfh-assymetrical-cols .wp-block-column .wp-block-video video {
  height: 100%;
  border-radius: 20px;
  object-position: 0% 40%;
  aspect-ratio: unset;
}
.cfh-assymetrical-cols .wp-block-column .wp-block-video video[poster] {
  object-fit: cover;
  object-position: 35%;
}

.yoast-breadcrumbs span {
  display: flex;
  column-gap: 0.5rem;
  flex-wrap: wrap;
}
/* END NON-CRITICAL GENERAL */

/* START SLICK AND CAROUSEL */
.slick-arrow {
  width: 64px;
  height: 64px;
  background-color: var(--wp--preset--color--contrast-3) !important;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.1));
  border-radius: 9999px;
  z-index: 1;
  padding-bottom: 4px;
}
.slick-arrow::before {
  font-size: 24px;
  line-height: 1;
  color: var(--wp--preset--color--accent-4) !important;
  opacity: 1 !important;
}

.slick-next::before {
  content: "⟶";
}
.slick-prev::before {
  content: "⟵";
}
/* END SLICK AND CAROUSEL */

/* START CF7 */
.wpcf7-form > p {
  margin: 0;
}

.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 11px;
}

.wpcf7-two-col {
  gap: 1rem;
}

.wpcf7-two-col > * {
  flex: 1;
}

.wpcf7-submit {
  background-color: var(--wp--preset--color--contrast-3);
  border-radius: 20px;
  border-color: var(--wp--preset--color--contrast-3);
  border-width: 0;
  color: var(--wp--preset--color--base-2);
  font-family: inherit;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: inherit;
  padding-top: 0.75rem;
  padding-right: 3rem;
  padding-bottom: 0.75rem;
  padding-left: 3rem;
  text-decoration: none;
}

.wpcf7-submit:hover {
  background-color: var(--wp--preset--color--contrast-2);
  border-color: var(--wp--preset--color--contrast-2);
  color: var(--wp--preset--color--base);
}

.wpcf7 form .wpcf7-response-output {
  margin: 1em 0;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--wp--preset--font-family--body);
  font-size: var(--wp--preset--font-size--medium);
  font-style: normal;
  font-weight: 400;
  background: transparent;
  margin-bottom: 1.5rem;
}
.wpcf7 .wpcf7-response-output {
  border-radius: 10px;
  padding: 1rem 1.5rem;
  background: white;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}
.wpcf7-select {
  background: transparent;
  border: 0;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  height: 47px;
  font-size: 15px;
  color: rgba(0, 0, 0, 0.5);
  padding: 11px;
}
.wpcf7-list-item {
  margin: 0 !important;
}
.wpcf7-submit-wrap {
  margin-top: 1.5rem;
}
.wpcf7-p {
  font-family: var(--wp--preset--font-family--manrope);
  font-size: var(--wp--preset--font-size--large);
  color: var(--wp--preset--color--contrast-3);
  margin-bottom: 1.25rem !important;
}

.wpcf7-p > span {
  font-weight: 800;
}

@media screen and (max-width: 599px) {
  .wpcf7-form input[type="text"],
  .wpcf7-form input[type="tel"],
  .wpcf7-form input[type="email"],
  .wpcf7-form textarea,
  .wpcf7-form select {
    margin-bottom: 0.9rem;
  }

  .wpcf7-p {
    padding-top: 0.5rem;
  }
}
/* END CF7 */

/* START YOAST FAQ */
.wp-block-yoast-faq-block > div {
  margin-bottom: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.wp-block-yoast-faq-block > div:last-child {
  border-bottom: 0 !important;
}

.wp-block-yoast-faq-block > div > a {
  font-size: 18px !important;
  font-weight: 500 !important;
  padding-top: 22px !important;
  padding-bottom: 22px !important;
  letter-spacing: 0.01rem !important;
  color: #111;
}

.wp-block-yoast-faq-block > div > a::after {
  color: #cf8a3f !important;
}

.wp-block-yoast-faq-block > div > p {
  padding: 0 15px 15px !important;
}

.schema-faq .schema-faq-question.faq-q-open {
  border-bottom: 0 !important;
}

.schema-faq-ivory-bg > .schema-faq-section,
.schema-faq-ivory-bg p.schema-faq-answer {
  background-color: #f1f1e6 !important;
}
/* END YOAST FAQ */

/* START TOC TABLE OF CONTENTS */
.toc-show {
  grid-template-rows: 1fr !important;
}

.wp-block-table-of-contents {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.2s grid-template-rows;
}

.wp-block-table-of-contents ol {
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.wp-block-table-of-contents > ol {
  padding-left: 0;
  margin: 0;
}

.wp-block-table-of-contents ol li {
  display: block;
  padding: 4px 0;
  line-height: 1.3;
}

.wp-block-table-of-contents ol li ol {
  display: none;
}

.cfh-toc-group {
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.03);
}

.cfh-toc-group .cfh-toc-title mark {
  cursor: pointer !important;
  user-select: none !important;
}

.cfh-toc-group .cfh-toc-title mark:hover {
  text-decoration: underline;
}

.toc-toggle > a {
  margin-left: -10px;
  min-width: 40px;
  min-height: 40px;
  aspect-ratio: 1/1;
  -webkit-touch-callout: none !important;
  user-select: none !important;
}
.toc-toggle > a:hover {
  color: unset !important;
  background: none !important;
}
/* END TOC TABLE OF CONTENTS */
