:root {
    --cc-orange: #FF4000;
    --cc-gray-bg: #F5F3EF;
    --cc-gray-muted: #EAE9E7;
    --cc-gray-muted-foreground: #7A7773;
    --cc-foreground: #0D0D0D;
    --cc-green: #00992B;
    --cc-white: #fff;
    --cc-radius: 12px;
    --cc-rounded-full: 9999px;
    --cc-radius-sm: 8px;
}

body:has(.cc-header) {
    background: linear-gradient(to right, var(--cc-white) 0%, var(--cc-white) 50%, var(--cc-gray-bg) 50%, var(--cc-gray-bg) 100%);
    min-height: 100vh;
    display: block;
}

.cc-header {
    max-width: 1344px;
    margin: 0 auto;
    padding: 20px 24px 16px;
    width: 100%;
}

.cc-logo {
    height: 32px;
    width: auto;
    display: block;
}

.cc-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1344px;
    margin: 0 auto;
    align-items: start;
    padding-bottom: 60px;
}

/* left column styles */

.cc-left {
    padding: 80px 110px 0;
}

.cc-heading {
    font-family: 'Hotmart Display', serif;
    max-width: 430px;
    font-size: 36px;
    font-weight: 700;
    color: var(--cc-foreground);
    line-height: 1.25;
    margin-bottom: 28px;
}

.cc-heading-accent {
    color: var(--cc-orange);    
}

.cc-features {
    max-width: 430px;
    list-style: none;
    margin: 0 0 24px;
    padding: 12px;
}

.cc-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--cc-foreground);
}

.cc-feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background-color: var(--cc-gray-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--cc-rounded-full);
}

.cc-cta-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cc-cta-btn,
.open-btn.cc-cta-btn {
    width: 100%;
    background: var(--cc-orange);
    color: var(--cc-white);
    border: none;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0%;
    border-radius: var(--cc-rounded-full);
    cursor: pointer;
    transition: transform 0.15s;
}

.cc-cta-btn:hover,
.open-btn.cc-cta-btn:hover {
    transform: translateY(-1px);
}

.cc-timer {
    text-align: center;
    font-size: 14px;
    color: var(--cc-foreground);
    margin: 0;
}

.cc-timer span {
    font-weight: 700;
}

/* rigth column styles */

.cc-right {
    padding: 0 110px;
}

@media (min-width: 781px) {
    .cc-right {
        display: flex;
        flex-direction: column;
        min-height: 600px;
    }
}

.cc-chat-fake-messages-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 0 0 60px;
    min-height: 205px;
}

.cc-chat-fake-messages-wrap {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.cc-chat-fake-message {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 168px;
    height: 48px;
    background-color: var(--cc-white);
    border-radius: 32px 32px 4px 32px;
}

.cc-chat-fake-message > span {
    display: block;
    width: 104px;
    height: 8px;
    background-color: var(--cc-gray-muted);
    border-radius: 2px;
}

.cc-chat-fake-message-user-avatar{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--cc-orange);
    border-radius: var(--cc-rounded-full);
    margin-top: 12px;
}

.cc-chat-fake-message-user-avatar img {
    color: var(--cc-white);
    filter: brightness(0) invert(1);
    width: 24px;
    height: 24px;
}


.cc-chat-fallback-message-preview{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
}

.cc-chat-fallback-message{
    position: relative;
    height: 100%;
    max-height: 130px;
    padding: 16px 28px;
    background-color: #7A7773;
    color: var(--cc-white);
    border-radius:4px 28px 28px 28px;
}

.cc-fallback-message:has(> img){
    height: 130px;
    overflow: hidden;
    position: relative;
}

.cc-fallback-message > img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 28px 28px 28px 4px;
}

.cc-free-content-tag {
    position: absolute;
    top: 16px;
    left: 130px;
    width: fit-content;
    height: fit-content;
    background-color: var(--cc-green);
    color: var(--cc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0%;
    border-radius: 6px;
    padding: 0 6px;
    z-index: 1;
}

.cc-chat-fake-creator-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background-color: var(--cc-foreground);
    border-radius: var(--cc-rounded-full);
    position: absolute;
    left: -60px;
    bottom: 40px;
    z-index: 2;
}

.cc-chat-fake-creator-avatar img {
    color: var(--cc-white);
    filter: brightness(0) invert(1);
    width: 24px;
    height: 24px;
}



