.touravel-support-payment {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    margin: 10px 22px 12px;
    padding: 10px 12px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
}

.touravel-support-payment--compact {
    grid-template-columns: minmax(0, 1fr) auto;
}

.touravel-support-payment h3 {
    margin: 0 0 2px;
    font-size: 15px;
    line-height: 1.25;
}

.touravel-support-payment p {
    margin: 0;
    color: #5f6b7a;
    font-size: 12.5px;
    line-height: 1.3;
}

.tsp-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0;
}

.touravel-support-payment--compact .tsp-controls {
    grid-template-columns: auto auto;
    margin-top: 0;
}

.tsp-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tsp-amount,
.tsp-submit {
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.tsp-amount {
    border: 1px solid #d7dee8;
    background: #f8fafc;
    color: #26313f;
}

.tsp-amount:hover,
.tsp-amount:focus,
.tsp-amount.is-selected {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.08);
    color: #c2410c;
    outline: 0;
}

.tsp-submit {
    border: 1px solid #111827;
    background: #111827;
    color: #ffffff;
    white-space: nowrap;
}

.tsp-submit:hover,
.tsp-submit:focus {
    border-color: #f97316;
    background: #f97316;
    color: #ffffff;
    outline: 0;
}

.tsp-submit:disabled,
.touravel-support-payment.is-busy .tsp-submit {
    opacity: 0.65;
    cursor: progress;
}

.tsp-custom {
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 0;
    color: #5f6b7a;
    font-size: 12px;
    line-height: 1.2;
}

.touravel-support-payment--compact .tsp-custom,
.touravel-support-payment--compact .tsp-range {
    display: none;
}

.tsp-custom input {
    width: 74px;
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    color: #111827;
}

.tsp-custom input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
    outline: 0;
}

.tsp-range,
.tsp-status {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.35;
}

.tsp-range {
    display: none;
}

.tsp-status {
    grid-column: 1 / -1;
    min-height: 0;
    margin-top: 0;
}

.tsp-status:empty {
    display: none;
}

.touravel-support-payment--compact .tsp-status {
    grid-column: 1 / -1;
    margin-top: 0;
}

.tsp-status.is-error {
    color: #b91c1c;
}

@media (max-width: 720px) {
    .touravel-support-payment,
    .touravel-support-payment--compact {
        display: block;
        margin: 14px 14px 18px;
    }

    .tsp-controls,
    .touravel-support-payment--compact .tsp-controls {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .tsp-amounts,
    .tsp-submit {
        width: 100%;
    }

    .tsp-amounts {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tsp-amount,
    .tsp-submit {
        width: 100%;
    }

    .touravel-support-payment--compact .tsp-custom,
    .touravel-support-payment--compact .tsp-range {
        display: grid;
    }

    .tsp-custom input {
        width: 100%;
    }

    .tsp-range {
        grid-column: auto;
        margin-top: -3px;
    }
}
