:root {
    --stella-blur: 12px;
    --stella-radius: 20px;
    --stella-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.stella-policy-section-title {
	margin-top: 30px;
}

.stella-policy-section-title-lg {
	margin-top: 40px;
}

.stella-consent-status-box {
	background: #f9fafb;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	margin-top: 15px;
}

.stella-consent-state {
	margin: 0;
}

.stella-consent-state-accepted {
	color: #059669;
	font-weight: 600;
}

.stella-consent-state-declined {
	color: #dc2626;
	font-weight: 600;
}

.stella-consent-state-none {
	color: #6b7280;
}

.stella-consent-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

.stella-btn-reset-consent {
	background: #fff;
	border: 1px solid #d1d5db;
	color: #374151;
}

.stella-cookie-declaration-wrap-policy {
	margin-top: 20px;
}

.stella-banner-glass {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

#stella-manage-preferences {
	display: none;
	margin-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding-top: 20px;
	text-align: left;
}

.stella-banner-links {
	margin-top: 15px;
	display: flex;
	gap: 15px;
	align-items: center;
}

.stella-banner-link {
	font-size: 13px;
	text-decoration: underline;
	color: var(--stella-text);
	opacity: 0.8;
}

.stella-btn-accept,
.stella-btn-save {
	background: var(--stella-accept-bg);
	color: var(--stella-accept-color);
}

.stella-btn-accept {
	font-size: var(--stella-accept-font-size, 14px);
}

.stella-btn-save {
	font-size: var(--stella-save-font-size, 14px);
	display: none;
}

.stella-btn-necessary-cookie {
	background: var(--stella-necessary-bg);
	color: var(--stella-necessary-color);
	font-size: var(--stella-necessary-font-size, 14px);
	opacity: 0.8;
}

.stella-btn-decline {
	background: var(--stella-decline-bg);
	color: var(--stella-decline-color);
	font-size: var(--stella-decline-font-size, 14px);
}

.stella-badge-icon {
	font-size: 22px;
	width: 22px;
	height: 22px;
}

#stella-cookies-badge {
	background: var(--stella-badge-bg);
	color: var(--stella-badge-color);
}

.stella-cookies-banner {
    position: fixed;
    z-index: var(--stella-z-index, 999999);
    background: var(--stella-bg);
    backdrop-filter: blur(var(--stella-blur));
    -webkit-backdrop-filter: blur(var(--stella-blur));
    box-shadow: var(--stella-shadow);
    padding: 30px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: var(--stella-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    font-size: var(--stella-font-size, 14px);
    line-height: 1.5;
    color: var(--stella-text);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.stella-cookies-banner.show { display: block; }

.stella-template-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    font-size: 16px;
    vertical-align: middle;
}
.stella-template-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stella-template-lumina {
    border-top: 4px solid var(--stella-accept-bg);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.18);
}
.stella-template-lumina .stella-cookies-actions {
    justify-content: flex-start;
}
.stella-template-lumina .stella-btn-primary {
    border-radius: 999px;
}
.stella-template-lumina .stella-template-fx {
    background: linear-gradient(90deg, rgba(59,130,246,0.12), transparent 40%);
}

.stella-template-nebula {
    background: linear-gradient(140deg, #0b1024 0%, #1f1b45 70%, #2a1b4f 100%);
    color: #f8fafc;
    border: 1px solid rgba(167, 139, 250, 0.45);
}
.stella-template-nebula .stella-template-fx {
    background:
        radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.35), transparent 40%),
        radial-gradient(circle at 80% 78%, rgba(196, 181, 253, 0.35), transparent 42%);
    animation: stella-nebula-float 6s ease-in-out infinite;
}
.stella-template-nebula .stella-btn {
    text-transform: uppercase;
    letter-spacing: .03em;
}

.stella-template-aurora {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.stella-template-aurora .stella-cookies-inner {
    gap: 16px;
}
.stella-template-aurora .stella-template-fx {
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.6) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: stella-aurora-shimmer 4s ease-in-out infinite;
}
.stella-template-aurora .stella-btn {
    border-radius: 16px;
}

.stella-template-eco {
    border-left: 8px solid #22c55e;
    background: linear-gradient(180deg, #ecfdf5 0%, #dcfce7 100%);
    color: #14532d;
}
.stella-template-eco .stella-cookies-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}
.stella-template-eco .stella-banner-logo {
    grid-column: 1 / -1;
}
.stella-template-eco .stella-cookies-actions {
    justify-content: center;
    align-items: center;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.stella-template-eco .stella-banner-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, max-content));
    align-items: center;
    column-gap: 15px;
    row-gap: 4px;
}
.stella-template-eco #stella-ccpa-link {
    grid-column: 1;
    grid-row: 2;
    margin-left: 0 !important;
}
.stella-template-eco .stella-admin-demo-hide {
    grid-column: 2;
    grid-row: 2;
    margin-left: 0 !important;
}
.stella-template-eco .stella-cookies-actions .stella-btn {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.stella-template-eco .stella-cookies-actions .stella-demo-accept,
.stella-template-eco .stella-cookies-actions #stella-cookies-accept {
    order: 1;
}
.stella-template-eco .stella-cookies-actions .stella-demo-necessary,
.stella-template-eco .stella-cookies-actions #stella-cookies-necessary {
    order: 2;
}
.stella-template-eco .stella-cookies-actions .stella-demo-decline,
.stella-template-eco .stella-cookies-actions #stella-cookies-decline {
    order: 3;
}
.stella-template-eco .stella-btn {
    border-radius: 10px;
}

