/* Scoped styles for SH Reviews - Bootstrap 3 compatible */

/* Better spacing for h2 above reviews */
h2 {
    margin: 0 0 10px;
}
.sh-reviews-summary {
    padding: 0px 0px 0px 15px;
    font-size: 13px;
    color: #fff;
    display: inline-block; /* keep compact next to header elements */
}
.sh-reviews-results .sh-reviews-summary {
  padding: 0px; width:100%
}
/* Branded box  */
.sh-reviews-summary .sh-summary-score {
    border-style: dashed;
    border-width: 1px;
    padding: 12px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.19);
    border-color: rgba(255, 255, 255, 0.38);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sh-reviews-results .sh-reviews-summary .sh-summary-score {
  border-style: dashed;
  border-width: 1px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(57, 145, 205, 0.06);
  border: 1px dashed rgba(57, 145, 205, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

/* SH Logo in summary */
.sh-reviews-summary .sh-rv-brand {
    flex: 0 0 auto;
}
.sh-reviews-summary .sh-rv-logo {
    height: 25px;
    width: 25px;
    border-radius: 4px;
    object-fit: cover;
}
.sh-reviews-summary .sh-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(57, 145, 205, 0.9);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    padding: 4px 8px;
    line-height: 1.2;
    font-size: 14px;
    vertical-align: middle;
    margin-right: 4px;
    box-shadow: 0 2px 4px rgba(57, 145, 205, 0.25);
    text-decoration: none;
}
.sh-reviews-summary .sh-count {
  display: inline-block;
  color: rgba(255,255,255,0.8);
  margin-right: 8px;
  vertical-align: middle;
}
.sh-reviews-summary .btn {
  margin-left: 0;
  vertical-align: middle;
}
.sh-open-review {
    /* background: rgba(255, 255, 255, 0.15);
    border-style: solid;
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.3);*/
    color: #fff;
    padding: 6px 16px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}
.sh-open-review:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    text-decoration: none;
   /* transform: translateY(-1px); */
}

.sh-reviews-results  .sh-open-review {
  /* background: rgba(255, 255, 255, 0.15);
  border-style: solid;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.3);*/
  color: #4F9BD2;
  padding: 6px 16px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 6px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sh-reviews-results  .sh-open-review:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color:#4F9BD2;
    text-decoration: none;
   /* transform: translateY(-1px); */
}
.sh-reviews-results .sh-reviews-summary .sh-count {
  display: inline-block;
  color:#4F9BD2;
  margin-right: 4px;
  vertical-align: middle;
  flex-shrink: 0;
  white-space: nowrap;
}

