.happycalendar-title {
    font-size: var(--hc-section-title-font-size);
    color: var(--hc-section-title-color);
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
}

.happycalendar-categories {
    display: flex;
    position: relative;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.happycalendar-categories::-webkit-scrollbar {
    display: none;
}

.happycalendar-category-container {
    display: flex;
    position: relative;
    margin: 0 auto;
    --active-bar-left: 0px;
    --active-bar-width: 0px;
}

.happycalendar-category-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0; 
    height: var(--hc-slider-height);
    background-color: var(--hc-slider-inactive-color);
    z-index: 5;
    border-radius: 2.5px;
    box-sizing: border-box;
}

.happycalendar-category-container::before {
    content: "";
    position: absolute;
    bottom: 0;
    height: var(--hc-slider-height);
    z-index: 10;
    background-color: var(--hc-slider-active-color);
    border-radius: 2.5px;
    transition: left 0.3s;
    left: var(--active-bar-left);
    width: var(--active-bar-width);
}

.happycalendar-category {
    padding: var(--hc-slider-padding-y) var(--hc-slider-padding-x);
    margin-bottom: 7px;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color: transparent;
    color: var(--hc-categories-color);
    font-size: var(--hc-categories-font-size);
    position: relative;
}

.happycalendar-category-active {
    font-weight: bold;
}

.happycalendar-section {
    padding: 20px;
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 50px 75px;
}

.happycalendar-card {
    display: flex;
}

.happycalendar-card.vertical {
    flex-direction: column;
}

.happycalendar-card.horizontal {
    flex-direction: row;
}

.happycalendar-card-image {
    width: var(--hc-cards-image-width);
    height: var(--hc-cards-image-height);
    display: block;
}

.happycalendar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--hc-cards-border-radius);
}

.happycalendar-card.horizontal .happycalendar-card-texts {
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 30px;
    width: calc(var(--hc-cards-image-width) + 50px);
    white-space: initial;
}

.happycalendar-card.vertical .happycalendar-card-texts {
    margin-top: 15px;
    margin-left: 0px;
    width: var(--hc-cards-image-width);
    white-space: initial;
}

.happycalendar-card-texts-title {
    font-size: var(--hc-cards-title-font-size);
    color: var(--hc-cards-title-color);
    margin-bottom: 8px;
}

.happycalendar-card-texts-content * {
    font-size: var(--hc-cards-content-font-size);
    color: var(--hc-cards-content-color);
}

.happycalendar-card-texts-content ul {
    padding-inline-start: 40px;
    list-style: disc !important;
}

.happycalendar-card-texts-content {
    margin-bottom: 17px;
    margin-top: 15px;
    color: var(--hc-cards-content-color);
}

.happycalendar-card-texts-date {
    font-size: var(--hc-cards-date-font-size);
    color: var(--hc-cards-date-color);
    margin-bottom: 8px;
}

.happycalendar-card-texts-button {
    font-size: var(--hc-cards-button-font-size);
    padding: 0.4rem;
    width: 100%;
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
    background-color: var(--hc-cards-button-color);
    color: var(--hc-cards-button-text-color) !important;
    border-radius: var(--hc-cards-button-border-radius);
    cursor: pointer;
}

.happycalendar-card-texts-button:hover {
    color: var(--hc-cards-button-text-color) !important;
    background-color: var(--hc-cards-button-hover-color);
}

.happycalendar-card-mail-input {
    border-radius: var(--hc-cards-button-border-radius);
    border: 1px solid #646464;
    margin-bottom: 8px;
    outline: none !important;
    font-size: var(--hc-cards-button-font-size);
    padding-left: 5px;
    height: 30px;
    font-weight: 500;
}

.happycalendar-card.image {
    position: relative;
    background-size: cover;
    background-position: center;
    min-width: calc(var(--hc-cards-image-width) * 1.5);
    max-width: calc(var(--hc-cards-image-width) * 1.5);
    height: calc(var(--hc-cards-image-height) * 1.5);
    border-radius: var(--hc-cards-border-radius);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
}

.happycalendar-card.image .happycalendar-card-texts {
    margin-top: auto;
    margin-bottom: auto;
    white-space: initial;
}

.happycalendar-card.image .happycalendar-card-texts-title,
.happycalendar-card.image .happycalendar-card-texts-content,
.happycalendar-card.image .happycalendar-card-texts-date {
    padding: 5px 10px;
    border-radius: var(--hc-cards-border-radius);
    text-align: center;
    margin-bottom: 0px;
    margin-top: 0px;
}

.happycalendar-card.image .happycalendar-card-mail-input {
    border: none;
    width: calc((var(--hc-cards-image-width) * 1.5) - 60px);
}

.happycalendar-card.image .happycalendar-card-choice label:before {
    border: none;
}

.happycalendar-card.image .happycalendar-card-image {
    display: none;
}

.happycalendar-card.horizontal .happycalendar-card-mail-input {
    width: calc(var(--hc-cards-image-width) + 50px);
}

.happycalendar-card.vertical .happycalendar-card-mail-input {
    width: var(--hc-cards-image-width);
}

.happycalendar-card-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    margin-bottom: 8px;
}

.happycalendar-card-choice {
    position: relative;
}

.happycalendar-card-choice input[type="checkbox"] {
    display: none;
}

.happycalendar-card-choice label {
    margin-bottom: 0;
    color: var(--hc-cards-choice-text-color);
    cursor: pointer;
}

.happycalendar-card-choice label:before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #646464;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.happycalendar-card-choice input[type="checkbox"]:checked + label:before {
    background-color: var(--hc-cards-choice-color);
    box-shadow: inset 0 0 0 4px #fff;
}

.happycalendar-card-mail-input::placeholder {
    font-size: var(--hc-cards-button-font-size);
    font-weight: 500;
}

.happycalendar-card-mail-message {
    height: 1px;
}

.happycalendar-card-mail-success {
    color: #287e00;
    display: none;
    font-size: var(--hc-cards-button-font-size);
    margin-bottom: 0;
}

.happycalendar-card-mail-error-format, .happycalendar-card-mail-error-already {
    color: #b40000;
    display: none;
    font-size: var(--hc-cards-button-font-size);
    margin-bottom: 0;
}

.happycalendar-hidden {
    display: none;
}

@media screen and (max-width: 767px) {
    .happycalendar-section {
        overflow-x: scroll;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
        justify-content: left;
        gap: none;

    }

    .happycalendar-section::-webkit-scrollbar {
        display: none;
    }

    .happycalendar-card.horizontal {
        flex-direction: column;
    }

    .happycalendar-card.horizontal .happycalendar-card-texts {
        margin-top: 15px;
        margin-bottom: none;
        margin-left: 0px;
        width: var(--hc-cards-image-width);
    }

    .happycalendar-card.horizontal .happycalendar-card-mail-input {
        width: var(--hc-cards-image-width);
    }
}
