.sellerProductPdfModalOpen {
    overflow: hidden;
}

.sellerProductPdfModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.sellerProductPdfModal[hidden] {
    display: none;
}

.sellerProductPdfModal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
}

.sellerProductPdfModal__dialog {
    position: relative;
    width: calc(100% - 2rem);
    max-width: 760px;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin: 1rem auto;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--boxShadow);
}

.sellerProductPdfModal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background-color: indianred;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
}

.sellerProductPdfModal__header {
    padding: 1.5rem;
    background-color: var(--primaryColor);
    color: white;

    h2 {
        margin: 0 0 0.5rem;
        font-size: 1.2rem;
        text-transform: uppercase;
    }

    p {
        margin: 0;
        font-size: 0.9rem;
        opacity: 0.9;
    }
}

.sellerProductPdfModal__body {
    padding: 1.5rem;
}

.sellerProductPdfModes {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;

    @media (min-width: 768px) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sellerProductPdfMode {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: solid 1px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius);
    background-color: aliceblue;

    input {
        width: auto;
    }

    span {
        font-weight: bold;
    }
}

.sellerProductPdfCustomerZone {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sellerProductPdfSearchLabel {
    font-weight: bold;
    color: var(--titleColor);
}

.sellerProductPdfSearch {
    width: 100%;
    padding: 0.75rem;
    border: solid 1px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
}

.sellerProductPdfSelected {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 38px;
}

.sellerProductPdfSelectedEmpty {
    color: var(--hint);
    font-size: 0.9rem;
}

.sellerProductPdfSelectedItem {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    background-color: var(--secondaryColor);
    color: white;

    strong {
        font-size: 1rem;
    }
}

.sellerProductPdfResults {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 280px;
    overflow: auto;
    padding: 0.5rem;
    border: solid 1px rgba(0, 0, 0, 0.12);
    border-radius: var(--radius);
    background-color: #f7f7f7;
}

.sellerProductPdfResultItem {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius);
    background-color: white;
    box-shadow: var(--boxShadow);
    text-align: left;

    strong {
        color: var(--primaryColor);
        white-space: nowrap;
    }

    &.isSelected {
        background-color: #e8f7ee;

        strong {
            color: mediumseagreen;
        }
    }
}

.sellerProductPdfEmpty,
.sellerProductPdfAllNotice {
    padding: 0.75rem;
    color: var(--hint);
    background-color: aliceblue;
    border-radius: var(--radius);
}

.sellerProductPdfStatus {
    margin-top: 1rem;
    min-height: 24px;
    font-weight: bold;

    &.is-loading {
        color: var(--hint);
    }

    &.is-success {
        color: mediumseagreen;
    }

    &.is-error {
        color: indianred;
    }
}

.sellerProductPdfModal__footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;

    @media (min-width: 640px) {
        flex-direction: row;
        justify-content: flex-end;
    }

    button {
        border: none;
        padding: 0.75rem 1rem;
        border-radius: var(--radius);
        box-shadow: var(--boxShadow);
        font-weight: bold;
    }
}

.sellerProductPdfCancelBtn {
    background-color: #eee;
    color: #222;
}

.sellerProductPdfSubmitBtn {
    background-color: mediumseagreen;
    color: white;

    &:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
}

@media (min-width: 1024px) {
    .sellerProductPdfModal__close,
    .sellerProductPdfSelectedItem,
    .sellerProductPdfResultItem,
    .sellerProductPdfCancelBtn,
    .sellerProductPdfSubmitBtn {
        transition: 0.2s;

        &:hover {
            cursor: pointer;
            transform: translateY(-2px);
        }
    }
}