.aisb-container {
    --aisb-radius: 14px;
    border-radius: var(--aisb-radius);
    padding: 14px 16px;
    margin: 22px 0;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.aisb-theme-dark {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.aisb-theme-light {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.aisb-custom {
    background: var(--aisb-bg, #111);
    color: var(--aisb-color, inherit);
    box-shadow: none;
}

.aisb-custom .aisb-title,
.aisb-custom .aisb-sparkle {
    color: inherit;
}

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

.aisb-align-center .aisb-header,
.aisb-align-center .aisb-buttons {
    justify-content: center;
}

.aisb-sparkle {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.aisb-theme-dark .aisb-sparkle,
.aisb-theme-dark .aisb-title {
    color: #fff;
}

.aisb-theme-light .aisb-sparkle,
.aisb-theme-light .aisb-title {
    color: #1a1a1a;
}

.aisb-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.aisb-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@property --aisb-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes aisb-border-spin {
    to {
        --aisb-angle: 360deg;
    }
}

.aisb-container a.aisb-button,
.aisb-container a.aisb-button:hover,
.aisb-container a.aisb-button:focus,
.aisb-container a.aisb-button:visited,
.aisb-container a.aisb-button:active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fff none !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px;
    padding: 8px 12px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color 0.25s ease;
}

.aisb-container a.aisb-button .aisb-button-text,
.aisb-container a.aisb-button .aisb-button-logo,
.aisb-container a.aisb-button .aisb-arrow {
    position: relative;
    z-index: 1;
    color: #1a1a1a;
    text-decoration: none !important;
    background: none !important;
    box-shadow: none !important;
}

.aisb-container a.aisb-button .aisb-arrow {
    color: rgba(0, 0, 0, 0.35);
}

.aisb-theme-light .aisb-button {
    background-color: #f6f6f6 !important;
}

.aisb-container a.aisb-button::after,
.aisb-container a.aisb-button:hover::after {
    content: none !important;
    display: none !important;
}

.aisb-container a.aisb-button::before {
    content: "" !important;
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(
        from var(--aisb-angle),
        transparent 0deg,
        transparent 250deg,
        rgba(255, 255, 255, 0.15) 285deg,
        #fff 318deg,
        #d6d3d1 338deg,
        #a5b4fc 352deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    animation: aisb-border-spin 1.8s linear infinite paused;
    transition: opacity 0.25s ease;
}

.aisb-container a.aisb-button:hover {
    border-color: transparent !important;
}

.aisb-container a.aisb-button:hover::before {
    opacity: 1;
    animation-play-state: running;
}

.aisb-button:focus {
    outline: none;
}

.aisb-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.aisb-button-logo {
    width: 18px;
    height: 18px;
    display: inline-flex;
    flex-shrink: 0;
    color: #111;
}

.aisb-button-logo svg {
    display: block;
    width: 18px;
    height: 18px;
}

.aisb-arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: rgba(0, 0, 0, 0.35);
}

.wp-block-aisb-summary {
    margin: 0;
}

.aisb-placeholder {
    margin: 0;
    padding: 8px 10px;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    .aisb-container a.aisb-button::before {
        animation: none;
    }
}

@media print {
    .aisb-container {
        display: none !important;
    }
}