/* No reviews state */
.sh-reviews-summary .sh-no-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.sh-reviews-summary .sh-rv-logo-small {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Modal star input */
#sh-review-modal .sh-stars-input { font-size: 20px; line-height: 1; }
#sh-review-modal .sh-stars-input a.sh-star { display: inline-block; text-decoration: none; color: #f5c518; padding: 0 2px; }
#sh-review-modal .sh-stars-input a.sh-star:hover { transform: scale(1.1); }
#sh-review-modal label { font-weight: 600; }

/* Backdrop blur */
.modal-backdrop.sh-backdrop { background: rgba(0,0,0,0.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-backdrop.sh-backdrop.in { opacity: 1; }
body.modal-open { overflow: hidden; }

/* Force modal visibility - override Booknetic conflicts */
/* IMPORTANT: Only target SH Reviews modal and backdrop to avoid conflicts */
#sh-review-modal.modal.fade { opacity: 1 !important; display: none; z-index: 1050; }
#sh-review-modal.modal.fade.in { display: block !important; opacity: 1 !important; z-index: 1050; }
/* Only target backdrop when SH modal is open */
body.modal-open .modal-backdrop.sh-backdrop.fade { opacity: 0; z-index: 1040; }
body.modal-open .modal-backdrop.sh-backdrop.fade.in { opacity: 1 !important; z-index: 1040; }

/* Centered, elegant modal */
#sh-review-modal.sh-modal-centered .modal-dialog { margin: 0 auto; position: relative; top: 50vh; -webkit-transform: translateY(-50%); transform: translateY(-50%); }
#sh-review-modal .sh-modal { border-radius: 8px; overflow: hidden; border: 0; box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
#sh-review-modal .sh-modal { min-height: 460px; transition: min-height 200ms ease, height 200ms ease; }
#sh-review-modal .sh-wizard-body { transition: padding 200ms ease; }
#sh-review-modal .sh-steps { padding: 20px; }
#sh-review-modal .modal-dialog { transition: width 200ms ease, max-width 200ms ease; }
#sh-review-modal .sh-modal-header { background: #fff; color: #000; border: 0; border-bottom: 1px solid #e5e7eb; }
#sh-review-modal .sh-branding { padding-right: 24px; }
#sh-review-modal .sh-brand-row { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 10px; }
#sh-review-modal .sh-brand-logo { width: 72px; height: auto; display: inline-block; flex: 0 0 auto; }
#sh-review-modal .sh-brand-text { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 2px; }
#sh-review-modal .sh-brand-title { font-weight: 700; font-size: 18px; line-height: 1.2; color: #000; }
#sh-review-modal .sh-brand-sub { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* Wizard layout */
#sh-review-modal .sh-wizard-body { color:#000; padding-top: 16px; }
#sh-review-modal .sh-alert { display:none; margin: 0 0 10px; padding: 10px 12px; border-radius: 6px; font-size: 12px; }
#sh-review-modal .sh-alert-error { background: rgba(220, 38, 38, 0.12); color: #b91c1c; border: 1px solid rgba(185, 28, 28, 0.35); }
#sh-review-modal .sh-step-title { font-size: 16px; margin: 0 0 6px; font-weight: 700; color: #3991CD; }
#sh-review-modal .sh-step-help { font-size: 14px; color: #6b7280; margin-bottom: 30px; }
#sh-review-modal .sh-label { font-weight: 600; font-size: 14px; color: #374151;text-align: left; }
#sh-review-modal .text-left { text-align: left; }
#sh-review-modal .sh-field-large .sh-stars-input { font-size: 28px; }
#sh-review-modal .form-control { font-size: 13px; }
#sh-review-modal .sh-wizard-footer { border-top: 0; }
#sh-review-modal .btn { font-size: 13px; }


/* View-summary printout */
#sh-review-modal .sh-view-summary { padding: 8px 4px; color:#111; background:#fff; }
#sh-review-modal .sh-view-summary .sh-vs-status { margin-bottom: 6px; text-align: right;}
#sh-review-modal .sh-status { display:inline-block; font-size:12px; line-height:1; font-weight:700; padding:6px 8px; border-radius:999px; border:1px solid transparent; }
#sh-review-modal .sh-status-pending { background:#fff7ed; color:#9a3412; border-color:#fdba74; }
#sh-review-modal .sh-status-active { background:#ecfdf5; color:#065f46; border-color:#6ee7b7; }
#sh-review-modal .sh-view-summary .sh-vs-overall { font-weight: 700; margin-bottom: 6px; color: #3991CD; }
#sh-review-modal .sh-view-summary .sh-vs-list { list-style: none; padding: 0; margin: 0 0 8px; text-align: left;}
#sh-review-modal .sh-view-summary .sh-vs-list li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #e5e7eb; font-size: 13px; color:#111; }
#sh-review-modal .sh-view-summary .sh-vs-title, 
#sh-review-modal .sh-view-summary .sh-vs-text { font-size: 13px; margin: 10px 0px; text-align: left;white-space: pre-wrap; color:#111; }
#sh-review-modal .sh-view-summary .sh-vs-label { color:#374151; }
#sh-review-modal .sh-view-summary .sh-vs-val { color:#111; font-weight:600; }
#sh-review-modal .sh-view-summary .sh-vs-loading { font-size: 13px; color:#6b7280; }
#sh-review-modal .sh-view-summary .sh-vs-loading { 
  display:flex; align-items:center; justify-content:center; gap:8px; 
  min-height: 160px;
}
#sh-review-modal .sh-view-summary .sh-vs-loading .sh-spinner {
  width:16px; height:16px; border:2px solid rgba(0,0,0,0.15); border-top-color:#3991CD; border-radius:50%;
  animation: shspin 0.8s linear infinite;
}
@keyframes shspin { to { transform: rotate(360deg); } }

/* View mode (read-only) */
#sh-review-modal.sh-view-mode .sh-star-select a.sh-star { pointer-events: none; cursor: default; opacity: 0.9; }
#sh-review-modal.sh-view-mode input,
#sh-review-modal.sh-view-mode textarea { background: #f9fafb; color: #374151; }

/* Thank-you panel */
#sh-review-modal .sh-thanks { text-align:center; padding: 16px 8px 24px; }
#sh-review-modal .sh-thanks-icon { font-size: 42px; margin: 6px auto 8px; line-height: 1; }
#sh-review-modal .sh-thanks-title { font-size: 18px; font-weight: 800; color:#3991CD; margin: 6px 0 8px; }
#sh-review-modal .sh-thanks-text { font-size: 13px; color:#374151; margin: 2px 0; }
#sh-review-modal .sh-thanks-actions { margin-top: 12px; }

.grid-view .grid-content .sh-members-actions-results {
  max-width: 240px;
  display: flex;
  gap: 5px;
  align-items: flex-start;
  justify-content: space-evenly;
  flex-direction: row;
}
.grid-view .grid-content .sh-reviews-results {
  max-width: 100%;
}
.grid-view .grid-content  .sh-reviews-results .sh-reviews-summary .sh-count{font-size:11px}
.grid-view .grid-content .sh-reviews-results .sh-reviews-summary .sh-summary-score {
 
  padding: 0px;
  background: transparent;
  display: flex;
  gap: 5px;
  justify-content: space-around;
  flex-wrap: nowrap;
  align-items: center;
  flex-direction: column;
  align-content: center;
  border-style: dashed;
  border-width: 1px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(57, 145, 205, 0.06);
  border: 1px dashed rgba(57, 145, 205, 0.3);
  min-height: 120px;
}
  .grid-view .grid-content .sh-reviews-results .sh-open-review {
    margin: 0 auto;
    padding: 0px 5px;
    text-align: center;
}


/* Mobile elegant layout */
@media (max-width: 767px) {
  
  .grid-view .grid-content .sh-reviews-results {
    max-width: 50%;
  }
  .grid-view .grid-content .sh-members-actions-results {
    max-width: 100%;
    display: flex;
    gap: 5px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }

    #sh-review-modal .sh-brand-logo {
        width: 55px;
        height: auto;
    }
    #sh-review-modal .sh-brand-title {
        font-weight: 700;
        font-size: 16px;
        line-height: 1.2;
        color: #000;
      }
  .sh-reviews-summary { 
    color: #000;
    margin: 8px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
  }
  .sh-reviews-results .sh-reviews-summary { 
    color: #000;
    margin: 0px 0px 0px -4px;
    padding: 0px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: 230px;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
  }
  .sh-reviews-summary .sh-summary-score {
    display: flex;
            align-items: center;
            gap: 6px;
            margin: 0;
            flex-shrink: 0;
            background: rgba(57, 145, 205, 0.06);
            border: 1px dashed rgba(57, 145, 205, 0.3);
  }
  .sh-reviews-results .sh-reviews-summary .sh-no-reviews {
    padding-top:0px;
  }
  .grid-view .grid-content .sh-reviews-results .sh-reviews-summary .sh-summary-score{min-height:30px}

  .sh-reviews-results .sh-reviews-summary .sh-summary-score {

    padding: 0px;
    background: transparent;
    border: 0;
    display: flex;
    width: 100%;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: row;
  }

  .grid-view .grid-content .sh-favorites .sh-fav-cta {font-size: 13px}
  .grid-view .grid-content .sh-reviews-results .sh-reviews-summary .sh-summary-cta {font-size: 13px}
  .grid-view .grid-content .sh-reviews-results .sh-reviews-summary .sh-summary-score {
  border: 0px;
  padding: 0px;
  background: transparent;
  display: flex;
  gap: 5px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  align-items: center;
  flex-direction: row;
  align-content: center;
  }

  .grid-view .grid-content .sh-reviews-results .sh-reviews-summary {
  margin:0px;
    }


  .grid-view .grid-content  .sh-reviews-results .sh-open-review {
    margin: 0px;
    padding: 8px;
  }
  .grid-view .grid-content  .sh-favorite-results .sh-favorites {margin:0px}
  .sh-reviews-results .sh-reviews-summary .sh-count {
    display: inline-block;
    color:#4F9BD2;
    margin-right: 0px;
    vertical-align: middle;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 10px;
  }



  .sh-reviews-results .sh-reviews-summary .sh-summary-cta { 
    color: #489AD1;
    padding: 5px;
    margin: 0px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2sease;
    white-space: nowrap;
    letter-spacing: 0.7px;
    width: 100%;
    text-align: left;
    text-decoration: underline;
  }
  .sh-reviews-summary .sh-badge {
    background: rgba(57, 145, 205, 0.9);
    font-size: 13px;
    padding: 3px 6px;
  }
  
  .sh-reviews-summary .sh-badge img {
    width: 20px;
    height: 20px;
  }
  
  .sh-reviews-summary .sh-count {
    color: #489AD1;
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
  }
  
  .sh-reviews-summary .sh-summary-cta { 
    color: #489AD1;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .sh-reviews-summary .sh-summary-cta:hover {
    background: rgba(255, 255, 255, 0.25);

    color: #489AD1;
    text-decoration: none;
  }
  
  .sh-reviews-summary .sh-no-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #489AD1;
    font-size: 13px;
  }
  
  .sh-reviews-summary .sh-rv-logo-small {
    width: 18px;
    height: 18px;
    border-radius: 3px;
  }
  
  /* Modal width max 100% on mobile */
  #sh-review-modal .modal-dialog { width: 100%; max-width: 85vw; margin-left: auto; margin-right: auto; }
}

