:root {
    --black: #262626;
    --white: #fff;
    --gray: #716e6f;
    --light-gray: #ececec;
}

.-hide {
    display: none;
}

.aff-tab__form {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: center;
    overflow: auto;
}

.aff-tab__radio-box {
    padding: 8px 16px;
    border: 1px solid var(--black);
    color: var(--black);
    background-color: transparent;
    font-size: 14px;
    cursor: pointer;
}

.aff-tab__table {
    width: 100%;
    margin-top: 32px;
}

.aff-tab__table thead tr {
    text-align: left;
    color: var(--gray);
}

.aff-tab__table thead tr th {
    font-weight: 400;
}

.aff-tab__table thead tr th:nth-child(1) {
    width: 20%;
}

.aff-tab__table tbody td {
    padding: 24px 0;
}

.aff-tab__table tbody tr:not(:last-of-type) td {
    border-bottom: 1px solid var(--light-gray);
}

.aff-tab__checkbox {
    appearance: none;
}

.aff-tab__checkbox:checked ~ .aff-tab__radio-box {
    color: var(--white);
    background-color: var(--black);
}

.aff-tab__not-found-text {
    margin-top: 32px;
}

.aff-tab__code-section {
    margin: 32px 0 40px;
    padding: 24px;
    border: 1px solid var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.aff-tab__code-copy {
    border: 0;
    background-color: transparent;
    padding: 8px;
    cursor: pointer;
}

.aff-tab__code-instruction {
    font-size: 12px;
    line-height: 22px;
    color: var(--gray);
}

.aff-tab__table-wrapper {
    overflow: auto;
}

@media screen and (max-width: 991.98px) {
    .aff-tab__code-section {
        padding: 16px;
    }

    .aff-tab__table {
        width: max-content;
    }

    .aff-tab__table thead tr th:nth-child(1) {
        width: initial;
    }

    .aff-tab__table thead tr th {
        padding-right: 12px;
    }

    .aff-tab__table tbody td {
        padding: 24px 12px 24px 0;
    }

    .aff-tab__code-section {
        margin: 24px 0;
    }
}
