/* ============================================================
   CRL PARTS · CHECKOUT
   Replica del mockup CRL_Diseno1_v2
   ------------------------------------------------------------
   1. Contenedor y columnas
   2. Titulos
   3. Campos del formulario
   4. Resumen del pedido
   5. Metodos de envio
   6. Metodos de pago
   7. Notas, privacidad y boton final
   8. Responsive
   ============================================================ */


/* ============================================================
   1. CONTENEDOR Y COLUMNAS
   ============================================================ */

html body .crl-checkout {
  background: #F5F7FA !important;
  overflow-x: clip !important;
}

html body .crl-checkout .fusion-row {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  box-sizing: border-box !important;
}

html body .crl-co-left,
html body .crl-co-right {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

html body .crl-co-billing,
html body .crl-co-review,
html body .crl-co-payment {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 28px !important;
  margin: 0 0 20px 0 !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow: visible !important;
}

html body .crl-co-right .crl-co-review {
  padding: 24px !important;
}


/* ============================================================
   2. TITULOS
   ============================================================ */

html body .crl-co-title,
html body .crl-co-title h1,
html body .crl-co-title h2,
html body .crl-co-title h3,
html body .crl-co-title .fusion-title-heading {
  font-family: 'Roboto', sans-serif !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #05080D !important;
  letter-spacing: -0.4px !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  border: none !important;
}

html body .crl-checkout h3,
html body .crl-checkout .woocommerce-billing-fields h3,
html body .crl-checkout #order_review_heading {
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #05080D !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
}


/* ============================================================
   3. CAMPOS DEL FORMULARIO
   ============================================================ */

html body .crl-checkout .woocommerce-billing-fields__field-wrapper,
html body .crl-checkout .woocommerce-shipping-fields__field-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .crl-checkout p.form-row {
  flex: 1 1 100% !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

html body .crl-checkout p.form-row-first,
html body .crl-checkout p.form-row-last,
html body .crl-checkout p.fusion-one-half {
  flex: 1 1 calc(50% - 7px) !important;
}

html body .crl-checkout p.form-row label {
  display: block !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #05080D !important;
  letter-spacing: 0.2px !important;
  line-height: 1.4 !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
}

html body .crl-checkout p.form-row label .required,
html body .crl-checkout p.form-row label abbr.required {
  color: #EF4444 !important;
  text-decoration: none !important;
  border: none !important;
}

html body .crl-checkout p.form-row label .optional {
  color: #94A3B8 !important;
  font-weight: 400 !important;
}

html body .crl-checkout input[type="text"],
html body .crl-checkout input[type="tel"],
html body .crl-checkout input[type="email"],
html body .crl-checkout input[type="password"],
html body .crl-checkout select {
  width: 100% !important;
  height: 44px !important;
  padding: 0 14px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  color: #05080D !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease !important;
}

html body .crl-checkout textarea {
  width: 100% !important;
  min-height: 92px !important;
  padding: 12px 14px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  color: #05080D !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  resize: vertical !important;
  transition: border-color 0.2s ease !important;
}

html body .crl-checkout input[type="text"]:focus,
html body .crl-checkout input[type="tel"]:focus,
html body .crl-checkout input[type="email"]:focus,
html body .crl-checkout select:focus,
html body .crl-checkout textarea:focus {
  border-color: #075DA7 !important;
  outline: none !important;
}

html body .crl-checkout input::placeholder,
html body .crl-checkout textarea::placeholder {
  color: #94A3B8 !important;
  font-size: 13px !important;
}

/* Select2 alineado con los inputs */
html body .crl-checkout .select2-container {
  width: 100% !important;
}

html body .crl-checkout .select2-container .select2-selection--single {
  height: 44px !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

html body .crl-checkout .select2-container .select2-selection__rendered {
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 30px 0 14px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  color: #05080D !important;
}

html body .crl-checkout .select2-container .select2-selection__arrow {
  height: 42px !important;
  right: 8px !important;
}

/* Casilla de enviar a otra direccion */
html body .crl-checkout #ship-to-different-address {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
}

html body .crl-checkout #ship-to-different-address label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #05080D !important;
  cursor: pointer !important;
  margin: 0 !important;
}

