/* GB Product Tabs Widget — Lightweight CSS */

/* ── Wrapper ─────────────────────────────────────────────── */
.gb-product-tabs-wrap {
    font-family: inherit;
    line-height: 1.6;
}

/* ── Tab Nav ─────────────────────────────────────────────── */
.gb-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0;
}

.gb-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    border-bottom: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-bottom: -1px;
    line-height: 1.4;
}

.gb-tab-btn:hover {
    background: #f5f5f5;
}

.gb-tab-btn.gb-active {
    background: #e07523;
    color: #fff;
    border-color: #e07523;
}

.gb-review-badge {
    font-size: 12px;
    opacity: 0.85;
}

/* ── Panes ───────────────────────────────────────────────── */
.gb-tab-pane {
    border: 1px solid #e5e5e5;
    border-top: none;
    padding: 28px 24px;
}

.gb-tab-pane[hidden] {
    display: none;
}

/* ── Section Title ───────────────────────────────────────── */
.gb-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}

.gb-section-title.gb-has-underline::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #e07523;
    border-radius: 2px;
}

/* ── Description Content ─────────────────────────────────── */
.gb-desc-content {
    color: #444;
    font-size: 15px;
}

.gb-desc-content p    { margin: 0 0 12px; }
.gb-desc-content ul,
.gb-desc-content ol   { margin: 0 0 12px; padding-left: 20px; }
.gb-desc-content li   { margin-bottom: 4px; }
.gb-desc-content strong,
.gb-desc-content b    { color: #222; }
.gb-short-desc        { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.gb-no-content        { color: #999; font-style: italic; }

/* ── Rating Summary ──────────────────────────────────────── */
.gb-rating-summary {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.gb-avg-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 90px;
}

.gb-avg-number {
    font-size: 48px;
    font-weight: 700;
    color: #222;
    line-height: 1;
}

.gb-review-meta,
.gb-recommended-text {
    font-size: 12px;
    color: #888;
    text-align: center;
}

.gb-bars-block {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gb-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gb-stars-row {
    display: inline-flex;
    gap: 1px;
}

.gb-star {
    font-size: 18px;
    color: #ddd;
    line-height: 1;
}

.gb-star.gb-filled {
    color: #e07523;
}

.gb-stars-sm .gb-star {
    font-size: 13px;
}

.gb-progress-track {
    flex: 1;
    height: 6px;
    background: #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
}

.gb-progress-fill {
    height: 6px;
    background: #e07523;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.gb-bar-pct {
    font-size: 12px;
    color: #888;
    min-width: 32px;
    text-align: right;
}

/* ── Reviews List ────────────────────────────────────────── */
.gb-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.gb-review-item {
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    background: #fafafa;
}

.gb-review-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.gb-reviewer-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.gb-reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gb-reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.gb-review-date {
    font-size: 12px;
    color: #aaa;
}

.gb-review-body {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* ── Review Form ─────────────────────────────────────────── */
.gb-review-form-wrap {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid #f0f0f0;
}

.gb-form-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}

.gb-form-title.gb-has-underline::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #e07523;
    border-radius: 2px;
}

.gb-form-note {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.gb-form-note span {
    color: #e07523;
    margin-left: 2px;
}

.gb-logged-in-as {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.gb-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.gb-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.gb-field-group label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

.gb-field-group label span {
    color: #e07523;
}

.gb-form-input,
.gb-review-textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #444;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.gb-form-input:focus,
.gb-review-textarea:focus {
    border-color: #e07523;
}

.gb-review-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ── Star Select ─────────────────────────────────────────── */
.gb-star-select {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.gb-star-input {
    display: none;
}

.gb-star-select label {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.15s;
    margin-bottom: 0;
    font-weight: normal;
}

.gb-star-select label:hover,
.gb-star-select label:hover ~ label,
.gb-star-input:checked ~ label {
    color: #e07523;
}

/* ── Submit Btn ──────────────────────────────────────────── */
.gb-form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.gb-submit-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.gb-submit-btn:hover {
    background: #e07523;
    color: #fff;
}

.gb-reviews-closed {
    font-size: 14px;
    color: #999;
    font-style: italic;
    padding: 16px 0;
}

.gb-rating-field {
    margin-bottom: 14px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .gb-form-fields {
        grid-template-columns: 1fr;
    }
    .gb-rating-summary {
        flex-direction: column;
        gap: 20px;
    }
    .gb-tab-pane {
        padding: 20px 14px;
    }
    .gb-tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}
