/* Bilotex Offers Carousel - frontend */
.bxo-wrap{ margin-top: 14px; }
.bxo-carousel{ position: relative; }
.bxo-viewport{
  overflow-x: auto;
  /* keep card shadows visible (some browsers clip Y when overflow-x is set) */
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 22px;
}
.bxo-viewport::-webkit-scrollbar{ display:none; }
.bxo-track{
  display: flex;
  gap: 16px;
  padding: 6px 2px 22px;
}
.bxo-slide{ scroll-snap-align: start; flex: 0 0 320px; }
@media (max-width: 900px){ .bxo-slide{ flex-basis: 280px; } }
@media (max-width: 640px){ .bxo-slide{ flex-basis: 85vw; } }

.bxo-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  padding: 18px;
  height: 100%;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.bxo-img{
  border-radius: 14px;
  overflow:hidden;
  background: rgba(0,0,0,.03);
  /* square product photo */
  aspect-ratio: 1/1;
}
.bxo-img img{ width:100%; height:100%; object-fit: cover; display:block; }
.bxo-title{ margin: 0; font-size: 20px; line-height: 1.2; }
.bxo-price{ font-weight: 800; font-size: 16px; }
.bxo-desc{ opacity:.78; line-height:1.45; }

.bxo-btn{
  margin-top: auto;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  color:#fff;
  background: linear-gradient(180deg, rgba(31,154,160,1), rgba(20,130,135,1));
  /* remove highlight/glow under the button */
  box-shadow: none;
}
.bxo-btn:hover{ filter: brightness(1.02); }

.bxo-nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 999px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  cursor:pointer;
  z-index:2;
}
.bxo-prev{ left: -10px; }
.bxo-next{ right: -10px; }
@media (max-width: 700px){ .bxo-nav{ display:none; } }
.bxo-nav::before{
  content:"";
  display:block;
  width: 18px; height:18px;
  margin: 0 auto;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  opacity:.75;
}
.bxo-prev::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}
.bxo-next::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}

/* Modal */
.bxo-modal{
  position: fixed;
  inset: 0;
  display:none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.42);
  padding: 18px;
  z-index: 99999;
}
.bxo-modal.is-open{ display:flex; }
.bxo-modal__panel{
  width: min(520px, 100%);
  background:#fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  overflow:hidden;
}
.bxo-modal__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.bxo-modal__title{ font-weight: 800; }
.bxo-x{
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  cursor:pointer;
  font-size: 20px;
  line-height: 1;
}
.bxo-form{
  padding: 16px;
  display:grid;
  gap: 10px;
}
.bxo-form label{ display:grid; gap: 6px; font-size: 13px; }
.bxo-form input, .bxo-form textarea{
  width:100%;
  border:1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 10px 12px;
}
.bxo-submit{
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border:0;
  font-weight: 800;
  color:#fff;
  cursor:pointer;
  background: linear-gradient(180deg, rgba(31,154,160,1), rgba(20,130,135,1));
}
.bxo-note{ opacity:.8; font-size: 13px; }
.bxo-desc {
  font-size: 14px;
  line-height: 1.45;
}
@media (max-width: 768px) {
  .bxo-desc {
    font-size: 13.5px;
    line-height: 1.35;
  }
}
/* Modal submit button: dark gray */
.bxo-modal .bxo-submit,
.bxo-modal button[type="submit"]{
  background: #2f343b !important;     /* тёмно-серый */
  border-color: #2f343b !important;
  box-shadow: none !important;
  color: #fff !important;
}

.bxo-modal .bxo-submit:hover,
.bxo-modal button[type="submit"]:hover{
  background: #1f2328 !important;     /* чуть темнее на hover */
  border-color: #1f2328 !important;
}

.bxo-modal .bxo-submit:active,
.bxo-modal button[type="submit"]:active{
  transform: translateY(1px);
}

