.tlb-sp-box {
    width: 100%;
    margin: 14px 0 0;
}

.tlb-sp-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px dashed #ff5a36;
    border-radius: 8px;
    background: #fffdfb;
}

.tlb-sp-offer__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: #374151;
    font-size: 15px;
}

.tlb-sp-offer__price strong {
    color: #ff4d2d;
    font-size: 24px;
    line-height: 1;
}

.tlb-sp-offer__vip {
    color: #6b4e16;
    font-size: 14px;
    white-space: nowrap;
}

.tlb-sp-offer__note {
    grid-column: 1 / -1;
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.tlb-sp-toggle,
.tlb-sp-form button,
.tlb-sp-download a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    padding: 9px 16px;
    background: #ff5a36;
    color: #fff !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.tlb-sp-toggle:hover,
.tlb-sp-toggle:focus,
.tlb-sp-form button:hover,
.tlb-sp-download a:hover {
    background: #e74422;
}

.tlb-sp-form button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.tlb-sp-download a.is-loading {
    min-width: 210px;
    opacity: 0.68;
    cursor: wait;
    pointer-events: auto;
    background: #b45309;
}

.tlb-sp-download a.is-loading:hover,
.tlb-sp-download a.is-loading:focus {
    background: #b45309;
}

.tlb-sp-panel[hidden] {
    display: none;
}

.tlb-sp-panel {
    margin-top: 12px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 32, 50, 0.06);
}

.tlb-sp-panel__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.tlb-sp-panel__head span {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
}

.tlb-sp-panel__head strong {
    color: #ff4d2d;
    font-size: 24px;
}

.tlb-sp-panel__guide {
    margin: -4px 0 14px;
    color: #4b5563;
    font-size: 14px;
}

.tlb-sp-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.tlb-sp-form label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.tlb-sp-form label span {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.tlb-sp-form input[type="email"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfd7e3;
    border-radius: 6px;
    padding: 9px 12px;
    background: #fff;
}

.tlb-sp-message {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 14px;
}

.tlb-sp-message.is-success {
    background: #ecfdf5;
    color: #047857;
}

.tlb-sp-message.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.tlb-sp-payment {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.tlb-sp-payment__pending {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.tlb-sp-payment__qr {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.tlb-sp-payment__qr img {
    width: 260px;
    height: 260px;
    max-width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38' stroke='%23ff5a36'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg transform='translate(1 1)' stroke-width='3'%3E%3Ccircle stroke-opacity='.2' cx='18' cy='18' r='18'/%3E%3Cpath d='M36 18c0-9.94-8.06-18-18-18'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 18 18' to='360 18 18' dur='0.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat center center;
}

.tlb-sp-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 6px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tlb-sp-spin 0.75s linear infinite;
    vertical-align: middle;
}

@keyframes tlb-sp-spin {
    to { transform: rotate(360deg); }
}

.tlb-sp-payment__qr a,
.tlb-sp-manual-toggle {
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.tlb-sp-manual-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tlb-sp-payment__info {
    display: grid;
    width: min(100%, 520px);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.tlb-sp-payment__info > div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.tlb-sp-payment__info > div:last-child {
    border-bottom: 0;
}

.tlb-sp-payment__info span {
    color: #6b7280;
    font-size: 13px;
}

.tlb-sp-payment__info strong,
.tlb-sp-payment__info button {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tlb-sp-payment__info button {
    width: fit-content;
    border: 0;
    border-radius: 6px;
    padding: 5px 8px;
    background: #f3f4f6;
    cursor: pointer;
    text-align: left;
}

.tlb-sp-payment__info button.is-copied {
    background: #dcfce7;
    color: #166534;
}

.tlb-sp-payment__status {
    width: min(100%, 520px);
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 700;
    text-align: center;
}

.tlb-sp-success {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 20px 0 4px;
    text-align: center;
}

.tlb-sp-success__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 30px;
    font-weight: 800;
}

.tlb-sp-success strong {
    color: #111827;
    font-size: 20px;
}

.tlb-sp-success p {
    margin: 0;
    color: #4b5563;
}

.tlb-sp-success__pass {
    max-width: 520px;
    color: #374151 !important;
    font-size: 14px;
    line-height: 1.5;
}

.tlb-sp-success__pass strong {
    font-size: inherit;
}

@media (max-width: 700px) {
    .tlb-sp-offer {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .tlb-sp-offer__vip {
        white-space: normal;
    }

    .tlb-sp-toggle,
    .tlb-sp-form button,
    .tlb-sp-download a {
        width: 100%;
    }

    .tlb-sp-form {
        grid-template-columns: 1fr;
    }

    .tlb-sp-payment__info > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .tlb-sp-panel__head {
        display: grid;
        gap: 4px;
    }
}
