.creativenews {
    position: relative;
    display: inline-block;
    margin-top: auto;
    margin-bottom: auto;
}

/* ------- Activator ------- */

.creativenews-activator {
    cursor: pointer;
    display: inline-block;
    position: relative;
    padding-right: 1rem;
    padding-left: 1rem;
}

.creativenews-icon-color {
    fill: var(--cn-icon-desktop-color);
}

.creativenews-icon {
    position: relative;
    display: none;
    text-align: center;
}

.creativenews-icon.mobile {
    display: none;
}

.creativenews-icon.desktop {
    display: block;
}

.creativenews-icon-text {
    position: relative;
    z-index: 10;
    color: var(--cn-icon-desktop-color);
}

.creativenews-icon svg {
    position: relative;
    z-index: 10;
    width: 17px;
    height: 17px;
}

.creativenews-notification {
    display: none;
    position: absolute;
    width: 17px;
    height: 17px;
    background-color: var(--cn-notification-background-color);
    color: var(--cn-notification-text-color);
    font-size: 10px;
    font-weight: 700;
    padding-right: 1px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

svg + .creativenews-notification {
    right: -10px;
    top: -8px;
}

span + .creativenews-notification {
    right: -8px;
    top: -5px;
}

@media (max-width: 767px) {
    .creativenews-icon-color {
        fill: var(--cn-icon-mobile-color);
    }
    
    .creativenews-icon-text {
        color: var(--cn-icon-mobile-color);
    }

    .creativenews-icon.mobile {
        display: block;
    }

    .creativenews-icon.desktop {
        display: none;
    }
}
/* ------- Container ------- */

.creativenews-container {
    display: none;
    position: absolute;
    top: 50px;
    right: 10px;
    width: 400px;
    max-height: 500px;
    background-color: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: var(--cn-news-padding) var(--cn-border-padding);
    z-index: 1000;
    overflow: auto;
    scrollbar-width: thin;
}

@media (max-width: 767px) {
    .creativenews-container {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: var(--cn-border-padding);
    }
}

.creativenews-container.focus {
    padding: 0;
}

/* ------- News ------- */

.creativenews-news {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: var(--cn-news-padding) 0;
    position: relative;
}

.creativenews-news-separator:not(:last-child)::after {
    content: "";
    background: #c0c0c0;
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translate(50%, -50%);
    height: 1px;
    width: 75%;
}

.creativenews-image-container {
    flex: 0 0 75px;
    margin-right: 10px;
    position: relative;
}

.creativenews-image {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 7px;
}

.creativenews-back {
    width: 30px;
    height: 30px;
    background-color: #FFFFFF;
    display: none;
    position: absolute;
    top: 20px;
    left: 18px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 50;
}

.creativenews-close {
    z-index: 50;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 20px;
    display: none;
    right: 30px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.creativenews-back img,
.creativenews-close img {
    width: 15px;
    height: 15px;
}

@media (max-width: 767px) {
    .creativenews-container:not(.focus) .creativenews-close {
        display: flex;
    }
}

.creativenews-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.creativenews-title {
    color: var(--cn-title-text-color);
    font-size: var(--cn-title-font-size);
    font-weight: bold;
    margin: 0 0 8px;
}

.creativenews-subtitle {
    color: var(--cn-subtitle-text-color);
    font-size: var(--cn-subtitle-font-size);
    margin: 0;
}

.creativenews-focused-texts {
    margin: 8px 0;
    display: none;
}

.creativenews-text {
    margin: 0;
}

.creativenews-text ul {
    padding-inline-start: 40px;
    list-style: disc !important;
}

.creativenews-text p, .creativenews-text div, .creativenews-text li {
    font-size: var(--cn-content-font-size);
    color: var(--cn-content-text-color);
}

.creativenews-button {
    padding: 0.4rem;
    margin-bottom: 8px;
    font-size: var(--cn-button-font-size);
    width: 100%;
    display: block;
    font-weight: bold;
    text-align: center;
    background-color: var(--cn-button-background-color);
    color: var(--cn-button-text-color) !important;
    border-radius: 3px;
    cursor: pointer;
}

.creativenews-button:hover {
    background-image: linear-gradient(rgb(0 0 0/10%) 0 0);
}

.creativenews-indicator {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--cn-indicator-background-color);
    color: var(--cn-indicator-text-color);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 1px 10px;
    border-radius: 3px;
}

.creativenews-news.selected {
    flex-direction: column;
    width: 100%;
    cursor: default;
    padding: 0;
}

.creativenews-container .creativenews-news.selected::after {
    display: none;
}

.creativenews-news.selected .creativenews-image {
    width: 100%;
    height: 180px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

@media (max-width: 767px) {
    .creativenews-news.selected .creativenews-image {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

.creativenews-news.selected .creativenews-back {
    display: flex;
}

.creativenews-news.selected .creativenews-image-container {
    width: 100%;
    margin: 0;
}

.creativenews-news.selected .creativenews-text-container {
    order: 1;
    padding-top: 1rem;
    width: 100%;
    padding: 1rem 2rem;
}

.creativenews-news.selected .creativenews-focused-texts {
    display: block;
}

.creativenews-news.hidden {
    display: none;
}

.creativenews-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    margin-bottom: 8px;
}

.creativenews-choice {
    position: relative;
}

.creativenews-choice input[type="checkbox"] {
    display: none;
}

.creativenews-choice label {
    margin-bottom: 0;
    color: var(--cn-choice-text-color);
    cursor: pointer;
}

.creativenews-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;
}

.creativenews-choice input[type="checkbox"]:checked + label:before {
    background-color: var(--cn-choice-color);
    box-shadow: inset 0 0 0 4px #fff;
}

.creativenews-mail-input {
    border-radius: 3px;
    border: 1px solid #646464;
    margin-bottom: 8px;
    outline: none !important;
    font-size: var(--cn-button-font-size);
    padding-left: 5px;
    height: 30px;
    font-weight: 500;
    width: 100%;
}

.creativenews-mail-input::placeholder {
    font-size: var(--cn-button-font-size);
    font-weight: 500;
}

.creativenews-card-mail-message {
    height: 1px;
}

.creativenews-mail-success {
    color: #287e00;
    display: none;
    font-size: var(--cn-button-font-size);
    margin-bottom: 0;
}

.creativenews-mail-error-format, .creativenews-mail-error-already {
    color: #b40000;
    display: none;
    font-size: var(--cn-button-font-size);
    margin-bottom: 0;
}

/* ------- No News ------- */

.creativenews-no-news {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* ------- Accordion Variant ------- */

.creativenews-container.focus.accordion {
    padding: var(--cn-news-padding) var(--cn-border-padding);
}

.accordion .creativenews-news.hidden {
    display: flex;
}

.accordion .creativenews-news.selected {
    cursor: pointer;
    padding: var(--cn-news-padding) 0;
}

.accordion .creativenews-news.selected::after {
    display: block;
}

.accordion .creativenews-image {
    transition: height ease 0.3s, width ease 0.3s;
}

.accordion .creativenews-news.selected .creativenews-image {
    border-radius: 7px;
}

.accordion .creativenews-news.selected .creativenews-text-container {
    padding: 1rem 0 0 0;
}

.accordion .creativenews-back {
    display: none !important;
}

.accordion .creativenews-focused-texts {
    margin-bottom: 0;
}