/* hamruyesh-core 0.16.3 - Sidebar Specs Widget, Udemy-style Sticky Collapse, and Modern Educational Reviews UI. */

/* 1) Sidebar Specs Box (under Add-to-Cart / CTA button) */
.hrc-specs-box{margin-top:16px;padding-top:16px;border-top:1px solid #eef0ee}
.hrc-specs-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.hrc-spec-stat{display:flex;align-items:center;gap:9px;padding:10px 10px;background:#f7faf7;border:1px solid #e7eee7;border-radius:10px}
.hrc-spec-stat-ico{flex:0 0 34px;height:34px;border-radius:9px;background:color-mix(in srgb,var(--hrc-primary,#23a455) 14%,#fff);color:var(--hrc-link,#1a7a3e);display:inline-flex;align-items:center;justify-content:center}
.hrc-spec-stat-txt{min-width:0;display:flex;flex-direction:column;gap:2px}
.hrc-spec-stat-val{font-size:14px;font-weight:800;color:#111;line-height:1.25}
.hrc-spec-stat-lbl{font-size:11px;color:#555;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.hrc-specs-list{list-style:none!important;margin:0!important;padding:0!important}
.hrc-specs-list li{list-style:none!important;margin:0!important;padding:9px 2px!important;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px dashed #e9ece9;font-size:13px;line-height:1.5}
.hrc-specs-list li:last-child{border-bottom:0;padding-bottom:2px!important}
.hrc-spec-k{display:inline-flex;align-items:center;gap:7px;color:#555;font-weight:500}
.hrc-spec-k svg{color:var(--hrc-link,#1a7a3e);flex:0 0 auto}
.hrc-spec-v{color:#111;font-weight:700;text-align:left}

/* 2) Udemy-style Desktop Sticky Sidebar + Smooth Preview Collapse on Scroll */
@media (min-width:921px){
	.hrcore-course-product .course-summary-sidebar{position:sticky;top:calc(var(--hrc-sticky-top,0px) + 18px);align-self:start}
	.hrcore-course-product .course-sidebar-preview .media-preview,
	.hrc-def-sidebar .hrc-def-media{max-height:360px;opacity:1;overflow:hidden;transition:max-height .28s ease,opacity .22s ease,margin .25s ease}
	body.hrc-sidebar-compact .course-sidebar-preview .media-preview,
	body.hrc-sidebar-compact .hrc-def-sidebar .hrc-def-media{max-height:0!important;opacity:0!important;margin-top:0!important;margin-bottom:0!important;pointer-events:none}
}

/* 3) Modern Educational WooCommerce Reviews + Dropdown Rating (replaces raw stars) */
.hrcore-course-product #reviews,
.hrcore-default-product #reviews{direction:rtl}
.hrcore-course-product #reviews #comments,
.hrcore-default-product #reviews #comments{width:100%!important;max-width:100%!important;margin-bottom:24px}
.hrcore-course-product #reviews .woocommerce-Reviews-title,
.hrcore-default-product #reviews .woocommerce-Reviews-title{font-size:17px!important;font-weight:800;color:#111;margin:0 0 18px;padding-bottom:10px;border-bottom:1px solid #eef0ee}
.hrcore-course-product #reviews .woocommerce-noreviews,
.hrcore-default-product #reviews .woocommerce-noreviews{padding:14px 16px;background:#f7f9f7;border:1px solid #e6ece6;border-radius:10px;color:#555;font-size:14px;margin:0 0 20px}

.hrcore-course-product #reviews ol.commentlist,
.hrcore-default-product #reviews ol.commentlist{list-style:none!important;margin:0!important;padding:0!important;display:flex;flex-direction:column;gap:14px}
.hrcore-course-product #reviews ol.commentlist li,
.hrcore-default-product #reviews ol.commentlist li{list-style:none!important;margin:0!important;padding:0!important;border:0!important}
.hrcore-course-product #reviews ol.commentlist .comment_container,
.hrcore-default-product #reviews ol.commentlist .comment_container{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;background:#fafcfa;border:1px solid #e8eee8;border-radius:12px}
.hrcore-course-product #reviews ol.commentlist img.avatar,
.hrcore-default-product #reviews ol.commentlist img.avatar{position:static!important;float:none!important;width:44px!important;height:44px!important;border-radius:50%!important;object-fit:cover;padding:0!important;border:2px solid #fff!important;box-shadow:0 2px 6px rgba(0,0,0,.08);flex:0 0 44px}
.hrcore-course-product #reviews ol.commentlist .comment-text,
.hrcore-default-product #reviews ol.commentlist .comment-text{margin:0!important;padding:0!important;border:0!important;flex:1;min-width:0}
.hrcore-course-product #reviews ol.commentlist .meta,
.hrcore-default-product #reviews ol.commentlist .meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px!important;font-size:13px;color:#666}
.hrcore-course-product #reviews ol.commentlist .woocommerce-review__author,
.hrcore-default-product #reviews ol.commentlist .woocommerce-review__author{font-size:14px;font-weight:700;color:#111}
.hrcore-course-product #reviews ol.commentlist .description,
.hrcore-default-product #reviews ol.commentlist .description{font-size:14px;line-height:1.85;color:#2b2b2b}
.hrcore-course-product #reviews ol.commentlist .description p:last-child,
.hrcore-default-product #reviews ol.commentlist .description p:last-child{margin-bottom:0}

/* Review Form Card */
.hrcore-course-product #review_form_wrapper,
.hrcore-default-product #review_form_wrapper{background:#f9fbf9;border:1px solid #e5ece5;border-radius:14px;padding:22px 24px}
.hrcore-course-product #review_form .review-form-inner,
.hrcore-default-product #review_form .review-form-inner{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important}
.hrcore-course-product #reply-title,
.hrcore-default-product #reply-title{display:block;font-size:16px!important;font-weight:800;color:#111;margin:0 0 16px;padding:0!important}

/* Hide raw star links, show styled native select dropdown */
.hrcore-course-product .comment-form-rating .stars,
.hrcore-default-product .comment-form-rating .stars{display:none!important}
.hrcore-course-product .comment-form-rating,
.hrcore-default-product .comment-form-rating{margin:0 0 16px!important}
.hrcore-course-product .comment-form-rating label,
.hrcore-default-product .comment-form-rating label{display:block!important;font-size:13px!important;font-weight:700!important;color:#222!important;margin:0 0 8px!important}
.hrcore-course-product select#rating,
.hrcore-default-product select#rating{display:block!important;width:100%;max-width:300px;height:44px;padding:0 14px!important;border:1px solid #cfd8cf!important;border-radius:10px!important;background-color:#fff!important;color:#111!important;font-size:14px!important;font-weight:600;cursor:pointer;box-shadow:none!important;transition:border-color .15s,box-shadow .15s}
.hrcore-course-product select#rating:focus,
.hrcore-default-product select#rating:focus{outline:none;border-color:var(--hrc-primary,#23a455)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--hrc-primary,#23a455) 18%,transparent)!important}

.hrcore-course-product #commentform label,
.hrcore-default-product #commentform label{font-size:13px;font-weight:700;color:#222;margin-bottom:6px;display:block}
.hrcore-course-product #commentform textarea,
.hrcore-default-product #commentform textarea,
.hrcore-course-product #commentform input[type=text],
.hrcore-default-product #commentform input[type=text],
.hrcore-course-product #commentform input[type=email],
.hrcore-default-product #commentform input[type=email]{width:100%;box-sizing:border-box;border:1px solid #cfd8cf!important;border-radius:10px!important;background:#fff!important;padding:12px 14px!important;font-size:14px;color:#111;box-shadow:none!important;transition:border-color .15s,box-shadow .15s}
.hrcore-course-product #commentform textarea:focus,
.hrcore-default-product #commentform textarea:focus,
.hrcore-course-product #commentform input[type=text]:focus,
.hrcore-default-product #commentform input[type=text]:focus,
.hrcore-course-product #commentform input[type=email]:focus,
.hrcore-default-product #commentform input[type=email]:focus{outline:none;border-color:var(--hrc-primary,#23a455)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--hrc-primary,#23a455) 18%,transparent)!important}
.hrcore-course-product #commentform .comment-form-cookies-consent,
.hrcore-default-product #commentform .comment-form-cookies-consent{display:flex;align-items:center;gap:8px;margin:10px 0 16px}
.hrcore-course-product #commentform .comment-form-cookies-consent label,
.hrcore-default-product #commentform .comment-form-cookies-consent label{margin:0;font-weight:500;color:#555;display:inline}
.hrcore-course-product #commentform #submit,
.hrcore-default-product #commentform #submit{background:var(--hrc-primary,#23a455)!important;color:var(--hrc-on-primary,#fff)!important;border:0!important;border-radius:var(--hrc-btn-radius,8px)!important;padding:11px 28px!important;font-size:14px!important;font-weight:700!important;cursor:pointer;transition:background .15s;margin:0}
.hrcore-course-product #commentform #submit:hover,
.hrcore-default-product #commentform #submit:hover{background:var(--hrc-primary-dark,#1e8d49)!important}

@media (max-width:600px){
	.hrcore-course-product #review_form_wrapper,
	.hrcore-default-product #review_form_wrapper{padding:16px}
	.hrcore-course-product select#rating,
	.hrcore-default-product select#rating{max-width:100%}
	.hrcore-course-product #reviews ol.commentlist .comment_container,
	.hrcore-default-product #reviews ol.commentlist .comment_container{padding:14px}
}
