:root {
    --low-price-color: #007363;
    --normal-price-color: #ffffff;
    --high-price-color: #C1554C;
    --low-price-month-color: var(--low-price-color);
    --normal-price-month-color: #d3932b;
    --high-price-month-color: var(--high-price-color);
}

.pdw-prices-calendar {
    margin-bottom: 30px;
}

.pdw-prices-calendar .pdw-table-calendar table {
    width: 100%;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    table-layout: fixed;
}

.pdw-prices-calendar .pdw-table-calendar thead tr th {
    font-size: 12px;
    padding: 5px;
    text-align: center;
}

.pdw-prices-calendar .pdw-table-calendar thead tr:first-child th {
    font-size: 16px;
    padding: 15px 15px 10px 15px;
    text-align: center;
}

.pdw-prices-calendar .pdw-table-calendar tbody tr:first-child td {
    padding-top: 6px;
}

.pdw-prices-calendar .pdw-table-calendar tbody tr:last-child td {
    padding-bottom: 6px;
}

.pdw-prices-calendar .pdw-table-calendar tr td {
    padding: 3px;
    border: none;
}

.pdw-prices-calendar .pdw-day {
    position: relative;
    border-radius: 5px;
    padding: 100% 0 0 0;
    text-align: right;
    line-height: 1;
    color: #fff;
    background: #eee;
    overflow: hidden;
}

.pdw-prices-calendar .pdw-day.pdw-day-type-1 {
    background: var(--low-price-color);
}

.pdw-prices-calendar .pdw-day.pdw-day-type-2 {
    background: var(--normal-price-color);
    color: #000;
    border: 1px solid #ccc;
}

.pdw-prices-calendar .pdw-day.pdw-day-type-3 {
    background: var(--high-price-color);
}

.pdw-prices-calendar .pdw-day:not(.pdw-day-type-):after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
    background: linear-gradient(135deg, transparent 0%, transparent 49.999999%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.3) 100%);
}

.pdw-prices-calendar .pdw-day .pdw-date {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    font-size: 10px;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-bottom-left-radius: 5px;
}

.pdw-prices-calendar .pdw-day .pdw-day-price {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9;
    display: flex;
    align-items: start;
    justify-content: flex-end;
    flex-direction: column-reverse;
    gap: 5px;
    font-size: 14px;
    font-weight: normal;
    padding: 5px;
}
.night.pdw-prices-calendar .pdw-day .pdw-day-price {
    font-size: 24px;
}

.pdw-prices-calendar .pdw-day .pdw-night-price {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 8;
    display: flex;
    align-items: end;
    justify-content: flex-end;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    font-weight: normal;
    padding: 5px;
}
.night.pdw-prices-calendar .pdw-day .pdw-night-price {
    font-size: 24px;
}

.pdw-prices-calendar .pdw-prices-calendar .glide {
    position: relative;
}

.pdw-prices-calendar .pdw-calendar-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pdw-prices-calendar .pdw-calendar-controls .pdw-calendar-control {
    color: #fff;
    cursor: pointer;
    appearance: none;
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
}

.pdw-prices-calendar .pdw-calendar-title {
    text-align: center;
}

.pdw-calendar-price-table-title {
    font-family: Cinzel, serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1px;
    font-style: normal;
    margin-bottom: 10px;
}