html body .crl-checkout #ship-to-different-address input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: #075DA7 !important;
  cursor: pointer !important;
}


/* ============================================================
   4. RESUMEN DEL PEDIDO
   ============================================================ */

html body .crl-co-review table,
html body .crl-co-review table.shop_table {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-collapse: collapse !important;
  background: transparent !important;
  box-shadow: none !important;
  table-layout: fixed !important;
}

html body .crl-co-review table thead th {
  font-family: 'Roboto', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #6B7280 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  text-align: left !important;
  padding: 0 0 12px 0 !important;
  border: none !important;
  border-bottom: 1px solid #E5E7EB !important;
  background: transparent !important;
}

html body .crl-co-review table thead th:last-child {
  text-align: right !important;
}

html body .crl-co-review table tbody tr,
html body .crl-co-review table tfoot tr {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #E5E7EB !important;
}

html body .crl-co-review table td,
html body .crl-co-review table th {
  padding: 12px 0 !important;
  border: none !important;
  background: transparent !important;
  vertical-align: top !important;
  word-break: break-word !important;
}

html body .crl-co-review td.product-name {
  font-family: 'Roboto', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #05080D !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

html body .crl-co-review td.product-name .product-quantity {
  color: #6B7280 !important;
  font-weight: 400 !important;
}

html body .crl-co-review td.product-total,
html body .crl-co-review td.product-total .amount {
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #05080D !important;
  text-align: right !important;
}

html body .crl-co-review tfoot th {
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #4B5563 !important;
  text-align: left !important;
}

html body .crl-co-review tfoot td {
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  color: #4B5563 !important;
  text-align: right !important;
}

html body .crl-co-review tfoot tr.cart-subtotal td .amount {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #05080D !important;
}

html body .crl-co-review tfoot tr.order-total {
  border-top: 2px solid #05080D !important;
  border-bottom: none !important;
}

html body .crl-co-review tfoot tr.order-total th {
  padding: 16px 0 6px 0 !important;
  font-size: 14px !important;
  color: #05080D !important;
  vertical-align: middle !important;
}

html body .crl-co-review tfoot tr.order-total td,
html body .crl-co-review tfoot tr.order-total td .amount,
html body .crl-co-review tfoot tr.order-total td bdi {
  padding: 16px 0 6px 0 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #05080D !important;
  letter-spacing: -0.7px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}


/* ============================================================
   5. METODOS DE ENVIO
   ============================================================ */

html body .crl-co-review ul#shipping_method {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: left !important;
}

html body .crl-co-review ul#shipping_method li {
  display: block !important;
  position: relative !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: left !important;
}

html body .crl-co-review ul#shipping_method li:last-child {
  margin-bottom: 0 !important;
}

html body .crl-co-review ul#shipping_method li input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

html body .crl-co-review ul#shipping_method li label {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 0 26px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  color: #4B5563 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  cursor: pointer !important;
}

html body .crl-co-review ul#shipping_method li label::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 3px !important;
  width: 16px !important;
  height: 16px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #94A3B8 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease !important;
}

html body .crl-co-review ul#shipping_method li label::after {
  content: '' !important;
  display: none !important;
  position: absolute !important;
  left: 4px !important;
  top: 7px !important;
  width: 8px !important;
  height: 8px !important;
  background: #075DA7 !important;
  border-radius: 50% !important;
}

html body .crl-co-review ul#shipping_method li input:checked + label::before {
  border-color: #075DA7 !important;
}

html body .crl-co-review ul#shipping_method li input:checked + label::after {
  display: block !important;
}

html body .crl-co-review ul#shipping_method li label .amount {
  font-weight: 700 !important;
  color: #05080D !important;
}

html body .crl-checkout .woocommerce-shipping-destination {
  font-size: 12px !important;
  color: #6B7280 !important;
  line-height: 1.4 !important;
  margin: 6px 0 0 0 !important;
}


