.tcc-widget {
    width: 100%;
    position: relative;
    min-height: 500px;
    background: #f9f9f9;
    border-radius: 25px;
    overflow: hidden;
}

.tcc-form-container {
    width: 100%;
    min-height: 500px;
    opacity: 0.7;
    pointer-events: none;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.tcc-form-container.tcc-active {
    filter: none;
    opacity: 1;
    pointer-events: auto;
    min-height: auto;
}

.tcc-form-placeholder {
    width: 100%;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.tcc-placeholder-field {
    margin-bottom: 24px;
}

.tcc-placeholder-label {
    width: 120px;
    height: 16px;
    background: linear-gradient(90deg, #bbb 0%, #ddd 50%, #bbb 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.tcc-placeholder-input {
    width: 100%;
    height: 52px;
    background: linear-gradient(90deg, #c0c0c0 0%, #e0e0e0 50%, #c0c0c0 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
    border: 2px solid #999;
}

.tcc-placeholder-textarea {
    width: 100%;
    height: 140px;
    background: linear-gradient(90deg, #c0c0c0 0%, #e0e0e0 50%, #c0c0c0 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 8px;
    border: 2px solid #999;
}

.tcc-placeholder-button {
    width: 180px;
    height: 52px;
    background: linear-gradient(90deg, #007AFF 0%, #0051D5 50%, #007AFF 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.tcc-form-container.tcc-active .tcc-form-placeholder {
    display: none;
}

.tcc-consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.tcc-consent-overlay.tcc-hidden {
    opacity: 0;
    pointer-events: none;
}

.tcc-consent-modal {
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-align: center;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tcc-consent-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: iconBounce 1s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.tcc-title {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.tcc-consent-text {
    margin-bottom: 24px;
    line-height: 1.6;
    color: #666;
    font-size: 15px;
}

.tcc-accept-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.tcc-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}

.tcc-accept-btn:active {
    transform: scale(0.96);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tcc-revoke-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.tcc-revoke-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.tcc-revoke-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .tcc-consent-modal {
        padding: 32px 24px;
        margin: 0 16px;
    }

    .tcc-consent-icon {
        font-size: 40px;
    }

    .tcc-title {
        font-size: 20px;
    }

    .tcc-consent-text {
        font-size: 14px;
    }

    .tcc-accept-btn {
        width: 100%;
        padding: 16px;
    }
}

.elementor-widget-tally_cookie_consent .elementor-widget-container {
    width: 100%;
}

.rtl .tcc-revoke-container {
    right: auto;
    left: 20px;
}