/* --- Theme Style
-------------------------------------------------------- */

a,
.content>.video-play:hover span,
.content>.video-play svg,
a svg.icon,
#myBtn:after,
ins,
.woocommerce #respond input#submit.alt,
.woocommerce a.button,
.woocommerce button,
.swiper-pagination-bullet,
.wc-block-mini-cart__button,
svg,
.wp-block-button__link,
.woocommerce ul.products li.product .button,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next,
.wp-block-post-excerpt__more-link,
.tnp.tnp-subscription .tnp-field input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-rock-tune-header-search svg,
.wp-block-search__button,
.wc-block-product-search .wc-block-product-search__button,
.wc-block-components-button:not(.is-link).outlined,
.woocommerce ul.products li.product a h2,
.wp-block-navigation__responsive-container,
.wc-block-components-pagination__page,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next,
.wp-block-post-excerpt__more-link,
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="week"],
input[type="month"],
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
figure img,
.fse-slider-wrapper .wp-block-image figcaption,
.post-navigation-link__label,
.swiper-pagination span,
.slider-content *,
.wp-block-navigation .wp-block-navigation__submenu-container,
.wp-block-button.is-style-rock-tune-button .wp-block-button__link:before,
.wp-block-navigation .wp-block-navigation-item,
.social-lists,
.wp-block-navigation .has-child .wp-block-navigation__submenu-container,
.wp-block-post-excerpt__more-link:before,
.wp-block-navigation .wp-block-navigation__submenu-container li a:before,
.wp-block-post-featured-image img {
  @include transition(0.2s ease-in-out);
}

input[type="search"],
input,
textarea {
  padding: 10px 14px;

  &:is(:focus) {
    outline: none;
    color: var(--wp--preset--color--foreground) !important;
  }
}



.wp-block-query-pagination-numbers .dots {
  display: inline-flex;
}

/* Drop cap */
.has-drop-cap:not(:focus)::first-letter {
  font-size: 100px;
  font-weight: 500;
  line-height: 0.6;
  margin: 11px 14px 0 0;
}

.wp-block-section.blog-section:nth-child(odd),
.wp-block-section {
  position: relative;
  background-color: var(--wp--preset--color--background);
}

.wp-block-section:nth-child(odd) {
  background-color: var(--wp--preset--color--secondary);
}

.wp-block-section+.wp-block-section {
  margin-top: 0;
}

.section-heading {
  margin-bottom: var(--wp--preset--spacing--42);
}

// Outline Button Style
.wp-block-button.is-style-outline {
  .wp-element-button {
    &:is(:hover, :focus) {
      text-decoration: none;
    }
  }
}

.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-text-color, .has-background):hover {
  background-color: var(--wp--preset--color--link-color);
  color: var(--wp--preset--color--dark);
  border-color: var(--wp--preset--color--link-color);
}

.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
  color: var(--wp--preset--color--title) !important;
}

/* Default Button Style */
.wp-block-post-excerpt__more-text,
.is-style-soundscape-button {

  .wp-block-button__link,
  .wp-block-post-excerpt__more-link {
    font-size: var(--wp--preset--font-size--small);
    color: var(--wp--preset--color--foreground);
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    word-wrap: break-word;
    position: relative;
    text-decoration: none;
    padding: 0;
    border: 0;
    background-color: transparent;

    &:hover,
    &:focus {
      color: var(--wp--preset--color--link-color) !important;
      border: 0;
    }
  }
}

.wp-block-post-excerpt__more-text {
  margin-top: var(--wp--preset--spacing--10);
}



/* Comment Form */
.comment-reply-title {
  font-family: var(--wp--preset--font-family--poppins);
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 400;
}

.wp-block-post-comments-form input[type="checkbox" i]:not([type="submit"]) {
  width: 25px;
}

/* Post Comments */
.wp-block-comment-meta {
  margin-right: 4.5rem;
}

.wp-block-comments .comment {
  position: relative;

  .wp-block-comment-reply-link {
    position: absolute;
    top: 0;
    right: 0;

    &:hover {
      border-color: var(--wp--preset--color--body-text) !important;

      .comment-reply-link {
        color: var(--wp--preset--color--body-text) !important;
      }
    }
  }
}

.wp-block-post-comments-form.comment-respond {
  margin-bottom: 35px;
  max-width: var(--wp--style--global--content-size);
}

#cancel-comment-reply-link {
  font-size: 12px;
}

.wp-block-comment-content p:last-of-type {
  margin: 0;
}

