:root {
  --gp-purple: #41009f;
  --gp-border: #dbe3ef;
  --gp-text: #111827;
  --gp-muted: #6b7280;

  /* ✅ day card sizing like Currys */
  --gp-day-w: 92px;
  --gp-day-gap: 16px;
  --gp-visible-days: 5;
}

/* tabs selected */
#gp-slot-wrap .gp-slot-tab.is-active {
  border: 2px solid var(--gp-purple) !important;
  box-shadow: none !important;
}

#gp-slot-wrap .gp-slot-tab.is-active .gp-choice-dot {
  border-color: var(--gp-purple) !important;
  box-shadow: inset 0 0 0 6px var(--gp-purple) !important;
}

/* top bar: arrow + range center */
.gp-slot-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 14px 0 10px;
}

/* ensure proper alignment of the buttons */
.gp-choice-grid {
  display: flex;
  justify-content: space-between; /* Ensure buttons are spaced out */
  width: 100%; /* Ensure it stretches across the container */
}

.gp-slot-range {
  font-weight: 600;
  font-size: 13px;
  color: var(--gp-text);
  text-align: center;
  min-width: 220px;
}

.gp-slot-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--gp-border);
  background: #fff;
  color: var(--gp-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.gp-slot-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* carousel: fixed 5 visible, centered */
.gp-slot-carousel {
  width: calc((var(--gp-day-w) * var(--gp-visible-days)) + (var(--gp-day-gap) * (var(--gp-visible-days) - 1)));
  margin: 0 auto;
  overflow: hidden;
}

.gp-slot-track {
  display: flex;
  gap: var(--gp-day-gap);
  transition: transform .25s ease;
  will-change: transform;
}

.gp-slot-days-track{
  display: flex;
  gap: var(--gp-day-gap);
}

/* day card */
.gp-slot-day {
  width: var(--gp-day-w);
  border: 1px solid var(--gp-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  padding: 12px 10px;
  display: block;
}

.gp-slot-day .d1 {
  font-weight: 700;
  color: var(--gp-text);
  margin-bottom: 6px;
  font-size: 13px;
}

.gp-slot-day .d2 {
  font-size: 12px;
  color: var(--gp-muted);
  margin-bottom: 10px;
}

.gp-slot-day .d3 {
  font-weight: 700;
  color: var(--gp-text);
  font-size: 13px;
}

.gp-slot-day.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ✅ selected day = purple filled */
.gp-slot-day.active {
  background: var(--gp-purple);
  border-color: var(--gp-purple);
}

.gp-slot-day.active .d1,
.gp-slot-day.active .d2,
.gp-slot-day.active .d3 {
  color: #fff;
}

/* windows list: plain rows center area */
.gp-slot-windows {
  width: 365px;
  margin: 18px auto 0;
}

.gp-slot-window {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  cursor: pointer;
  border-radius: 6px;
}

.gp-slot-window .dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  display: inline-block;
  flex: 0 0 18px;
}

.gp-slot-window .txt {
  color: var(--gp-text);
  font-size: 14px;
  flex: 1;
  text-align: left;
}

.gp-slot-window .price {
  font-weight: 700;
  color: var(--gp-text);
  font-size: 14px;
  min-width: 70px;
  text-align: right;
}

.gp-slot-window.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gp-slot-window.active .dot {
  border-color: var(--gp-purple);
  box-shadow: inset 0 0 0 6px var(--gp-purple);
}

/* hover subtle */
.gp-slot-window:not(.disabled):hover {
  background: #f7f7fb;
}

/* responsive */
@media (max-width: 640px) {
  :root {
    --gp-visible-days: 3;
    --gp-day-w: 88px;
    --gp-day-gap: 12px;
  }

  .gp-slot-windows {
    width: 100%;
  }

  .gp-slot-carousel {
    width: calc((var(--gp-day-w) * var(--gp-visible-days)) + (var(--gp-day-gap) * (var(--gp-visible-days) - 1)));
  }
}

