/* --------------------------------------------------------------
# List shuffler
-------------------------------------------------------------- */

.list-shuffler {
    align-self: start;
}

.list-shuffler [hidden] {
    display: none !important;
}

.list-shuffler-input-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 26px;
    padding: 20px 20px 15px;
    background: #fff;
    border-radius: 20px;
}

.list-shuffler-input-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.list-shuffler-input-head label {
    margin: 0;
}

.list-shuffler-input-head span,
.list-shuffler-input-wrap small {
    font-size: 12px;
    line-height: 1.4;
    color: #77758b;
}

.list-shuffler-input-wrap textarea,
.list-shuffler-input-wrap textarea:hover,
.list-shuffler-input-wrap textarea:focus {
    box-sizing: border-box;
    min-height: 250px;
    padding: 0;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    resize: vertical;
    border: 1px solid transparent !important;
    outline: none;
    box-shadow: none;
}

.list-shuffler-input-wrap small {
    margin-top: 12px;
}

.list-shuffler-numbered {
    align-items: center;
    margin-bottom: 26px;
}

.list-shuffler-error {
    margin-bottom: 20px;
}

.list-shuffler-results {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e4e2ea;
}

.list-shuffler-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.list-shuffler-results-head .h4 {
    margin: 0;
    font-size: 22px;
}

.list-shuffler-results-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #77758b;
}

.list-shuffler-copy {
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #4343a0;
    text-transform: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.list-shuffler-copy:hover {
    opacity: .65;
}

.list-shuffler-output {
    padding: 20px;
    background: #fff;
    border-radius: 16px;
}

.list-shuffler-output-list {
    margin: 0;
    line-height: 1.5;
}

.list-shuffler-output-list li {
    padding: 4px 0;
    overflow-wrap: anywhere;
}

.list-shuffler-output-list--numbered {
    padding-left: 30px;
}

.list-shuffler-output-list--plain {
    padding: 0;
    list-style: none;
}

.list-shuffler-copy-status,
.list-shuffler-share-status {
    margin-top: 10px;
    font-size: 12px;
    color: #5f5f7a;
}

.list-shuffler-share-actions {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.list-shuffler-share-button {
    width: auto;
}

.list-shuffler-share-box {
    margin-top: 20px;
    padding: 18px;
    background: #fff;
    border-radius: 16px;
}

.list-shuffler-share-box label {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
}

.list-shuffler-share-url-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.list-shuffler-share-url-row input {
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    font-size: 13px;
    background: #f7f7fb;
    border: 1px solid #e8e5ef;
}

.list-shuffler-share-copy {
    width: auto;
    min-height: 48px;
    padding: 0 18px;
    font-size: 12px;
}

.list-shuffler-content-footer {
    justify-content: flex-start;
}

.list-shuffler-note {
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
    color: #5f5f7a;
}

.list-shuffler-note code {
    padding: 2px 5px;
    font-size: 12px;
    background: #f3f3f8;
    border-radius: 4px;
}

/* Shared result */

.list-shuffler-shared-wrap {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 0 0 50px;
}

.list-shuffler-shared-wrap > h1 {
    margin-bottom: 30px;
    text-align: center;
}

.list-shuffler-results--shared {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.list-shuffler-shared .list-shuffler-results-head {
    justify-content: center;
    text-align: center;
}

.list-shuffler-shared .list-shuffler-results-meta {
    text-align: center;
}

.list-shuffler-shared-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.list-shuffler-shared-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 640px) {
    .list-shuffler-input-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .list-shuffler-copy {
        min-height: 0 !important;
    }

    .list-shuffler-share-url-row {
        grid-template-columns: 1fr;
    }

    .list-shuffler-share-copy {
        width: 100%;
    }

    .list-shuffler-shared-wrap {
        padding-bottom: 30px;
    }

    .list-shuffler-shared-wrap > h1 {
        text-align: left;
    }

    .list-shuffler-shared .list-shuffler-results-head {
        align-items: center;
    }
}
