/**
 * @author    Togstro GmbH
 * @copyright 2026 Togstro GmbH
 * @license   Commercial license
 */

.easy-quote-pdf-open {
    overflow: hidden;
}

.easy-quote-pdf-modal[hidden] {
    display: none;
}

.easy-quote-pdf-modal {
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 20px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000;
}

.easy-quote-pdf-form {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    color: inherit;
    font-family: inherit;
    max-height: calc(100vh - 40px);
    max-width: 680px;
    overflow: auto;
    padding: 24px;
    text-align: left;
    width: 100%;
}

.easy-quote-pdf-head {
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    margin: -4px 0 18px;
    padding-bottom: 12px;
}

.easy-quote-pdf-form .h3 {
    font-family: inherit;
    margin: 0;
}

.easy-quote-pdf-x {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    opacity: 0.65;
    padding: 0 2px;
}

.easy-quote-pdf-x:hover,
.easy-quote-pdf-x:focus {
    opacity: 1;
}

.easy-quote-pdf-choice-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 6px;
}

.easy-quote-pdf-choice {
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    min-height: 42px;
    padding: 9px 10px;
}

.easy-quote-pdf-choice:hover,
.easy-quote-pdf-choice:focus-within {
    border-color: currentColor;
}

.easy-quote-pdf-choice input {
    flex: 0 0 auto;
    margin: 0;
}

.easy-quote-pdf-choice span {
    font-size: 0.92rem;
    line-height: 1.2;
}

.easy-quote-pdf-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.easy-quote-pdf-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

@media (max-width: 575px) {
    .easy-quote-pdf-form {
        padding: 18px;
    }

    .easy-quote-pdf-grid {
        grid-template-columns: 1fr;
    }

    .easy-quote-pdf-choice-grid {
        grid-template-columns: 1fr;
    }

    .easy-quote-pdf-actions {
        flex-direction: column-reverse;
    }

    .easy-quote-pdf-actions .btn {
        width: 100%;
    }
}
