#wpcm-banner {
    position: fixed;
    z-index: 999999;
    background: #1e293b;
    color: var(--wpcm-text, #ffffff);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

#wpcm-banner.wpcm-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

#wpcm-banner.wpcm-position-top {
    top: 0;
    left: 0;
    right: 0;
}

#wpcm-banner.wpcm-position-top.wpcm-hidden {
    transform: translateY(-100%);
}

#wpcm-banner.wpcm-position-bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

#wpcm-banner.wpcm-position-floating {
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    border-radius: 12px;
    margin: 0 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#wpcm-banner.wpcm-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: calc(100% - 40px);
    border-radius: 16px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#wpcm-banner.wpcm-position-center.wpcm-hidden {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
}

.wpcm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wpcm-overlay.wpcm-visible {
    display: block;
    opacity: 1;
}

.wpcm-banner-content {
    padding: 24px;
}

.wpcm-banner-text {
    margin: 0 0 20px;
    font-size: 14px;
    color: inherit;
}

.wpcm-banner-text a {
    color: inherit;
    text-decoration: underline;
    opacity: 0.9;
}

.wpcm-banner-text a:hover {
    opacity: 1;
}

.wpcm-consent-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 13px;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

#wpcm-modal .wpcm-modal-body .wpcm-consent-error {
    margin-top: 0;
}

.wpcm-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wpcm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.wpcm-btn:focus {
    outline: 2px solid var(--wpcm-primary, #2563eb);
    outline-offset: 2px;
}

.wpcm-btn-primary {
    background: var(--wpcm-primary, #2563eb);
    color: #ffffff;
}

.wpcm-btn-primary:hover {
    background: var(--wpcm-secondary, #1e40af);
}

.wpcm-btn-secondary {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    opacity: 0.8;
}

.wpcm-btn-secondary:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.wpcm-btn-ghost {
    background: transparent;
    color: inherit;
    opacity: 0.7;
    padding: 8px 12px;
}

.wpcm-btn-ghost:hover {
    opacity: 1;
}

.wpcm-settings-link {
    margin-top: 12px;
    font-size: 13px;
}

.wpcm-settings-link a {
    color: inherit;
    text-decoration: underline;
    opacity: 0.8;
}

.wpcm-settings-link a:hover {
    opacity: 1;
}

.wpcm-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: calc(100% - 40px);
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    color: #1e293b;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    z-index: 1000000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wpcm-modal.wpcm-visible {
    display: block;
    opacity: 1;
}

.wpcm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 1;
    border-radius: 16px 16px 0 0;
}

.wpcm-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
}

#wpcm-modal .wpcm-modal-close,
#wpcm-modal #wpcm-close-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    padding: 10px !important;
    border: none !important;
    background: #f1f5f9 !important;
    border-radius: 8px !important;
    overflow: hidden;
    cursor: pointer;
    color: #64748b !important;
    transition: background 0.2s ease, color 0.2s ease;
}

#wpcm-modal .wpcm-modal-close svg {
    display: block;
    width: 18px;
    height: 18px;
}

#wpcm-modal .wpcm-modal-close:hover,
#wpcm-modal #wpcm-close-modal:hover,
#wpcm-modal .wpcm-modal-close:focus,
#wpcm-modal #wpcm-close-modal:focus {
    background: #facc15 !important;
    color: #000000 !important;
}

.wpcm-modal-body {
    padding: 24px;
}

.wpcm-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: center;
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
}

