/* Checkout de LearnPress con el estilo de las landings CGEA */
body.learnpress-checkout #learn-press-checkout {
	--navy-900: #081428;
	--navy-700: #16305a;
	--gold: #ffb606;
	--gold-hi: #ffc93d;
	--ink: #0e1726;
	--muted: #5a6478;
	--line: #e5e8ef;
	--soft: #f5f6fa;
	font-family: "Manrope", "Roboto", system-ui, sans-serif;
	color: var(--ink);
	max-width: 1120px;
	margin: 10px auto 90px;
}
body.learnpress-checkout #learn-press-checkout h4 {
	font-family: inherit; font-size: 20px; font-weight: 800; letter-spacing: -.01em; text-transform: none; color: var(--ink); margin: 0 0 18px;
}
body.learnpress-checkout #learn-press-checkout .learn-press-message { border-radius: 14px; font-family: inherit; }

body.learnpress-checkout #learn-press-checkout-form {
	display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; border: 0; padding: 0;
}
body.learnpress-checkout .lp-checkout-form__before { grid-column: 2; grid-row: 1; position: sticky; top: 110px; display: grid; gap: 18px; width: auto; float: none; margin: 0; padding: 0; }
body.learnpress-checkout .lp-checkout-form__after { grid-column: 1; grid-row: 1; display: grid; gap: 22px; width: auto; float: none; margin: 0; padding: 0; }

/* Bloques */
body.learnpress-checkout #learn-press-checkout .lp-checkout-block,
body.learnpress-checkout #learn-press-checkout .learn-press-checkout-comment {
	float: none; width: auto; margin: 0; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 22px;
	box-shadow: 0 1px 2px rgba(8, 20, 40, .04), 0 12px 32px -12px rgba(8, 20, 40, .14);
}

/* Resumen del pedido */
body.learnpress-checkout #learn-press-checkout #checkout-order { background: linear-gradient(180deg, #0d1f3c, #050d1d); border: 0; color: #fff; }
body.learnpress-checkout #checkout-order h4 { color: #fff; }
body.learnpress-checkout #checkout-order .lp-checkout-order__inner { border: 0; padding: 0; background: none; }
body.learnpress-checkout #checkout-order table { width: 100%; border: 0; margin: 0; background: none; border-collapse: collapse; }
body.learnpress-checkout #checkout-order table td,
body.learnpress-checkout #checkout-order table th { border: 0; background: none; padding: 12px 0; color: rgba(255, 255, 255, .72); font-family: inherit; font-size: 15px; font-weight: 600; vertical-align: middle; }
body.learnpress-checkout #checkout-order .cart-item td { padding: 0 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
body.learnpress-checkout #checkout-order .course-thumbnail { width: 64px; padding-right: 14px !important; }
body.learnpress-checkout #checkout-order .course-thumbnail img { width: 56px; height: 56px; object-fit: cover; object-position: center 45%; border-radius: 14px; background: #fff; display: block; }
body.learnpress-checkout #checkout-order .course-name a,
body.learnpress-checkout #checkout-order .course-title { color: #fff; font-size: 16px; font-weight: 800; line-height: 1.35; text-decoration: none; }
body.learnpress-checkout #checkout-order .col-number { text-align: right; color: #fff; white-space: nowrap; }
body.learnpress-checkout #checkout-order tfoot tr:first-child th,
body.learnpress-checkout #checkout-order tfoot tr:first-child td { padding-top: 20px; }
body.learnpress-checkout #checkout-order .order-total th,
body.learnpress-checkout #checkout-order .order-total td { font-size: 17px; color: #fff; font-weight: 800; border-top: 1px dashed rgba(255, 255, 255, .18); padding-top: 18px; }
body.learnpress-checkout #checkout-order .order-total td { font-size: 30px; letter-spacing: -.02em; color: var(--gold); }

/* Comentario */
body.learnpress-checkout .learn-press-checkout-comment textarea {
	width: 100%; min-height: 96px; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; font-family: inherit; font-size: 15px; background: var(--soft); resize: vertical;
}

