.tiktok-campaign {
    padding: 40px 0;
    min-height: 60vh;
}

.tiktok-hero {
    text-align: center;
}

.tiktok-title,
.tiktok-videos-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-main);
    margin: 0;
    margin-bottom: 16px;
    text-align: center;
}

.tiktok-subtitle {
    font-size: 14px;
    color: #4d5f7d;
    font-weight: 500;
}

.tiktok-subtitle a {
        font-size: 14px;
        color: var(--primary-main);
        -webkit-text-decoration: none;
        text-decoration: none;
    }

.form-response-modal-container .modal-heading a {
    color: black;
    font-size: 20px;
    -webkit-text-decoration: none;
    text-decoration: none;
}

.tiktok-form-section {
    max-width: 700px;
    margin: 0 auto 32px;
    padding: 16px 16px 24px 16px;

    border-radius: 12px;
}

.tiktok-form-section .input-wrapper {
        margin-bottom: 16px;
    }

.tiktok-form-section .input-wrapper label {
            font-weight: 500;
            color: #4d5f7d;
            font-size: 14px;
        }

.tiktok-form-section .tiktok-terms-container label {
        display: block;
        margin-bottom: 6px;
        font-weight: 400;
        color: #4d5f7d;
        font-size: 14px;
    }

.tiktok-form-section input[type="url"] {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 1rem;
        box-sizing: border-box;
        color: #4d5f7d;
    }

.tiktok-form-section input[type="url"]:focus {
        outline: none;
    }

.tiktok-form-section .error-message {
        display: none;
        color: #e53935;
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

.tiktok-form-section .gdpr-container {
        margin-bottom: 12px;
    }

.tiktok-form-section .gdpr-container .radio-container {
            display: inline-flex;
            align-items: flex-start;
            gap: 8px;
        }

.tiktok-form-section .gdpr-container .radio-container label {
                display: block;
                color: #4d5f7d;
                font-size: 14px;
            }

.tiktok-form-section .gdpr-container .radio-container label .gdpr-link {
                    color: #1b1c46;
                    -webkit-text-decoration: underline;
                    text-decoration: underline;
                    font-size: 14px;
                }

.tiktok-form-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.tiktok-error-message {
    display: none;
    color: #e53935;
    font-size: 0.85rem;
    margin-top: 6px;
}

.tiktok-error-message.tiktok-error-message--visible {
    display: block;
}

.tiktok-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 8px;
    background: #fe2c55;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.tiktok-submit-btn .tiktok-btn-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

.tiktok-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.tiktok-terms-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.tiktok-terms-container input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        flex-shrink: 0;
        cursor: pointer;
    }

.tiktok-terms-container label {
        display: inline;
        cursor: pointer;
    }

.tiktok-terms-container a {
        color: #1b1c46;
        -webkit-text-decoration: underline;
        text-decoration: underline;
        font-size: 14px;
    }

.tiktok-terms-error {
    display: none;
    color: #e53935;
    font-size: 0.85rem;
    margin-top: -12px;
    margin-bottom: 12px;
}

.tiktok-videos-section {
    margin-bottom: 40px;
}

.tiktok-videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    gap: 20px;
}

@media (min-width: 768px) {

.tiktok-videos-grid {
        grid-template-columns: repeat(3, 1fr);
}
    }

.tiktok-video-card-slot {
    min-height: 320px;
    aspect-ratio: 9 / 16;
    background: #1a1a1a;
    border-radius: 12px;
}

.tiktok-video-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.2s, box-shadow 0.2s;
    color: inherit;
    display: block;
    position: relative;
    min-height: 320px;
}

--lazy.tiktok-video-card .tiktok-video-card-placeholder {
        cursor: pointer;
    }

.tiktok-video-card:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

--lazy.tiktok-video-card:hover {
        transform: translateY(-4px);
    }

--loaded.tiktok-video-card .tiktok-video-card-placeholder {
        display: none;
    }

.tiktok-video-card-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    display: block;
    background: #000;
}

