/* ===== MERCADO PAGO CHECKOUT CLONE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --mp-blue: #009ee3;
    --mp-blue-hover: #0087c9;
    --mp-blue-dark: #00689b;
    --mp-green: #00a650;
    --mp-green-hover: #009048;
    --mp-green-dark: #007a39;
    --mp-bg: #ebebeb;
    --mp-white: #ffffff;
    --mp-text: #333333;
    --mp-text-sec: #666666;
    --mp-text-muted: #999999;
    --mp-border: #e0e0e0;
    --mp-border-focus: #009ee3;
    --mp-error: #f23d4f;
    --mp-pix-green: #00a650;
    --mp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--mp-font);
    background: var(--mp-bg);
    color: var(--mp-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--mp-font); }
input, select, textarea { font-family: var(--mp-font); }

/* ===== HEADER ===== */
.mp-header {
    background: #fee503;
    height: 56px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mp-header-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mp-logo {
    display: flex;
    align-items: center;
}

.mp-logo-img {
    width: 100%;
    max-width: 160px;
    height: auto;
}

.mp-header-security {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(9, 9, 9, 0.85);
    font-size: 13px;
}

.mp-header-security svg {
    width: 16px;
    height: 16px;
}

/* ===== MAIN ===== */
.mp-main {
    padding: 32px 16px;
    flex: 1;
}

.mp-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.mp-payment-col {
    flex: 1;
    max-width: 620px;
}

.mp-summary-col {
    width: 340px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
}

/* ===== STEPS ===== */
.mp-step {
    display: none;
    animation: mpStepIn 0.35s ease;
}

.mp-step.active {
    display: block;
}

@keyframes mpStepIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== CARD ===== */
.mp-card {
    background: var(--mp-white);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 24px;
    margin-bottom: 16px;
}

.mp-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--mp-text);
    margin-bottom: 20px;
}

/* ===== STEP HEADER ===== */
.mp-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mp-step-header .mp-section-title {
    margin-bottom: 0;
}

.mp-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mp-blue);
    color: white;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== CONTINUE / BACK BUTTONS ===== */
.mp-continue-btn {
    width: 100%;
    height: 48px;
    background: var(--mp-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: 8px;
}

.mp-continue-btn:hover {
    background: var(--mp-blue-hover);
}

.mp-continue-btn:active {
    background: var(--mp-blue-dark);
}

.mp-step-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.mp-step-buttons .mp-continue-btn,
.mp-step-buttons .mp-pay-button {
    flex: 1;
}

.mp-back-step-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: none;
    border: 1px solid var(--mp-border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--mp-text-sec);
    transition: all 0.2s;
    white-space: nowrap;
    height: 48px;
}

.mp-back-step-btn:hover {
    border-color: var(--mp-text-sec);
    color: var(--mp-text);
    background: #f5f5f5;
}

/* ===== TABS ===== */
.mp-tabs {
    display: flex;
    border-bottom: 2px solid var(--mp-border);
    margin-bottom: 24px;
    gap: 0;
}

.mp-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px 14px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: var(--mp-text-sec);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.mp-tab:hover {
    color: var(--mp-text);
    background: rgba(0,0,0,0.02);
}

.mp-tab.active {
    color: var(--mp-blue);
    border-bottom-color: var(--mp-blue);
    font-weight: 600;
}

.mp-tab svg {
    width: 24px;
    height: 24px;
}

.mp-tab.active svg {
    stroke: var(--mp-blue);
}

/* ===== TAB CONTENT ===== */
.mp-tab-content {
    display: none;
}

.mp-tab-content.active {
    display: block;
}

/* ===== FORM FIELDS ===== */
.mp-form-group {
    margin-bottom: 20px;
}

.mp-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-text-sec);
    margin-bottom: 6px;
}

