.lsc-checkout {
    --lsc-green: #00a650;
    --lsc-dark: #111;
    --lsc-border: #d6d6d6;
    --lsc-bg: #f5f6f7;
    --lsc-danger: #b42318;
    --lsc-success: #067647;
    width: 100%;
    max-width: 620px;
    margin: 32px auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #202124;
}

.lsc-checkout * {
    box-sizing: border-box;
}

.lsc-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 38px rgba(0,0,0,.10);
}

.lsc-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lsc-heading h2 {
    margin: 0;
    font-size: 28px;
}

.lsc-mode {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    border: 1px solid var(--lsc-border);
    border-radius: 999px;
    padding: 6px 9px;
}

.lsc-total {
    margin: 24px 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--lsc-bg);
    border-radius: 10px;
    padding: 14px 16px;
}

.lsc-total strong {
    font-size: 22px;
}

.lsc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 24px;
}

.lsc-tab {
    height: 44px;
    border: 1px solid var(--lsc-border);
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.lsc-tab.is-active {
    background: var(--lsc-dark);
    color: #fff;
    border-color: var(--lsc-dark);
}

.lsc-panel {
    display: none;
}

.lsc-panel.is-active {
    display: block;
}

.lsc-panel h3 {
    font-size: 18px;
    margin: 0 0 18px;
}

.lsc-checkout label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 14px 0 6px;
}

.lsc-checkout label small {
    font-weight: 400;
    color: #666;
}

.lsc-checkout input,
.lsc-checkout select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--lsc-border);
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}

.lsc-checkout input:focus,
.lsc-checkout select:focus {
    border-color: var(--lsc-green);
    box-shadow: 0 0 0 2px rgba(0,166,80,.12);
}

.lsc-mp-field {
    width: 100%;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border: 1px solid var(--lsc-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    padding: 0 !important;
}

.lsc-mp-field iframe {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lsc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lsc-primary,
.lsc-secondary {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.lsc-primary {
    margin-top: 22px;
    background: var(--lsc-green);
    color: #fff;
}

.lsc-primary:hover {
    filter: brightness(.94);
}

.lsc-primary:disabled {
    opacity: .62;
    cursor: not-allowed;
}

.lsc-secondary {
    margin-top: 12px;
    background: var(--lsc-dark);
    color: #fff;
}

.lsc-pix-result,
.lsc-message {
    margin-top: 18px;
    padding: 16px;
    border-radius: 10px;
    background: var(--lsc-bg);
}

.lsc-qr {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.lsc-qr img {
    width: 250px;
    max-width: 100%;
    height: auto;
    padding: 8px;
    background: #fff;
    border-radius: 10px;
}

.lsc-pix-code {
    margin-top: 10px;
    padding: 12px;
    word-break: break-all;
    border-radius: 8px;
    background: #fff;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.5;
}

.lsc-ticket {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-weight: 700;
}

.lsc-paid,
.lsc-message-success {
    background: #ecfdf3;
    color: var(--lsc-success);
    border: 1px solid #abefc6;
}

.lsc-message-error {
    background: #fef3f2;
    color: var(--lsc-danger);
    border: 1px solid #fecdca;
}

.lsc-debug {
    margin-top: 24px;
}

.lsc-debug h4 {
    margin: 0 0 8px;
    font-size: 13px;
}

.lsc-debug pre {
    min-height: 88px;
    max-height: 320px;
    overflow: auto;
    margin: 0;
    border-radius: 9px;
    background: #111;
    color: #00ff88;
    padding: 14px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 600px) {
    .lsc-checkout {
        margin: 12px auto;
    }

    .lsc-card {
        padding: 18px;
        border-radius: 12px;
    }

    .lsc-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .lsc-grid {
        gap: 8px;
    }
}