// INPUT HOVER
.wp-block-post-comments-form textarea,
.wp-block-post-comments-form input:not([type="submit"]),
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="week"],
input[type="month"],
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea {

  width: 100%;
  color: var(--wp--preset--color--body-text);
  background-color: var(--wp--preset--color--tertiary);
  border: 1px solid var(--wp--preset--color--border-color);
  border-radius: 0;
  font-family: var(--wp--preset--font-family--poppins);
  font-size: var(--wp--preset--font-size--default);
  margin-top: 7px;
  box-sizing: border-box;

  &:is(:focus) {
    border-color: var(--wp--preset--color--link-color);
  }
}

input[type="submit"] {
  background-color: var(--wp--preset--color--foreground);
  border-radius: 0;
  border-color: var(--wp--preset--color--foreground);
  border-width: 2px;
  border-style: solid;
  color: var(--wp--preset--color--background);
  font-family: inherit;
  font-size: var(--wp--preset--font-size--small);
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 2px;
  padding-top: 14px;
  padding-right: 25px;
  padding-bottom: 14px;
  padding-left: 25px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;

  &:hover {
    background-color: var(--wp--preset--color--link-color);
    border-color: var(--wp--preset--color--link-color);
    color: var(--wp--preset--color--dark);
    text-decoration: none;
  }
}

/* Block Socials */

body .wp-block-social-links {
  gap: 0;
  margin-inline: -9px;

  .wp-block-social-link-anchor {
    padding: 9px;
  }
}



/* Quote and Blocksquote */
.wp-block-quote {
  position: relative;

  &:before {
    font-family: var(--wp--preset--font-family--sans-serif);
    content: "\201C";
    display: block;
    float: left;
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
    position: absolute;
    top: -7px;
    left: -20px;
    height: 0;
  }

  &.has-text-align-center {
    padding-top: 21px;

    &:before {
      left: 50%;
      transform: translateX(-50%);
    }
  }

  &.has-text-align-right {
    &:before {
      left: auto;
      right: -20px;
    }
  }
}

.wp-block-quote.is-style-plain {
  &:before {
    display: none;
  }

  cite {
    font-style: italic;
  }
}

.wp-block-quote.has-text-align-right {
  border: 0;
  padding-inline: 0;
}

.wp-block-pullquote {
  p {
    margin-bottom: 0;
  }
}

.wp-block-pullquote.has-text-align-center,
.wp-block-pullquote {
  border-right-width: 0;
  border-left-width: 0;
}

.wp-block-pullquote.has-text-align-right {
  border-width: 0;
  border-right-width: 4px;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 14px;
}

.wp-block-pullquote.has-text-align-left {
  border-width: 0;
  border-left-width: 4px;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 14px;
}

.wp-block-pullquote cite {
  display: block;
}

/* Table */
.wp-block-table {
  &.is-style-stripes {
    border-bottom: 0;
  }

  thead,
  tfoot {
    border: 0;
  }

  td,
  th {
    border: 1px solid var(--wp--preset--color--border-color);
    padding: 7px 14px;
  }

  figcaption {
    margin-top: 14px;
  }
}

.wp-block-image {
  .wp-element-caption {
    padding: 7px;
    background-color: var(--wp--preset--color--secondary);
    margin: 0;
  }
}

/* Block Navigation */
.wp-block-navigation__responsive-container.is-menu-open {
  padding: var(--wp--preset--spacing--42);
}

.editor-styles-wrapper .wp-block-navigation .wp-block-navigation-item.wp-block,
.block-editor-block-list__block .wp-block-navigation__container.block-editor-block-list__layout {
  width: 100% !important;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  padding: 9px;

  &:hover {
    color: var(--wp--preset--color--link-color);
  }
}

.wp-block-navigation:not(.has-background) {
  .wp-block-navigation__responsive-container.is-menu-open {
    background-color: var(--wp--preset--color--dark);
  }
}