.wpcm-category-item {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

.wpcm-category-item:hover {
    border-color: var(--wpcm-primary, #2563eb);
}

.wpcm-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.wpcm-category-header .wpcm-toggle {
    margin-left: auto;
    flex-shrink: 0;
}

.wpcm-category-name {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: #1e293b;
    cursor: pointer;
    transition: color 0.2s ease;
}

.wpcm-category-name:hover {
    color: var(--wpcm-primary, #2563eb);
}

.wpcm-category-name--static {
    cursor: default;
}

.wpcm-category-name--static:hover {
    color: #1e293b;
}

.wpcm-category-description {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
}

#wpcm-modal .wpcm-category-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    background-color: transparent;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    line-height: 0;
    color: inherit;
    font: inherit;
}

#wpcm-modal .wpcm-category-expand:hover,
#wpcm-modal .wpcm-category-expand:focus,
#wpcm-modal .wpcm-category-expand:active,
#wpcm-modal .wpcm-category-item--expanded .wpcm-category-expand {
    background: none;
    background-color: transparent;
    box-shadow: none;
}

.wpcm-category-chevron {
    display: inline-flex;
    flex-shrink: 0;
    color: #64748b;
    transition: transform 0.25s ease, color 0.2s ease;
}

#wpcm-modal .wpcm-category-chevron svg {
    display: block;
    width: 16px;
    height: 16px;
}

#wpcm-modal .wpcm-category-item--expanded .wpcm-category-chevron {
    transform: rotate(180deg);
    color: var(--wpcm-primary, #2563eb);
}

.wpcm-category-details-list {
    margin-top: 4px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.wpcm-category-details-list.wpcm-animate-in {
    animation: wpcm-details-enter 0.25s ease-out forwards;
}

@keyframes wpcm-details-enter {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpcm-service-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wpcm-service-item {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.wpcm-service-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wpcm-service-item:first-child {
    padding-top: 0;
}

.wpcm-service-item--cookie .wpcm-service-name {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    word-break: break-all;
}

.wpcm-service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 20px;
}

.wpcm-service-name {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
}

#wpcm-modal .wpcm-service-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    background-color: transparent;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    color: #64748b;
    cursor: pointer;
    line-height: 0;
    transition: color 0.2s ease;
}

#wpcm-modal .wpcm-service-info-btn svg {
    display: block;
    width: 16px;
    height: 16px;
}

#wpcm-modal .wpcm-service-info-btn:hover,
#wpcm-modal .wpcm-service-info-btn:focus,
#wpcm-modal .wpcm-service-info-btn:active {
    color: var(--wpcm-primary, #2563eb);
    background: none;
    background-color: transparent;
    box-shadow: none;
}

#wpcm-modal .wpcm-service-info-btn:focus-visible {
    outline: 2px solid var(--wpcm-primary, #2563eb);
    outline-offset: 2px;
}

.wpcm-service-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    padding: 6px 0 0 0;
    margin: 0;
}

.wpcm-service-description--visible {
    animation: wpcm-details-enter 0.2s ease-out forwards;
}

.wpcm-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.wpcm-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wpcm-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 26px;
}

.wpcm-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.wpcm-toggle input:checked + .wpcm-toggle-slider {
    background-color: var(--wpcm-primary, #2563eb);
}

.wpcm-toggle input:checked + .wpcm-toggle-slider:before {
    transform: translateX(22px);
}

.wpcm-toggle input:disabled + .wpcm-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    #wpcm-banner.wpcm-position-floating {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .wpcm-banner-actions {
        flex-direction: column;
    }

    .wpcm-banner-actions .wpcm-btn {
        width: 100%;
    }

    .wpcm-modal {
        width: calc(100% - 20px);
        max-height: 95vh;
    }
}

#wpcm-detector-panel {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 380px;
    max-height: 85vh;
    overflow: hidden;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 9999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
}

#wpcm-detector-panel.wpcm-visible {
    display: flex;
    flex-direction: column;
}

#wpcm-detector-panel.wpcm-minimized .wpcm-detector-body,
#wpcm-detector-panel.wpcm-minimized .wpcm-detector-footer {
    display: none;
}

#wpcm-detector-panel .wpcm-detector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #0f172a;
    cursor: move;
    border-radius: 16px 16px 0 0;
}

#wpcm-detector-panel .wpcm-detector-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

#wpcm-detector-panel .wpcm-detector-count {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

#wpcm-detector-panel .wpcm-detector-actions-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

#wpcm-detector-panel .wpcm-detector-toggle,
#wpcm-detector-panel .wpcm-detector-close {
    background: rgba(51, 65, 85, 0.5);
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#wpcm-detector-panel .wpcm-detector-toggle:hover,
#wpcm-detector-panel .wpcm-detector-close:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #f8fafc;
}

