<div class="col-12 col-lg-6">
	<div class="row model-info model-wizard articles-container-box" style="border:0;height:49px">
		<div class="variants-container col-9">
	  {% for color in model.colors %}
			{% set comm_description = str_replace('"', '&quot;', color.descomm) %}
			{% set tecn_description = str_replace('"', '&quot;', color.destecn) %}
			<div class="preview-color-box" data-cdarti="{{ color.cdarti }}" data-descomm="{{ comm_description }}" data-destecn="{{ tecn_description }}">
				{{ elements.getModelImgOrDefault(color['flimag'], color['dscolo'], ['title': (color['dscolo'] != '' ? color['dscolo'] : color['cdcolo']), 'style': 'margin:0' ]) }}
		  </div>
	  {% endfor %}
	  </div>
	  <div class="col-3 model-details show-model-label" id="show-model" style="display:none">{{ mt._('_common.see.model') }}</div>
  </div>

	{% set comm_description = '' %}
	{% if model.descom == "" and (modinf == null or modinf.vestib == '') %}
		{% if model.colors|length > 0 %}
			{% set comm_description = model.colors[0].descomm %}
		{% endif %}
		{% if comm_description == '' %}
			{% set comm_description = mt._('_common.notes.no') %}
		{% endif %}
	{% else %}
		{% if model.descom != "" %}{% set comm_description = comm_description ~ model.descom ~ '<br/>' %}{% endif %}
		{% if modinf != null and modinf.vestib != '' %}{% set comm_description = comm_description ~ mt._('_common.fit') ~ ': ' ~ modinf.vestib %}{% endif %}
	{% endif %}

	{% set tecn_description = '' %}
	{% if model.destec == "" and
		(modinf == null or
		(session.get('language') == 'it' and modinf.dettit == "") or
		(session.get('language') == 'en' and modinf.detten == "") or
		(session.get('language') == 'es' and modinf.dettes == "") or
		(session.get('language') == 'de' and modinf.dettde == "") or
		(session.get('language') == 'fr' and modinf.dettfr == "")) %}
		{% if model.colors|length > 0 %}
			{% set tecn_description = model.colors[0].destecn %}
		{% endif %}
		{% if tecn_description == '' %}
			{% set tecn_description = mt._('_common.descr.no') %}
		{% endif %}
	{% else %}
		{% set tecn_description = tecn_description ~ (model.destec != "" ? model.destec ~ '<br/>' : '') %}
		{% set tecn_description = tecn_description ~ (modinf != null and session.get('language') == 'it' ? modinf.dettit : '') %}
		{% set tecn_description = tecn_description ~ (modinf != null and session.get('language') == 'en' ? modinf.detten : '') %}
		{% set tecn_description = tecn_description ~ (modinf != null and session.get('language') == 'es' ? modinf.dettes : '') %}
		{% set tecn_description = tecn_description ~ (modinf != null and session.get('language') == 'de' ? modinf.dettde : '') %}
		{% set tecn_description = tecn_description ~ (modinf != null and session.get('language') == 'fr' ? modinf.dettfr : '') %}
	{% endif %}

  <div class="row model-info model-wizard pt-0" style="height:98px">
    <div class="col-12 model-description font-weight-bold" style="line-height:20px">{{ model.cdartn }} - {{ model.dsartn }}</div>
		{% set comm_description = str_replace('"', '&quot;', comm_description) %}
		{% set tecn_description = str_replace('"', '&quot;', tecn_description) %}
    <div class="{{ fromLook != -1 ? 'col-6' : 'col-9' }} model-single-info" id="descriptions" data-descomm="{{ comm_description }}" data-destecn="{{ tecn_description }}" style="text-transform:none;font-size:12px">{{ comm_description }}</div>
    {% if fromLook != -1 %}
    <div class="col-3 model-details" style="line-height:54px;text-transform:none">
      <a href="{{ url('catalog/look/' ~ fromLook) }}">{{ mt._('model.backtolook') }}</a>
    </div>
    {% endif %}
    <div class="col-3 model-details text-right" data-toggle='modal' data-target='.modal-product-details'>{{ mt._('_common.product.details') }}</div>
  </div>
</div>