.pdw-calendar-price-table-wrapper {
    background: #f1f1f1;
    border-radius: 5px;
    padding: 15px 10px;
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

.pdw-calendar-price-table {
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    width: 100%;
}

.pdw-calendar-price-table > div {
    font-weight: bold;
    font-size: 14px;
    position: relative;
    flex-grow: 1;
    overflow: hidden;
    width: 100%;
    padding: 0 3px 10px 3px;
}

.pdw-calendar-price-table > div:after {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    border: 6px solid transparent;
    border-bottom-color: black;
    transform: translateX(-50%);
}

.pdw-calendar-price-table > div {
    border-bottom: 4px solid transparent;
}

.pdw-calendar-price-table .pdw-calendar-price-low {
    border-bottom-color: var(--low-price-color);
}

.pdw-calendar-price-table .pdw-calendar-price-low:after {
    border-bottom-color: var(--low-price-color);
}

.pdw-calendar-price-table .pdw-calendar-price-normal {
    border-bottom-color: var(--normal-price-color);
}

.pdw-calendar-price-table .pdw-calendar-price-normal:after {
    border-bottom-color: var(--normal-price-color);
}

.pdw-calendar-price-table .pdw-calendar-price-high {
    border-bottom-color: var(--high-price-color);
}

.pdw-calendar-price-table .pdw-calendar-price-high:after {
    border-bottom-color: var(--high-price-color);
}

.night.pdw-prices-calendar .pdw-day .pdw-night-price {
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
}

.night.pdw-prices-calendar .pdw-day:not(.pdw-day-type-):after {
    background: rgba(0, 0, 0, 0);
}

@media (max-width: 768px) {
    .pdw-prices-calendar .pdw-day .pdw-day-price,
    .pdw-prices-calendar .pdw-day .pdw-night-price {
        font-size: 2vw;
        gap: 1vw;
        padding: 3px;
    }

    .pdw-prices-calendar .pdw-day .pdw-day-price svg {
        width: 2.8vw;
        height: auto;
    }

    .pdw-prices-calendar .pdw-day .pdw-night-price svg {
        width: 1.6vw;
        height: auto;
    }

    .pdw-prices-calendar .pdw-day .pdw-date {
        width: 3.2vw;
        height: 3.2vw;
        font-size: 2vw;
    }

    .night.pdw-prices-calendar .pdw-day .pdw-night-price {
        font-size: 3.5vw;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .pdw-prices-calendar .pdw-day .pdw-day-price,
    .pdw-prices-calendar .pdw-day .pdw-night-price {
        font-size: 1.9vw;
        gap: .5vw;
        padding: 3px;
    }

    .pdw-prices-calendar .pdw-day .pdw-day-price svg {
        width: 1.4vw;
        height: auto;
    }

    .pdw-prices-calendar .pdw-day .pdw-night-price svg {
        width: 0.8vw;
        height: auto;
    }

    .pdw-prices-calendar .pdw-day .pdw-date {
        width: 1.6vw;
        height: 1.6vw;
        font-size: 1vw;
    }
}

/*Ligne du temps*/
.table-2 table thead.pdw-color-janvier,
.table-2 table thead.pdw-color-fevrier,
.table-2 table thead.pdw-color-mars,
.table-2 table thead.pdw-color-decembre {
    border-color: var(--high-price-month-color);
    background: var(--high-price-month-color);
}

.pdw-calendar-price-table .pdw-color-janvier,
.pdw-calendar-price-table .pdw-color-fevrier,
.pdw-calendar-price-table .pdw-color-mars,
.pdw-calendar-price-table .pdw-color-decembre,
.pdw-calendar-price-table .pdw-color-janvier:after,
.pdw-calendar-price-table .pdw-color-fevrier:after,
.pdw-calendar-price-table .pdw-color-mars:after,
.pdw-calendar-price-table .pdw-color-decembre:after {
    border-bottom-color: var(--high-price-month-color);
}

.table-2 table thead.pdw-color-avril,
.table-2 table thead.pdw-color-mai,
.table-2 table thead.pdw-color-octobre,
.table-2 table thead.pdw-color-novembre {
    border-color: var(--normal-price-month-color);
    background: var(--normal-price-month-color);
}

.pdw-calendar-price-table .pdw-color-avril,
.pdw-calendar-price-table .pdw-color-mai,
.pdw-calendar-price-table .pdw-color-octobre,
.pdw-calendar-price-table .pdw-color-novembre,
.pdw-calendar-price-table .pdw-color-avril:after,
.pdw-calendar-price-table .pdw-color-mai:after,
.pdw-calendar-price-table .pdw-color-octobre:after,
.pdw-calendar-price-table .pdw-color-novembre:after {
    border-bottom-color: var(--normal-price-month-color);
}

.table-2 table thead.pdw-color-juin,
.table-2 table thead.pdw-color-juillet,
.table-2 table thead.pdw-color-aout,
.table-2 table thead.pdw-color-septembre {
    border-color: var(--low-price-month-color);
    background: var(--low-price-month-color);
}

.pdw-calendar-price-table .pdw-color-juin,
.pdw-calendar-price-table .pdw-color-juillet,
.pdw-calendar-price-table .pdw-color-aout,
.pdw-calendar-price-table .pdw-color-septembre,
.pdw-calendar-price-table .pdw-color-juin:after,
.pdw-calendar-price-table .pdw-color-juillet:after,
.pdw-calendar-price-table .pdw-color-aout:after,
.pdw-calendar-price-table .pdw-color-septembre:after {
    border-bottom-color: var(--low-price-month-color);
}

.pdw-name-short{
    text-transform: capitalize;
}
.pdw-name-long {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .pdw-calendar-price-table {
        overflow: auto;
    }
    .pdw-calendar-price-table > div {
        flex-shrink: 0;
        width: auto;
    }
    .pdw-name-long {
        display: none;
    }
}

@media (min-width: 769px) {
    .pdw-name-short {
        display: none;
    }
}
@media (max-width: 480px) {
    .pdw-calendar-price-table {
        overflow: visible;
        padding-top: 24px;
    }
    .pdw-calendar-price-table > div{
        overflow: visible;
    }
    .pdw-calendar-price-table .pdw-name-long{
        display: block;
        position: absolute;
        top: -24px;
        overflow: visible;
    }
    .pdw-calendar-price-table > *:nth-child(1) .pdw-name-long{
        left: 0;
    }
    .pdw-calendar-price-table > *:nth-child(12) .pdw-name-long{
        right: 0;
    }
    .pdw-calendar-price-table .pdw-name-short{
        display: none;
    }
    .pdw-calendar-price-table > *:nth-child(2) .pdw-name-long,
    .pdw-calendar-price-table > *:nth-child(3) .pdw-name-long,
    .pdw-calendar-price-table > *:nth-child(4) .pdw-name-long,
    .pdw-calendar-price-table > *:nth-child(5) .pdw-name-long,
    .pdw-calendar-price-table > *:nth-child(7) .pdw-name-long,
    .pdw-calendar-price-table > *:nth-child(8) .pdw-name-long,
    .pdw-calendar-price-table > *:nth-child(9) .pdw-name-long,
    .pdw-calendar-price-table > *:nth-child(10) .pdw-name-long,
    .pdw-calendar-price-table > *:nth-child(11) .pdw-name-long {
        display: none;
    }
}