/* ── Back to Top Button ── */

/* Fixed button (front-end) */
.btt-button {
    position: fixed;
    bottom: 250px;
    right: 32px;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    width: 80px;
    min-height: 80px;
    padding: 10px 8px;
    box-sizing: border-box;
    cursor: pointer;

    background-color: var(--btt-color, #108140);

    /* Hidden by default — JS adds .btt-visible */
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btt-button.btt-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.btt-button:hover {
    filter: brightness(1.12);
    transform: translateY(-3px);
}

.btt-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* Icon image */
.btt-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

/* Default arrow (used when no image is chosen) */
.btt-arrow {
    font-size: 32px;
    line-height: 1;
    color: #fff;
    display: block;
}

/* Label text */
.btt-label {
    font-size: 11px;
    font-weight: 700;
    font-family: 'Gelo', Arial, sans-serif;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.04em;
}

/* ── Gutenberg editor preview ── */
.btt-editor-preview {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 24px;
    padding: 16px;
    background: #f5f5f5;
    border: 2px dashed #ccc;
}

/* In the editor preview the button is static (not fixed) */
.btt-editor-preview .btt-button {
    position: static;
    opacity: 1;
    pointer-events: none;
    transform: none;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .btt-button {
        bottom: 150px;
        right: 16px;
        width: 64px;
        min-height: 64px;
    }

    .btt-arrow {
        font-size: 24px;
    }

    .btt-icon {
        width: 24px;
        height: 24px;
    }

    .btt-label {
        font-size: 9px;
    }
}