.mp-form-group input,
.mp-form-group select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--mp-border);
    border-radius: 6px;
    padding: 0 16px;
    font-size: 16px;
    color: var(--mp-text);
    background: var(--mp-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.mp-form-group input::placeholder {
    color: var(--mp-text-muted);
}

.mp-form-group input:focus,
.mp-form-group select:focus {
    border-color: var(--mp-border-focus);
    box-shadow: 0 0 0 1px var(--mp-border-focus);
}

.mp-form-group input.error,
.mp-form-group select.error {
    border-color: var(--mp-error);
    box-shadow: 0 0 0 1px var(--mp-error);
}

.mp-error-msg {
    font-size: 12px;
    color: var(--mp-error);
    margin-top: 4px;
    display: none;
}

.mp-error-msg.show {
    display: block;
}

.mp-form-row {
    display: flex;
    gap: 16px;
}

.mp-half {
    flex: 1;
}

/* ===== INPUT WITH ICON ===== */
.mp-input-icon {
    position: relative;
}

.mp-input-icon input {
    padding-right: 56px;
}

.mp-card-brand {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.mp-card-brand img,
.mp-card-brand svg {
    height: 24px;
    width: auto;
}

.mp-cvv-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.4;
}

/* ===== SELECT ===== */
.mp-select-wrap {
    position: relative;
}

.mp-select-wrap select {
    padding-right: 40px;
    cursor: pointer;
}

.mp-select-wrap::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--mp-text-sec);
    pointer-events: none;
}

#address-cep {
    max-width: 200px;
    transition: opacity 0.2s;
}

.mp-cep-link {
    display: inline-block;
    font-size: 12px;
    color: var(--mp-blue);
    margin-top: 8px;
    margin-bottom: 4px;
}

.mp-cep-link:hover {
    text-decoration: underline;
}

.mp-optional {
    font-weight: 400;
    color: var(--mp-text-muted);
    font-size: 12px;
}

/* ===== ADDRESS FIELDS ===== */
.mp-address-fields {
    animation: mpSlideDown 0.3s ease;
}

@keyframes mpSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mp-third {
    flex: 0 0 35%;
}

.mp-two-thirds {
    flex: 1;
}

.mp-form-group input[readonly] {
    background: #f5f5f5;
    color: var(--mp-text-sec);
}

/* ===== DELIVERY CARD ===== */
.mp-delivery-card {
    animation: mpSlideDown 0.3s ease;
}

.mp-delivery-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--mp-text);
    margin-bottom: 14px;
}

.mp-delivery-option {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--mp-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.mp-delivery-option.selected {
    border-color: var(--mp-green);
    background: #f0faf4;
}

.mp-delivery-radio {
    padding-top: 2px;
}

.mp-radio-dot {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--mp-border);
    position: relative;
    transition: border-color 0.2s;
}

.mp-delivery-option.selected .mp-radio-dot {
    border-color: var(--mp-green);
}

.mp-delivery-option.selected .mp-radio-dot::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mp-green);
}

.mp-delivery-info {
    flex: 1;
}

.mp-delivery-top {
    margin-bottom: 8px;
}

.mp-delivery-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mp-badge-full {
    display: inline-block;
    background: #00a650;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.mp-badge-free {
    display: inline-block;
    background: #e8f5e9;
    color: #00a650;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 3px;
}

.mp-delivery-details {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.mp-delivery-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.mp-delivery-name {
    font-size: 14px;
    color: var(--mp-text);
    margin-bottom: 2px;
}

.mp-delivery-date {
    font-size: 14px;
    color: var(--mp-green);
    margin-bottom: 2px;
}

.mp-delivery-date strong {
    font-weight: 700;
}

.mp-delivery-note {
    font-size: 12px;
    color: var(--mp-text-muted);
}

.mp-delivery-address-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: #f5f9ff;
    border-radius: 6px;
    font-size: 13px;
    color: var(--mp-text-sec);
}

.mp-delivery-address-summary svg {
    flex-shrink: 0;
}