.tiktok-video-card-thumbnail {
    width: 100%;
    height: 100%;
    aspect-ratio: 9 / 16;
    -o-object-fit: cover;
       object-fit: cover;
    display: block;
    background: #1a1a1a;
}

.tiktok-video-card-play-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.tiktok-video-card-play-overlay::after {
        content: "";
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E")
            center / 60% no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E")
            center / 60% no-repeat;
    }

.tiktok-video-card-embed {
    width: 100%;
    min-height: 320px;
    display: none;
}

.tiktok-video-card-embed iframe {
        width: 100%;
        min-height: 575px;
        border: none;
        border-radius: 12px;
        display: block;
    }

.tiktok-video-card--loaded .tiktok-video-card-embed {
    display: block;
}

.tiktok-video-card-fallback {
    -webkit-text-decoration: none;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tiktok-video-card-fallback .tiktok-video-card-thumbnail {
        width: 100%;
        aspect-ratio: 9 / 16;
    }

.tiktok-video-card-info {
    padding: 12px;
}

.tiktok-video-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 12px;
    margin: 0;
}

.tiktok-loading {
    display: none;
    justify-content: center;
    padding: 30px 0;
}

.tiktok-loading.active {
    display: flex;
}

.tiktok-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #eee;
    border-top-color: #000;
    border-radius: 50%;
    animation: tiktok-spin 0.8s linear infinite;
}

@keyframes tiktok-spin {
    to {
        transform: rotate(360deg);
    }
}

.tiktok-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
}

--hidden.tiktok-pagination {
        display: none;
    }

.tiktok-pagination-btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #fe2c55;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.tiktok-pagination-btn:hover:not(:disabled) {
        background: #e0254a;
    }

.tiktok-pagination-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        opacity: 0.8;
    }

.tiktok-pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tiktok-pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tiktok-pagination-dot:hover:not(.active) {
    background-color: #aaa;
}

.tiktok-pagination-dot.active {
    background-color: #fe2c55;
    cursor: default;
}

.tiktok-cta-banner {
    background: transparent;
}

.tiktok-cta-banner .small-banner-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
        width: 100%;
        box-sizing: border-box;
        background: #b00000;
        color: #fff;
        -webkit-text-decoration: none;
        text-decoration: none;
        border: 2px solid rgba(0, 0, 0, 0.4);
        border-radius: 8px;
        box-shadow: 0 0 16px 0 rgba(176, 0, 0, 1);
        font-family: "Poppins", sans-serif;
        font-size: 14px;
        font-weight: 600;
        overflow: hidden;
        transition: transform 0.2s ease;
        animation: tiktok-cta-bg 3s ease-in-out infinite;
    }

.tiktok-cta-banner .small-banner-container::before {
        content: "";
        position: absolute;
        left: -60%;
        width: 77%;
        aspect-ratio: 1;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 8.245V15.5C16 19.09 13.09 22 9.5 22 5.91 22 3 19.09 3 15.5 3 11.91 5.91 9 9.5 9c.516 0 1.019.06 1.5.174v3.163A3.5 3.5 0 009.5 12C7.567 12 6 13.567 6 15.5S7.567 19 9.5 19 13 17.433 13 15.5V2h3c0 2.761 2.239 5 5 5v3c-1.892 0-3.63-.657-5-1.755z' fill='white'/%3E%3C/svg%3E")
            no-repeat center / contain;
        opacity: 0.8;
        mix-blend-mode: overlay;
        animation: tiktok-cta-mask-slide 3s ease-in-out infinite;
        pointer-events: none;
        z-index: 0;
    }

.tiktok-cta-banner .small-banner-container:hover {
        transform: none;
    }

.tiktok-cta-banner .small-banner-container:active {
        transform: none;
    }

.tiktok-cta-banner .small-banner-container:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

.tiktok-cta-banner .small-banner-container .tiktok-cta-icon,
    .tiktok-cta-banner .small-banner-container .tiktok-cta-text {
        position: relative;
        z-index: 1;
    }

.tiktok-cta-banner .tiktok-cta-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

