/* =====================================================
   Universal Download - Frontend Styles
   Version 2.1
   ===================================================== */

.udl-download-box {
    background: #ffffff;
    border: 1px solid #d9e2d2;
    padding: 1.5em;
    border-radius: 12px;
    max-width: 440px;
    font-family: inherit;
    margin: 1.5em 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.udl-titel {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: #1f3b1a;
}

.udl-text {
    font-size: 0.95em;
    color: #333333;
    margin-bottom: 1.2em;
    line-height: 1.5;
}

.udl-label {
    display: block;
    margin-bottom: 0.3em;
    font-weight: 700;
    font-size: 0.9em;
    color: #222222;
}

.udl-input {
    width: 100%;
    padding: 0.7em;
    margin-bottom: 1em;
    border: 1px solid #8c9b86;
    border-radius: 6px;
    font-size: 0.95em;
    box-sizing: border-box;
}

.udl-input:focus {
    border-color: #24451d;
    outline: none;
    box-shadow: 0 0 0 2px rgba(36, 69, 29, 0.18);
}

.udl-checkbox-label {
    font-size: 0.85em;
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    margin-bottom: 1.2em;
    color: #333333;
    line-height: 1.4;
    cursor: pointer;
}

.udl-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.udl-checkbox-label a {
    color: #24451d;
    text-decoration: underline;
}

.udl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #24451d;
    color: #ffffff;
    border: none;
    padding: 0.75em 1.4em;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    line-height: 1.4;
}

.udl-button:hover,
.udl-button:focus {
    background-color: #183014;
    color: #ffffff;
    transform: translateY(-1px);
}

.udl-button:active {
    transform: translateY(0);
}

.udl-direct-link {
    text-align: center;
}

.udl-message {
    padding: 1em;
    border-radius: 8px;
    font-size: 0.95em;
    line-height: 1.5;
    margin-top: 0.5em;
}

.udl-message.udl-success {
    background: #edf8ea;
    border: 1px solid #6ca65f;
    color: #214f18;
}

.udl-message.udl-error {
    background: #fbeaea;
    border: 1px solid #b04242;
    color: #7b1d1d;
}

.udl-loading {
    text-align: center;
    padding: 1em;
    color: #555555;
    font-size: 0.95em;
}

.udl-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 480px) {
    .udl-download-box {
        max-width: 100%;
        padding: 1.2em;
        margin: 1em 0;
    }

    .udl-button {
        width: 100%;
    }
}
