{{if theme.vala_ipsbox_header}}
{{$borders = \explode(',',theme.vala_ipsbox_hrborder);}}
.ipsWidget .ipsWidget_title:not(.vala__collection_tablinks), .ipsBox .ipsType_sectionTitle:not(.vala__collection_tablinks) {
  border-top-left-radius:inherit;
  border-top-right-radius:inherit;
  {{if theme.vala_ipsbox_headercolortype=="solid"}}
  	background-color: rgb(var(--vala_ipsbox_hrcolor)); 
  	color: inherit;
  {{elseif theme.vala_ipsbox_headercolortype=="gradient"}}
  	background-image: linear-gradient(-90deg, rgb(var(--vala_ipsbox_hrscolor)) 0%, rgb(var(--vala_ipsbox_hrecolor)) 100%);
  	color: inherit;
  {{endif}}
  
  {{if \in_array('t', $borders)}}
  	border-top:{theme="vala_ipsbox_hrborderwidth"}px solid rgb(var(--vala_ipsbox_hrbordercolor)) !important ;
  {{endif}}
  {{if \in_array('b', $borders)}}
  border-bottom:{theme="vala_ipsbox_hrborderwidth"}px solid rgb(var(--vala_ipsbox_hrbordercolor)) !important;
  {{endif}}
}

html[dir="ltr"] .ipsWidget .ipsWidget_title,html[dir="ltr"] .ipsBox .ipsType_sectionTitle:not(.vala__collection_tablinks) {
  {{if \in_array('r', $borders)}}
  	border-right:{theme="vala_ipsbox_hrborderwidth"}px solid rgb(var(--vala_ipsbox_hrbordercolor)) !important ;
  {{endif}}
    {{if \in_array('l', $borders)}}
  	border-left:{theme="vala_ipsbox_hrborderwidth"}px solid rgb(var(--vala_ipsbox_hrbordercolor)) !important ;
  {{endif}}
}

html[dir="rtl"] .ipsWidget .ipsWidget_title,html[dir="rtl"] .ipsBox .ipsType_sectionTitle:not(.vala__collection_tablinks) {
  {{if \in_array('r', $borders)}}
  	border-left:{theme="vala_ipsbox_hrborderwidth"}px solid rgb(var(--vala_ipsbox_hrbordercolor)) !important ;
  {{endif}}
    {{if \in_array('l', $borders)}}
  	border-right:{theme="vala_ipsbox_hrborderwidth"}px solid rgb(var(--vala_ipsbox_hrbordercolor)) !important ;
  {{endif}}
}
{{endif}}

{{if theme.vala_ipsbox_border_radius}}
  .ipsBox{
      border-radius: {theme="vala_ipsbox_border_radius_px"}px;
  }
{{endif}}

/*.ipsBox,.ipsStreamItem_contentBlock {
  box-shadow: 0 4px 24px 0 rgb(34 41 47 / 10%)!important;
}*/