/*
Theme Name:     Limoncello
Theme URI:      n/a
Template:       kadence
Author:         RDBM
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0.2
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/
.grecaptcha-badge {
  visibility: hidden;
}

/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.popup-drawer .drawer-content {
  padding: 0 1rem 1.5rem;

  #mobile-menu {
    li {
      position: relative;
      .menu-item-icon {
        position: absolute;
        top: 50%;
        right: 1.25rem;
        color: #464038;
        transform: translateY(-50%);
      }

      &.wpml-ls-item {
        display: none;
      }

      &:hover {
        .menu-item-icon {
          color: #fbf9ec;
        }
      }
    }
  }
  .site-header-item:not(:last-child) {
    margin-bottom: 2rem;
  }
  .mobile-header-button-wrap {
    width: 100%;
    text-align: center;

    .mobile-header-button {
      width: 100%;
    }
  }

  img {
    margin: 0 auto;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.flatpickr-current-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;

  .flatpickr-monthDropdown-months,
  .numInputWrapper {
    font-size: 15px;
  }
}

.reservation-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;

  .form-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;

    &.form-top-wrapper {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

    &.form-bottom-wrapper {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;

      @media (max-width: 649px) {
        grid-template-columns: 1fr;
      }
    }
  }

  .form-inner-wrapper {
    position: relative;

    &.full-width {
      grid-column: span 2;
    }

    &.date-wrapper {
      &::after {
        content: url("data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2213%22%20viewBox%3D%220%200%2012%2013%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M10.375%201.45508H9.82812V0.361328H8.73438V1.45508H3.26562V0.361328H2.17188V1.45508H1.625C1.02344%201.45508%200.53125%201.94727%200.53125%202.54883V11.2988C0.53125%2011.9004%201.02344%2012.3926%201.625%2012.3926H10.375C10.9766%2012.3926%2011.4688%2011.9004%2011.4688%2011.2988V2.54883C11.4688%201.94727%2010.9766%201.45508%2010.375%201.45508ZM10.375%2011.2988H1.625V4.18945H10.375V11.2988Z%22%20fill%3D%22%23464038%22/%3E%3C/svg%3E");
        display: inline-block;
        width: 12px;
        height: 13px;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(calc(-50% + -3px));
        z-index: 10;
      }
    }

    &.time-wrapper {
      &::after {
        content: url("data:image/svg+xml,%3Csvg%20width%3D%2215%22%20height%3D%2216%22%20viewBox%3D%220%200%2015%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cg%20clip-path%3D%22url(%23clip0_237_14007)%22%3E%3Cpath%20d%3D%22M7.64889%201.69385C4.27019%201.69385%201.53418%204.43598%201.53418%207.81468C1.53418%2011.1934%204.27019%2013.9355%207.64889%2013.9355C11.0337%2013.9355%2013.7758%2011.1934%2013.7758%207.81468C13.7758%204.43598%2011.0337%201.69385%207.64889%201.69385ZM7.65501%2012.7113C4.9496%2012.7113%202.75835%2010.5201%202.75835%207.81468C2.75835%205.10927%204.9496%202.91801%207.65501%202.91801C10.3604%202.91801%2012.5517%205.10927%2012.5517%207.81468C12.5517%2010.5201%2010.3604%2012.7113%207.65501%2012.7113Z%22%20fill%3D%22%23464038%22/%3E%3Cpath%20d%3D%22M7.96109%204.75439H7.04297V8.42689L10.2564%2010.355L10.7155%209.60209L7.96109%207.96783V4.75439Z%22%20fill%3D%22%23464038%22/%3E%3C/g%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0_237_14007%22%3E%3Crect%20width%3D%2214.69%22%20height%3D%2214.69%22%20fill%3D%22white%22%20transform%3D%22translate(0.30957%200.469727)%22/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
        display: inline-block;
        width: 12px;
        height: 13px;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(calc(-50% + -3px));
        z-index: 10;
        
      }
    }

    label {
      &.input-label {
        position: absolute;
        top: 0;
        left: 0;
        font-size: 14px;
        line-height: 20px;
        transform: translate(20px, calc(50% + 8px));
        z-index: 10;
        transition: transform 0.3s ease;
        margin-right: 10px;
        color: #464038;
        z-index: 10;
        &.active {
          transform: translate(16px, 4px);
          color: #464038;
          font-size: 11px;
          font-weight: 700;
          opacity: .75;
        }
      }
    }

    &:focus-within {
      label {
        &.input-label {
          font-size: 11px;
          font-weight: 700;
          transform: translate(16px, 4px);
          opacity: .75;
        }
      }
    }
  }

  .wpcf7-form-control-wrap {
    position: relative;
    display: block;

    &::after {
      content: "";
      position: absolute;
      top: 46px;
      left: 0;
      width: 100%;
      height: 1px;
    }

    &[data-name="your-message"] {
      &::after {
        top: 100%;
      }
    }
  }

  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="date"],
  textarea {
    position: relative;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 0;
    color: #464038;
    max-width: 100%;
    min-height: 40px;
    padding: 20px 20px 14px;
    vertical-align: middle;
    width: 100%;
    z-index: 10;
    font-size: 14px;
    line-height: 20px;

    &:is(:-webkit-autofill, :autofill) {
      background-color: transparent !important;
      background-image: none !important;
      -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
      box-shadow: 0 0 0 1000px transparent inset !important;
      transition: background-color 5000s ease-in-out 0s !important;
      color: #464038 !important;
      -webkit-text-fill-color: #464038 !important;
    }
  }

  textarea {
    resize: none;
    height: 120px;
  }

  input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
    &::-webkit-outer-spin-button,
    &::-webkit-inner-spin-button {
      -webkit-appearance: none;
    }
  }

  .wpcf7-not-valid-tip {
    font-size: 10px;
    display: block;
    line-height: 1.2;
    margin-top: 4px;
  }

  .form-acceptance-wrapper {

    .wpcf7-form-control-wrap {
      &::after {
        display: none;
      }
    }

    .wpcf7-list-item {
      margin-left: 0;

      input[type="checkbox"] {
        display: none;

        &:checked + .wpcf7-list-item-label::after {
          visibility: visible;
        }
      }

      label {
        position: relative;
        display: flex;
        padding-left: 38px;
      }

      .wpcf7-list-item-label {
        color: #464038;
        line-height: 1.35;
        font-size: 12px;
        max-width: 680px;

        a {
          color: #464038;

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

        &::before {
          content: '';
          position: absolute;
          left: 0;
          height: 24px;
          width: 24px;
          border: 1px solid rgba(255, 255, 255, 1);
          margin: 0;
          border-radius: 0;
        }

        &::after {
          content: '';
          position: absolute;
          top: 5px;
          left: 5px;
          height: 14px;
          width: 14px;
          background-color: #464038;
          border-radius: 0;
          visibility: hidden;
        }
      }
    }
  }

  .form-button-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    input {
      background-color: #fff;
      color: #D7B686;
      border: none;
      border-radius: 0;
      padding: 16px 48px;
      font-size: 14px;
      font-weight: 700;
      width: 100%;
      max-width: fit-content;
      margin: 0 auto;
      text-transform: uppercase;
    }

    & .wpcf7-spinner {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 10;
      margin: 0;
    }
  }
}

.wpcf7 form {
  .wpcf7-response-output {
    position: relative;
    padding: .75rem 1rem;
    margin-bottom: 0;
    border: 1px solid transparent;
    border-radius: .25rem;
    line-height: 1.5;
    font-size: 12px;
  }
  &.invalid {
    .wpcf7-response-output {
      color: #856404;
      background-color: #fff3cd;
      border-color: #ffeeba;
    }
  }

  &.sent {
    .wpcf7-response-output {
      color: #155724;
      background-color: #d4edda;
      border-color: #c3e6cb
    }
  }
}

.site-footer {
  position: relative;

  .footer-image-left {
    position: absolute;
    top: 0;
    left: 0;
    opacity: .37;
  }

  .footer-image-right {
    position: absolute;
    bottom: 80px;
    right: 0;
    opacity: .47;
    z-index: 0;
  }

  .footer-image-left,
  .footer-image-right {
    @media (max-width: 767px) {
      display: none;
    }
  }
}

.mobile-html-inner {
  img {
    opacity: 0.75;
    max-width: 220px;
    margin: 0 auto;
  }
}

.site-footer-row-container-inner {
  .site-container {
    max-width: 1300px;
  }
}

.mobile-navigation ul li.current-menu-item > .menu-item-icon {
  color: #fbf9ec !important;
}

.site-header-item-mobile-navigation {
  /* margin-top: 1.5rem; */
}

.item-is-stuck #mobile-secondary-site-navigation ul li > a {
  color: #5a5248;
}

.site-middle-footer-wrap {
  position: relative;
  z-index: 1;
}

.kadence-pro-fixed-item {
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;

  &.is-hidden {
    transform: translateY(100%);
  }
}


.post-archive {
  column-gap: 4rem;
  row-gap: 5rem;

  .entry.loop-entry {
    border-radius: 0 80px 0 0;
    overflow: hidden;

    .entry-content-wrap {
      padding: 2rem 1rem;
    }
  }
}

.archive.content-style-unboxed .entry, .blog.content-style-unboxed .entry, .post-type-archive.content-style-unboxed .entry, .search-results.content-style-unboxed .entry,
.custom-archive-loop-item.entry {
  position: relative;
  border-radius: 0 80px 0 0;
  overflow: hidden;
  
  &::before {
    content: '';
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100% - 90px);
    background-color: #eee8e2;
  }
}

.single-post {
  color: #464038;

  .content-area {
    padding-top: 5rem;
  }
}

@media(max-width: 767px) {
  .cky-revisit-bottom-left {
    bottom: 70px !important;
  }
}