﻿body { margin: 0; color: #172334; background: #f4f7fa; font: 15px/1.5 Arial, sans-serif; }
.checkout { box-sizing: border-box; width: min(100%, 1240px); min-height: 60vh; margin: auto; padding: 30px 20px 64px; }
.checkout *, .checkout *::before, .checkout *::after { box-sizing: border-box; }
.checkout [hidden] { display: none !important; }
.checkout a { color: #174674; }
.checkout-steps { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #536577; font-size: 13px; }
.checkout-steps [aria-current] { color: #112b46; font-weight: 700; }
.checkout h1 { margin: 13px 0 24px; font-size: clamp(29px, 5vw, 42px); line-height: 1.13; letter-spacing: -.035em; }
.checkout h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.015em; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 355px); gap: 20px; align-items: start; }
.checkout-card { padding: clamp(16px, 3vw, 27px); border: 1px solid #d5e0ea; border-radius: 14px; background: #fff; }
.checkout-main .checkout-card + .checkout-card { margin-top: 14px; }
.checkout-main p { margin: 0 0 15px; color: #536577; }
.checkout-line { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e1e8ef; }
.checkout-line:last-child { border-bottom: 0; }
.checkout-line img { flex: 0 0 auto; width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #f7f9fb; }
.checkout-line-info { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.checkout-line-info > a { color: inherit; font-weight: 700; text-decoration: none; }
.checkout-line-info > a:hover { text-decoration: underline; }
.checkout-line-prices { display: flex; flex-wrap: wrap; column-gap: 10px; }
.checkout-line-prices del { color: #536577; }
.checkout-line-compact { gap: 9px; font-size: 13px; }
.checkout-line-compact img { width: 46px; height: 46px; }
.checkout-quantity { display: inline-flex; align-items: center; justify-content: space-between; gap: 7px; white-space: nowrap; }
.checkout-quantity button, .checkout-coupon button { min-height: 33px; min-width: 33px; border: 1px solid #c8d6e3; border-radius: 7px; background: #eef5fa; color: #143b60; cursor: pointer; font: inherit; font-weight: 700; }
.checkout button:disabled { cursor: default; opacity: .55; }
.checkout-text-button, .checkout-coupon .checkout-text-button { min-width: 0; min-height: 0; padding: 0; border: 0; background: none; color: #174674; cursor: pointer; font: inherit; text-decoration: underline; }
.checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.checkout-wide { grid-column: 1 / -1; }
.checkout label { display: block; font-weight: 700; }
.checkout input:not([type=radio],[type=checkbox]), .checkout select, .checkout textarea { width: 100%; margin-top: 5px; padding: 10px; border: 1px solid #bdcddc; border-radius: 8px; color: inherit; background: #f8fafc; font: inherit; }
.checkout fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.checkout legend { margin-bottom: 7px; font-weight: 700; }
.checkout-document { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.checkout .checkout-consent { display: flex; align-items: start; gap: 8px; margin: 16px 0; font-weight: 400; }
.checkout-consent input { margin-top: 4px; }
.checkout .checkout-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 8px; background: #153b62; color: #fff; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; }
.checkout-primary:hover { background: #0b2e51; }
.checkout-summary .checkout-primary { display: flex; width: 100%; }
.checkout-summary h2 + a { font-size: 13px; }
.checkout-coupon, .checkout-totals, .checkout-notes { margin-top: 16px; border-top: 1px solid #dce5ef; padding-top: 14px; }
.checkout-coupon > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 5px; }
.checkout-coupon > div input { min-height: 42px; margin-top: 0 !important; }
.checkout-coupon > div button { min-height: 42px; padding: 0 12px; white-space: nowrap; }
.checkout-coupon small, .checkout-preview { color: #536577; }
.checkout-coupon p { margin: 5px 0; }
.checkout-coupon p:empty { display: none; }
.checkout-totals div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.checkout-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.checkout-total { padding-top: 8px; border-top: 1px solid #dce5ef; font-size: 18px; font-weight: 700; }
.checkout-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px !important; }
.checkout-modes label, .checkout-payment label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #c8d6e3; border-radius: 8px; cursor: pointer; }
.checkout-modes label:has(:checked), .checkout-payment label:has(:checked) { border-color: #174674; background: #edf5fc; }
.checkout-payment label + label { margin-top: 7px; }
.checkout .checkout-modes label, .checkout .checkout-payment label { font-weight: 400; }
.checkout .checkout-modes legend,
.checkout [data-profile-form] :is(label, input, select, .checkout-document legend) { font-weight: 400; }
.checkout-document small { display: block; margin-top: 4px; color: #536577; }
.checkout-billing { margin-top: 18px; }
.checkout-billing-toggle { padding: 6px 14px; border: 1px solid #c8d6e3; border-radius: 999px; background: #f4f8fb; color: #172334; font: inherit; cursor: pointer; }
.checkout-billing fieldset { position: relative; }
.checkout-billing fieldset legend { margin-bottom: 11px; }
.checkout-billing-remove { position: absolute; top: -31px; right: 0; }
.checkout .checkout-field-error { display: block; margin: 4px 0 0; color: #a51d2d; font-size: 13px; }
.checkout [aria-invalid="true"] { border-color: #a51d2d !important; }
.checkout-payment small { display: inline; color: #536577; font-size: inherit; font-weight: 400; }
.checkout [data-delivery-address] label { font-weight: 500; }
.checkout [data-delivery-address] :is(input, select) { font-weight: 400; }
.checkout-preview { margin-top: 13px !important; }
.checkout [data-shipping-form] > button { margin-top: 14px; }
.checkout-pickup-map { display: block; width: 100%; height: 240px; margin-bottom: 8px; border: 1px solid #d5e0ea; border-radius: 8px; }
.checkout-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.checkout-step-summary p { margin: 0 0 4px; color: #172334; overflow-wrap: anywhere; }
.checkout-step-summary p:first-child { font-weight: 700; }
.checkout-notes label { -webkit-user-select: none; user-select: none; }
.checkout-notes textarea { display: block; resize: none; }
.checkout-notes [data-buy-now] { margin-top: 12px; }
.checkout-notes [data-buy-status] { margin: 6px 0 0; color: #536577; }
.checkout-confirmation { box-sizing: border-box; position: fixed; inset: clamp(24px, 11vh, 110px) 0 auto; width: min(560px, calc(100% - 32px)); max-width: none; margin: 0 auto; padding: 22px 52px 18px 22px; border: 1px solid #174e80; border-radius: 12px; background: #205c95; color: #fff; box-shadow: 0 8px 24px #173c5f45; }
.checkout-confirmation::backdrop { background: rgb(255 255 255 / 76%); }
.checkout-confirmation-content { display: flex; align-items: flex-start; gap: 11px; }
.checkout-confirmation h2 { margin: 0 0 3px; font-size: clamp(23px, 5vw, 30px); line-height: 1.2; }
.checkout-confirmation p { margin: 0; }
.checkout-confirmation-lock { position: absolute; right: 17px; bottom: 17px; width: 22px; height: 15px; border-radius: 3px; background: #d2e9ff; }
.checkout-confirmation-lock::before { content: ""; position: absolute; left: 4px; bottom: 11px; width: 14px; height: 15px; box-sizing: border-box; border: 2px solid #d2e9ff; border-radius: 8px 8px 0 0; }
.checkout-confirmation-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; padding: 0; border: 1px solid #ffffff60; border-radius: 50%; background: transparent; color: #fff; font-size: 22px; cursor: pointer; }
.checkout-confirmation-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.checkout-confirmation-spinner { display: none; flex: 0 0 auto; width: 15px; height: 15px; margin-top: 6px; border: 2px solid #ffffff65; border-top-color: #fff; border-radius: 50%; }
.checkout-confirmation[data-loading] .checkout-confirmation-spinner { display: block; animation: checkout-spin .8s linear infinite; }
@keyframes checkout-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .checkout-confirmation[data-loading] .checkout-confirmation-spinner { animation: none; } }
.checkout :is(a,button,input,select,textarea):focus-visible { outline: 2px solid #216aa3; outline-offset: 2px; }
#envio, #pago { scroll-margin-top: 135px; }
@media (max-width: 760px) { .checkout-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 470px) { .checkout { padding-inline: 12px; } .checkout-line { flex-wrap: wrap; gap: 8px; } .checkout-line-info { flex-basis: 55%; } .checkout-fields, .checkout-document { grid-template-columns: minmax(0,1fr); } }