/* ===== PIX CONTENT ===== */
.mp-pix-content {
    text-align: center;
    padding: 8px 0;
}

.mp-pix-discount {
    display: inline-block;
    background: #e8f5e9;
    color: var(--mp-green);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.mp-pix-price {
    font-size: 16px;
    color: var(--mp-text);
    margin-bottom: 12px;
}

.mp-pix-price strong {
    font-size: 28px;
    color: var(--mp-text);
}

.mp-pix-instructions {
    font-size: 14px;
    color: var(--mp-text-sec);
    margin-bottom: 8px;
}

.mp-pix-qr-container {
    margin-top: 20px;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 8px;
}

.mp-pix-qr-code {
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: white;
    padding: 8px;
    border-radius: 8px;
}

.mp-pix-qr-code canvas {
    width: 100%;
    height: 100%;
}

.mp-pix-copy-area {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto 12px;
}

.mp-pix-copy-area input {
    flex: 1;
    height: 40px;
    border: 1px solid var(--mp-border);
    border-radius: 6px;
    padding: 0 12px;
    font-size: 12px;
    color: var(--mp-text-sec);
    background: white;
    outline: none;
}

.mp-pix-copy-btn {
    height: 40px;
    padding: 0 16px;
    background: var(--mp-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.mp-pix-copy-btn:hover {
    background: var(--mp-blue-hover);
}

.mp-pix-timer {
    font-size: 13px;
    color: var(--mp-text-muted);
}

.mp-pix-timer span {
    font-weight: 600;
    color: var(--mp-text);
}

/* ===== PIX LOADING & ERROR ===== */
.mp-pix-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
}

.mp-pix-loading p {
    font-size: 14px;
    color: var(--mp-text-sec);
}

.mp-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--mp-border);
    border-top-color: var(--mp-blue);
    border-radius: 50%;
    animation: mpSpin 0.8s linear infinite;
}

@keyframes mpSpin {
    to { transform: rotate(360deg); }
}

.mp-pix-error {
    text-align: center;
    padding: 12px 16px;
    margin-top: 12px;
    background: #fef2f2;
    color: var(--mp-error);
    border-radius: 6px;
    font-size: 14px;
}

.mp-pix-qr-code img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* ===== CARD REJECTED BANNER ===== */
.mp-card-rejected {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fef2f2;
    border-left: 4px solid var(--mp-error);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    animation: mpSlideDown 0.3s ease;
}

.mp-card-rejected-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--mp-error);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-card-rejected-icon svg {
    stroke: white;
    width: 18px;
    height: 18px;
}

.mp-card-rejected-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-text);
    margin-bottom: 4px;
}

.mp-card-rejected-desc {
    font-size: 13px;
    color: var(--mp-text-sec);
    line-height: 1.4;
}

/* ===== PAY BUTTON ===== */
.mp-pay-button {
    width: 100%;
    height: 48px;
    background: var(--mp-green);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
}

.mp-pay-button:hover {
    background: var(--mp-green-hover);
}

.mp-pay-button:active {
    background: var(--mp-green-dark);
}

.mp-pay-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== SECURITY FOOTER ===== */
.mp-security-footer {
    text-align: center;
    padding: 20px 0 16px;
    font-size: 12px;
    color: var(--mp-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: auto;
}

.mp-security-footer svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.mp-powered {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #bbb;
}

/* ===== ORDER SUMMARY (Desktop) ===== */
.mp-summary-card {
    padding: 20px 24px;
}

.mp-summary-title-desktop {
    font-size: 16px;
    font-weight: 600;
    color: var(--mp-text);
    margin-bottom: 16px;
}

.mp-summary-product {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.mp-summary-product img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 4px;
}

.mp-product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--mp-text);
    line-height: 1.3;
}

.mp-product-qty {
    font-size: 13px;
    color: var(--mp-text-muted);
    margin-top: 2px;
}