.tiktok-cta-banner .tiktok-cta-text {
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        white-space: nowrap;
    }

.tiktok-cta-banner .tiktok-cta-pulse {
        display: none;
    }

@media (min-width: 769px) {
        .hero-banner .container {
            position: relative;
        }

        .hero-banner .title-wrapper {
            padding-top: 60px;
        }

    .tiktok-cta-banner {
        position: absolute;
        top: 25px;
        left: 16px;
        width: 44%;
        padding: 0 20px;
        z-index: 20;
    }
}

@media (max-width: 768px) {
        .hero-banner .container {
            display: grid;
            grid-template-areas:
                "tiktok"
                "image"
                "title";
        }

        .hero-banner .title-wrapper {
            grid-area: title;
        }

    .tiktok-cta-banner {
        grid-area: tiktok;
        padding: 16px 0px;
        overflow: visible;
    }

        .tiktok-cta-banner .small-banner-container {
            max-width: 405px;
            margin: 0 auto;
        }

    .hero-banner-img-container {
        grid-area: image;
    }

    .tiktok-cta-banner .small-banner-container::before {
        width: 77%;
    }
}

@media (max-width: 930px) {
    .tiktok-cta-banner .small-banner-container::before {
        animation-name: tiktok-cta-mask-slide-mobile;
    }
}

@keyframes tiktok-cta-mask-slide-mobile {
    0% {
        left: -60%;
        top: 10px;
        transform: rotate(-90deg);
        opacity: 0.35;
    }
    5% {
        left: -50%;
        top: 0px;
        transform: rotate(-70deg);
        opacity: 0.35;
    }
    35% {
        left: 55%;
        top: -120px;
        transform: rotate(0deg);
        opacity: 0.35;
    }
    42% {
        left: 55%;
        top: -120px;
        transform: rotate(0deg);
        opacity: 0.35;
    }
    55% {
        left: 55%;
        top: -30px;
        transform: rotate(35deg);
        opacity: 0.35;
    }
    60% {
        left: 58%;
        top: -10px;
        transform: rotate(45deg);
        opacity: 0.35;
    }
    80% {
        left: -60%;
        top: -40px;
        transform: rotate(-90deg);
        opacity: 0.35;
    }
    100% {
        left: -60%;
        top: -40px;
        transform: rotate(-90deg);
        opacity: 0.35;
    }
}

@keyframes tiktok-cta-bg {
    0% {
        background: #b00000;
        box-shadow: 0 0 16px 0 rgba(176, 0, 0, 1);
    }
    35% {
        background: #b00000;
        box-shadow: 0 0 16px 0 rgba(176, 0, 0, 1);
    }
    55% {
        background: #fe2c55;
        box-shadow: 0 0 16px 0 rgba(254, 44, 85, 1);
    }
    58% {
        background: #fe2c55;
        box-shadow: 0 0 16px 0 rgba(254, 44, 85, 1);
    }
    72%,
    100% {
        background: #b00000;
        box-shadow: 0 0 16px 0 rgba(176, 0, 0, 1);
    }
}

@keyframes tiktok-cta-mask-slide {
    0% {
        left: -60%;
        top: 30px;
        transform: rotate(-90deg);
        opacity: 0.35;
    }
    5% {
        left: -50%;
        top: 10px;
        transform: rotate(-70deg);
        opacity: 0.35;
    }
    35% {
        left: 55%;
        top: -210px;
        transform: rotate(0deg);
        opacity: 0.35;
    }
    42% {
        left: 55%;
        top: -210px;
        transform: rotate(0deg);
        opacity: 0.35;
    }
    55% {
        left: 55%;
        top: -30px;
        transform: rotate(35deg);
        opacity: 0.35;
    }
    60% {
        left: 58%;
        top: -10px;
        transform: rotate(45deg);
        opacity: 0.35;
    }
    80% {
        left: -60%;
        top: -60px;
        transform: rotate(-90deg);
        opacity: 0.35;
    }
    100% {
        left: -60%;
        top: -60px;
        transform: rotate(-90deg);
        opacity: 0.35;
    }
}
