/* Responsive mobile */
@media (max-width: 768px) {
    #inobia-window {
        width: calc(100vw - 36px);
        right: 18px;
        bottom: 18px;
    }
#inobia-btn-wrapper {
	position: fixed;
	bottom: 22px!important;
	right: 22px;}
}

/* Wrapper necessario per il bordo animato */
#inobia-btn-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Bordo gradiente rotante */
#inobia-btn-wrapper::before {
    content: '';
    position: absolute;
    filter: blur(5px); /* questo rende il bordo morbido */
    inset: -2px;
    border-radius: 50px;
    background: conic-gradient(from var(--angle, 0deg), transparent, transparent, #06b6d4, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

#inobia-btn-wrapper::before {
    opacity: 1;
    animation: spin-border 2s linear infinite;
}

/* Necessario per animare una variabile CSS personalizzata */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

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

/* Il pulsante vero e proprio */
#inobia-toggle-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 50px;
    background: #000;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 15px;
    font-weight: 200;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background 0.2s;
}

#inobia-btn-wrapper:hover::before {
    content: '';
    position: absolute;
    filter: blur(5px);   /* ← questo rende il bordo morbido */
    inset: -2px;
    border-radius: 50px;
    background: conic-gradient(from var(--angle, 0deg), #7c3aed, #06b6d4, #06b6d4, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

#inobia-btn-wrapper:hover::before {
    opacity: 1;
    animation: spin-border 12s linear infinite;
}

#inobia-window {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 999999;
    width: 100%;
    max-width:360px;
    height: 100%;
    max-height:680px;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    overflow: hidden;
    display: none;
    flex-direction: column;
    background: #000;
    transform-origin: bottom right;
}

#inobia-window.open {
    display: flex;
    animation: inobiaOpen 0.2s ease;
}

@keyframes inobiaOpen {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

#inobia-close-btn {
    background: none;
    position:absolute;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    right:20px;
    top:20px;
}

#inobia-iframe {
    width: 100%;
    flex: 1;
    border: none;
}