.rs-basket {
  position: relative;
  margin-left: auto;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
}

@media (min-width: 1200px) {
  .rs-basket {
    order: 3;
    margin-left: 0.75rem;
    margin-right: 0;
  }
}

.btn.rs-basket-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  padding: 9px 11px;
}

.btn.rs-basket-btn::before {
  content: '';
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 1.5A.5.5 0 0 1 .5 1H2a.5.5 0 0 1 .485.379L2.89 3H14.5a.5.5 0 0 1 .491.592l-1.5 8A.5.5 0 0 1 13 12H4a.5.5 0 0 1-.491-.408L2.01 3.607 1.61 2H.5a.5.5 0 0 1-.5-.5M3.102 4l1.313 7h8.17l1.313-7zM5 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4m7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4m-7 1a1 1 0 1 1 0 2 1 1 0 0 1 0-2m7 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 1.5A.5.5 0 0 1 .5 1H2a.5.5 0 0 1 .485.379L2.89 3H14.5a.5.5 0 0 1 .491.592l-1.5 8A.5.5 0 0 1 13 12H4a.5.5 0 0 1-.491-.408L2.01 3.607 1.61 2H.5a.5.5 0 0 1-.5-.5M3.102 4l1.313 7h8.17l1.313-7zM5 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4m7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4m-7 1a1 1 0 1 1 0 2 1 1 0 0 1 0-2m7 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn.rs-basket-btn:hover, .btn.rs-basket-btn:focus-visible, .rs-basket.open .btn.rs-basket-btn {
  border-color: #ff4d5e;
  color: #ffffff;
  background: rgba(255,255,255,0.06);
}

.rs-basket-count {
  display: none;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #c8253a;
  color: #ffffff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  position: absolute;
  top: -9px;
  right: -9px;
  box-shadow: 0 0 0 2px #1a1a1a;
}

.rs-basket.has-items .rs-basket-count {
  display: inline-block;
}

.rs-basket-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.5);
  padding: 1.25rem;
  z-index: 1060;
  color: #e6e6e6;
}

.rs-basket.open .rs-basket-panel {
  display: block;
}

@media (max-width: 575.98px) {
  .rs-basket-panel {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}

.rs-basket-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  margin: 0 0 0.75rem;
}

.rs-basket-panel .am-basket-preview, .rs-basket-panel .am-basket-preview * {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #e6e6e6;
  background: transparent;
  border-color: #2a2a2a;
}

.rs-basket-panel .am-basket-preview table {
  width: 100%;
  border-collapse: collapse;
}

.rs-basket-panel .am-basket-preview td, .rs-basket-panel .am-basket-preview th {
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid #2a2a2a;
  vertical-align: top;
}

.rs-basket-panel .am-basket-preview a {
  color: #ff4d5e;
  text-decoration: none;
}

.rs-basket-panel .am-basket-preview input {
  max-width: 4rem;
  background: #0f0f0f;
  color: #ffffff;
  border: 1px solid #2a2a2a;
  border-radius: 0.35rem;
  padding: 0.2rem 0.4rem;
}

.rs-basket-panel .am-basket-preview-empty {
  padding: 0.5rem 0;
  color: #bdbdbd;
}

.rs-basket-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.rs-basket-actions .btn {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.btn.rs-basket-view {
  background: transparent;
  border: 1px solid #3a3a3a;
  color: #ffffff;
}

.btn.rs-basket-view:hover {
  border-color: #ff4d5e;
  color: #ffffff;
}

[data-rs-cart].rs-adding {
  opacity: 0.65;
  pointer-events: none;
}

.rs-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1080;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #1a1a1a;
  color: #ffffff;
  border: 1px solid #2a2a2a;
  border-radius: 0.75rem;
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,0.5);
  padding: 1.25rem;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}

.rs-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.rs-toast-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 0.25rem;
  color: #ffffff;
}

.rs-toast-name {
  font-size: 18px;
  color: #d9d9d9;
  margin: 0 0 1rem;
}

.rs-toast-actions {
  display: flex;
  gap: 0.5rem;
}

.rs-toast-actions .btn {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 0.7rem 0.5rem;
  border-radius: 0.5rem;
}

.btn.rs-toast-keep {
  background: transparent;
  border: 1px solid #3a3a3a;
  color: #ffffff;
}

.btn.rs-toast-keep:hover {
  border-color: #ff4d5e;
  color: #ffffff;
}

@media (max-width: 575.98px) {
  .rs-toast {
    left: 16px;
    right: 16px;
    width: auto;
  }
}

.rs-basket-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rs-basket-panel .am-basket-preview-actions {
  display: none;
}

