body.bblt-minicart-open {
  overflow: hidden;
}

.bblt-minicart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 9998;
  opacity: 0;
  transition: opacity .25s ease;
}

.bblt-minicart-overlay.is-open {
  opacity: 1;
}

.bblt-minicart {
  position: fixed;
  top: 0;
  right: 0;
  width: 430px;
  max-width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,.18);
}

.bblt-minicart.is-open {
  transform: translateX(0);
}

.bblt-minicart__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bblt-minicart__content {
  height: 100%;
  overflow: auto;
}

.bblt-mini {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bblt-mini__header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 22px 22px 16px;
  border-top: 4px solid #63dbe8;
  border-bottom: 1px solid #e6e6e6;
}

.bblt-mini__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.bblt-mini__count {
  font-size: 14px;
  color: #444;
}

.bblt-mini__close {
  border: 0;
  background: none;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  color: #111;
}

.bblt-mini__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.bblt-mini__items {
  flex: 1;
  overflow: auto;
  padding: 16px 22px 0;
}

.bblt-mini-item {
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
  background: #fff;
}

.bblt-mini-item__top {
  display: grid;
  grid-template-columns: 84px 1fr 28px;
  gap: 14px;
  align-items: start;
}

.bblt-mini-item__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.bblt-mini-item__name,
.bblt-mini-item__name a {
  color: #111;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.bblt-mini-item__attrs,
.bblt-mini-item__attrs dl,
.bblt-mini-item__attrs p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #444;
  line-height: 1.45;
}

.bblt-mini-item__attrs dt,
.bblt-mini-item__attrs dd {
  display: inline;
  margin: 0;
}

.bblt-mini-item__attrs dd p {
  display: inline;
  margin: 0;
}

.bblt-mini-item__remove {
  text-align: right;
}

.bblt-mini-item__remove a {
  color: #111;
  text-decoration: none;
  font-size: 18px;
}

.bblt-mini-item__bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e6e6e6;
}

.bblt-mini-item__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #666;
}

.bblt-mini-item__value {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.bblt-mini__footer {
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 16px 22px 22px;
}

.bblt-mini__total-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.bblt-mini__total-title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.bblt-mini__total-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
}

.bblt-mini__total-right {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.bblt-mini__cart-btn {
  display: block;
  width: 100%;
  background: #000;
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.bblt-mini__continue {
  width: 100%;
  border: 0;
  background: none;
  color: #111;
  text-decoration: underline;
  cursor: pointer;
  font-size: 15px;
}

.bblt-mini__empty {
  padding: 24px 22px;
  font-size: 15px;
}

@media (max-width: 767px) {
  .bblt-minicart {
    width: 100%;
  }

  .bblt-mini__header {
    padding: 18px 16px 14px;
  }

  .bblt-mini__items {
    padding: 14px 16px 0;
  }

  .bblt-mini__footer {
    padding: 14px 16px 18px;
  }

  .bblt-mini__title {
    font-size: 22px;
  }

  .bblt-mini__total-right {
    font-size: 24px;
  }
}


/* drawer jābūt virs visa */
.bblt-minicart-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 999998 !important;
}

.bblt-minicart {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(430px, 100vw) !important;
  max-width: 100vw !important;
  height: 100dvh !important;
  z-index: 999999 !important;
  margin: 0 !important;
  transform: translateX(100%);
}

.bblt-minicart.is-open {
  transform: translateX(0) !important;
}

/* iekšējais wrapperis pa visu augstumu */
.bblt-minicart__inner,
.bblt-minicart__content,
.bblt-mini {
  height: 100% !important;
  min-height: 100% !important;
}

/* header lai paliek iekš drawer, nevis zem tēmas headera */
.bblt-mini__header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
}

/* ja tēma uz body/html liek transform vai overflow */
html.bblt-minicart-open,
body.bblt-minicart-open {
  overflow: hidden !important;
}

/* ja ir WordPress admin bar */
body.admin-bar .bblt-minicart {
  top: 32px !important;
  height: calc(100dvh - 32px) !important;
}

body.admin-bar .bblt-minicart-overlay {
  top: 32px !important;
}