/* =====================================
   WRAPPER
===================================== */

.wcsp-wrap {
  background: #f7fbff;
  border: 1px solid #dbeffb;
  padding: 14px;
  border-radius: 8px;
  margin: 12px 0;
  display: block;
  position: relative;
  clear: both;
}

.wcsp-inner {
  position: relative;
}


/* =====================================
   TOP LABELS (Shipping Fee Above Bar)
===================================== */

.wcsp-bar-labels-top {
  position: relative;
  height: 22px;
  margin-bottom: 6px;
}

.wcsp-bar-labels-top .wcsp-bar-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}


/* =====================================
   PROGRESS BAR
===================================== */

.wcsp-bar {
  position: relative;
  display: flex;
  height: 14px;
  border-radius: 8px;
  overflow: visible;            /* allow marker + label */
  background: #e6eef8;

  margin-top: 28px;             /* reserve space for marker label */
  margin-bottom: 12px;
}

/* Segments */
.wcsp-segment {
  height: 100%;
  background: #cce0f5;
  border-right: 1px solid #fff;
}

/* Filled portion */
.wcsp-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #8BC34A);
  border-radius: 8px 0 0 8px;
  transition: width 700ms ease;
  z-index: 1;
}

/* Boundaries */
.wcsp-boundary {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #333;
  z-index: 2;
}


/* =====================================
   CART MARKER
===================================== */

.wcsp-marker {
  position: absolute;
  top: -6px;
  width: 12px;
  height: 12px;
  background: #ff4e50;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.wcsp-marker-label {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff4e50;
  color: #fff;
  padding: 2px 6px;
  font-size: 15px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* =====================================
   BOTTOM THRESHOLD LABELS
===================================== */

.wcsp-bar-labels-bottom {
  position: relative;
  height: 22px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.wcsp-bar-labels-bottom .wcsp-bar-label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 13px;
  white-space: nowrap;
}


/* =====================================
   LADDER
===================================== */

.wcsp-ladder {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
}

.wcsp-step {
  background: #ffffff;
  border: 1px solid #e3eefc;
  padding: 5px 8px;
  border-radius: 4px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.wcsp-step-label {
  font-weight: 500;
  font-size: 12px;
}

.wcsp-step-fee {
  color: #4CAF50;
  font-size: 12px;
}


/* =====================================
   MESSAGES
===================================== */

.wcsp-success {
  font-weight: 600;
  color: #4CAF50;
  margin-bottom: 8px;
}

.wcsp-info {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}


/* =====================================
   POSTCODE BOX
===================================== */

.wcsp-postcode-box,
.wcsp-postcode-change {
  margin-top: 14px;
  clear: both;
}

.wcsp-postcode-box input,
.wcsp-postcode-change input {
  padding: 6px 8px;
  width: 150px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
}

.wcsp-postcode-box button,
.wcsp-postcode-change button {
  padding: 6px 10px;
  margin-left: 6px;
  cursor: pointer;
  border: none;
  background: #4CAF50;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
}

.wcsp-postcode-box button:hover,
.wcsp-postcode-change button:hover {
  background: #43a047;
}