/* Formularios */
body.learnpress-checkout #learn-press-checkout .lp-form-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
body.learnpress-checkout #learn-press-checkout .lp-form-fields .form-field { margin: 0; }
body.learnpress-checkout #learn-press-checkout .lp-form-fields label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
body.learnpress-checkout #learn-press-checkout input[type="text"],
body.learnpress-checkout #learn-press-checkout input[type="email"],
body.learnpress-checkout #learn-press-checkout input[type="password"] {
	width: 100%; height: 54px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 18px; font-family: inherit; font-size: 16px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
body.learnpress-checkout #learn-press-checkout input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 182, 6, .18); }
body.learnpress-checkout #learn-press-checkout .lp-guest-checkout-notice { margin-top: 12px; font-size: 14px; color: var(--muted); background: var(--soft); border-radius: 12px; padding: 12px 14px; }
body.learnpress-checkout #learn-press-checkout .lp-guest-switch-login,
body.learnpress-checkout #learn-press-checkout .lp-checkout-sign-up-link,
body.learnpress-checkout #learn-press-checkout .lp-checkout-remember { margin-top: 14px; font-size: 14px; color: var(--muted); }
body.learnpress-checkout #learn-press-checkout .lp-checkout-remember { display: flex; justify-content: space-between; align-items: center; }
body.learnpress-checkout #learn-press-checkout a,
body.learnpress-checkout #learn-press-checkout a label { color: #b17c00; font-weight: 700; cursor: pointer; }

/* Pago */
body.learnpress-checkout #checkout-payment h4 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.learnpress-checkout #checkout-payment .secure-connection { font-size: 13px; font-weight: 700; color: #13945c; background: #e9f9f0; padding: 6px 12px; border-radius: 999px; float: none; }
body.learnpress-checkout #checkout-payment .payment-methods { list-style: none; margin: 0 0 22px; padding: 0; border: 0; }
body.learnpress-checkout #checkout-payment .lp-payment-method { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0 0 10px; background: #fff; }
body.learnpress-checkout #checkout-payment .lp-payment-method.selected { border-color: var(--gold); background: #fffbf0; }
body.learnpress-checkout #checkout-payment .lp-payment-method label { display: flex; align-items: center; gap: 12px; margin: 0; }
body.learnpress-checkout #checkout-payment .gateway-icon { max-height: 30px; width: auto; }
body.learnpress-checkout #checkout-payment .payment-method-form { margin-top: 10px; padding: 0; border: 0; background: none; font-size: 14px; color: var(--muted); }
body.learnpress-checkout #checkout-payment .payment-method-form::before { display: none; }
body.learnpress-checkout #learn-press-checkout #learn-press-checkout-place-order {
	width: 100%; min-height: 58px; border: 0; border-radius: 999px; cursor: pointer;
	background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1a1200;
	font-family: inherit; font-size: 17px; font-weight: 800; letter-spacing: 0; text-transform: none;
	box-shadow: 0 10px 30px -10px rgba(255, 182, 6, .65), inset 0 1px 0 rgba(255, 255, 255, .45);
	transition: transform .2s, box-shadow .25s;
}
body.learnpress-checkout #learn-press-checkout #learn-press-checkout-place-order:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 182, 6, .75); }
body.learnpress-checkout #learn-press-checkout .lp-terms-and-conditions { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

@media (max-width: 960px) {
	body.learnpress-checkout #learn-press-checkout-form { grid-template-columns: 1fr; }
	body.learnpress-checkout .lp-checkout-form__before { grid-column: 1; grid-row: 1; position: static; }
	body.learnpress-checkout .lp-checkout-form__after { grid-column: 1; grid-row: 2; }
	body.learnpress-checkout #learn-press-checkout .lp-checkout-block,
	body.learnpress-checkout #learn-press-checkout .learn-press-checkout-comment { padding: 22px; }
}