span.post-navigation-link__label {
  font-size: 11.2px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Hide SVG in next/prev buttons */
.wp-block-post-navigation-link {
  .post-navigation-link__label {
    svg.icon {
      display: none;
    }
  }
}

/* Boxed Layout */
.wp-site-blocks {
  margin: 0 auto;
}



/* WP Block Query = WP Block Post Template */
.wp-block-query {
  .wp-block-post-template {

    li:nth-child(1),
    li:nth-child(2) {
      border-top: 1px solid var(--wp--preset--color--border-color)
    }

    li:nth-last-child(1):nth-child(odd) {
      grid-column: span 2;
    }

    .wp-block-post {

      &.sticky {
        background-color: var(--wp--preset--color--pale-yellow);
      }

      &>.wp-block-group {
        overflow: hidden;
        height: 100%;
      }

      position: relative;

      .wp-block-post-meta {
        svg.icon {
          fill: var(--wp--preset--color--link-color);
          height: 12px;
          margin-right: 7px;
          position: relative;
          top: 2px;
          width: 12px;
        }
      }

      .wp-block-post-title a {
        display: inline;

        &:hover,
        &:focus {
          color: var(--wp--preset--color--link-color);
        }
      }

      .wp-block-post-featured-image {
        margin-left: 2.65rem;
        float: right;

        img {
          min-height: 100%;
          min-width: 100%;
          object-fit: cover;
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
        }
      }
    }
  }
}

.wp-block-post-title {
  line-height: 1.35;
}

.wp-block-woocommerce-related-products .wp-block-query .wp-block-post-template li:nth-child(1),
.wp-block-woocommerce-related-products .wp-block-query .wp-block-post-template li:nth-child(2),
.featured-content .wp-block-query .wp-block-post-template li:nth-child(1),
.featured-content .wp-block-query .wp-block-post-template li:nth-child(2) {
  border: none;
}

.wp-block-taxonomy-row .wp-block-taxonomy-right .taxonomy-post_tag a:last-child {
  margin-right: 25px;
}

.wp-block-navigation>.wp-block-navigation-item>.wp-block-navigation-item__content.wp-block-navigation-item__content:hover,
.wp-block-navigation>.wp-block-navigation-item>.wp-block-navigation-item__content.wp-block-navigation-item__content:focus,
:root :where(a:where(:not(.wp-element-button))):hover,
:root :where(a:where(:not(.wp-element-button))):focus {
  color: var(--wp--preset--color--link-color) !important;
}

p a:where(:not(.wp-element-button)) {
  color: var(--wp--preset--color--link-color) !important;

  &:hover,
  &:focus {
    color: var(--wp--preset--color--title) !important;
  }
}

.featured-content .wp-block-post .wp-block-post-date time a,
.featured-content .wp-block-post .wp-block-post-author__name a,
.wp-block-query .wp-block-post-template .wp-block-post-meta time a,
.wp-block-query .wp-block-post-template .wp-block-post-meta p a {
  text-decoration: none;
  color: var(--wp--preset--color--link-color) !important;

  &:hover,
  &:focus {
    opacity: 0.6;
  }
}

.wp-block-post-meta p a {
  color: var(--wp--preset--color--title) !important;

  &:hover,
  &:focus {
    text-decoration: none;
  }
}

.wp-block-comment-author-name a:hover,
.wp-block-comment-author-name a:focus {
  text-decoration: underline;
}

:root :where(.wp-block-comment-reply-link a:where(:not(.wp-element-button))):hover,
:root :where(.wp-block-comment-reply-link a:where(:not(.wp-element-button))):focus {
  opacity: 1;
}

.wp-block-query-pagination .current {
  color: var(--wp--preset--color--link-color);
}

@media screen and (max-width: 600px) {
  .wp-block-query {
    .wp-block-query-pagination {
      justify-content: center;
      gap: 14px;
    }
  }
}

/* Inner Header Media - No Front Page */
.media-no-front-page.wp-block-cover {
  min-height: 250px;
}

/* Catch Breadcrumbs */
.catch-breadcrumb.breadcrumb-area {
  padding-top: var(--wp--preset--spacing--21);
  padding-right: var(--wp--preset--spacing--42);
  padding-left: var(--wp--preset--spacing--42);
  margin: 0;
  font-style: italic;
  font-size: var(--wp--preset--font-size--extra-small);
  width: auto !important;

  span {
    a {
      text-decoration: none;
      display: inline-block;
      padding: 3px 10px;
      border: 1px solid var(--wp--preset--color--border-color);
    }

    .breadcrumb-current {
      display: inline-block;
      padding: 4px 10px;
      background-color: var(--wp--preset--color--secondary);
    }
  }

  .sep {
    padding: 6px;
  }
}

/* If Post Has No thumbnail Inside Post Templates of Block Query */
.wp-block-query:not(.block-editor-block-list__block) {
  .wp-block-post-template {
    li:not(.has-post-thumbnail) {
      .wp-block-columns.is-layout-flex {
        gap: 0;

        >.wp-block-column:first-of-type {
          display: none;
        }

        >.wp-block-column {
          +.wp-block-column {
            flex-basis: 100% !important;
          }
        }
      }
    }
  }
}

.has-sidebar {

  .wp-block-column.sidebar-column>.wp-block-group,
  .wp-block-column.sidebar-column>.wp-block-group aside {
    height: 100%;
  }

  aside {
    box-shadow: rgba(28, 27, 27, 0.25) 0px 0px 3px, rgba(70, 70, 70, 0.22) 0px 0px 3px;
    position: relative;
  }
}