.view-id-devices .main-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  margin-top: 20px;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .view-id-devices .main-content {
    flex-direction: column;
  }
}

.view-id-devices .main-content .content-on-left,
.view-id-devices .main-content .content-on-right {
  width: 100%;
}

.view-id-devices .main-content .content-on-left {
  max-width: 320px;
  padding-right: 60px;
}

@media (max-width: 767px) {
  .view-id-devices .main-content .content-on-left {
    max-width: none;
    padding-right: 0;
    border-bottom: 1px solid #d9d9d9;
    margin-bottom: 20px;
  }
}

.view-id-devices .view-filters .form--inline,
.view-id-devices .view-filters .views-exposed-form {
  display: block;
}

.view-id-devices .view-filters .form-item {
  margin: 0;
  float: none;
  width: 100%;
}

.view-id-devices .view-filters .form-item label {
  display: block;
  line-height: 18px;
  margin: 20px 0 10px;
}

.view-id-devices .view-filters .form-item:first-child label {
  margin-top: 0;
}

.view-id-devices .view-filters select,
.view-id-devices .view-filters .select2-container {
  width: 100% !important;
  margin: 0 0 10px;
}

.view-id-devices .view-filters .form-actions {
  margin: 25px 0 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-id-devices .view-filters .form-actions .button {
  margin: 0;
  width: calc(50% - 5px);
}

.view-id-devices .view-filters .form-actions input[type="submit"]:first-child {
  background: #307ebc;
  color: #ffffff;
  border-color: #307ebc;
}

.view-id-devices .view-filters .form-actions input[type="submit"]:first-child:hover {
  background: #114475;
  border-color: #114475;
}

.view-id-devices .view-filters .form-item-search-api-fulltext {
  position: relative;
}

.view-id-devices .view-filters .form-item-search-api-fulltext::after {
  content: "";
  position: absolute;
  background-image: url("../../images/icons/magnifying-glass.svg");
  background-size: 26%;
  background-repeat: no-repeat;
  background-position: 30px;
  height: 54px;
  width: 54px;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.view-id-devices .view-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.view-id-devices .sort-by-filter .js-form-type-select {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 0;
}

.view-id-devices .header-results {
  margin-right: 25px;
  margin-top: 0;
  position: relative;
}

.view-id-devices .header-results::after {
  content: "|";
  display: inline-block;
  position: absolute;
  right: -15px;
}

.view-id-devices .sort-by-filter .js-form-type-select label {
  min-width: 54px;
  margin: 0;
}

.view-id-devices .sort-by-filter .js-form-type-select select {
  width: auto !important;
  margin: 0;
  padding: 4px 30px 4px 15px;
  background-color: transparent;
  border-width: 1px;
  border-color: rgb(217, 217, 217);
  background-position: 95.5% 50%;
}

@media (max-width: 767px) {
  .view-id-devices .view-header {
    justify-content: center;
    margin: 0 -15px 15px;
    padding: 0 15px;
  }
  .view-id-devices .sort-by-filter .js-form-type-select {
    gap: 5px;
  }
  .view-id-devices .header-results {
    min-width: 80px;
  }
}

.view-id-devices .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  grid-gap: 40px 60px;
}

@media (max-width: 991px) {
  .view-id-devices .view-content {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    margin: 0 15px;
  }
}

.view-id-devices .view-empty {
  width: 100%;
  background: #f2f2f2;
  padding: 15px;
  text-align: center;
}

.view-devices .view-footer {
  width: 100%;
  padding: 20px 15px;
}

.node--type-device.node--view-mode-card {
  max-width: none;
  min-height: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.node--type-device.node--view-mode-card .node__container,
.node--type-device.node--view-mode-card .node__main-content {
  height: 100%;
}

.node--type-device.node--view-mode-card .node__main-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.node--type-device.node--view-mode-card .field--name-field-media-device,
.node--type-device.node--view-mode-card .media--type-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  overflow: hidden;
  border: 1px solid #edebeb;
  background: #ffffff;
}

.node--type-device.node--view-mode-card .media--type-image img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.node--type-device.node--view-mode-card .node__media-fallback {
  background: #f7f7f7;
}

.node--type-device.node--view-mode-card .node__media-fallback img {
  width: 130px;
  height: auto;
  max-height: 130px;
  margin: 0;
  opacity: 0.85;
}

.node--type-device.node--view-mode-card .node__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f2f2f2;
  padding: 15px 20px 20px;
  margin-bottom: 0;
}

.node--type-device.node--view-mode-card .node__title {
  min-height: auto;
  margin: 0;
  padding: 0;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #000000;
}

.node--type-device.node--view-mode-card .field--name-field-taxonomy-companies {
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #525458;
  border-bottom: 1px solid #00000024;
  padding: 0 20px 12px;
  margin: 5px 0 12px;
}

.node--type-device.node--view-mode-card .field--name-field-taxonomy-companies::before {
  top: 0;
}

.node--type-device.node--view-mode-card .field--name-field-taxonomy-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 18px;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #2a2a2a;
}

.node--type-device.node--view-mode-card .field--name-field-taxonomy-features .field__item {
  padding: 2px 10px;
  background: #e6e6e6;
  border-radius: 3px;
}

.node--type-device.node--view-mode-card .node__more-link {
  align-self: flex-start;
  margin-top: auto;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: #307ebc;
}

.node--type-device.node--view-mode-card .node__more-link:hover,
.node--type-device.node--view-mode-card .node__more-link:focus {
  color: #114475;
  text-decoration: underline;
}
