.sectiongris.header.library {
  padding-top: 20px;
}

.sectiongris.header.library .intro-content.cc-homepage {
  padding-top: 0;
}

@media screen and (min-width: 768px) {
  .sectiongris.header.library .columns-7 {
    position: relative;
    padding-top: 55px;
  }

  .sectiongris.header.library .headingh1-jumbo.orange {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    white-space: nowrap;
  }
}

.sensor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
}

.sensor-toolbar__field {
  flex: 1 1 220px;
  min-width: 180px;
}

.sensor-toolbar select,
.sensor-toolbar input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #172554;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sensor-toolbar select:focus,
.sensor-toolbar input[type="search"]:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.sensor-toolbar__count {
  margin: 0 0 20px;
  color: #537083;
  font-size: 14px;
}

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.sensor-card {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: "Open Sans", sans-serif;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.sensor-card:hover,
.sensor-card:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.sensor-card__image {
  display: block;
  width: 100%;
  height: 150px;
  margin-bottom: 14px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.sensor-card__manufacturer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #537083;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sensor-card__logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sensor-card__name {
  margin: 0 0 8px;
  color: #172554;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.sensor-card__connectivity {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef4fb;
  color: #0f5ea8;
  font-size: 12px;
  font-weight: 600;
}

.sensor-empty {
  display: none;
  padding: 48px 16px;
  color: #537083;
  text-align: center;
  font-size: 16px;
}

.sensor-empty[data-visible="true"] {
  display: block;
}

.sensor-dialog,
.buy-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: #f8fafc;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.32), 0 2px 10px rgba(15, 23, 42, 0.12);
}

.sensor-dialog::backdrop,
.buy-dialog::backdrop {
  background: rgba(15, 23, 42, 0.68);
  -webkit-backdrop-filter: blur(8px) saturate(75%);
  backdrop-filter: blur(8px) saturate(75%);
}

.sensor-dialog__panel,
.buy-dialog__panel {
  position: relative;
  padding: 44px 40px 36px;
  font-family: "Open Sans", sans-serif;
}

.sensor-dialog__close,
.buy-dialog__close {
  position: absolute;
  top: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.sensor-dialog__close {
  right: 16px;
}

.buy-dialog__close {
  top: 16px;
  right: 16px;
}

.sensor-dialog__manufacturer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #537083;
  font-size: 14px;
  font-weight: 600;
}

.sensor-dialog__logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.sensor-dialog__image {
  display: block;
  width: 100%;
  max-height: 220px;
  margin-bottom: 18px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.sensor-dialog__title {
  margin: 0 0 10px;
  color: #172554;
  font-size: 26px;
  font-weight: 700;
}

.sensor-dialog__connectivity {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef4fb;
  color: #0f5ea8;
  font-size: 12px;
  font-weight: 600;
}

.sensor-dialog__description {
  margin: 0 0 20px;
  color: #334155;
  font-size: 15px;
  line-height: 1.55;
}

.sensor-dialog__meta {
  margin: 0 0 20px;
  color: #537083;
  font-size: 13px;
}

.sensor-dialog__meta a {
  color: #0f5ea8;
}

.sensor-dialog__actions,
.buy-dialog__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.sensor-dialog__buy,
.buy-dialog__submit {
  flex: 1;
  padding: 13px 20px;
  border: 0;
  border-radius: 10px;
  background-color: #0f5ea8;
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 94, 168, 0.2);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sensor-dialog__buy:hover,
.buy-dialog__submit:hover {
  background-color: #0b4d8a;
  box-shadow: 0 10px 22px rgba(15, 94, 168, 0.26);
  transform: translateY(-1px);
}

.buy-dialog__cancel {
  flex: 0 0 auto;
  padding: 13px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.buy-dialog__heading {
  margin: 0 0 6px;
  color: #172554;
  font-size: 24px;
  font-weight: 700;
}

.buy-dialog__intro {
  margin: 0 0 20px;
  color: #537083;
  font-size: 14px;
}

.buy-dialog__field {
  display: block;
  margin-bottom: 14px;
}

.buy-dialog__field span {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.buy-dialog__field input {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.buy-dialog__field input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.buy-dialog__status {
  margin: 14px 0 0;
  font-size: 14px;
}

.buy-dialog__status[data-state="error"] {
  color: #b91c1c;
}

.buy-dialog__status[data-state="success"] {
  color: #15803d;
}

.buy-dialog[data-result] .buy-dialog__field,
.buy-dialog[data-result] .buy-dialog__actions {
  display: none;
}

.buy-dialog[data-result] .buy-dialog__status {
  display: flex;
  min-height: 220px;
  margin-top: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
}

@media screen and (max-width: 479px) {
  .sensor-dialog__panel,
  .buy-dialog__panel {
    padding: 40px 22px 28px;
  }

  .sensor-dialog__title {
    font-size: 22px;
  }
}