/* ============================================================
   6. METODOS DE PAGO
   ============================================================ */

html body .crl-checkout ul.wc_payment_methods,
html body .crl-checkout .wc_payment_methods {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: none !important;
}

html body .crl-checkout li.wc_payment_method {
  position: relative !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
}

html body .crl-checkout li.wc_payment_method:hover {
  border-color: #075DA7 !important;
}

html body .crl-checkout li.wc_payment_method input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

html body .crl-checkout li.wc_payment_method label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  position: relative !important;
  margin: 0 !important;
  padding: 16px 16px 16px 42px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #05080D !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
}

html body .crl-checkout li.wc_payment_method label::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  margin-top: -8px !important;
  width: 16px !important;
  height: 16px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #94A3B8 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease !important;
}

html body .crl-checkout li.wc_payment_method label::after {
  content: '' !important;
  display: none !important;
  position: absolute !important;
  left: 20px !important;
  top: 50% !important;
  margin-top: -4px !important;
  width: 8px !important;
  height: 8px !important;
  background: #075DA7 !important;
  border-radius: 50% !important;
}

html body .crl-checkout li.wc_payment_method input:checked + label::before {
  border-color: #075DA7 !important;
}

html body .crl-checkout li.wc_payment_method input:checked + label::after {
  display: block !important;
}

html body .crl-checkout li.wc_payment_method label img {
  max-height: 22px !important;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

html body .crl-checkout .payment_box,
html body .crl-checkout li.wc_payment_method .payment_box {
  margin: 0 !important;
  padding: 0 16px 16px 42px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #6B7280 !important;
  line-height: 1.5 !important;
}

html body .crl-checkout .payment_box::before {
  display: none !important;
}

html body .crl-checkout .payment_box p {
  margin: 0 !important;
  font-size: 12px !important;
  color: #6B7280 !important;
}


/* ============================================================
   7. NOTAS, PRIVACIDAD Y BOTON FINAL
   ============================================================ */

html body .crl-checkout .woocommerce-privacy-policy-text,
html body .crl-checkout .woocommerce-privacy-policy-text p {
  font-family: 'Roboto', sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #6B7280 !important;
  line-height: 1.5 !important;
  margin: 14px 0 !important;
}

html body .crl-checkout .woocommerce-privacy-policy-text a {
  color: #075DA7 !important;
  text-decoration: underline !important;
}

html body .crl-checkout .woocommerce-terms-and-conditions-wrapper {
  margin: 0 0 14px 0 !important;
}

html body .crl-checkout .woocommerce-terms-and-conditions-checkbox-text {
  font-family: 'Roboto', sans-serif !important;
  font-size: 12px !important;
  color: #4B5563 !important;
  line-height: 1.5 !important;
}

html body .crl-checkout #place_order,
html body .crl-checkout button#place_order {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 6px 0 0 0 !important;
  padding: 16px 24px !important;
  background: #075DA7 !important;
  background-color: #075DA7 !important;
  background-image: none !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  transition: background 0.25s ease !important;
}

html body .crl-checkout #place_order:hover {
  background: #05080D !important;
  background-color: #05080D !important;
}

html body .crl-checkout .woocommerce-info,
html body .crl-checkout .woocommerce-message {
  background: #F0F6FC !important;
  border: none !important;
  border-left: 3px solid #075DA7 !important;
  border-radius: 4px !important;
  padding: 12px 14px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 13px !important;
  color: #075DA7 !important;
}

html body .crl-checkout .woocommerce-info::before,
html body .crl-checkout .woocommerce-message::before {
  display: none !important;
}


/* ============================================================
   8. RESPONSIVE
   ============================================================ */

