.fixed-max-width {
    max-width: 480px;
}

.button-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.telegram-token-spinner, .payment-token-spinner {
    background-image: url(../images/spinner.gif);
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    background-size: cover;
}

.launch-instruction {
    list-style-type: disc;
    padding: 15px;
}

.status-container {
    position: absolute;
    left: calc(100% + 10px);

    display: flex;
    gap: 10px;
    align-items: center;
    
    height: 100%;
}

#telegram_token_result, #payment_token_result {
    padding-left: 10px;
    margin: 4px 0;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
}

#telegram_token_result.error, #payment_token_result.error {
    color: red;
}

#telegram_token_result.updated, #payment_token_result.updated {
    color: green;
}

.bot_token_table th {
    text-align: start;
    width: 1%;
    white-space: nowrap;
}

.bot_token_table td {
    display: flex;
}

.input-shop-row {
    position: relative;
}

.input-shop-row input {
    width: 100%;
}

.shop-actions-row > td {
    justify-content: space-between;
}

.payment-tokens, .payment-tokens th, .payment-tokens td{
    border: 1px solid black;
    border-collapse: collapse;
}

.payment-tokens th, .payment-tokens td {
    padding: 5px;
}

.payment-tokens {
    width: 100%;
    margin-bottom: 5px;
}

.new-payment-token > td {
    text-align: center;
}

.new-payment-token input {
    width: 100%;
}

.payment-tokens__buttons {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.empty-payment-tokens {
    display: none;
}

.instruction-summary {
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

.instruction-break-line {
    border-top: 1px solid #85878a;
    border-bottom: 1px solid #cdcfcf;
    margin-top: 20px;
    margin-bottom: 20px;
}


/* Settings */

.tgshop_settings_table {
    display: grid;
    grid-template-columns: max-content min-content;
    align-items: center;
    justify-items: flex-start;
    column-gap: 20vw;
    row-gap: 12px;

    padding: 16px 0;
    margin-bottom: 16px;
}

.tgshop_settings_table > h3 {
    font-size: inherit;
    line-height: inherit;
    font-weight: bold;
    color: inherit;
    padding: .25rem 0;
    margin: 0;
}

.tgshop_settings_table select {
    margin: 0;
}

.payment_tokens_container {
    display: grid;
    justify-content:start;
}

.payment-tokens-label{
    margin: 0rem 0rem;
}

.payment-tokens-label p{
    margin: 0em 0rem;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

@media (max-width: 480px) {
    .bot_token_table, .payment-tokens {
        width: 80%;
        max-width: 100%;
        table-layout: auto;
    }

    .bot_token_table th, .bot_token_table td,
    .payment-tokens th, .payment-tokens td {
        width: auto;
    }

    .bot_token_table th,
    .bot_token_table td {
        display: block;
        width: 100%;
    }

    .bot_token_table th {
        margin-bottom: 5px;
    }

    .bot_token_table td {
        display: flex;
    }
}
