@import "../../../../assets/scss/mixin";
.g5plus-countdown{
    text-align: center;
    .countdown-section{
        font-size: 0;
        line-height: 0;
        display: inline-block;
        position: relative;
        text-align: center;
        .countdown-amount{
            font-size: 40px;
            display: block;
            height: 85px;
            width: 85px;
            line-height: 81px;
            text-align: center;
            background-color: #fff;
            margin: auto;
            color: var(--g5-color-secondary);
            border: 2px solid var(--g5-color-accent);
            position: relative;
            font-weight: bold;
        }
        margin: 15px;
        .countdown-period{
            display: inline-block;
            font-size: 18px;
            color: #fff;
            line-height: 1.6;
            font-weight: bold;
        }
    }
    &.cd-circle{
        .countdown-section .countdown-amount{
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            border-radius: 50%;
            &:before{
                content: "";
                position: absolute;
                background-color: transparent;
                top: 3px;
                right: 3px;
                bottom: 3px;
                left: 3px;
                border: 2px dotted var(--g5-color-accent);
                -webkit-border-radius: 50%;
                -moz-border-radius: 50%;
                border-radius: 50%;
            }
        }
        .countdown-period{
            margin-top: 30px;
            border-top: 2px solid var(--g5-color-accent);
        }
    }
    &.cd-dark{
        .countdown-section{
            .countdown-amount{
                background-color: var(--g5-color-accent);
                color: #fff;
                border: 2px solid var(--g5-color-secondary);
                &:before{
                    border: 2px dotted var(--g5-color-secondary);
                }
            }
            .countdown-period{
                color: #000;
            }
        }
    }
    &.cd-square{
        .countdown-section{
            .countdown-amount{
                background-color: var(--g5-color-accent);
                &:before{
                    content: "";
                    position: absolute;
                    background-color: transparent;
                    top: 2px;
                    right: 2px;
                    bottom: 2px;
                    left: 2px;
                    border: 1px dashed var(--g5-color-secondary);
                }
            }
            .countdown-period{
                padding: 5px 0;
                border: 2px solid var(--g5-color-accent);
                width: 100%;
                margin: 0;
                font-size: 16px;
            }
        }
        &.cd-dark{
            .countdown-section{
                .countdown-amount{
                    background-color: var(--g5-color-secondary);
                    &:before{
                        border: 1px dashed var(--g5-color-accent);
                    }
                }
                .countdown-period{
                    border: 2px solid var(--g5-color-secondary);
                }
            }
        }
    }
}