@media only screen and (max-width: 1024px) {
  html body .crl-checkout .fusion-row {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  html body .crl-co-billing,
  html body .crl-co-review,
  html body .crl-co-payment {
    padding: 22px !important;
  }
}

@media only screen and (max-width: 640px) {
  html body .crl-checkout .fusion-row {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  html body .crl-co-billing,
  html body .crl-co-review,
  html body .crl-co-payment {
    padding: 16px !important;
  }

  html body .crl-checkout p.form-row-first,
  html body .crl-checkout p.form-row-last,
  html body .crl-checkout p.fusion-one-half {
    flex: 1 1 100% !important;
  }

  html body .crl-co-review tfoot tr.order-total td,
  html body .crl-co-review tfoot tr.order-total td .amount {
    font-size: 21px !important;
  }
}

/* ============================================================
   9. METODOS DE PAGO EN REJILLA
   ============================================================ */

html body .crl-checkout ul.wc_payment_methods {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

html body .crl-checkout li.wc_payment_method {
  margin: 0 !important;
  padding: 16px !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
}

html body .crl-checkout li.wc_payment_method label {
  display: block !important;
  padding: 0 26px 0 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #05080D !important;
}

html body .crl-checkout li.wc_payment_method label::before {
  left: auto !important;
  right: 0 !important;
  top: 2px !important;
  margin-top: 0 !important;
  width: 18px !important;
  height: 18px !important;
}

html body .crl-checkout li.wc_payment_method label::after {
  left: auto !important;
  right: 4px !important;
  top: 6px !important;
  margin-top: 0 !important;
  width: 10px !important;
  height: 10px !important;
}

html body .crl-checkout li.wc_payment_method:has(input:checked) {
  border-color: #075DA7 !important;
  background: #F0F6FC !important;
}

html body .crl-checkout li.wc_payment_method .payment_box {
  padding: 6px 0 0 0 !important;
  font-size: 12px !important;
  color: #6B7280 !important;
}

html body .crl-checkout li.wc_payment_method label img {
  display: block !important;
  max-height: 20px !important;
  margin: 8px 0 0 0 !important;
}


/* ============================================================
   10. PUNTOS DE RECOGIDA
   ============================================================ */

html body .crl-pickup {
  display: none;
  margin: 0 0 18px 0 !important;
  padding: 18px !important;
  background: #F5F7FA !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
}

html body .crl-pickup-title {
  font-family: 'Roboto', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #05080D !important;
  letter-spacing: 0.4px !important;
  margin: 0 0 12px 0 !important;
}

html body .crl-pickup-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

html body .crl-pickup-option {
  position: relative !important;
  display: block !important;
  margin: 0 !important;
  padding: 12px 34px 12px 14px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #E5E7EB !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
}

html body .crl-pickup-option:hover {
  border-color: #075DA7 !important;
}

html body .crl-pickup-option input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

html body .crl-pickup-option::before {
  content: '' !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 16px !important;
  height: 16px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #94A3B8 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
}

html body .crl-pickup-option::after {
  content: '' !important;
  display: none !important;
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 8px !important;
  height: 8px !important;
  background: #075DA7 !important;
  border-radius: 50% !important;
}

html body .crl-pickup-option:has(input:checked) {
  border-color: #075DA7 !important;
  background: #F0F6FC !important;
}

html body .crl-pickup-option:has(input:checked)::before {
  border-color: #075DA7 !important;
}

html body .crl-pickup-option:has(input:checked)::after {
  display: block !important;
}

html body .crl-pickup-option .crl-pp-city {
  display: block !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #05080D !important;
  line-height: 1.3 !important;
  margin: 0 0 2px 0 !important;
}

html body .crl-pickup-option .crl-pp-addr,
html body .crl-pickup-option .crl-pp-zone,
html body .crl-pickup-option .crl-pp-phone {
  display: block !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #6B7280 !important;
  line-height: 1.4 !important;
}

html body .crl-pickup-option .crl-pp-hours {
  display: block !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #05080D !important;
  line-height: 1.4 !important;
  margin: 3px 0 0 0 !important;
}


/* ============================================================
   11. RESPONSIVE DE PAGO Y RECOGIDA
   ============================================================ */

@media only screen and (max-width: 900px) {
  html body .crl-checkout ul.wc_payment_methods,
  html body .crl-pickup-grid {
    grid-template-columns: 1fr !important;
  }
}