/*== Countdown ==*/

.upstudy-countdown-timer-widget .countdown-items {
    position: relative;
    display: inline-block;
    --item-gap: 70px;
}
.upstudy-countdown-timer-widget .countdown-items:not(:last-child) {
    margin-right: var(--item-gap);
}
.upstudy-countdown-timer-widget .countdown-items .ctw-digits {
    position: relative;
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Style 1 */

.upstudy-countdown-timer-widget.countdown-style-1 .countdown-items .ctw-digits {
    height: 110px;
    width: 110px;
    background-color: #F9D464;
    color: #ffffff;
    text-align: center;
}
.upstudy-countdown-timer-widget .countdown-items:not(:last-child) .ctw-digits::before, .upstudy-countdown-timer-widget .countdown-items:not(:last-child) .ctw-digits::after {
    content: "";
    visibility: visible;
    position: absolute;
    z-index: 1;
    right: calc( var(--item-gap)/-2);
    width: 8px;
    height: 8px;
    background-color: #F9D464;
    transform: translateX(50%) translateY(-50%);
}
.upstudy-countdown-timer-widget.countdown-style-1 .countdown-items:nth-child(4n+2) .ctw-digits, .upstudy-countdown-timer-widget .countdown-items:nth-child(4n+2) .ctw-digits::before, .upstudy-countdown-timer-widget .countdown-items:nth-child(4n+2) .ctw-digits::after {
    background-color: #00acee;
}
.upstudy-countdown-timer-widget.countdown-style-1 .countdown-items:nth-child(4n+3) .ctw-digits, .upstudy-countdown-timer-widget .countdown-items:nth-child(4n+3) .ctw-digits::before, .upstudy-countdown-timer-widget .countdown-items:nth-child(4n+3) .ctw-digits::after {
    background-color: var(--upstudy-primary-color);
}
.upstudy-countdown-timer-widget.countdown-style-1 .countdown-items:nth-child(4n+4) .ctw-digits, .upstudy-countdown-timer-widget .countdown-items:nth-child(4n+4) .ctw-digits::before, .upstudy-countdown-timer-widget .countdown-items:nth-child(4n+4) .ctw-digits::after {
    background-color: #554bb9;
}
.upstudy-countdown-timer-widget .countdown-items:not(:last-child) .ctw-digits::before {
    transform: translateX(50%) translateY(110%);
}
.upstudy-countdown-timer-widget .countdown-items:not(:last-child) .ctw-digits::after {
    transform: translateX(50%) translateY(-110%);
}
.upstudy-countdown-timer-widget .countdown-items .ctw-label {
    display: block;
    text-align: center;
    font-size: 15px;
    line-height: 1;
    margin-top: 10px;
    margin-bottom: 0;
}
.upstudy-countdown-timer-widget.countdown-style-1 .finished-message {
    text-align: center;
}
/* Style 2 */

.upstudy-countdown-timer-widget.countdown-style-2 .countdown-items .ctw-digits {
    color: #F9D464;
    font-size: 58px;
}
.upstudy-countdown-timer-widget.countdown-style-2 .countdown-items:nth-child(4n+2) .ctw-digits {
    color: #00acee;
}
.upstudy-countdown-timer-widget.countdown-style-2 .countdown-items:nth-child(4n+3) .ctw-digits {
    color: var(--upstudy-primary-color);
}
.upstudy-countdown-timer-widget.countdown-style-2 .countdown-items:nth-child(4n+4) .ctw-digits {
    color: #554bb9;
}
/* Style 3 */

.upstudy-countdown-timer-widget.countdown-style-3 .ctw-item-wrapper {
    display: flex;
}
.upstudy-countdown-timer-widget.countdown-style-3 .countdown-items:not(:last-child) .ctw-digits::before, .upstudy-countdown-timer-widget.countdown-style-3 .countdown-items:not(:last-child) .ctw-digits::after {
    display: none;
}
.upstudy-countdown-timer-widget.countdown-style-3 .countdown-items {
    --item-gap: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 120px;
    width: 120px;
    background-color: var(--upstudy-color-white);
    box-shadow: 0px 0px 40px 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.upstudy-countdown-timer-widget.countdown-style-3 .countdown-items .ctw-digits {
    font-size: 35px;
}
.upstudy-countdown-timer-widget.countdown-style-3 .countdown-items .ctw-label {
    font-size: 18px;
}
/* media query css */

@media (max-width:493px) {
    .upstudy-countdown-timer-widget .countdown-items .ctw-digits {
        font-size: 26px;
    }
}
@media (max-width:768px) {
    .upstudy-countdown-timer-widget.countdown-style-3 .countdown-items {
        --item-gap: 20px;
    }
    .upstudy-countdown-timer-widget.countdown-style-3 .ctw-item-wrapper {
        display: grid;
        grid-template-columns: auto auto;
    }
    .upstudy-countdown-timer-widget.countdown-style-3 .countdown-items {
        margin-bottom: 20px;
    }
    .upstudy-countdown-timer-widget.countdown-style-3 .countdown-items:nth-child(3) {
        margin-bottom: 0px;
    }
}