/* Accessory Slider CSS - Adapted from Figma */

.acc-slider-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050; /* Bootstrap modal is 1050 */
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.acc-slider-overlay.show {
  opacity: 1;
}

.acc-slider-container {
  position: fixed;
  top: 0;
  right: -340px; /* Hidden initially */
  width: 340px;
  height: 100%;
  background: #ffffff;
  z-index: 1051;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.acc-slider-container.open {
  right: 0;
}

/* Header */
.acc-slider-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #e7eef1;
}

.acc-slider-title {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #303030;
  margin: 0;
}

.acc-slider-skip {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #00a5f1;
  cursor: pointer;
  text-decoration: none;
}

/* Info Strip */
.acc-slider-info {
  background: #e6f8ff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.acc-slider-info-text {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #303030;
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}

.acc-slider-info-link {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #00a5f1;
  text-decoration: none;
}

/* Body (Scrollable) */
.acc-slider-body {
  flex: 1;
  overflow-y: auto;
}

/* Section Headers */
.acc-section-header {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #00a5f1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px dashed #c1e5f4;
}

/* Accessory Item */
.acc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* margin-bottom: 15px; */
  padding: 10px;
  /* background: #fcfdfe; */
  border-radius: 12px;
  /* border: 1px solid #f0f4f7; */
}

.acc-item-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.acc-item-img-box {
  width: 44px;
  height: 44px;
  background: #e8f4f9;
  border: 1px solid #c1e5f4;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.acc-item-img-box img {
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
}

.acc-item-details {
  display: flex;
  flex-direction: column;
}

.acc-item-name {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #303030;
}

.acc-item-price {
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #00a5f1;
  margin-top: 2px;
}

/* Add/Remove Button */
.btn-acc-add {
  min-width: 75px;
  height: 32px;
  background: #303030;
  border-radius: 25px;
  border: 1px solid #303030;
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  /* font-weight: 600; */
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-acc-add.added {
  background: #ffffff;
  color: #303030;
  border: 1px solid #303030;
}

.btn-acc-add.included-btn {
  background: transparent;
  color: #00a5f1;
  border: none;
  cursor: default !important;
  font-weight: 500;
  min-width: unset;
}

.btn-acc-add:hover:not(.disabled) {
  opacity: 0.85;
}

/* Footer */
.acc-slider-footer {
  padding: 12px !important;
  border-top: 1px solid #e7eef1;
}

.btn-acc-proceed {
  width: 100%;
  /* max-width: 310px; */
  height: 45px;
  background: linear-gradient(180deg, #21b9ff 0%, #00a5f1 100%);
  border-radius: 200px;
  border: none;
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  display: block;
  /* margin: 0 auto; */
}
/* Mobile - Bottom Sheet */
@media (max-width: 767px) {
  .acc-slider-container {
    top: auto;
    bottom: -100%; /* Hidden below screen */
    right: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    transition: bottom 0.3s ease;
  }

  .acc-slider-container.open {
    bottom: 0;
    right: 0; /* Override default open right */
  }

  /* Adjust body padding for mobile */
  .acc-slider-body {
    /* padding-bottom: 30px; */
  }
}
