/* Dashboard start*/
.main-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Card Container */
.card {
  background: var(--white_clr);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.card h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--primary_clr);
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* .card p {
  margin: 10px 0;
  font-size: 1rem;
  color: var(--text_clr);
  line-height: 1.6;
} */

/* Edit Button (Font Awesome Pencil) */
.edit-pencil-btn {
  position: absolute;
  top: 20px;
  right: 14px;
  color: var(--secondary_clr);
  padding: 0 9px;
  transition: background 0.3s ease, transform 0.2s ease;
  font-size:20px;
}

.edit-pencil-btn:hover {
  transform: scale(1.3);
}

.edit-pencil-btn:focus {
  outline-offset: 2px;
}


/* --- Fancy Stepper Timeline --- */
.arrow-stepper {
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.arrow-step {
  position: relative;
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  color: var(--white_clr);
  font-weight: bold;
  clip-path: polygon(
    0% 0%,
    90% 0%,
    100% 50%,
    90% 100%,
    0% 100%,
    10% 50%
  );
  background: #ccc;
  transition: background 0.4s, transform 0.4s;
  margin-right: -20px;
  z-index: 1;
}

.arrow-step:last-child {
  margin-right: 0;
}

.arrow-step.completed {
  background: linear-gradient(135deg, var(--secondary_clr), var(--primary_clr));
  box-shadow: 0 0 10px rgba(48, 0, 38, 0.5);
}

.arrow-step.active {
  background: var(--secondary_clr);
  box-shadow: 0 0 15px rgba(214, 45, 56, 0.6);
  animation: pulse 1.5s infinite;
  z-index: 2;
}

.arrow-step.upcoming {
  background: #ddd;
  color: #777;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.step-label {
  font-size: 1rem;
  margin-top: 8px;
}

.step-date {
  font-size: 0.9rem;
  opacity: 0.8;
}

.status-text p {
  margin-top: 24px;
  font-size: 0.95rem;
  color: #333;
}

/* ✅ Responsive Tweaks for Small Screens */
@media (max-width: 600px) {
  .arrow-step {
    padding: 8px 6px;
    font-size: 0.5rem;
    margin-right: -10px; /* reduce overlap */
  }

  .step-label {
    font-size: 0.7rem;
  }

  .step-date {
    font-size: 0.7rem;
  }

  .status-text p {
    font-size: 0.85rem;
    margin-top: 10px;
  }
  body.woocommerce-account .woocommerce-MyAccount-content p {
    font-size: 14px !important;
  }
}

@media (max-width: 600px) {
  .arrow-step {
    clip-path: polygon(
      0% 0%,       /* top-left */
      90% 0%,      /* top-right */
      100% 45%,    /* middle-right (moved up by 5%) */
      90% 90%,     /* bottom-right (moved up by 10%) */
      0% 90%,      /* bottom-left (moved up by 10%) */
      10% 45%      /* middle-left (moved up by 5%) */
    );
  }
}

.step-icon {
  display: none;
  font-size: 1.5rem;
  width: 40px; /* Default width */
  height: 40px; /* Default height */
  object-fit: contain;
  margin: 0 auto 10px auto !important
}

@media (max-width: 600px) {
  .step-icon {
    display: block; /* Show the icon on mobile */
    font-size: 1rem;
    width: 20px; /* Smaller width on mobile */
    height: 20px !important; /* Smaller height on mobile */
    margin-bottom: 5px !important;
  }

  .step-label {
    display: none; /* Hide label text on mobile */
  }
}



@media (max-width: 600px) {
      .card {
        padding: 20px;
      }
      .card h3 {
        font-size: 1rem;
        margin-bottom: 10px
      } 
      /* .card p {
        font-size: 0.9rem;
        margin: 5px 0;
      } */
      .main-content {
        gap: 20px;
      }
    
}

/* Dashboard End */

/* Box items */
.order-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75em 0;
}

.order-item:last-child {
  border-bottom: none;
}

.item-thumb img {
  width: 55px;
  height: auto;
  border-radius: 4px;
  margin-right: 12px;
}

.item-details {
  flex: 1;
  display: flex;
  align-items: center;
}

.item-name {
  font-weight: 600;
}

.item-meta {
  text-align: right;
  display: flex;
  flex-direction: column; /* stack price on top, qty below */
  gap: 4px;
  min-width: 80px;
}

.item-price {
  font-weight: 500;
  color: #111;
}

.item-qty {
  font-size: 0.9em;
  color: #666;
}

.order-total {
  text-align: right;
  padding-top: 1em;
  font-size: 1.1em;
  font-weight: 700;
  border-top: 1px solid #eee;
}

.order-items-list {
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    cursor: pointer;
}

.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75em;
}

.box-header h4 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
}

.edit-pencil {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1em;
  color: #666;
}

.edit-pencil:hover {
  color: #000;
}

/* Box item End*/

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.reward-card {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 4px;
  background: #fff;
}
.reward-card h3 {
  margin-top: 0;
}
.reward-card .button {
  display: inline-block;
  margin-top: 10px;
}