#mywoo-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2147483647; /* Highest possible */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    visibility: visible;
}

#mywoo-consent-banner.mywoo-consent-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mywoo-consent-content {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    margin: 16px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mywoo-consent-banner.mywoo-consent-hidden .mywoo-consent-content {
    transform: translateY(100%);
}

#mywoo-consent-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.mywoo-consent-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.mywoo-consent-content a {
    color: var(--mywoo-primary-color, #0055FF);
    text-decoration: underline;
}

.mywoo-consent-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.mywoo-consent-main-actions {
    display: flex;
    gap: 12px;
}

.mywoo-consent-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
}

.mywoo-consent-btn:active {
    transform: scale(0.96);
}

.mywoo-consent-btn-primary {
    background: var(--mywoo-primary-color, #0055FF);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 85, 255, 0.3);
}

.mywoo-consent-btn-primary:hover {
    box-shadow: 0 6px 16px rgba(0, 85, 255, 0.4);
    opacity: 0.95;
}

.mywoo-consent-btn-secondary {
    background: #f0f2f5;
    color: #444;
}

.mywoo-consent-btn-secondary:hover {
    background: #e4e6eb;
}

/* Granular Controls */
#mywoo-consent-granular {
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #eaeaea;
}

.mywoo-consent-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mywoo-consent-option-text {
    flex: 1;
    padding-right: 16px;
}

.mywoo-consent-option-text strong {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.mywoo-consent-option-text span {
    display: block;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

/* Toggle Switch */
.mywoo-consent-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.mywoo-consent-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.mywoo-consent-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.mywoo-consent-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .mywoo-consent-slider {
    background-color: var(--mywoo-primary-color, #0055FF);
}

input:disabled + .mywoo-consent-slider {
    background-color: #99c2ff;
    cursor: not-allowed;
}

input:focus + .mywoo-consent-slider {
    box-shadow: 0 0 1px var(--mywoo-primary-color, #0055FF);
}

input:checked + .mywoo-consent-slider:before {
    transform: translateX(20px);
}

.mywoo-consent-round {
    border-radius: 24px;
}

.mywoo-consent-round:before {
    border-radius: 50%;
}

@media (max-width: 480px) {
    .mywoo-consent-content {
        margin: 12px;
        padding: 20px;
    }
    .mywoo-consent-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .mywoo-consent-main-actions {
        flex-direction: column;
    }
    .mywoo-consent-btn {
        width: 100%;
        padding: 14px;
    }
}
