/* 
Theme Name: Hello Elementor Child - CREVE COEUR
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


a{
  color:#EF0071;
}

.single-product .woocommerce-message{
  margin-bottom: -85px;
}

.calendar-container {
  height: 320px;
}

table.zabuto-calendar {
  thead {
    height: 62px;
    > tr.zabuto-calendar__navigation {
      height: 34px;
      > td {
        border-block-start: none;
        vertical-align: middle;
      }
    }

    > tr.zabuto-calendar__days-of-week {
      border-bottom: 2px solid black;
      th {
        font-weight: bold;
      }
    }
  }

  /* Space between the header and the body by adding a before pseudo element ( The character is a zero width non joiner ) */
  tbody:before {
    line-height: 1em;
    content: "\200C";
    display: block;
  }

  td,
  th {
    padding: 0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    border: none;
  }

  th {
    font-weight: 400;
  }

  tbody > tr > td {
    height: 45px;
    width: 45px;
    vertical-align: middle;
    background: none;
    &.zabuto-calendar__day--today {
      color: var(--e-global-color-accent);
      font-weight: bold;
    }
  }
}

table.zabuto-calendar tbody tr {
  td > .spectacle-lien {
    color: #ffffff;
  }

  td > .cc-event {
    border: 1px solid var(--e-global-color-accent);
    cursor: pointer;
    height: 94%;
    width: 96%;
    margin: auto;
    padding-top: 9px;
  }

  td.cc-libre:hover > .cc-event {
    background-color: var(--e-global-color-accent);
  }

  td.cc-complet > .cc-event {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' preserveAspectRatio='none' viewBox='0 0 100 100'><path d='M100 0 L0 100 ' stroke='black' stroke-width='3'/><path d='M0 0 L100 100 ' stroke='black' stroke-width='3'/></svg>")
      no-repeat;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%, auto;

    .cc-day {
      background-color: white;
      padding: 1px;
    }
  }
  td.cc-complet:hover > .cc-event {
    background-color: var(--e-global-color-accent);
  }
}

.cc-event {
  position: relative;
  .cc-popup {
    background-color: #ffffff;
    border: 1px solid #999999;
    cursor: default;
    opacity: 0;
    position: absolute;
    min-width: 240px;
    z-index: 50;
    padding: 15px;
    pointer-events: none;
    top: 40px;
    right: -2px;
  }
}

.cc-title {
  font-weight: bold;
}

a.cc-reserver {
  display: block;
  color: white;
  font-weight: 600;
  background-color: var(--e-global-color-accent);
  width: fit-content;
  margin: 20px auto 0;
  padding: 4px 12px;
  &:hover {
    background-color: #223f83; 
    text-decoration: underline;
  }

  &.complet {
    background-color: rgb(85, 85, 85);
    color: white;
    pointer-events: none;
  }
}


a.cc-spectacle {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  &:hover {
    color: black;
    text-decoration: underline;
  }
}

.elementor .cc-img {
  height: 100%;
}

.elementor .cc-img img {
  height: 100%;
  object-fit: cover;
}