.mp-summary-divider {
    height: 1px;
    background: var(--mp-border);
    margin: 12px 0;
}

.mp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--mp-text-sec);
    margin-bottom: 8px;
}

.mp-free {
    color: var(--mp-green);
    font-weight: 600;
}

.mp-summary-discount span {
    color: var(--mp-green);
}

.mp-summary-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--mp-text);
    margin-bottom: 4px;
}

.mp-summary-total span:last-child {
    font-size: 20px;
}

.mp-summary-installments {
    font-size: 12px;
    color: var(--mp-text-muted);
    text-align: right;
    margin-bottom: 0;
}

/* ===== TRUST BADGES ===== */
.mp-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding: 0 8px;
}

.mp-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--mp-text-muted);
}

.mp-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
}

/* ===== MODALS ===== */
.mp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mp-modal {
    background: white;
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.mp-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--mp-border);
    border-top-color: var(--mp-blue);
    border-radius: 50%;
    animation: mpSpin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes mpSpin {
    to { transform: rotate(360deg); }
}

.mp-modal p {
    font-size: 16px;
    color: var(--mp-text-sec);
}

.mp-modal-success svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.mp-modal-success h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--mp-text);
    margin-bottom: 8px;
}

.mp-modal-success p {
    margin-bottom: 24px;
}

.mp-modal-success .mp-modal-btn {
    display: inline-block;
    background: var(--mp-blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.mp-modal-success .mp-modal-btn:hover {
    background: var(--mp-blue-hover);
}

/* ===== BACK LINK ===== */
.mp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--mp-blue);
    margin-bottom: 20px;
    font-weight: 500;
}

.mp-back-link:hover {
    text-decoration: underline;
}

.mp-back-link svg {
    width: 16px;
    height: 16px;
}

/* ===== INLINE SUMMARY (Mobile) ===== */
.mp-inline-summary {
    display: none;
    background: var(--mp-white);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    overflow: hidden;
}

.mp-inline-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mp-inline-summary-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.mp-inline-summary-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 2px;
    flex-shrink: 0;
}

.mp-inline-summary-info {
    min-width: 0;
}

.mp-inline-summary-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.mp-inline-summary-qty {
    font-size: 11px;
    color: var(--mp-text-muted);
    margin-top: 1px;
}

.mp-inline-summary-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-left: 8px;
}

.mp-inline-summary-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--mp-text);
}