/* Category grid spacing */
#sh-review-modal .sh-categories .form-group { margin-bottom: 12px;text-align: left; }

/* =============================
   Reviews Drawer / Bottom Sheet
   ============================= */
#sh-reviews-viewer-root { position: relative; z-index: 1000; }
#sh-reviews-viewer-root .sh-reviews-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);  }
#sh-reviews-viewer-root .sh-reviews-drawer { padding-top: 56px;position: fixed; top: 0; bottom: 0; left: 0; width: 420px; max-width: 90vw; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.35); transform: translateX(-100%); transition: transform 220ms ease; border-right: 1px solid #e5e7eb; color:#111; }
#sh-reviews-viewer-root .sh-reviews-drawer.is-open { transform: translateX(0); }
#sh-reviews-viewer-root .sh-reviews-drawer.is-mobile { left: auto; right: 0; top: auto; height: 80vh; width: 100%; max-width: none; transform: translateY(100%); border-right: 0; border-top: 1px solid #e5e7eb; }
#sh-reviews-viewer-root .sh-reviews-drawer.is-mobile.is-open { transform: translateY(0); }

#sh-reviews-viewer-root .sh-rv-header { display:flex; align-items:center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #e5e7eb; background: #fff; color:#000; height: 60px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* Branded header with logo */
#sh-reviews-viewer-root .sh-rv-brand { display: flex; align-items: center; gap: 10px; }
#sh-reviews-viewer-root .sh-rv-logo { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
#sh-reviews-viewer-root .sh-rv-title-group { display: flex; flex-direction: column; gap: 1px; }
#sh-reviews-viewer-root .sh-rv-title { font-weight: 700; font-size: 16px; color: #000; line-height: 1.2; }
#sh-reviews-viewer-root .sh-rv-subtitle { font-size: 11px; color: rgba(0,0,0,0.6); font-weight: 500; }
#sh-reviews-viewer-root .sh-rv-close { background: transparent !important; background-image: none !important; border: none !important; color:#000 !important; font-size: 24px; font-weight: 700; cursor: pointer; line-height: 1; width: 34px; height: 34px; border-radius: 17px; display:inline-flex; align-items:center; justify-content:center; }
#sh-reviews-viewer-root .sh-rv-close:focus { outline: 2px solid #94a3b8; outline-offset: 2px; }