#wpcm-detector-panel .wpcm-detector-body {
    flex: 1;
    padding: 12px 16px;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #475569 #1e293b;
}

#wpcm-detector-panel .wpcm-detector-body::-webkit-scrollbar {
    width: 6px;
}

#wpcm-detector-panel .wpcm-detector-body::-webkit-scrollbar-track {
    background: #1e293b;
}

#wpcm-detector-panel .wpcm-detector-body::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

#wpcm-detector-panel .wpcm-detected-item {
    padding: 12px;
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.6), rgba(51, 65, 85, 0.3));
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(71, 85, 105, 0.3);
    transition: all 0.2s ease;
}

#wpcm-detector-panel .wpcm-detected-item:hover {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.8), rgba(51, 65, 85, 0.5));
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(-2px);
}

#wpcm-detector-panel .wpcm-detected-item[data-category="marketing"] {
    border-left: 3px solid #f59e0b;
}

#wpcm-detector-panel .wpcm-detected-item[data-category="analytics"] {
    border-left: 3px solid #10b981;
}

#wpcm-detector-panel .wpcm-detected-item[data-category="functional"] {
    border-left: 3px solid #6366f1;
}

#wpcm-detector-panel .wpcm-detected-item[data-category="necessary"] {
    border-left: 3px solid #8b5cf6;
}

#wpcm-detector-panel .wpcm-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#wpcm-detector-panel .wpcm-item-icon {
    font-size: 16px;
}

#wpcm-detector-panel .wpcm-item-name {
    font-weight: 700;
    color: #38bdf8;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 12px;
}

#wpcm-detector-panel .wpcm-item-time {
    font-size: 10px;
    color: #64748b;
}

#wpcm-detector-panel .wpcm-item-details {
    font-size: 11px;
}

#wpcm-detector-panel .wpcm-item-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
    gap: 4px;
}

#wpcm-detector-panel .wpcm-label {
    color: #64748b;
    min-width: 70px;
}

#wpcm-detector-panel .wpcm-value {
    color: #cbd5e1;
    word-break: break-all;
}

#wpcm-detector-panel .wpcm-script {
    color: #94a3b8;
    font-family: 'SF Mono', Consolas, monospace;
}

#wpcm-detector-panel .wpcm-category-analytics { color: #10b981; }
#wpcm-detector-panel .wpcm-category-marketing { color: #f59e0b; }
#wpcm-detector-panel .wpcm-category-functional { color: #6366f1; }
#wpcm-detector-panel .wpcm-category-necessary { color: #8b5cf6; }
#wpcm-detector-panel .wpcm-category-social { color: #ec4899; }
#wpcm-detector-panel .wpcm-category-media { color: #f97316; }
#wpcm-detector-panel .wpcm-category-personalization { color: #06b6d4; }
#wpcm-detector-panel .wpcm-category-security { color: #ef4444; }
#wpcm-detector-panel .wpcm-category-unknown { color: #64748b; }

#wpcm-detector-panel .wpcm-detector-footer {
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 0 0 16px 16px;
}

#wpcm-detector-panel .wpcm-detector-services {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

#wpcm-detector-panel .wpcm-detector-services:empty {
    margin-bottom: 0;
}

#wpcm-detector-panel .wpcm-services-label {
    font-size: 10px;
    color: #64748b;
    margin-right: 4px;
}

#wpcm-detector-panel .wpcm-service-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 6px;
    font-size: 14px;
}

#wpcm-detector-panel .wpcm-detector-actions {
    display: flex;
    gap: 8px;
}

#wpcm-detector-panel .wpcm-btn-clear,
#wpcm-detector-panel .wpcm-btn-export {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#wpcm-detector-panel .wpcm-btn-clear {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

#wpcm-detector-panel .wpcm-btn-clear:hover {
    background: rgba(239, 68, 68, 0.3);
}

#wpcm-detector-panel .wpcm-btn-export {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

#wpcm-detector-panel .wpcm-btn-export:hover {
    background: rgba(34, 197, 94, 0.3);
}