/* Ganarle a los estilos de Eduma */
body.learnpress-checkout #learn-press-checkout #learn-press-checkout-place-order { width: 100% !important; border-radius: 999px !important; font-size: 17px !important; text-transform: none !important; height: auto !important; padding: 18px 24px !important; line-height: 1.2 !important; }
body.learnpress-checkout #checkout-payment .lp-payment-method label { background: transparent !important; padding: 0 !important; }
body.learnpress-checkout #checkout-payment .lp-payment-method label::before,
body.learnpress-checkout #checkout-payment .lp-payment-method label::after { display: none !important; }
body.learnpress-checkout #checkout-payment .gateway-input { width: 18px; height: 18px; accent-color: #ffb606; margin: 0; }
body.learnpress-checkout #checkout-payment .place-order-action { margin: 0; padding: 0; text-align: center; }
body.learnpress-checkout #learn-press-checkout #checkout-order table,
body.learnpress-checkout #learn-press-checkout #checkout-order tr,
body.learnpress-checkout #learn-press-checkout #checkout-order td,
body.learnpress-checkout #learn-press-checkout #checkout-order th { border: 0 !important; background: transparent !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order .cart-item td { border-bottom: 1px solid rgba(255, 255, 255, .12) !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order .order-total th,
body.learnpress-checkout #learn-press-checkout #checkout-order .order-total td { border-top: 1px dashed rgba(255, 255, 255, .18) !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order td.course-name,
body.learnpress-checkout #learn-press-checkout #checkout-order td.course-name * { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; max-width: none !important; display: inline !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order .course-thumbnail img { width: 72px !important; height: 44px !important; border-radius: 10px !important; object-position: left center !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order .course-thumbnail { width: 86px !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order th { text-align: left !important; }
body.learnpress-checkout #checkout-payment .payment-method-form { background: transparent !important; }
body.learnpress-checkout #learn-press-checkout #learn-press-checkout-place-order { font-weight: 800 !important; font-family: "Manrope", system-ui, sans-serif !important; color: #1a1200 !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order .col-number { color: #fff !important; font-weight: 700 !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order .order-total td { color: #ffb606 !important; font-size: 28px !important; font-weight: 800 !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order td.course-name .cgea-co-sub { display: block !important; margin-top: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .7); }
body.learnpress-checkout #learn-press-checkout #checkout-order td.course-name .cgea-co-sub strong { display: inline-block !important; margin-left: 4px; padding: 3px 8px; border-radius: 6px; background: #ffb606; color: #1a1200; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
body.learnpress-checkout #learn-press-checkout #checkout-order td.course-name .cgea-co-note { display: block !important; margin-top: 8px; font-size: 12.5px; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, .6); }
body.learnpress-checkout #learn-press-checkout #checkout-order table { table-layout: auto !important; width: 100% !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order td.course-thumbnail { width: 60px !important; padding-right: 12px !important; vertical-align: top !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order .course-thumbnail img { width: 52px !important; height: 52px !important; object-fit: cover !important; object-position: 30% center !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order td.course-name { display: table-cell !important; width: 100% !important; padding-right: 14px !important; vertical-align: top !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order td.course-name > a { border: 0 !important; box-shadow: none !important; text-decoration: none !important; background: none !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order td.course-name > a::before,
body.learnpress-checkout #learn-press-checkout #checkout-order td.course-name > a::after { display: none !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order .cart-item td.course-total { vertical-align: top !important; font-size: 17px !important; }
/* Resumen del pedido como cuadrícula: el total grande ya no aprieta el nombre */
body.learnpress-checkout #learn-press-checkout #checkout-order table,
body.learnpress-checkout #learn-press-checkout #checkout-order tbody,
body.learnpress-checkout #learn-press-checkout #checkout-order tfoot { display: block !important; width: 100% !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order tr.cart-item { display: grid !important; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .12) !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order tr.cart-item td { display: block !important; width: auto !important; padding: 0 !important; border: 0 !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order tfoot tr { display: flex !important; justify-content: space-between; align-items: baseline; gap: 12px; }
body.learnpress-checkout #learn-press-checkout #checkout-order tfoot th,
body.learnpress-checkout #learn-press-checkout #checkout-order tfoot td { display: block !important; width: auto !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order tfoot .order-total th,
body.learnpress-checkout #learn-press-checkout #checkout-order tfoot .order-total td { border-top: 0 !important; }
body.learnpress-checkout #learn-press-checkout #checkout-order tfoot tr.order-total { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(255, 255, 255, .18) !important; }
