.address-section {
  padding: 35px 50px ;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin: 40px;
  font-family: 'Poppins', sans-serif;
}

.address-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e91e8f;
  color: #fff;
  padding: 12px 18px;
  font-weight: 600;
}

.address-header .step-number {
  background: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: #92565D;
}

.address-box {
  border-top: 1px solid #eee;
  padding: 20px;
  transition: background 0.3s ease;
}

.address-box.active {
  background: #fff5fa;
}

.address-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.address-left {
  display: flex;
  gap: 12px;
}

.address-left input[type="radio"] {
  accent-color: #2979ff;
  transform: scale(1.2);
  margin-top: 5px;
}

.address-left h3 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 5px;
}

.address-left .address-tag {
  background: #ddd;
  color: #333;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: uppercase;
}

.address-tag.home {
  background: #e8eaf6;
  color: #3f51b5;
}

.address-tag.work {
  background: #f3e5f5;
  color: #8e24aa;
}

.phone {
  font-weight: 600;
  margin-left: 10px;
  color: #222;
}

.address-left p {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.edit-btn {
  background: transparent;
  border: none;
  color: #2979ff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.edit-btn:hover {
  color: #0d47a1;
}

.deliver-btn {
  display: none;
  margin-top: 15px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.deliver-btn:hover {
  background: #e64a19;
  transform: translateY(-1px);
}


/* View All Button */
.view-all-btn {
  margin-left: auto;
  background: white;
  color: #e91e8f;
  border: 2px solid #fff;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #fff;
  color: #d81b60;
  border-color: #d81b60;
}

/* Hide extra addresses initially */
.hidden {
  display: none;
}

/* Smooth animation */
.address-container {
  transition: all 0.3s ease-in-out;
}





/* Responsive */
@media (max-width: 768px) {
  .address-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .edit-btn {
    align-self: flex-end;
    margin-top: 8px;
  }

  .deliver-btn {
    width: 100%;
  }
}








.address-actions {
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.address-actions div{
  border-block: 1.5px solid lightgray;
  padding: 15px 20px;

}

.toggle-view {
  background: none;
  border: none;
  color: #2979ff;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  padding: 5px 0;
  transition: color 0.3s;
}

.toggle-view:hover {
  color: #0d47a1;
}

.add-address {
  background: none;
  border: none;
  color: #e91e8f;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  padding: 5px 0;
  transition: color 0.3s;
}

.add-address i {
  margin-right: 6px;
}

.add-address:hover {
  color: #c2185b;
}
@media screen and (max-width:500px){
  .address-section {
  padding: 8px 15px ;
  margin: 10px;
 
}
.address-left h3 {
  font-size: 10px;
 
}
}