#baumvolk-early-access-box {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: inherit;
}

.baumvolk-ea-toggle {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background: #2d5a3d;
    color: var(--bv-white);
    border: none;
    padding: 14px 10px;
    cursor: pointer;
    border-radius: 10px 0 0 10px;
    font-weight: 600;
    letter-spacing: 10%;
    box-shadow: var(--bv-shadow-elevated);
}

.baumvolk-ea-content {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 360px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bv-card-bg);
    border-radius: 16px 0 0 16px;
    box-shadow: var(--bv-shadow-elevated);
    padding: 20px;
    border: 1px solid var(--bv-border-soft);
}

.baumvolk-ea-box--closed .baumvolk-ea-content {
    display: none;
}

.baumvolk-ea-box--open .baumvolk-ea-content {
    display: block;
}

.baumvolk-ea-header h3 {
    margin: 0 40px 8px 0;
    font-size: 20px;
    color: var(--bv-heading-color);
}

.baumvolk-ea-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bv-heading-color);
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.baumvolk-ea-close:hover,
.baumvolk-ea-close:focus-visible {
    background: var(--bv-border-soft);
}

.baumvolk-ea-header p {
    margin: 0 0 18px;
    color: var(--bv-text-secondary);
    line-height: 1.5;
}

.baumvolk-ea-section {
    margin-bottom: 18px;
}

.baumvolk-ea-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--bv-label-color);
}

.baumvolk-ea-stars {
    display: flex;
    gap: 6px;
    margin-top: -10px;
    margin-bottom: 10px;
    font-size: 30px;
}

.baumvolk-ea-stars .star {
    cursor: pointer;
    color: var(--bv-border-contrast-soft);
    transition: color 0.2s ease;
}

.baumvolk-ea-stars .star.active {
    color: var(--bv-warning);
}

.baumvolk-ea-form textarea {
    width: 100%;
    border: 1px solid var(--bv-input-border);
    border-radius: 10px;
    padding: 10px 12px;
    resize: vertical;
    min-height: 90px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    background: var(--bv-input-bg);
    color: var(--bv-input-text);
}

.baumvolk-ea-form textarea::placeholder {
    color: var(--bv-placeholder-color);
}

.baumvolk-ea-support-text {
    margin: 0;
    line-height: 1.5;
    color: var(--bv-text-secondary);
}

.baumvolk-ea-support-text a {
    color: var(--bv-accent);
    text-decoration: none;
}

.baumvolk-ea-actions {
    margin-top: 20px;
}

.baumvolk-ea-submit {
    width: 100%;
    background: var(--bv-submit-bg) !important;
    color: var(--bv-submit-text)!important;
    border: 1px solid var(--bv-submit-border)!important;
    padding: 12px 16px!important;
    border-radius: 12px!important;
    cursor: pointer!important;
    font-weight: 700!important;
    font-size: 15px!important;
    margin: 0px 0px 18px !important;
}

.baumvolk-ea-submit:hover {
    box-shadow: var(--bv-submit-shadow-active)!important;
}

.baumvolk-ea-message {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.baumvolk-ea-message.success {
    color: var(--bv-accent);
}

.baumvolk-ea-message.error {
    color: var(--bv-danger);
}
/*
@media (max-width: 768px) {
    .baumvolk-ea-toggle {
        padding: 14px 0px;
        border-radius: 10px 0 0 10px;
        font-weight: 600;
        letter-spacing: 30%;
        box-shadow: var(--bv-shadow-elevated);
    }
    
    .baumvolk-ea-content {
        width: 300px;
        height:max-content;
        right: 44px;
        right: 30px;
    }
}
*/
@media (max-width: 768px) {

    #baumvolk-early-access-box {
        top: 0;
        right: 0;
        transform: none;
    }

    .baumvolk-ea-toggle {
        position: fixed;
        right: 0;
        top: 50%;
        padding: 14px 0px;
        letter-spacing: 30%;
        transform: translateY(-50%) rotate(180deg);
        z-index: 10002;
    }

    .baumvolk-ea-content {
        position: fixed;

        left: 20px;
        right: 20px;

        top: 50%;
        transform: translateY(-50%);

        height: auto;
        max-height: calc(100dvh - 40px);

        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        border-radius: 16px;
        padding: 20px;
    }

}