.mp-inline-summary-arrow {
    color: var(--mp-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mp-inline-summary.open .mp-inline-summary-arrow {
    transform: rotate(180deg);
}

.mp-inline-summary-details {
    display: none;
    padding: 0 16px 16px;
}

.mp-inline-summary.open .mp-inline-summary-details {
    display: block;
    animation: mpSlideDown 0.25s ease;
}

/* ===== RESPONSIVE: TABLET (max 800px) ===== */
@media (max-width: 800px) {
    .mp-container {
        flex-direction: column;
    }

    /* Hide desktop summary, show inline summary */
    .mp-summary-col {
        display: none;
    }

    .mp-inline-summary {
        display: block;
    }

    .mp-payment-col {
        max-width: 100%;
        width: 100%;
    }

    .mp-main {
        padding: 16px 12px;
    }

    .mp-card {
        padding: 20px 16px;
        margin-bottom: 12px;
    }

    /* Step header */
    .mp-step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .mp-step-header {
        gap: 10px;
    }

    /* Step buttons closer to card */
    .mp-step-buttons,
    .mp-continue-btn {
        margin-top: 12px;
    }

    /* Back link */
    .mp-back-link {
        margin-bottom: 14px;
        font-size: 13px;
    }

    /* Header */
    .mp-header-security span {
        display: none;
    }

}

/* ===== RESPONSIVE: MOBILE LARGE (max 640px) ===== */
@media (max-width: 640px) {
    .mp-main {
        padding: 12px 8px;
    }

    .mp-card {
        padding: 18px 14px;
        border-radius: 6px;
        margin-bottom: 10px;
    }

    .mp-section-title {
        font-size: 16px;
        margin-bottom: 14px;
    }

    /* Form rows stack vertically */
    .mp-form-row {
        flex-direction: column;
        gap: 0;
    }

    .mp-half {
        flex: none;
        width: 100%;
    }

    .mp-third,
    .mp-two-thirds {
        flex: none;
        width: 100%;
    }

    /* Delivery */
    .mp-delivery-option {
        padding: 12px;
    }

    .mp-delivery-name {
        font-size: 13px;
    }

    .mp-delivery-date {
        font-size: 13px;
    }

    .mp-delivery-address-summary {
        font-size: 12px;
    }

    /* Tabs */
    .mp-tab {
        font-size: 12px;
        padding: 10px 6px 12px;
        gap: 4px;
    }

    .mp-tab svg {
        width: 22px;
        height: 22px;
    }

    .mp-tabs {
        margin-bottom: 18px;
    }

    /* Inputs */
    .mp-form-group input,
    .mp-form-group select {
        height: 44px;
        font-size: 15px;
        padding: 0 14px;
    }

    .mp-form-group label {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .mp-form-group {
        margin-bottom: 16px;
    }

    /* Buttons */
    .mp-continue-btn,
    .mp-pay-button {
        height: 48px;
        font-size: 16px;
        border-radius: 8px;
    }

    .mp-back-step-btn {
        height: 48px;
        padding: 12px 16px;
        font-size: 13px;
    }

    .mp-step-buttons {
        gap: 8px;
        margin-top: 10px;
    }

    /* PIX */
    .mp-pix-price strong {
        font-size: 24px;
    }

    .mp-pix-qr-code {
        width: 180px;
        height: 180px;
    }

    .mp-pix-copy-area {
        flex-direction: column;
        gap: 8px;
    }

    .mp-pix-copy-area input {
        text-align: center;
        font-size: 11px;
    }

    .mp-pix-copy-btn {
        width: 100%;
    }

    .mp-pix-discount {
        font-size: 13px;
        padding: 6px 16px;
    }

    /* Summary */
    .mp-summary-row {
        font-size: 13px;
    }

    .mp-summary-total span:last-child {
        font-size: 18px;
    }

    .mp-summary-installments {
        font-size: 11px;
    }

    /* Modal */
    .mp-modal {
        padding: 32px 20px;
        margin: 0 12px;
        border-radius: 10px;
    }

    .mp-modal-success h3 {
        font-size: 18px;
    }

    .mp-modal-success p {
        font-size: 14px;
    }

    .mp-modal-success .mp-modal-btn {
        width: 100%;
        padding: 14px 24px;
    }

}

/* ===== RESPONSIVE: MOBILE SMALL (max 400px) ===== */
@media (max-width: 400px) {
    .mp-main {
        padding: 8px 6px;
    }

    .mp-card {
        padding: 16px 12px;
    }

    .mp-tab {
        font-size: 10px;
        padding: 8px 2px 10px;
    }

    .mp-tab svg {
        width: 18px;
        height: 18px;
    }

    .mp-section-title {
        font-size: 15px;
    }

    .mp-form-group input,
    .mp-form-group select {
        height: 42px;
        font-size: 14px;
        padding: 0 12px;
    }

    .mp-logo-img {
        width: 35%;
        max-width: none;
    }

    .mp-header {
        height: 48px;
    }

    .mp-pix-qr-code {
        width: 160px;
        height: 160px;
    }

    .mp-summary-product img {
        width: 40px;
        height: 40px;
    }

}

/* ===== FIX: iOS input zoom prevention ===== */
@supports (-webkit-touch-callout: none) {
    .mp-form-group input,
    .mp-form-group select {
        font-size: max(16px, 1em);
    }
}