#sh-reviews-viewer-root .sh-rv-body { padding: 12px 14px 16px; overflow: auto; height: calc(100% - 60px); }
#sh-reviews-viewer-root .sh-rv-summary { border: 1px dashed rgba(0, 0, 0, 0.1); border-radius: 10px; padding: 12px; margin-bottom: 12px; background: rgba(57, 145, 205, 0.06); color:#111; position: relative; }

/* Verification badge */
#sh-reviews-viewer-root .sh-rv-summary::before {
    content: "✓ Επιβεβαιωμένες";
    position: absolute;
    top: -8px;
    right: 12px;
    background: #22c55e;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}
#sh-reviews-viewer-root .sh-rv-overall { font-size: 24px; font-weight: 900; color: #3991CD; margin-bottom: 6px; }
#sh-reviews-viewer-root .sh-rv-criteria { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 40px; }
#sh-reviews-viewer-root .sh-rv-crit { display:flex; align-items:center; justify-content: space-between; font-size: 13px; color:#111; }
#sh-reviews-viewer-root .sh-rv-crit-stars { color: #f5c518; letter-spacing: 1px; font-size: 22px; line-height: 1; }
#sh-reviews-viewer-root .sh-rv-cta .sh-summary-cta { 
    display:inline-block; 
    background: #3991CD; 
    color:#fff; 
    border:1px solid #3991CD; 
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(57, 145, 205, 0.25);
}
#sh-reviews-viewer-root .sh-rv-cta .sh-summary-cta:hover {
    background: #E63946;
    border-color: #E63946;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.25);
}