.cc-chat-message-preview {
    min-height: fit-content;
    flex-direction: column;
    gap: 12px;
    background-color: var(--cc-white);
    border-radius: 24px 24px 12px 12px;
    padding:4px;
}

.cc-chat-message-preview > .cc-group-info{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 16px;
}

.cc-chat-message-preview > .cc-group-info> .cc-group-info-content{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cc-group-info > img{
    width: 40px;
    height: 40px;
    border-radius: var(--cc-radius-sm);
    object-fit: contain;
    object-position: center;
}

.cc-group-info> .cc-group-info-content > strong{
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0%;
    color: var(--cc-foreground);
}

.cc-group-info> .cc-group-info-content > small{
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 0%;
    color: var(--cc-foreground);
}

.cc-chat-message-preview-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding: 16px;
    min-height: 100%;
    max-height: 350px;
    background-color: var(--cc-gray-bg);
    border-radius: 0 0 12px 12px;
}

.cc-chat-message-preview-content-messages{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 40px;
}

.message-likes{
 background-color: var(--cc-white);
 border-radius: var(--cc-rounded-full);
 width: fit-content;
 padding: 8px;
 border: 1px solid var(--cc-gray-muted);
}

.cc-chat-message {
    color: var(--cc-white);
    height: 100%;
    max-height: 130px;
    border-radius:12px;
}

.cc-chat-message:has(> img) {
    width:  100%;
    max-width: 250px;
    overflow: hidden;
    position: relative;
    object-fit: contain;
}

.cc-chat-message:has(> p) {
    background-color: var(--cc-foreground);
    padding: 16px 28px;
    width: fit-content;
    max-width: 100%;
}

.cc-chat-message p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    min-width: 0;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0%;
    font-weight: 400;
}

.cc-chat-message > img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.cc-creator-info{
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-creator-info > img {
    width: 32px;
    height: 32px;
    border-radius: var(--cc-rounded-full);
}

.cc-creator-info > span{
    background-color: var(--cc-white);
    padding: 4px 8px;
    border-radius: var(--cc-radius-sm);
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0%;
}

.cc-qr-code-wrap {
    margin-top: 32px;
    padding:0 24px;
    display: none;
    gap: 8px;
}

.cc-qr-code-wrap.has-qrcode {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    object-fit: contain;
    object-position: center;
}

.cc-qr-code-description {
    font-size: 12px;
    color: var(--cc-foreground);
    font-weight: 400;
    line-height: 14px;
    letter-spacing: 0%;
    margin: 0;
    text-align: left;
    padding: 16px 28px;
    background-color: var(--cc-gray-muted);
    border-radius:32px 32px 4px 32px ;
}


.cc-qr-code-image {
    width: 96px;
    height: 96px;
}

.cc-qr-code-image > canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.cc-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--cc-orange);
}

.cc-reminder-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--cc-white);
    color: var(--cc-foreground);
    border: 1px #C3BFB8 solid;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0%;
    border-radius: var(--cc-rounded-full);
    cursor: pointer;
    width: 100%;
}

.cc-reminder-button:hover {
    transform: translateY(-2px);
}

.cc-reminder-button:active {
    transform: translateY(0);
}

@media (max-width: 1250px) {
    .cc-header {
        margin-bottom: 12px;
    }
    .cc-left {
        padding: 0 24px;
    }

    .cc-right {
        padding: 24px;
    }

    .cc-heading, .cc-features {
        max-width: fit-content;
    }

    .cc-qr-code-wrap {
        padding:0 12px;
    }
}

@media (min-width: 781px) {
    .cc-main {
        padding: 16px;
    }
}

@media (max-width: 780px) {
    body:has(.cc-header) {
        background: var(--cc-gray-bg);
    }

    .cc-header {
        margin-bottom: 12px;
        background: var(--cc-gray-bg);
    }

    .cc-main {
        grid-template-columns: 1fr;
        padding-bottom: 0;
        background: var(--cc-gray-bg);
    }

    .cc-left {
        background-color: var(--cc-white);
        padding: 24px;
        border-radius: 24px 24px 0 0;
    }

    .cc-right {
        order: -1;
        background: var(--cc-gray-bg);
        padding: 24px 24px 32px;
    }

    .cc-cta-btn,
    .open-btn.cc-cta-btn {
        max-width: none;
    }

    .cc-reminder-button {
        width: 100%;
        padding: 10px 16px;
        font-size: 12px;
        white-space: nowrap;
    }
}
