/* ─── Geloni Comment Widget ──────────────────────────────────────────────── */

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
.gcw-widget-wrap,
.gcw-widget-wrap * {
    box-sizing: border-box;
}
.gcw-widget-wrap {
    direction: rtl;
    font-family: inherit;
    color: inherit;
}

/* ════════════════════════════════════════════════════════════
   REVIEWS SECTION
════════════════════════════════════════════════════════════ */

.gcw-reviews-section {
    margin-bottom: 48px;
}

.gcw-reviews-title {
    font-size: 1.25em;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
    color: #222;
}

/* ── Rating Summary Box ──────────────────────────────────────────────────── */
.gcw-rating-summary {
    display: flex;
    align-items: center;
    gap: 28px;
    background: #fff;
    border: 1.5px solid #efefef;
    border-radius: 14px;
    padding: 22px 28px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.gcw-rating-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    flex-shrink: 0;
}
.gcw-avg-num {
    font-size: 3.2em;
    font-weight: 800;
    line-height: 1;
    color: #222;
    letter-spacing: -2px;
}
.gcw-avg-stars {
    font-size: 17px;
    margin: 6px 0 4px;
    letter-spacing: 2px;
}
.gcw-avg-count {
    font-size: 11px;
    color: #aaa;
    white-space: nowrap;
}

.gcw-rating-bars {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.gcw-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gcw-bar-label {
    font-size: 12px;
    color: #888;
    width: 28px;
    flex-shrink: 0;
    text-align: left;
    direction: ltr;
}
.gcw-bar-track {
    flex: 1;
    height: 7px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}
.gcw-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f0a500, #ffcc44);
    border-radius: 10px;
    transition: width .7s cubic-bezier(.4,0,.2,1);
    min-width: 2px;
}
.gcw-bar-count {
    font-size: 11px;
    color: #bbb;
    width: 18px;
    text-align: right;
    flex-shrink: 0;
}

/* ── Review Cards ─────────────────────────────────────────────────────────── */
.gcw-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gcw-review-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 22px;
    border: 1.5px solid #efefef;
    transition: box-shadow .2s, border-color .2s;
}
.gcw-review-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.07);
    border-color: #e0e0e0;
}

.gcw-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gcw-reviewer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e87722, #f5a623);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
    user-select: none;
}

.gcw-reviewer-info {
    flex: 1;
    min-width: 0;
}
.gcw-reviewer-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}
.gcw-review-date {
    display: block;
    font-size: 11px;
    color: #bbb;
    margin-top: 3px;
}

.gcw-review-rating {
    font-size: 15px;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.gcw-star-full  { color: #f0a500; }
.gcw-star-half  { color: #f5c842; }
.gcw-star-empty { color: #e0e0e0; }

.gcw-review-body {
    font-size: 14px;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

.gcw-review-reply {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    background: #f5f8ff;
    border-radius: 8px;
    padding: 12px 14px;
    border: 1px solid #e3ecff;
}
.gcw-reply-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}
.gcw-reply-content {}
.gcw-reply-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.gcw-reply-text {
    font-size: 13px;
    color: #555;
    line-height: 1.65;
}

.gcw-no-reviews {
    text-align: center;
    padding: 36px 20px;
    color: #bbb;
    font-size: 14px;
    background: #fafafa;
    border-radius: 12px;
    border: 1.5px dashed #e8e8e8;
}

/* ════════════════════════════════════════════════════════════
   COMMENT FORM
════════════════════════════════════════════════════════════ */

.gcw-form-wrap {
    direction: rtl;
    width: 100%;
}

.gcw-form-title {
    margin: 0 0 20px;
    font-size: 1.15em;
    font-weight: 700;
    color: #222;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
.gcw-field-group {
    margin-bottom: 14px;
}

.gcw-input,
.gcw-textarea {
    width: 100%;
    padding: 11px 15px;
    font-size: 14px;
    font-family: inherit;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    background: #fafafa;
    color: #333;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    resize: vertical;
    direction: rtl;
    display: block;
}
.gcw-input:focus,
.gcw-textarea:focus {
    border-color: #e87722;
    box-shadow: 0 0 0 3px rgba(232,119,34,.1);
    background: #fff;
}
.gcw-input.gcw-error,
.gcw-textarea.gcw-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229,62,62,.08);
}

/* ── Star Input ──────────────────────────────────────────────────────────── */
.gcw-rating-field {
    margin-bottom: 14px;
}
.gcw-rating-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}
.gcw-star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 3px;
}
.gcw-star-input input[type="radio"] {
    display: none;
}
.gcw-star-input label {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color .12s, transform .1s;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}
.gcw-star-input label:hover,
.gcw-star-input label:hover ~ label {
    color: #f0a500;
}
.gcw-star-input label:hover {
    transform: scale(1.12);
}
.gcw-star-input input:checked ~ label {
    color: #f0a500;
}

/* ── Validation ──────────────────────────────────────────────────────────── */
.gcw-validation-msg {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
    padding: 9px 13px;
    border-radius: 7px;
    font-size: 13px;
    margin-bottom: 12px;
    direction: rtl;
}

/* ── Submit Button ───────────────────────────────────────────────────────── */
.gcw-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: #e87722;
    color: #fff;
    transition: background .2s, transform .1s, opacity .2s;
    min-width: 130px;
    font-family: inherit;
}
.gcw-submit-btn:hover   { background: #cf6a1a; }
.gcw-submit-btn:active  { transform: scale(.98); }
.gcw-submit-btn:disabled { opacity: .65; cursor: not-allowed; }

.gcw-spinner {
    display: none;
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: gcw-spin .65s linear infinite;
    flex-shrink: 0;
}
.gcw-submit-btn.loading .gcw-spinner { display: block; }
@keyframes gcw-spin { to { transform: rotate(360deg); } }

/* ── Login note ──────────────────────────────────────────────────────────── */
.gcw-login-note {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
    padding: 9px 12px;
    background: #f0f4ff;
    border-radius: 6px;
    border-right: 3px solid #667eea;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.gcw-success-toast {
    position: fixed;
    bottom: 32px;
    right: 50%;
    transform: translateX(50%);
    z-index: 99999;
    background: #2f855a;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 6px 28px rgba(0,0,0,.18);
    direction: rtl;
    max-width: 90vw;
    text-align: center;
    animation: gcw-toast-in .35s cubic-bezier(.34,1.56,.64,1) forwards;
    pointer-events: none;
}
.gcw-success-toast.hiding {
    animation: gcw-toast-out .3s ease forwards;
}
@keyframes gcw-toast-in {
    from { opacity:0; transform: translateX(50%) translateY(16px); }
    to   { opacity:1; transform: translateX(50%) translateY(0); }
}
@keyframes gcw-toast-out {
    from { opacity:1; transform: translateX(50%) translateY(0); }
    to   { opacity:0; transform: translateX(50%) translateY(16px); }
}
