.review-card {
  border: 1px solid #eee;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
}
.cr-review-card {
  border: 1px solid #eee;
  padding: 24px;
  max-width: 520px;
  background: #fff;
  font-family: inherit;
}

.cr-stars {
  margin-bottom: 12px;
}

.cr-stars span {
  font-size: 18px;
  margin-right: 2px;
}

.cr-stars .filled {
  color: #f15a4a; /* red/orange star */
}

.cr-stars .empty {
  color: #cfcfcf;
}

.cr-review-text {
  font-style: italic;
  color: #444;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cr-author {
  font-weight: 600;
  color: #000;
  margin-bottom: 6px;
}

.cr-author span {
  font-weight: 400;
}

.cr-date {
  font-size: 14px;
  color: #777;
}

/* Product review form (My Account / Order details) */
.cr-review-box{
  margin-top:10px;
}

.cr-review-toggle{
  border:1px solid #e5e7eb;
  background:#fff;
  color:#111;
  padding:8px 10px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.cr-review-form{
  margin-top:10px;
  border:1px solid #eef0f3;
  background:#fafafa;
  border-radius:12px;
  padding:12px;
}

.cr-review-grid{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:10px;
}

.cr-review-grid label{
  font-size:12px;
  font-weight:700;
  color:#111827;
}

.cr-review-grid select,
.cr-review-grid textarea{
  width:100%;
  margin-top:6px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:8px 10px;
  font-size:13px;
  background:#fff;
}

.cr-review-actions{
  display:flex;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}

.cr-review-submit{
  border:1px solid #111827;
  background:#111827;
  color:#fff;
  padding:8px 12px;
  border-radius:10px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.cr-review-cancel{
  border:1px solid #e5e7eb;
  background:#fff;
  color:#111;
  padding:8px 12px;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

.cr-review-msg{
  margin-top:8px;
  font-size:12px;
  color:#374151;
}

@media (max-width: 520px){
  .cr-review-grid{grid-template-columns:1fr;}
}

/* Order review popup modal */
body.cr-modal-open{overflow:hidden;}

.cr-modal{
  position:fixed;
  inset:0;
  z-index:99999;
}

.cr-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.55);
}

.cr-modal-dialog{
  position:relative;
  max-width:900px;
  width:calc(100% - 24px);
  margin:40px auto;
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,0.25);
}

.cr-modal-close{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.cr-modal-body{
  padding:18px;
  max-height:80vh;
  overflow:auto;
}

.cr-order-review-title{
  font-size:18px;
  font-weight:800;
  margin:0 0 4px;
}

.cr-order-review-sub{
  color:#6b7280;
  font-size:13px;
  margin:0 0 14px;
}

.cr-order-review-items{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.cr-ori{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:12px;
  border:1px solid #eef0f3;
  background:#fafafa;
  border-radius:14px;
  padding:12px;
}

.cr-ori-left img{border-radius:12px;}

.cr-ori-name{font-weight:800;margin:0 0 8px;}

.cr-ori textarea{
  width:100%;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px;
  font-size:13px;
  background:#fff;
}

.cr-ori-done{font-size:13px;color:#059669;font-weight:800;}

.cr-stars-input{
  display:flex;
  gap:4px;
  margin:0 0 10px;
}

.cr-star{
  border:0;
  background:transparent;
  font-size:20px;
  cursor:pointer;
  color:#cfcfcf;
  padding:0;
}

.cr-star.is-on{color:#f15a4a;}

.cr-order-review-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.cr-order-review-submit{
  border:1px solid #111827;
  background:#111827;
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}

.cr-order-review-cancel{
  border:1px solid #e5e7eb;
  background:#fff;
  color:#111;
  padding:10px 14px;
  border-radius:12px;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.cr-order-review-msg{margin-top:10px;font-size:13px;color:#374151;}

@media (max-width: 640px){
  .cr-ori{grid-template-columns:70px 1fr;}
}
.profile-card {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.profile-item label {
    font-size: 13px;
    color: #777;
}

.profile-item p {
    font-size: 15px;
    margin-top: 5px;
    font-weight: 500;
}

.edit-profile-btn {
    display: inline-block;
    margin-top: 20px;
    color: #ff4d4d;
    text-decoration: none;
    font-size: 14px;
}

/* Slider: product reviews below product image */
.cr-slider-container{margin-top:16px;margin-bottom:8px;display:flex;justify-content:center;}
.cr-slider-wrap{position:relative;max-width:820px;width:100%;}
.cr-slider{overflow:hidden;}
.cr-slider-inner{display:flex;gap:12px;overflow-x:auto;scroll-behavior:smooth;padding:8px 6px;}
.cr-slider-inner::-webkit-scrollbar{height:8px}
.cr-review-card{flex:0 0 320px;min-width:260px;max-width:340px;box-sizing:border-box}
.cr-slider-prev,.cr-slider-next{position:absolute;top:50%;transform:translateY(-50%);background:#fff;border:1px solid #e5e7eb;border-radius:50%;width:36px;height:36px;font-size:20px;line-height:34px;text-align:center;cursor:pointer}
.cr-slider-prev{left:-18px}
.cr-slider-next{right:-18px}

@media (max-width: 700px){
  .cr-slider-prev,.cr-slider-next{display:none}
  .cr-review-card{flex:0 0 85%;min-width:70%}
}

.cr-reviews-heading{font-size:18px;font-weight:800;margin:14px 0 8px;color:#111}
.cr-no-reviews{color:#6b7280;font-size:14px;padding:8px 0}

/* Service review form and thank-you popup */
.cr-service-review-form{max-width:640px;padding:12px;border:1px solid #eef0f3;background:#fff;border-radius:10px}
.cr-service-review-form label{display:block;margin-bottom:8px;font-weight:700}
.cr-service-review-form input,.cr-service-review-form textarea,.cr-service-review-form select{width:100%;padding:8px;border:1px solid #e5e7eb;border-radius:8px;margin-top:6px}
.cr-service-thanks{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.4);z-index:99999}
.cr-service-thanks-inner{background:#fff;padding:20px;border-radius:12px;max-width:420px;width:90%;text-align:center;position:relative}
.cr-service-thanks-close{position:absolute;top:8px;right:8px;border:0;background:transparent;font-size:20px;cursor:pointer}
