/* Persian Datepicker - Yusuf Bahrami */
.datepicker-plot-area {
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
}

/* Disabled State */
.datepicker-plot-area .datepicker-day-view .table-days td.disabled span,
.datepicker-plot-area .datepicker-year-view .year-item-disable,
.datepicker-plot-area .datepicker-month-view .month-item-disable {
  cursor: default;
  background-color: unset;
  color: var(--color-text-dark);
  opacity:0.25;
}
.datepicker-plot-area .datepicker-day-view .table-days td.disabled span:after {
    background-color: currentColor;
    content: "";
    height: 1px;
    position: absolute;
    right: 50%;
    top: 50%;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg) translate(50%, 50%);
    -webkit-transform-origin: top right;
    transform-origin: top right;
    width: 70%;
}
/* Normal Dates */
.datepicker-plot-area .datepicker-day-view .table-days td span,
.datepicker-plot-area .datepicker-year-view .year-item,
.datepicker-plot-area .datepicker-month-view .month-item {
  background-color: #fff;
  color: var(--color-text-dark);
  cursor: pointer;
}

/* روزهای خارج از ماه جاری */
.datepicker-plot-area .datepicker-day-view .table-days td:not(.disabled) span.other-month {
  color: var(--color-text-dark);
  opacity:0.5;
  background: transparent;
}

/* روز جاری */
.datepicker-plot-area .datepicker-day-view .table-days td.today span {
    background-color: unset;
    border-radius: 8px;
    border: solid 1px var(--color-primary);
}
.datepicker-plot-area .datepicker-day-view .table-days td.friday-class span,.datepicker-plot-area .datepicker-day-view .table-days td.weekend span{
  color:var(--color-primary);
}
/* روز انتخاب‌شده */
.datepicker-plot-area .datepicker-day-view .table-days td.selected span,
.datepicker-plot-area .datepicker-year-view .year-item.selected,
.datepicker-plot-area .datepicker-month-view .month-item.selected {
  border-radius:8px;
  background-color: var(--color-primary);
  color: #fff;
}

/* حالت hover */
.datepicker-plot-area .datepicker-day-view .table-days td:not(.disabled) span:hover,
.datepicker-plot-area .datepicker-year-view .year-item:not(.year-item-disable):hover,
.datepicker-plot-area .datepicker-month-view .month-item:not(.month-item-disable):hover {
  border:solid 1px var(--color-primary);
  border-radius:8px;
}

/* مخفی شدن حالت پنهان */
.datepicker-container.pwt-hide {
  display: none;
}

/* موقعیت مطلق برای تقویم (لازم برای نمایش درست) */
.datepicker-container {
  position: absolute;
  z-index: 100000;
}

/*Custom Codes*/
.new-jalali-calendar {
    flex-direction: column;
}
.datepicker-navigator {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    margin-bottom:16px;
}
.pwt-btn.pwt-btn-switch{
  font-weight:700;
  font-variation-settings:"wght" 700;
  direction:ltr;
}
.pwt-btn.pwt-btn-next:before,.pwt-btn.pwt-btn-prev:before {
    display: block;
    height: 32px;
    width: 32px;
    cursor: pointer;
}
.pwt-btn.pwt-btn-next:before {
    content: url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="0.5" y="0.5" width="31" height="31" rx="15.5" fill="white"/><rect x="0.5" y="0.5" width="31" height="31" rx="15.5" stroke="%23DDDDDD"/><path d="M18.2144 10.5718L13.0715 15.7146L18.2144 20.8575" stroke="%23333333" stroke-width="1.92857" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
.pwt-btn.pwt-btn-prev:before {
    content: url('data:image/svg+xml,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="0.5" y="0.5" width="31" height="31" rx="15.5" fill="white"/><rect x="0.5" y="0.5" width="31" height="31" rx="15.5" stroke="%23DDDDDD"/><path d="M18.2144 10.5718L13.0715 15.7146L18.2144 20.8575" stroke="%23333333" stroke-width="1.92857" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    transform:rotate(180deg);
}
.new-jalali-calendar .month-grid-box .header{
  margin-bottom:12px;
}
.new-jalali-calendar .month-grid-box .header-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size:11px;
    line-height:16px;
}
.header-row-cell{
  display:flex;
  width:48px;
  align-items:center;
  justify-content: center;
}
td:has(.other-month) {
    visibility: hidden;
}
.new-jalali-calendar .month-grid-box table td {
    width: 48px;
    height: 48px;
    position:relative;
}
.datepicker-plot-area .datepicker-day-view .table-days td span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/*Mounth Picker*/
.datepicker-month-view {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    justify-items: center;
    width: 100%;
}

.month-item {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*Year Picker*/
.datepicker-year-view {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap:24px;
}
.year-item {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/*Toolbox*/
.toolbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}
.pwt-btn-today{
  color:var(--color-primary);
}
.pwt-btn-today,.pwt-btn-calendar{
  cursor:pointer;
}



/*Weather Card*/
/*Calendar*/
.weather-carousel-container {
    margin-bottom: 28px;
    box-sizing: border-box;
}

.calendar-top-row,.carousel-top-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 12px;
}
.show-calendar,.hide-calendar{
  color:#3399F2;
  font-weight:500;
  font-variation-settings:"wght" 500;
  font-size:14px;
  line-height:24px;
  background-color:unset;
}
.slider-calendar-arrows {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    gap: 12px !important;
}

.slider-calendar-arrow {
    width: 32px !important;
    height: 32px !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
}

.calendar-heading {
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
}

.weather-card,.carousel-show-calendar {
    height: 88px;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border: solid 1px rgba(221, 221, 221, 1);
    border-radius: 10px;
    cursor: pointer;
    padding: 4px 3.25px;
    box-sizing: border-box;
}

.carousel-show-calendar {
    background: unset;
}

.weather-card.selected {
    border-color: rgba(255, 38, 64, 1);
}

.weather-card label {
    cursor: pointer;
    color: var(--color-text-dark);
    text-align: center;
    line-height: 24px;
    font-size: 14px;
    font-weight: 400;
    display:flex;
    flex-direction:column;
    gap:4px;
    margin:0;
}
.day {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
span.today-label {
    margin-right: 2px;
    font-size: 12px;
}
.weather-card .gregorian{
  color:#727272;
  font-size:12px;
  font-weight:400;
  font-variation-settings:"wght" 400;
}
.weather-card.selected .gregorian {
  color: rgba(255, 38, 64, 1);
}
.weather-card.selected label {
    font-weight: 500;
    color: rgba(255, 38, 64, 1);
}
.calendar-day-notice{
    display:flex;
    align-items:center;
    gap:4px;
    font-size:12px;
    font-weight:400;
    font-variation-settings:"wght" 400;
    color: var(--color-text-dark);
    margin-top:16px;
}
@media screen and (max-width:768px) {
    .slider-calendar-arrows{
        display:none !important;
    }
    .weather-carousel-container{
        margin-bottom:20px;
    }
    .calendar-top-row{
        margin-bottom:16px;
    }
    .calendar-heading{
        font-size:18px;
    }
  	.weather-card label{
  	  font-size:12px;
  	}
    .calendar-day-notice{
    gap:8px;
    margin-top:12px;
    }
}