#sh-reviews-viewer-root .sh-rv-list .sh-rv-empty { color:#6b7280; font-size: 13px; padding: 10px 0; }
#sh-reviews-viewer-root .sh-rv-items { list-style:none; padding: 0; margin: 0; }
#sh-reviews-viewer-root .sh-rv-item { border-bottom: 1px dashed #e5e7eb; padding: 15px 2px; }
#sh-reviews-viewer-root .sh-rv-item-head { display:grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-bottom: 4px; }

/* Βελτίωση εμφάνισης review items */
#sh-reviews-viewer-root .sh-rv-item-name { 
    font-weight: 700; 
    color: #111 !important; 
    font-size: 14px;
}

/* Container for overall + date stacked right-aligned */
#sh-reviews-viewer-root .sh-rv-item-meta { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    justify-content: center;
}

#sh-reviews-viewer-root .sh-rv-item-title { 
    font-weight: 600; 
    color: #374151 !important; 
    margin-bottom: 4px; 
    font-size: 13px;
}

#sh-reviews-viewer-root .sh-rv-item-text { 
    color: #6b7280 !important; 
    font-size: 12px; 
    line-height: 1.4;
    white-space: pre-wrap; 
}

#sh-reviews-viewer-root .sh-rv-item-overall {
    font-weight: 800;
    color: #3991CD !important;
    font-size: 14px;
}

/* Smaller, muted date under the overall score */
#sh-reviews-viewer-root .sh-rv-item-date { 
    font-size: 11px; 
    color: #6b7280 !important; 
    margin-top: 2px; 
    line-height: 1.2;
}
#sh-reviews-viewer-root .sh-rv-pagination { margin-top: 10px; text-align: center; }
#sh-reviews-viewer-root .sh-rv-pager { display:inline-flex; gap: 6px; background:#f3f4f6; border-radius:999px; padding: 4px; border:1px solid #e5e7eb; }
#sh-reviews-viewer-root .sh-rv-page { display:inline-block; min-width:28px; padding:4px 8px; text-decoration:none; border-radius:999px; color:#111; background:#fff; border:1px solid transparent; }
#sh-reviews-viewer-root .sh-rv-page[aria-disabled] { opacity: 0.4; pointer-events: none; }
#sh-reviews-viewer-root .sh-rv-page.is-active { background:#0a2a66; color:#fff; }