#wpcm-detector-panel .wpcm-detector-status {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 12px;
    background: #0f172a;
}

#wpcm-detector-panel .wpcm-detector-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: wpcm-pulse 2s infinite;
}

#wpcm-detector-panel .wpcm-status-text {
    font-size: 11px;
    color: #94a3b8;
}

#wpcm-detector-panel .wpcm-hint {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
    text-align: center;
    padding: 20px;
}

#wpcm-detector-panel .wpcm-orphan-section {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    background: #fffbeb;
    color: #78350f;
}

#wpcm-detector-panel .wpcm-orphan-header {
    margin-bottom: 8px;
}

#wpcm-detector-panel .wpcm-orphan-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    line-height: 1.4;
}

#wpcm-detector-panel .wpcm-orphan-tip {
    position: relative;
    cursor: help;
    outline: none;
}

#wpcm-detector-panel .wpcm-orphan-tip:hover,
#wpcm-detector-panel .wpcm-orphan-tip:focus-visible {
    text-decoration: underline;
    text-decoration-style: dotted;
}

#wpcm-detector-panel .wpcm-orphan-tip[data-tip]:hover::after,
#wpcm-detector-panel .wpcm-orphan-tip[data-tip]:focus-visible::after {
    content: attr(data-tip);
    position: absolute;
    z-index: 100;
    left: 0;
    top: calc(100% + 6px);
    width: min(260px, calc(100vw - 40px));
    padding: 8px 10px;
    border-radius: 6px;
    background: #1e293b;
    color: #f8fafc;
    font-size: 11px;
    font-weight: 400;
    font-style: normal;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    text-decoration: none;
}

#wpcm-detector-panel .wpcm-orphan-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

#wpcm-detector-panel .wpcm-orphan-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.28);
}

#wpcm-detector-panel .wpcm-orphan-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#wpcm-detector-panel .wpcm-orphan-item-main {
    margin-bottom: 6px;
}

#wpcm-detector-panel .wpcm-orphan-name {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    line-height: 1.45;
    color: #78350f;
    word-break: break-all;
}

#wpcm-detector-panel .wpcm-orphan-item-actions {
    display: flex;
    gap: 6px;
}

#wpcm-detector-panel .wpcm-orphan-register,
#wpcm-detector-panel .wpcm-orphan-ignore {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    height: auto;
    width: auto;
}

#wpcm-detector-panel .wpcm-orphan-register {
    background: #16a34a;
    border-color: #15803d;
    color: #fff;
}

#wpcm-detector-panel .wpcm-orphan-register:hover:not(:disabled) {
    background: #15803d;
}

#wpcm-detector-panel .wpcm-orphan-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#wpcm-detector-panel .wpcm-orphan-ignore {
    background: #64748b;
    border-color: #475569;
    color: #fff;
}

#wpcm-detector-panel .wpcm-orphan-ignore:hover {
    background: #475569;
}

#wpcm-detector-panel .wpcm-orphan-badge {
    color: #fbbf24;
    font-weight: 700;
    margin-left: 6px;
}

@media (max-width: 480px) {
    #wpcm-detector-panel {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
        max-height: 70vh;
    }
}

#wpcm-explorer-panel {
    display: none;
    position: fixed;
    top: 370px;
    right: 10px;
    width: 380px;
    max-height: 60vh;
    overflow-y: auto;
    background: #1e293b;
    color: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 9999998;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
}

#wpcm-explorer-panel.wpcm-visible {
    display: block;
}

#wpcm-explorer-panel .wpcm-explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #0f172a;
    cursor: move;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
}

#wpcm-explorer-panel .wpcm-explorer-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

#wpcm-explorer-panel .wpcm-explorer-count {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

#wpcm-explorer-panel .wpcm-explorer-actions-header {
    display: flex;
    align-items: center;
    gap: 4px;
}

#wpcm-explorer-panel .wpcm-explorer-toggle,
#wpcm-explorer-panel .wpcm-explorer-close {
    background: rgba(51, 65, 85, 0.5);
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#wpcm-explorer-panel .wpcm-explorer-toggle:hover,
#wpcm-explorer-panel .wpcm-explorer-close:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #f8fafc;
}

