:root {
    color-scheme: light;
    --ink: #17213b;
    --muted: #52617b;
    --brand: #203ee1;
    --brand-dark: #172fbd;
    --line: #e0e7f2;
    --surface: #fff;
    background: #f4f7fc;
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
.merchant-shell { width: min(1088px, 100%); max-width: none; margin: 0 auto; padding: 34px 28px 60px; }
.merchant-shell .merchant-header {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    margin: 0 0 22px; padding: 12px 0 22px;
}
.merchant-brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.merchant-brand img { display: block; width: 54px; height: 54px; border-radius: 13px; box-shadow: 0 3px 12px #203ee12a; }
.merchant-brand h1 { margin: 0; font-size: clamp(1.2rem, 4vw, 1.65rem); font-weight: 760; letter-spacing: -.035em; }
.merchant-header .merchant-brand p { margin: 3px 0 0; color: var(--muted); font-size: .85rem; }
.merchant-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.merchant-actions form { margin: 0; }
.merchant-store { color: #34446a; font-size: .84rem; font-weight: 620; white-space: nowrap; }
.merchant-navigation {
    display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 22px;
    padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.merchant-navigation a {
    display: flex; align-items: center; gap: 8px; color: var(--muted); padding: 10px 14px;
    font-weight: 650; font-size: .9rem; text-decoration: none; border-radius: 7px;
}
.merchant-navigation a:hover { background: #f4f6fd; color: var(--brand); }
.merchant-navigation a[aria-current="page"] { background: #eaf0ff; color: #2037b3; }
.merchant-navigation svg, .merchant-button svg { flex: 0 0 auto; width: 17px; height: 17px; }
.merchant-shell section {
    padding: 24px; margin: 0 0 18px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 4px #16265607;
}
.merchant-shell h2 { margin: 0; font-size: 1.2rem; font-weight: 760; letter-spacing: -.02em; }
.merchant-shell p { line-height: 1.55; }
.merchant-shell .section-title { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 18px; }
.section-title > svg {
    flex: 0 0 auto; box-sizing: content-box; padding: 9px; border-radius: 9px;
    background: #eaf0ff; color: var(--brand);
}
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: .91rem; }
.merchant-shell label { font-size: .9rem; font-weight: 650; }
.merchant-shell input:not([type=checkbox]):not([type=hidden]) {
    display: block; width: 100%; min-width: 0; margin-top: 7px; padding: 10px 12px;
    border: 1px solid #bdc9de; color: var(--ink); background: #fff; border-radius: 8px; font: inherit;
}
.merchant-shell input[type="checkbox"] { accent-color: var(--brand); }
.merchant-shell fieldset { min-width: 0; margin: 16px 0; border: 1px solid var(--line); border-radius: 9px; padding: 12px 16px; }
.merchant-shell legend { padding: 0 6px; font-size: .88rem; font-weight: 700; }
.merchant-shell .check { min-height: 30px; }
.merchant-shell .check input { flex: 0 0 auto; }
.merchant-shell button, .merchant-shell .merchant-button, .merchant-shell .oauth-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px;
    padding: 9px 13px; background: var(--brand); color: #fff; border: 1px solid transparent;
    border-radius: 8px; font: inherit; font-size: .87rem; font-weight: 675; cursor: pointer; text-decoration: none;
}
.merchant-shell button:hover, .merchant-shell .merchant-button:hover, .merchant-shell .oauth-button:hover { background: var(--brand-dark); }
.merchant-shell .secondary { color: #253cb8; border-color: #d2dbf3; background: #fff; }
.merchant-shell .secondary:hover { background: #eff3ff; }
.merchant-shell .notice, .merchant-shell .success, .merchant-shell .error { padding: 12px 14px; border-radius: 8px; }
.merchant-shell .notice { background: #eef3ff; color: #263d7b; }
.merchant-shell .notice a { color: #2037b3; font-weight: 700; }
.merchant-shell .success { background: #e1f5ec; color: #1e5d41; }
.merchant-shell .error { background: #ffeaea; color: #8b2424; }
.billing-grid, .payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.billing-grid .wide { grid-column: 1 / -1; }
.billing-grid label { display: block; margin: 0; }
.merchant-form-actions { margin-top: 22px; }
.payment-card { border: 1px solid var(--line); padding: 18px; border-radius: 11px; }
.payment-card h3 { margin: 10px 0 14px; font-size: 1.03rem; }
.payment-icon { display: inline-flex; padding: 9px; border-radius: 9px; }
.payment-icon.mercadopago { color: #00668e; background: #e1f5fb; }
.payment-icon.paypal { color: #1c46a1; background: #eaf0ff; }
.payment-status, .payment-footnote { color: var(--muted); font-size: .86rem; }
.payment-footnote { margin: 17px 0 0; }
.merchant-shell :focus-visible { outline: 3px solid #203ee1; outline-offset: 3px; }
@media (max-width: 620px) {
    .merchant-shell { padding: 19px 14px 36px; }
    .merchant-shell .merchant-header { align-items: flex-start; margin-bottom: 12px; padding-bottom: 10px; }
    .merchant-brand img { width: 42px; height: 42px; border-radius: 10px; }
    .merchant-brand { gap: 9px; }
    .merchant-actions { align-items: flex-end; flex-direction: column; gap: 5px; }
    .merchant-actions button { min-height: 35px; white-space: nowrap; padding: 5px 8px; font-size: .76rem; }
    .merchant-actions button svg { display: none; }
    .merchant-navigation { gap: 2px; margin-bottom: 14px; }
    .merchant-navigation a { gap: 5px; padding: 8px 7px; font-size: .8rem; }
    .merchant-shell section { padding: 16px; }
    .billing-grid, .payment-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
}
