/* Cinco Copias Checkout 2.0 · réplica de la maqueta webapp (estilo landing) */

body.cc-page {
	--g: #00e581; --g2: #12d978; --d: #001b16; --d2: #00251d; --ink: #202629;
	--on: #00241b; --gt: #00864c; --mut: #56625e; --line: #e1e8e5; --err: #c0392b;
}

/* ---------- Página completa ---------- */
body.ccw-body { margin: 0; padding: 0; background: #e9f0ed; color: var(--ink); font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.ccw-body *, body.ccw-body *::before, body.ccw-body *::after { box-sizing: border-box; }
.ccw-shell { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 40px rgba(0, 27, 22, .12); }
.ccw-shell a { text-decoration: none; }
.ccw-shell [hidden] { display: none !important; }
.ccw-shell .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cc-i, .ccw-svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.ccw-hd { height: 60px; background: var(--d); display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ccw-logo { margin-right: auto; display: flex; align-items: center; color: #fff; }
.ccw-logo img { display: block; width: 155px; height: 36px; object-fit: contain; object-position: left center; }
.ccw-ib { position: relative; width: 40px; height: 40px; border: 0; border-radius: 8px; background: rgba(0, 229, 129, .12); color: #fff; display: grid; place-items: center; font-size: 19px; cursor: pointer; padding: 0; }
.ccw-ib em { position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 9px; background: var(--g); color: var(--on); font: 900 10px/16px Inter, sans-serif; text-align: center; font-style: normal; }
.ccw-menu { background: var(--d); padding: 4px 14px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ccw-menu a { display: block; padding: 13px 4px; color: #fff; font-size: 14px; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ccw-menu a:last-child { border-bottom: 0; }

.ccw-main { flex: 0 0 auto; padding: 18px 15px 24px; }
body.ccw-has-bar .ccw-ft { padding-bottom: calc(18px + var(--ccw-bar-h, 72px)); }
body.ccw-has-bar .ccw-main { padding-bottom: 24px; }
.ccw-ft { background: var(--d); color: #fff; padding: 18px 15px; font-size: 13px; line-height: 1.6; }
.ccw-ft b { display: block; margin-bottom: 2px; color: var(--g); font-weight: 900; }
.ccw-ft div + div { margin-top: 10px; }

/* ---------- Tipografía ---------- */
.ccw { color: var(--ink); }
.ccw-ey { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #00a35e; }
.ccw .ccw-title { margin: 5px 0 6px; padding: 0; font-size: 28px; line-height: 1.02; letter-spacing: -.04em; font-weight: 900; color: var(--ink); }
.ccw .ccw-sub { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: var(--mut); }
.ccw .ccw-h { margin: 0 0 8px; font-size: 15px; font-weight: 900; color: var(--ink); }
.ccw .sec { margin: 9px 0 0; text-align: center; font-size: 12px; color: var(--mut); }
.ccw .c { text-align: center; }

/* ---------- Pasos ---------- */
.ccw .stp { display: flex; align-items: flex-start; margin: 0 2px 14px; }
.ccw .stp .s { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; min-width: 56px; }
.ccw .stp .s i { width: 26px; height: 26px; border-radius: 50%; background: #e3e9e6; color: #5b6663; font: 900 12px/26px Inter, sans-serif; text-align: center; font-style: normal; }
.ccw .stp .s.d i, .ccw .stp .s.a i { background: var(--g); color: var(--on); }
.ccw .stp .s.a i { box-shadow: 0 0 0 4px rgba(0, 229, 129, .2); }
.ccw .stp .lb { font-size: 11px; color: #5b6663; text-align: center; white-space: nowrap; }
.ccw .stp .s.a .lb { color: var(--ink); font-weight: 900; }
.ccw .stp b { flex: 1; height: 2px; margin-top: 12px; background: #e3e9e6; }
.ccw .stp b.c { background: var(--g); }

/* ---------- Tarjetas ---------- */
.ccw .cd { margin: 0 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(0, 27, 22, .05); }
.ccw .cd:not(:has(*)), .ccw .cc-shipping:not(:has(.form-row, .woocommerce-additional-fields > *, #ship-to-different-address)) { display: none; }

/* ---------- Carrito ---------- */
.ccw .it { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
.ccw .inf { min-width: 0; overflow-wrap: anywhere; }
.ccw .inf b { display: block; font-size: 15px; font-weight: 900; line-height: 1.3; }
.ccw .inf b a { color: var(--ink); }
.ccw .inf dl.variation { margin: 3px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--mut); }
.ccw .inf dl.variation dt { float: left; clear: left; margin: 0 4px 0 0; font-weight: 500; }
.ccw .inf dl.variation dd { margin: 0; }
.ccw .inf dl.variation dd p { margin: 0; display: inline; }
.ccw .pr { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 17px; font-weight: 900; }
.ccw .q { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; }
.ccw .quantity { display: inline-flex; align-items: center; gap: 4px; }
.ccw .quantity input.qty { width: 34px; height: 28px; padding: 0; border: 0; background: transparent; text-align: center; font: 800 14px Inter, sans-serif; color: var(--ink); -moz-appearance: textfield; appearance: textfield; box-shadow: none; }
.ccw .quantity input.qty::-webkit-outer-spin-button, .ccw .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ccw-qbtn { width: 28px; height: 28px; padding: 0; border: 1px solid #d6dfdb; border-radius: 8px; background: #fff; color: var(--ink); font-size: 15px; line-height: 26px; cursor: pointer; }
.ccw a.ccw-remove, .ccw a.remove { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0; padding: 0; border-radius: 8px; background: none; font-size: 17px; line-height: 1; color: #7a8581 !important; text-indent: 0; }
.ccw a.ccw-remove:hover { background: #fdecea; color: var(--err) !important; }
.ccw .ban { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 10px 12px; border: 1px solid rgba(0, 229, 129, .4); border-radius: 10px; background: rgba(0, 229, 129, .12); color: #00513a; font-size: 13px; }
.ccw .ban .cc-i { font-size: 17px; color: #00a35e; }
.ccw .ccw-coupon { display: flex; gap: 8px; }
.ccw .ccw-coupon input { flex: 1; min-width: 0; }
html.cc-js .ccw .ccw-update { display: none; }

.ccw .cart_totals { margin: 0 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 27, 22, .05); width: 100% !important; float: none !important; }
.ccw .cart_totals > h2 { display: none; }
.ccw table.shop_table { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: none; }
.ccw table.shop_table th, .ccw table.shop_table td { padding: 3px 0; border: 0; background: none; font-size: 14px; font-weight: 400; color: #41504a; vertical-align: top; text-align: left; }
.ccw table.shop_table td { text-align: right; }
.ccw table.shop_table .order-total th, .ccw table.shop_table .order-total td { padding-top: 10px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 900; color: var(--ink); }
.ccw table.shop_table .woocommerce-shipping-totals td { text-align: left; }
.ccw .wc-proceed-to-checkout { padding: 0; }

/* ---------- Formularios ---------- */
.ccw .woocommerce-billing-fields > h3, .ccw .woocommerce-shipping-fields > h3, .ccw .woocommerce-additional-fields > h3 { margin: 0 0 4px; font-size: 15px; font-weight: 900; }
.ccw .woocommerce-billing-fields__field-wrapper, .ccw .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.ccw .form-row { grid-column: span 1; width: 100% !important; float: none !important; margin: 0 0 2px; padding: 0; }
.ccw .form-row-wide, .ccw .notes, .ccw .create-account { grid-column: 1 / -1; }
.ccw .form-row label { display: block; margin: 10px 0 4px; font-size: 12px; font-weight: 800; line-height: 1.3; color: #3d4a45; }
.ccw .form-row .required { color: var(--err); text-decoration: none; border: 0; }
.ccw .form-row .optional { font-weight: 400; color: #7a8581; }
.ccw .woocommerce-input-wrapper { display: block; }
.ccw input.input-text, .ccw select, .ccw textarea, .ccw .cc-in { display: block; width: 100%; height: 46px; margin: 0; padding: 0 12px; border: 1px solid #d6dfdb; border-radius: 9px; background: #fff; color: var(--ink); font: 400 15px Inter, "Segoe UI", system-ui, sans-serif; box-shadow: none; }
.ccw textarea { height: auto; min-height: 84px; padding: 10px 12px; }
.ccw select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7480' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 32px; }
.ccw input.input-text:focus, .ccw select:focus, .ccw textarea:focus { border-color: var(--g); outline: 3px solid rgba(0, 229, 129, .2); }
.ccw .woocommerce-invalid input.input-text, .ccw .woocommerce-invalid select { border-color: var(--err); }
.ccw .select2-container--default .select2-selection--single { height: 46px; border: 1px solid #d6dfdb; border-radius: 9px; }
.ccw .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 12px; color: var(--ink); font-size: 15px; }
.ccw .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.ccw input[type="checkbox"], .ccw input[type="radio"] { accent-color: #00c46f; }
.ccw .woocommerce-shipping-fields h3 label, .ccw .woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 400; color: var(--mut); }

/* ---------- Envío y pago como opciones ---------- */
.ccw .ccw-lbl { margin: 0 0 8px; font-size: 12px; font-weight: 800; color: #3d4a45; }
.ccw .cc-shipmethods { margin: 0 0 10px; }
.ccw .cc-shipmethods--none { display: none; }
.ccw table.cc-ship-table th { display: none; }
.ccw table.cc-ship-table td { display: block; padding: 0; text-align: left; }
.ccw ul#shipping_method, .ccw ul.wc_payment_methods { list-style: none; margin: 0; padding: 0; }
.ccw ul#shipping_method li, .ccw ul.wc_payment_methods li.wc_payment_method { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 11px; margin: 0 0 9px; padding: 12px; border: 1.5px solid #dbe3e0; border-radius: 12px; background: #fff; color: var(--mut); font-size: 13px; line-height: 1.4; }
.ccw ul#shipping_method li:has(input:checked), .ccw ul.wc_payment_methods li.wc_payment_method:has(> input:checked) { border-color: var(--g); background: rgba(0, 229, 129, .07); box-shadow: 0 0 0 .5px var(--g); }
.ccw ul#shipping_method li input[type="radio"], .ccw ul.wc_payment_methods li input[type="radio"] { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border: 2px solid #b9c5c0; border-radius: 50%; background: #fff; }
.ccw ul#shipping_method li input[type="radio"]:checked, .ccw ul.wc_payment_methods li input[type="radio"]:checked { border-color: var(--g); background: var(--g); box-shadow: inset 0 0 0 3px #fff; }
.ccw ul#shipping_method li label, .ccw ul.wc_payment_methods li > label { flex: 1; min-width: 0; margin: 0; font-size: 15px; font-weight: 900; color: var(--ink); cursor: pointer; }
.ccw ul.wc_payment_methods li > label img { max-height: 22px; width: auto; margin-left: 6px; vertical-align: middle; }
.ccw #payment { background: none; border-radius: 0; }
.ccw #payment div.payment_box { flex: 0 0 100%; margin: 6px 0 0; padding: 0 0 0 29px; background: none; color: var(--mut); font-size: 13px; }
.ccw #payment div.payment_box::before { display: none; }
.ccw #payment div.payment_box p { margin: 0 0 6px; }
.ccw #payment .form-row.place-order { margin: 6px 0 0; padding: 0; }
.ccw .woocommerce-terms-and-conditions-wrapper, .ccw .woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--mut); }
.ccw .woocommerce-terms-and-conditions-wrapper p { margin: 0 0 8px; }

/* ---------- Revisión ---------- */
.ccw .cc-summary:empty { display: none; }
.ccw .sh { display: flex; justify-content: space-between; margin-bottom: 3px; font-weight: 900; font-size: 14px; }
.ccw .sh a { color: var(--gt); font-size: 13px; font-weight: 700; }
.ccw .ad { font-size: 13.5px; line-height: 1.45; color: #41504a; }
.ccw .sep { margin: 11px 0; border-top: 1px solid var(--line); }
.ccw .row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14px; color: #41504a; }
.ccw .row.g span:last-child { font-weight: 800; color: var(--gt); }
.ccw .row .rn { flex: 1; min-width: 0; }
.ccw .row .rn dl.variation { margin: 2px 0 0; font-size: 12px; color: var(--mut); }
.ccw .row .rn dl.variation dt { float: left; clear: left; margin: 0 4px 0 0; }
.ccw .row .rn dl.variation dd { margin: 0; }
.ccw .row .rn dl.variation dd p { margin: 0; display: inline; }
.ccw .tl { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 900; }

/* ---------- Botones ---------- */
.ccw .button, .ccw .btn, .ccw #place_order, .ccw a.checkout-button, .ccw-cta__btn {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin: 12px 0 0; padding: 12px 18px;
	border: 0; border-radius: 8px; background: var(--g); color: var(--on); font: 900 13px Inter, "Segoe UI", sans-serif; letter-spacing: .01em; text-transform: uppercase; text-align: center; cursor: pointer; float: none;
}
.ccw .button:hover, .ccw #place_order:hover, .ccw a.checkout-button:hover, .ccw-cta__btn:hover { background: var(--g2); color: var(--on); }
.ccw .button.ccw-ghost, .ccw .btn.o { width: auto; margin: 0; background: #fff; border: 2px solid var(--d); color: var(--d); }
.ccw .btn.o { width: 100%; margin-top: 10px; }
.ccw .ccw-coupon .button { min-height: 46px; margin: 0; flex: none; }
.ccw .button:disabled, .ccw .button.disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Avisos de WooCommerce ---------- */
.ccw-shell .woocommerce-message, .ccw-shell .woocommerce-info, .ccw-shell .woocommerce-error { list-style: none; margin: 0 0 12px; padding: 11px 13px; border: 1px solid rgba(0, 229, 129, .4); border-radius: 10px; background: rgba(0, 229, 129, .12); color: #00513a; font-size: 13.5px; }
.ccw-shell .woocommerce-error { border-color: rgba(192, 57, 43, .4); background: #fdecea; color: #7a1f14; }
.ccw-shell .woocommerce-message::before, .ccw-shell .woocommerce-info::before, .ccw-shell .woocommerce-error::before { display: none; }
.ccw-shell .woocommerce-message .button { display: inline-flex; width: auto; min-height: 0; margin: 0 0 0 8px; padding: 5px 10px; float: right; }
.ccw-shell .cart-empty { text-align: center; }
.ccw-shell .return-to-shop { text-align: center; }

/* ---------- Gracias ---------- */
.ccw .ok { display: grid; place-items: center; width: 92px; height: 92px; margin: 6px auto 14px; border-radius: 50%; background: rgba(0, 229, 129, .14); }
.ccw .ok span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--g); color: var(--on); font-size: 34px; }
.ccw .ok .cc-i { stroke-width: 3; }
.ccw .ons { text-align: center; }
.ccw .ons small { display: block; font-size: 12px; color: var(--mut); }
.ccw .ons b { font-size: 24px; font-weight: 900; color: var(--gt); }
.ccw .ccw-details { margin-top: 14px; font-size: 13.5px; }
.ccw .ccw-details h2 { margin: 0 0 8px; font-size: 15px; font-weight: 900; }
.ccw .ccw-details section { margin: 0 0 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.ccw .ccw-details .woocommerce-columns { display: block; }
.ccw .ccw-details .woocommerce-column { width: 100% !important; float: none !important; }
.ccw .ccw-details address { font-style: normal; color: #41504a; }

/* ---------- Pasos del checkout (todo en el DOM; se muestra el activo) ---------- */
.ccw .cc-flow { display: flex; flex-direction: column; }
.ccw .cc-p1 { order: 1; }
.ccw .cc-sum { order: 2; }
.ccw .cc-rev { order: 3; }
.ccw .cc-p2 { order: 4; }
.ccw .ccw-dnext, .ccw .ccw-derr { display: none; }
@media (max-width: 899px) {
html.cc-js .ccw .cc-flow[data-step="1"] .cc-p2,
html.cc-js .ccw .cc-flow[data-step="1"] .cc-sum,
html.cc-js .ccw .cc-flow[data-step="1"] .cc-rev,
html.cc-js .ccw .cc-flow[data-step="2"] .cc-p1,
html.cc-js .ccw .cc-flow[data-step="2"] .cc-sum,
html.cc-js .ccw .cc-flow[data-step="2"] .cc-rev,
html.cc-js .ccw .cc-flow[data-step="2"] .cc-p2 .place-order,
html.cc-js .ccw .cc-flow[data-step="3"] .cc-p1,
html.cc-js .ccw .cc-flow[data-step="3"] .cc-p2 ul.wc_payment_methods {
	flex: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
	overflow: hidden !important; visibility: hidden !important; box-shadow: none !important; pointer-events: none;
}
}
@media (min-width: 900px) {
html.cc-js .ccw .cc-flow[data-step="1"] .cc-p2,
html.cc-js .ccw .cc-flow[data-step="1"] .cc-sum,
html.cc-js .ccw .cc-flow[data-step="2"] .cc-p1,
html.cc-js .ccw .cc-flow[data-step="2"] .cc-sum,
html.cc-js .ccw .cc-flow[data-step="2"] .cc-p2 .place-order,
html.cc-js .ccw .cc-flow[data-step="3"] .cc-p1,
html.cc-js .ccw .cc-flow[data-step="3"] .cc-p2 ul.wc_payment_methods,
html.cc-js .ccw .cc-flow[data-step="3"] .cc-p2 #place_order {
	flex: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
	overflow: hidden !important; visibility: hidden !important; box-shadow: none !important; pointer-events: none;
}
}

@media (max-width: 560px) {
	body.ccw-body { background: var(--d); }
	.ccw-shell { box-shadow: none; }
}
@media (min-width: 561px) {
	.ccw-shell { min-height: 100vh; min-height: 100dvh; }
	.ccw-main { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.ccw * { transition: none !important; }
}

/* ---------- Imagen del pedido (primera página del PDF) ---------- */
.ccw .pdfth { position: relative; display: block; flex: none; overflow: hidden; background: #fff; border: 1px solid #d3dcd8; border-radius: 4px; box-shadow: 0 3px 8px rgba(0, 27, 22, .16); }
.ccw .pdfth.l { width: 78px; height: 110px; }
.ccw .pdfth.s { width: 40px; height: 56px; border-radius: 3px; box-shadow: 0 2px 5px rgba(0, 27, 22, .14); }
.ccw .pdfth img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ccw .pdfth.is-icon { display: grid; place-items: center; background: #f4f7f6; }
.ccw .pdfth.is-icon img { width: 70%; height: 70%; object-fit: contain; }
.ccw .pdfth.is-icon .cc-i { width: 40%; height: 40%; color: #7a8581; }
.ccw .pdfth i { position: absolute; right: 4px; bottom: 4px; padding: 2px 4px; border-radius: 3px; background: var(--d); color: var(--g); font: 900 8px/1 Inter, sans-serif; font-style: normal; }
.ccw .pdfth.s i { display: none; }
.ccw .row.cart_item { align-items: center; }
.ccw .row .rth { flex: none; }
.ccw .ccw-oitems { padding-top: 6px; padding-bottom: 6px; }

/* ---------- Cantidades: solo los botones del plugin (sin duplicados) ---------- */
.ccw .quantity > :not(input.qty):not(.ccw-qbtn):not(label):not(.screen-reader-text) { display: none !important; }
.ccw .wc-proceed-to-checkout { display: none; }
.ccw-continue { display: block; margin: 6px 0 4px; text-align: center; font-size: 13px; color: var(--mut); text-decoration: underline !important; }

/* ---------- Barra de compra inferior (la del configurador) ---------- */
.ccw-pbar { position: fixed; left: 50%; bottom: 0; z-index: 99990; transform: translateX(-50%); width: 100%; max-width: 560px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: #083f33; color: #fff; box-shadow: 0 -6px 18px rgba(0, 27, 22, .2); box-sizing: border-box; font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.ccw-pbar *, .ccw-pbar *::before, .ccw-pbar *::after { box-sizing: border-box; }
.ccw-pc { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #0c5a47; color: #fff; font-size: 22px; text-decoration: none; }
.ccw-pc em { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--g); color: var(--on); font: 900 11px/18px Inter, sans-serif; text-align: center; font-style: normal; }
.ccw-pt small { display: block; font-size: 12px; line-height: 1.1; color: #a9cfc3; }
.ccw-pt b { display: block; font-size: 18px; font-weight: 900; line-height: 1.15; white-space: nowrap; color: #fff; }
.ccw-pn { display: flex; align-items: center; gap: 5px; height: 46px; min-width: 0; margin-left: auto; padding: 0 14px; border: 0; border-radius: 99px; background: var(--g); color: var(--on); font: 900 13px Inter, "Segoe UI", sans-serif; white-space: nowrap; text-decoration: none; cursor: pointer; }
.ccw-pn:hover { background: var(--g2); color: var(--on); }
.ccw-perr { display: none; flex: 0 0 100%; margin: 0; color: #ffb4a8; font-size: 13px; }
.ccw-perr.is-on { display: block; }

/* ---------- Botón "Confirmar pedido": azul marino y verde #01E281 (gana al tema) ---------- */
body.ccw-body .ccw #payment #place_order,
body.ccw-body .woocommerce #payment #place_order,
body.ccw-body #place_order.button {
	display: flex !important; align-items: center; justify-content: center; float: none !important; width: 100% !important; min-height: 52px; margin: 12px 0 0 !important; padding: 12px 18px !important;
	border: 1px solid rgba(1, 226, 129, .35) !important; border-radius: 8px !important;
	background: linear-gradient(180deg, #1e3749, #142e41) !important; color: #01e281 !important;
	font: 900 14px Inter, "Segoe UI", sans-serif !important; letter-spacing: .02em; text-transform: uppercase; text-align: center; box-shadow: 0 6px 16px rgba(20, 46, 65, .28);
}
body.ccw-body .ccw #payment #place_order:hover, body.ccw-body #place_order.button:hover { background: linear-gradient(180deg, #24445a, #1a3850) !important; color: #01e281 !important; }
body.ccw-body #place_order.button.processing, body.ccw-body #place_order.button:disabled { opacity: .6; cursor: progress; }
.ccw .woocommerce-privacy-policy-link, .ccw .woocommerce-terms-and-conditions-link { color: var(--gt) !important; text-decoration: underline; }

/* Sin márgenes ni alturas heredadas del tema bajo el contenido */
.ccw-main .woocommerce, .ccw-main form.checkout, .ccw-main .ccw, .ccw-main .cc-flow, .ccw-main #payment, .ccw-main .woocommerce-checkout-payment { margin-bottom: 0 !important; padding-bottom: 0 !important; min-height: 0 !important; }
.ccw-main #payment .place-order { margin-bottom: 0 !important; padding-bottom: 0 !important; }
#ccw-debug { position: fixed; left: 8px; right: 8px; top: 8px; z-index: 2147483647; max-height: 55vh; overflow: auto; padding: 8px 10px; background: rgba(0,0,0,.88); color: #8cffc4; font: 11px/1.35 monospace; border-radius: 8px; }

/* ================= ESCRITORIO (≥ 900 px) ================= */
.ccw-dnav, .ccw-tel { display: none; }

@media (min-width: 900px) {
	body.ccw-body { background: #fff; }
	.ccw-shell { max-width: none; min-height: 100vh; min-height: 100dvh; box-shadow: none; }
	.ccw-main { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 34px 44px 44px; }

	/* Cabecera con menú, teléfono y carrito */
	.ccw-hd { height: 72px; gap: 30px; padding: 0 max(44px, calc((100vw - 1072px) / 2)); }
	.ccw-logo img { width: 175px; height: 40px; }
	.ccw-dnav { display: flex; gap: 26px; margin-left: 10px; }
	.ccw-dnav a { color: #fff; font-size: 14px; font-weight: 700; }
	.ccw-dnav a:hover, .ccw-tel:hover { color: var(--g); }
	.ccw-tel { display: flex; align-items: center; gap: 7px; margin-left: auto; color: var(--g); font-size: 14px; font-weight: 900; }
	.ccw-logo { margin-right: 0; }
	.ccw-ib { width: 44px; height: 44px; font-size: 20px; }
	.ccw-menu-btn, .ccw-menu { display: none !important; }
	.ccw-pbar { display: none !important; }

	/* Pie en 3 columnas */
	.ccw-ft, body.ccw-has-bar .ccw-ft { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 26px max(44px, calc((100vw - 1072px) / 2)); font-size: 13.5px; line-height: 1.65; }
	.ccw-ft div + div { margin-top: 0; }

	/* Tipografía y tarjetas */
	.ccw .ccw-title { font-size: 38px; letter-spacing: -.045em; margin: 6px 0 8px; }
	.ccw .ccw-sub { font-size: 15px; margin-bottom: 22px; }
	.ccw .cd { padding: 18px; border-radius: 14px; margin-bottom: 14px; }

	/* Pasos en horizontal: círculo + nombre, con línea entre ellos */
	.ccw .stp { align-items: center; margin: 0 0 22px; }
	.ccw .stp .s { flex-direction: row; gap: 10px; min-width: 0; }
	.ccw .stp .s i { width: 28px; height: 28px; line-height: 28px; }
	.ccw .stp .lb { font-size: 13px; font-weight: 700; }
	.ccw .stp b { flex: none; width: 70px; margin: 0 14px; }

	/* Checkout: contenido a la izquierda, resumen fijo a la derecha */
	.ccw .cc-flow { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 28px; row-gap: 0; align-items: start; }
	.ccw .cc-p1, .ccw .cc-sum, .ccw .cc-p2 { grid-column: 1; order: 0; }
	.ccw .cc-rev { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 16px; order: 0; }
	.ccw .cc-rev .cd { margin: 0; }
	.ccw .ccw-dnext { display: flex; margin-top: 16px; }
	.ccw .ccw-dnext.is-confirm { background: linear-gradient(180deg, #1e3749, #142e41) !important; color: #01e281 !important; border: 1px solid rgba(1, 226, 129, .35) !important; box-shadow: 0 6px 16px rgba(20, 46, 65, .28); }
	.ccw .ccw-derr { margin: 10px 0 0; color: var(--err); font-size: 13px; }
	.ccw .ccw-derr.is-on { display: block; }
	html.cc-js body.ccw-body .ccw .cc-flow[data-step="3"] .cc-p2 #payment #place_order { min-height: 0 !important; height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; visibility: hidden !important; box-shadow: none !important; }

	/* Carrito en dos columnas */
	.ccw.cc-cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 28px; align-items: start; }
	.ccw.cc-cart > .ccw-ey, .ccw.cc-cart > .ccw-title, .ccw.cc-cart > .ccw-sub { grid-column: 1 / -1; }
	.ccw.cc-cart > .woocommerce-cart-form { grid-column: 1; grid-row: 4; }
	.ccw.cc-cart > .ccw-continue { grid-column: 1; grid-row: 5; text-align: left; margin: 0; }
	.ccw.cc-cart > .cart-collaterals { grid-column: 2; grid-row: 4 / span 2; position: sticky; top: 16px; }
	.ccw.cc-cart > .sec { display: none; }
	.ccw .wc-proceed-to-checkout::after { content: "Pago seguro: tarjeta, Bizum o transferencia."; display: block; margin-top: 10px; text-align: center; font-size: 12px; color: var(--mut); }
	.ccw .wc-proceed-to-checkout { display: block; }
	.ccw .cart_totals { padding: 18px; border-radius: 14px; }
	.ccw .cart_totals > h2 { display: block; margin: 0 0 8px; font-size: 16px; font-weight: 900; }
	.ccw .ccw-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; }
	.ccw .ccw-item .it { display: contents; }
	.ccw .ccw-item .pdfth.l { width: 96px; height: 136px; }
	.ccw .ccw-item .inf b { font-size: 17px; }
	.ccw .ccw-item .inf dl.variation { font-size: 13.5px; }
	.ccw .ccw-item .pr { flex-direction: column; align-items: flex-end; justify-content: space-between; margin: 0; font-size: 20px; }

	/* Gracias */
	.ccw.cc-thanks { max-width: 640px; margin: 0 auto; }
	.ccw .ccw-details { max-width: 640px; }
	.ccw .ok { width: 96px; height: 96px; }
}


/* ---------- Ajuste escritorio: carrito y finalizar compra (maqueta 1) ---------- */
@media (min-width: 900px) {
  body.ccw-body .ccw-main {
    width: 100%;
    max-width: 1440px;
    padding-left: clamp(28px, 4vw, 64px);
    padding-right: clamp(28px, 4vw, 64px);
    box-sizing: border-box;
  }

  body.ccw-body .ccw .cc-flow,
  body.ccw-body .ccw.cc-cart {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    column-gap: clamp(22px, 2vw, 32px);
    min-width: 0;
    width: 100%;
  }

  body.ccw-body .ccw .cc-flow > *,
  body.ccw-body .ccw.cc-cart > * {
    min-width: 0;
  }

  /* Cápsula de seguimiento inspirada en la primera maqueta.
     Solo se muestra en carrito/finalizar compra, donde el shell del plugin está activo. */
  body.ccw-body .ccw-pbar {
    display: flex !important;
    position: fixed;
    top: auto;
    right: auto;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 48px));
    max-width: 420px;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(1, 226, 129, .18);
    border-radius: 999px;
    background: #083f33;
    box-shadow: 0 12px 34px rgba(0, 45, 35, .24);
    z-index: 99990;
  }

  body.ccw-body .ccw-pc { width: 48px; height: 48px; }
  body.ccw-body .ccw-pt { min-width: 92px; }
  body.ccw-body .ccw-pt small { font-size: 13px; }
  body.ccw-body .ccw-pt b { font-size: 21px; }
  body.ccw-body .ccw-pn { min-height: 48px; height: 48px; padding: 0 22px; font-size: 14px; }

  /* Escritorio: evitar CTA duplicada. La cápsula es el único botón principal visible.
     Los controles de paso siguen presentes en el DOM para mantener la lógica JS. */
  body.ccw-body .ccw .ccw-dnext { display: none !important; }
  body.ccw-body .ccw.cc-cart .wc-proceed-to-checkout { display: none !important; }
}


/* Ocultar migas de pan del tema que duplican la navegación propia del checkout. */
body.ccw-body .woocommerce-breadcrumb,
body.ccw-body nav.woocommerce-breadcrumb,
body.ccw-body .breadcrumb,
body.ccw-body .breadcrumbs,
body.ccw-body .yoast-breadcrumb,
body.ccw-body .rank-math-breadcrumb {
  display: none !important;
}

/* Barra cápsula centrada en escritorio y móvil/webapp. */
@media (max-width: 899px) {
  body.ccw-body .ccw-pbar {
    left: 50%;
    right: auto;
    bottom: 12px;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 560px;
    border-radius: 24px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

body.ccw-body .ccw-psteps {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
}
body.ccw-body .ccw-psteps span { color: #a9cfc3; }
body.ccw-body .ccw-psteps span.is-active { color: #01e281; }
body.ccw-body .ccw-psteps span.is-done { color: #fff; }
@media (max-width: 899px) {
  body.ccw-body .ccw-pbar { flex-wrap: wrap; }
  body.ccw-body .ccw-psteps {
    order: 4;
    flex: 1 0 100%;
    justify-content: center;
    padding-top: 2px;
    font-size: 11px;
  }
  body.ccw-body .ccw-pc { order: 1; }
  body.ccw-body .ccw-pt { order: 2; flex: 1 1 auto; }
  body.ccw-body .ccw-pn { order: 3; }
}


/* Pulido escritorio: CTA más grande y fácil de localizar; no afecta a móvil/webapp. */
@media (min-width: 900px) {
  body.ccw-body .ccw-pbar {
    min-height: 88px;
    padding: 16px 24px;
    gap: 18px;
    width: max-content;
    max-width: calc(100vw - 48px);
  }
  body.ccw-body .ccw-pn {
    min-height: 60px;
    height: 60px;
    min-width: 230px;
    padding: 0 30px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 999px;
  }
  body.ccw-body .ccw-pt {
    font-size: 15px;
  }
  body.ccw-body .ccw-pt strong {
    font-size: 27px;
    line-height: 1.1;
  }
  body.ccw-body .ccw-pc {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
  }
}


/* Ocultar el encabezado de pasos y el rótulo de checkout duplicados indicados por el cliente.
   Se limita a la navegación de pasos del checkout, no al título principal de la página. */
body.ccw-body .ccw-steps-nav,
body.ccw-body .ccw-checkout-steps,
body.ccw-body .ccw-breadcrumbs,
body.ccw-body .ccw-checkout-kicker {
  display: none !important;
}


/* UX: una sola confirmación visible en el paso 3; la cápsula dispara el botón nativo por JS. */
html.cc-js body.ccw-body .ccw .cc-flow[data-step="3"] .cc-p2 #payment #place_order,
html.cc-js body.ccw-body .ccw .cc-flow[data-step="3"] .cc-p2 button#place_order {
  display: none !important;
  visibility: hidden !important;
}

/* Pie compacto: la cantidad de espacio reservado la controla Checkout Studio. */
body.ccw-has-bar .ccw-ft {
  padding-bottom: calc(10px + var(--ccw-footer-space, 72px) + env(safe-area-inset-bottom, 0px)) !important;
}
@media (min-width: 900px) {
  body.ccw-body .ccw-pn {
    height: var(--ccw-cta-height, 60px);
    min-height: var(--ccw-cta-height, 60px);
  }
}