#wpcm-explorer-panel.wpcm-minimized .wpcm-explorer-body {
    display: none;
}

#wpcm-explorer-panel .wpcm-explorer-body {
    padding: 12px 16px;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
}

#wpcm-explorer-panel .wpcm-explore-now-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

#wpcm-explorer-panel .wpcm-explore-now-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

#wpcm-explorer-panel .wpcm-explore-now-btn.wpcm-loading {
    background: #475569;
    cursor: wait;
}

#wpcm-explorer-panel .wpcm-explore-now-btn .wpcm-btn-icon {
    font-size: 16px;
}

#wpcm-explorer-panel .wpcm-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wpcm-spin 0.8s linear infinite;
}

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

#wpcm-explorer-panel .wpcm-explore-hint {
    color: #94a3b8;
    font-size: 12px;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

#wpcm-explorer-panel .wpcm-explore-empty {
    color: #94a3b8;
    font-size: 12px;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

#wpcm-explorer-panel .wpcm-explore-empty.wpcm-explore-error {
    color: #f87171;
}

#wpcm-explorer-panel .wpcm-explored-list {
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #475569 #1e293b;
}

#wpcm-explorer-panel .wpcm-explored-list::-webkit-scrollbar {
    width: 6px;
}

#wpcm-explorer-panel .wpcm-explored-list::-webkit-scrollbar-track {
    background: #1e293b;
}

#wpcm-explorer-panel .wpcm-explored-list::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

#wpcm-explorer-panel .wpcm-explored-item {
    padding: 10px;
    background: #334155;
    border-radius: 8px;
    margin-bottom: 10px;
}

#wpcm-explorer-panel .wpcm-explored-item.wpcm-explored-auto {
    border-left: 3px solid #22c55e;
    background: #273a4a;
}

#wpcm-explorer-panel .wpcm-explored-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

#wpcm-explorer-panel .wpcm-explored-item .cookie-name {
    font-weight: 600;
    color: #38bdf8;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

#wpcm-explorer-panel .wpcm-explored-details {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.45;
}

#wpcm-explorer-panel .wpcm-explored-row {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

#wpcm-explorer-panel .wpcm-explored-row:last-child {
    margin-bottom: 0;
}

#wpcm-explorer-panel .wpcm-explored-label {
    flex-shrink: 0;
    color: #64748b;
}

#wpcm-explorer-panel .wpcm-explored-value {
    color: #cbd5e1;
    word-break: break-all;
}

#wpcm-explorer-panel .wpcm-type-badge {
    font-size: 9px;
    font-weight: 700;
    background: #22c55e;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

#wpcm-explorer-panel .wpcm-explorer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #0f172a;
    border-radius: 0 0 12px 12px;
}

#wpcm-explorer-panel .wpcm-explorer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

#wpcm-explorer-panel .wpcm-explorer-dot.wpcm-processing {
    background: #f59e0b;
    animation: wpcm-blink 0.5s ease infinite;
}

#wpcm-explorer-panel .wpcm-explorer-dot.wpcm-success {
    background: #22c55e;
}

#wpcm-explorer-panel .wpcm-status-text {
    font-size: 12px;
    color: #94a3b8;
}

@keyframes wpcm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes wpcm-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.wpcm-floating-btn {
    position: fixed;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--wpcm-primary, #2563eb);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 999997;
    color: #ffffff;
}

.wpcm-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.wpcm-floating-btn:focus {
    outline: 2px solid var(--wpcm-primary, #2563eb);
    outline-offset: 2px;
}

.wpcm-floating-btn.wpcm-hidden {
    display: none;
}

.wpcm-floating-bottom-left {
    bottom: 15px;
    left: 15px;
}

.wpcm-floating-bottom-right {
    bottom: 15px;
    right: 15px;
}

@media (max-width: 768px) {
    .wpcm-floating-btn {
        width: 44px;
        height: 44px;
        bottom: 10px;
        left: 10px;
    }

    .wpcm-floating-bottom-right {
        left: auto;
        right: 10px;
    }
}