.stella-template-midnight {
    background: #050505;
    border: 1px solid rgba(251, 146, 60, 0.65);
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.2), 0 0 24px rgba(249, 115, 22, 0.16);
}
.stella-template-midnight .stella-template-fx {
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.06) 2px,
        transparent 2px,
        transparent 7px
    );
    opacity: .35;
    animation: stella-midnight-scan 3s linear infinite;
}
.stella-template-midnight .stella-cookies-inner {
    gap: 14px;
}
.stella-template-midnight .stella-btn-primary {
    box-shadow: 0 0 16px rgba(249,115,22,.45);
}

/* Position Styles */
.stella-pos-bottom-bar { bottom: 0; left: 0; right: 0; border-radius: 24px 24px 0 0; max-width: 100%; animation: stella-slide-up 0.5s ease-out; }
.stella-pos-top-bar { top: 0; left: 0; right: 0; border-radius: 0 0 24px 24px; max-width: 100%; animation: stella-slide-down 0.5s ease-out; }
.stella-pos-bottom-left { bottom: 30px; left: 30px; max-width: 450px; border-radius: 24px; animation: stella-fade-up 0.5s ease-out; }
.stella-pos-bottom-right { bottom: 30px; right: 30px; max-width: 450px; border-radius: 24px; animation: stella-fade-up 0.5s ease-out; }
.stella-pos-center-modal { top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 500px; border-radius: 24px; text-align: center; animation: stella-zoom-in 0.4s ease-out; }

@keyframes stella-slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes stella-slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes stella-fade-up { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes stella-zoom-in { from { transform: translate(-50%, -45%) scale(0.95); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes stella-nebula-float { 0%,100% { opacity:.7; transform: translateY(0); } 50% { opacity:1; transform: translateY(-6px); } }
@keyframes stella-aurora-shimmer { 0% { transform: translateX(-100%); } 50% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
@keyframes stella-midnight-scan { 0% { transform: translateY(-10px); } 100% { transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
	.stella-cookies-banner,
	.stella-template-fx,
	.stella-template-nebula .stella-template-fx,
	.stella-template-aurora .stella-template-fx,
	.stella-template-midnight .stella-template-fx {
		animation: none !important;
		transition: none !important;
	}
}

.stella-cookies-inner { display: flex; flex-direction: column; gap: 24px; max-width: 1200px; margin: 0 auto; }
.stella-banner-description { font-size: var(--stella-desc-font-size, 14px); margin: 0; }

/* Preferences Section */
.stella-pref-item { margin-bottom: 20px; }
.stella-pref-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.stella-pref-header strong { font-size: 1em; }
.stella-pref-desc { font-size: 0.87em; opacity: 0.7; margin: 0; line-height: 1.5; }
.stella-badge { font-size: 0.73em; background: rgba(0,0,0,0.05); padding: 2px 8px; border-radius: 12px; font-weight: 600; text-transform: uppercase; }

/* Switch Style */
.stella-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.stella-switch input { opacity: 0; width: 0; height: 0; }
.stella-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.1); transition: .4s; border-radius: 24px; }
.stella-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
.stella-cookies-banner .stella-switch input:checked + .stella-slider { background-color: var(--stella-accept-bg); }
.stella-cookies-banner .stella-switch input:checked + .stella-slider:before { transform: translateX(20px); }

.stella-iframe-placeholder {
    min-height: 180px;
    border: 1px dashed rgba(15, 23, 42, 0.2);
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.stella-placeholder-inner {
    text-align: center;
    max-width: 420px;
}
.stella-placeholder-inner p {
    margin: 0 0 10px;
}

.stella-cookies-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stella-btn { cursor: pointer; padding: 12px 28px; border-radius: 12px; font-size: 0.93em; font-weight: 600; transition: all 0.3s; border: none; font-family: inherit; appearance: none; -webkit-appearance: none; background-image: none; text-shadow: none; }
.stella-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.stella-cookies-badge {
    position: fixed;
    bottom: 20px;
    z-index: 9999998;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.stella-cookies-badge--left { left: 20px; }
.stella-cookies-badge--right { right: 20px; }
.stella-cookies-badge--outline {
    background: rgba(255,255,255,0.22) !important;
    border: 2px solid currentColor;
    box-shadow: 0 0 0 1px rgba(15,23,42,0.08), 0 4px 12px rgba(0,0,0,0.15);
}
.stella-cookies-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.stella-cookie-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.stella-cookie-table th, .stella-cookie-table td { border: 1px solid #e5e7eb; padding: 12px; text-align: left; }
.stella-cookie-table th { background: #f9fafb; font-weight: 600; }

@media (max-width: 900px) {
    .stella-template-eco .stella-cookies-inner {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .stella-cookies-banner {
        padding: 18px;
    }
    .stella-pos-bottom-left,
    .stella-pos-bottom-right {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
    .stella-pos-center-modal {
        left: 12px;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        max-width: none;
    }
    .stella-pos-top-bar,
    .stella-pos-bottom-bar {
        left: 0;
        right: 0;
        border-radius: 0;
    }
}
