/**
 * Jewish Datepicker 1.0.0
 * Jewish Datepicker with amazing ui
 * https://imStudiomM.co.il
 *
 * Copyright 2023 Shahar Avital | Studio M
 *
 * Released under the MIT License
 *
 */

@import url('https://fonts.googleapis.com/css2?family=Arimo:wght@400;500;600;700&display=swap');

:root {
    --main-color: #673ab7;
}


.jewish_datepicker_wrapper.off {
    pointer-events: none !important;
    opacity: 0 !important;
    transform: translate(0, 20px) !important;
}

.jewish_datepicker_wrapper {
    font-family: 'Arimo', sans-serif;
    max-width: 240px;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    box-shadow: 0px 7px 20px -4px black;
    direction: rtl;
    text-align: right;
    position: absolute;
    opacity: 1;
    transform: translate(0);
    transition: all .4s;

}



.jewish_datepicker_inner {
    display: flex;
    flex-direction: column;
}

/* .jewish_datepicker_inner:after {
    content: "";
    width: 15px;
    height: 15px;
    position: absolute;
    top: -6px;
    right: 0;
    left: 0;
    z-index: 3;
    background-color: var(--main-color);
    margin: auto;
    transform: rotate(45deg);
    border-radius: 3px;
} */
header.jewish_datepicker_header.hide {
    display: none;
}
header.jewish_datepicker_header {
    padding: 20px 10px;
    text-align: center;
    background-color: var(--main-color);
    color: white;
    position: relative;
    font-size: 20px;
    letter-spacing: -1px;
}

.g_date {
   /*  position: absolute; */
    width: fit-content;
    height: fit-content;
    left: 0;
    right: 0;
    margin: auto;
    font-size: 290%;
    font-size: 20px;
    top: 0;
    bottom: 0;
    line-height: 1;
    opacity: 0.6;
    font-weight: 400;
    letter-spacing: 4px;
}



nav.jewish_datepicker_nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F5F5F5;
}
button.jewish_datepicker_nav_prev,
button.jewish_datepicker_nav_next {
    border: none;
    background: none;
    padding: 9px;
    opacity: 0;
    pointer-events: none;
    display: none;
}
button.jewish_datepicker_nav_prev svg,
button.jewish_datepicker_nav_next svg {
    width: 20px;
    height: 10px;
    fill: #000 !important;
}
button.jewish_datepicker_nav_prev img,
button.jewish_datepicker_nav_next img {
    width: 17px;
}

button.jewish_datepicker_nav_prev {
    margin-left: auto;
}


header.jewish_datepicker_header.hide + nav.jewish_datepicker_nav select {
    padding-block: 5px;
}

.j_month,
.j_year {
    margin: 0 6px;
    border: none;
    background: none;
}

.j_year option[data-this-year="1"] {
    color: #9c27b0;
    font-weight: bolder;
    letter-spacing: 1px ;
}


.j_year {}

.j_month {}

.j_month_lamp {}

button.jewish_datepicker_nav_next {
    margin-right: auto;
}

section.jewish_datepicker_section {
    background-color: #fff;
    padding: 10px;
}

.jewish_datepicker_section_week {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

span.jewish_datepicker_week_day {
    padding: 2px;
}

.jewish_datepicker_section_month {
    display: flex;
    flex-wrap: wrap;
    padding-top: 10px;
    min-height: 120px;
}
.jewish_datepicker_section_month:empty{
    position: relative;
}
.jewish_datepicker_section_month:empty::after{
    content: '';
    display: block;
    position: absolute;
    width: 80px;
    height: 80px;
    border: 8px solid #00000025;
    border-top: 8px solid #00000054;
    border-radius: 50%;
    animation: datepicker_spin .9s linear infinite;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;

}

span.jewish_datepicker_month_day:not(.empty):not([data-holyday="0"]) {
    color: var(--main-color);
    position: relative;
    z-index: 0;
}

span.jewish_datepicker_month_day:not(.empty):not([data-holyday="0"]):after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    opacity: 0.1;
}
span.jewish_datepicker_month_day.today:not(.select):before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    border: 1px solid var(--main-color);
}

@keyframes datepicker_spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

span.jewish_datepicker_month_day {
    flex: 0 0 14.28%;
    text-align: center;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

span.jewish_datepicker_month_day:nth-child(7),
span.jewish_datepicker_month_day:nth-child(14),
span.jewish_datepicker_month_day:nth-child(21),
span.jewish_datepicker_month_day:nth-child(28),
span.jewish_datepicker_month_day:nth-child(35) {
    color: var(--main-color);
    font-weight: 900;

}

span.jewish_datepicker_month_day.select {
    background-color: var(--main-color);
    border-radius: 50%;
    color: white !important;
}

span.jewish_datepicker_month_day.today {
    position: relative;
    z-index: 0;
}
span.jewish_datepicker_month_day.today:after {
    content: "";
    width: 100%;
    height: 100%;
    /* background-color: #00000014; */
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    border: 1px solid var(--main-color);
}
span.jewish_datepicker_month_day.isHolyday {
    color: var(--main-color);
}

footer.jewish_datepicker_footer {
    background-color: white;
    padding: 10px;
    display: flex;
}

footer.jewish_datepicker_footer button {
    border: 0;
    min-height: unset;
    background-color: transparent;
    padding: 5px 8px;
    margin: 3px;
    font-size: 1rem;
    color: var(--main-color);
    cursor: pointer;
}

footer.jewish_datepicker_footer button.jewish_datepicker_footer_today {
    margin-left: auto;
    color: #a1a1a1;
}

button.jewish_datepicker_footer_cancel {}

button.jewish_datepicker_footer_apply {}



