@import url("general.css");

.purchase-item-h {
  padding: 8px;
  margin-bottom: 15px;
  border-bottom: 1px solid #e6e6e6;
}

.product-image-review-h {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  background: #e9ecef;
}

.product-title-history {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333333;
}

.product-details-history {
  font-size: 14px;
  color: #4c4c4c;
  margin-bottom: 0;
  font-weight: 400;
}

.color-dot-history{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  border: 1px solid #dee2e6;
}

.purchase-date-label {
  font-size: 16px;
  font-weight: 400;
  color: #7f7f7f;
  margin-bottom: 5px;
}

.purchase-date {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
}

.btn-review {
  background-color: #ff4433;
  border: none;
  color: white;
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  transition: background-color 0.3s;
}

.btn-review:hover {
  background-color: #e63929;
  color: white;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.btn-cancel {
  background: white;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-cancel:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}

.btn-submit {
  padding: 10px 30px;
  border-radius: 8px;
  font-weight: 500;
}
.col-auto-history{
  background: #f4f4f4;
  height: 60px;
  width: 60px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.purchase-product-history {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 768px) {
  .purchase-item {
    padding: 15px;
    border-bottom: 1px solid #e6e6e6;
    background: white;
  }

  .col-12.col-md-6:first-child {
    margin-bottom: 15px;
  }

  .product-image-wrapper {
    width: 60px;
    height: 60px;
  }

  .product-image-review-h {
    width: 50px;
    height: 50px;
  }

  .product-title {
    font-size: 16px;
  }

  .product-details {
    font-size: 13px;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  .purchase-date-label {
    font-size: 14px;
  }

  .purchase-date {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .purchase-date-label,
  .purchase-date {
    text-align: left !important;
    margin-top: 10px;
  }
}

.demo-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.demo-btn {
  padding: 15px 40px;
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.demo-btn:hover {
  background: #ee3333;
}

/* Offcanvas Custom Styles */
.offcanvas {
  width: 450px !important;
  margin-right: 10px;
}

.offcanvas-header {
  padding: 15px 30px;
}

.offcanvas-title {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
}

.btn-close {
  font-size: 14px;
}

.offcanvas-body {
  padding: 0;
  overflow-y: auto;
}



.product-image-h {
  width: 130px;
  height: 130px;
  background: white;
  border-radius: 50%;
  margin: 0 auto 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-h img {
  width: 70px;
  height: 88px;
}

.product-title {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 10px;
}

.product-specs {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-dot {
  width: 16px;
  height: 16px;
  background: #e0e0e0;
  border-radius: 50%;
  display: inline-block;
}

.review-section {
  padding: 20px;
}

.rating-label {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.stars-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

.star {
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  color: #ffcccc;
}

.star:hover {
  transform: scale(1.1);
}

.star.active {
  color: #ff4444;
}

.review-input-container {
  position: relative;
  margin-bottom: 25px;
}

.review-textarea {
  width: 100%;
  min-height: 180px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}

.char-counter {
  position: absolute;
  bottom: 12px;
  right: 15px;
  font-size: 13px;
  color: #999;
}

.char-counter {
  color: #ff2424 !important;
}

.offcanvas {
  width: 600px !important;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 20px;
}

.sbmt-review {
  display: flex;
  justify-content: center;
}
#submitBtn {
  width: 100% !important;
  padding: 14px !important;
}
@media (max-width: 576px) {
  .offcanvas {
    width: 100% !important;
  }
}

.custom-close-btn {
  position: absolute;
  top: 10px;
  left: -45px;
  width: 35px;
  height: 35px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.custom-close-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: rotate(90deg);
}

.custom-close-btn::before,
.custom-close-btn::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 1px;
  background: white;
}

.custom-close-btn::before {
  transform: rotate(45deg);
}
.btn-close {
  display: none !important;
}

.custom-close-btn::after {
  transform: rotate(-45deg);
}
@media (max-width: 425px) {
  .btn-close {
    display: block !important;
  }
  .offcanvas {
    margin: 0px;
  }
}
