/* HT Features - Feature Requests tab + [ht_feature_requests] summary page.
   Everything is scoped to .htfr-wrap, which wraps both surfaces. */

.htfr-wrap {
    max-width: 100%;
}

/* Page heading sits in the container's existing top padding band.
   Enfold uppercases content h1s - normalize to match the site's other headings. */
.htfr-wrap h1.htfr-page-title {
    margin: -20px 0 12px;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
    font-size: 30px;
    font-weight: 600;
}

.htfr-wrap .htfr-intro {
    opacity: .85;
    margin-bottom: 14px;
}

/* The "have an idea" invitation pill on the product tab */
.htfr-wrap .htfr-idea-pill {
    display: inline-block;
    background: #d9f2f7;
    border: 1px solid #79cbe0;
    color: #00546e;
    border-radius: 6px;
    padding: 7px 16px;
    font-weight: 600;
    line-height: 1.4;
}

/* the summary-page link in the intro must read as a link, not body text.
   #top variant outranks Enfold's #top a { text-decoration:none } reset. */
.htfr-wrap .htfr-intro a,
#top .htfr-wrap .htfr-intro a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* requester name in the byline: full-strength like the row titles, while the
   "Requested by" label and date stay quiet gray (color, not opacity, so the
   name is not capped by a translucent parent) */
.htfr-wrap .htfr-byline-name {
    font-weight: 700;
    font-size: 12px;
    color: #1f1f1f;
}

/* verified-purchaser badge: echoes Woo's "(verified owner)" on the Reviews tab */
.htfr-wrap .htfr-verified {
    font-style: italic;
    font-weight: 400;
    font-size: 11px;
    color: #767676;
}

.htfr-wrap .htfr-h2-note {
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    opacity: .6;
    margin-left: 8px;
}

/* --- submission form --- */
.htfr-wrap .htfr-form .htfr-form-fields {
    display: block;
    width: 100%;
}

.htfr-wrap .htfr-form textarea.htfr-detail-field {
    resize: vertical;
    min-height: 90px;
}

.htfr-wrap .htfr-field-error .htfr-error,
.htfr-wrap .htfr-error {
    color: #c0392b;
    font-size: .9em;
    display: inline-block;
    margin-top: 6px;
}

.htfr-wrap .htfr-submit-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.htfr-wrap .htfr-notice {
    display: none;
    color: #1e7a1e;
    font-weight: 600;
}

/* busy state: dim submit, show spinner */
.htfr-wrap .htfr-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(0, 0, 0, .15);
    border-top-color: rgba(0, 0, 0, .55);
    border-radius: 50%;
    animation: htfr-spin .7s linear infinite;
}

.htfr-wrap .htfr-form.htfr-busy .htfr-spinner {
    display: inline-block;
}

.htfr-wrap .htfr-form.htfr-busy .htfr-submit {
    pointer-events: none;
    opacity: .6;
}

@keyframes htfr-spin {
    to { transform: rotate(360deg); }
}

/* --- summary-page controls --- */
.htfr-wrap .htfr-controls {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 0 0 6px;
    padding: 10px 12px;
    background: #f7f7f7;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    clear: both;
}

.htfr-wrap .htfr-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
}

.htfr-wrap .htfr-controls select {
    max-width: 320px;
    margin: 0 !important;
    vertical-align: middle;
}

/* --- "Add Request" / "Add Review" jump menu ---
   Closes the controls row on the right. A <details> disclosure rather than a
   scripted menu or a third <select>: it reads as a button, and it keeps the
   Customer Reviews page's no-JavaScript property intact. Marker suppression
   follows the same three-rule pattern as .htfr-more above. */
.htfr-wrap .htfr-jump {
    position: relative;
    margin-left: auto;
}

.htfr-wrap .htfr-jump > summary.htfr-jump-button {
    display: inline-block;
    cursor: pointer;
    padding: 7px 16px;
    border: 1px solid #00546e;
    border-radius: 6px;
    background: #00546e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    list-style: none;
}

.htfr-wrap .htfr-jump > summary::-webkit-details-marker {
    display: none;
}

.htfr-wrap .htfr-jump > summary::marker {
    content: "";
}

.htfr-wrap .htfr-jump > summary.htfr-jump-button::after {
    content: " \25BE";
}

.htfr-wrap .htfr-jump[open] > summary.htfr-jump-button::after {
    content: " \25B4";
}

.htfr-wrap .htfr-jump > summary.htfr-jump-button:hover,
.htfr-wrap .htfr-jump[open] > summary.htfr-jump-button {
    background: #00415a;
    border-color: #00415a;
}

.htfr-wrap .htfr-jump-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    width: 320px;
    max-width: calc(100vw - 48px);
    max-height: 340px;
    overflow-y: auto;
    padding: 6px 0 4px;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
    text-align: left;
}

.htfr-wrap .htfr-jump-hint {
    margin: 2px 0 4px;
    padding: 0 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #767676;
}

.htfr-wrap ul.htfr-jump-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.htfr-wrap ul.htfr-jump-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.htfr-wrap .htfr-jump-list a,
#top .htfr-wrap .htfr-jump-list a {
    display: block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    color: #1f1f1f;
    text-decoration: none;
}

.htfr-wrap .htfr-jump-list a:hover,
#top .htfr-wrap .htfr-jump-list a:hover {
    background: #f2f9fd;
    color: #006799;
    text-decoration: none;
}

/* --- grouped-view product headers --- */
.htfr-wrap h3.htfr-group-head {
    clear: both;
    margin: 22px 0 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #d5d5d5;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.htfr-wrap h3.htfr-group-head:first-of-type {
    margin-top: 12px;
}

.htfr-wrap .htfr-group-count {
    font-size: 13px;
    font-weight: 400;
    opacity: .7;
}

/* --- request rows --- */
/* clear:both - Enfold floats .button, and flex boxes otherwise sit beside the float */
.htfr-wrap .htfr-row,
.htfr-wrap .htfr-form,
.htfr-wrap #htfr_append_target {
    clear: both;
}

.htfr-wrap .htfr-post-btn {
    margin-bottom: 10px;
}

.htfr-wrap .htfr-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #e3e3e3;
}

.htfr-wrap .htfr-row-vote {
    flex: 0 0 auto;
    padding-top: 2px;
}

.htfr-wrap .htfr-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: 58px;
    padding: 6px 8px;
    background: #fbfbfb;
    border: 1px solid #d5dedc;
    border-radius: 4px;
    color: #6d6d6d;
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.htfr-wrap .htfr-vote-btn:hover {
    border-color: #9db8b2;
    color: #333;
}

.htfr-wrap .htfr-vote-btn .htfr-vote-arrow {
    font-size: 14px;
}

.htfr-wrap .htfr-vote-btn .htfr-vote-count {
    font-size: 15px;
    font-weight: 700;
}

.htfr-wrap .htfr-vote-btn.htfr-voted {
    border-color: #006799;
    color: #006799;
    background: #f2f9fd;
}

.htfr-wrap .htfr-vote-btn .htfr-vote-word::after {
    content: "";
}

.htfr-wrap .htfr-vote-btn.htfr-voted .htfr-vote-word::after {
    content: " \2713";
}

.htfr-wrap .htfr-row-body {
    flex: 1 1 auto;
    min-width: 0;
}

.htfr-wrap h4.htfr-row-title {
    margin: 0 0 4px;
    line-height: 1.35;
}

.htfr-wrap .htfr-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.htfr-wrap .htfr-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    padding: 1px 7px;
    letter-spacing: .3px;
}

.htfr-wrap .htfr-product-link {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.htfr-wrap .htfr-byline {
    color: #767676;
    font-size: 10px;
}

.htfr-wrap .htfr-row-detail p:last-child {
    margin-bottom: 0;
}

/* --- login prompt (guests) --- */
.htfr-wrap .htfr-login-block {
    margin-bottom: 10px;
    clear: both;
}

.htfr-wrap .htfr-login-form {
    max-width: 420px;
    margin-top: 10px;
}

.htfr-wrap .htfr-login-form .woocommerce-privacy-policy-text {
    display: none !important;
}

/* --- utility --- */
.htfr-wrap .htfr-hide {
    display: none;
}

/* --- Customer Reviews summary page ([ht_customer_reviews]) ---
   Read-only twin of the feature-request summary: same wrap, controls, group
   heads, byline and detail styles, minus the vote column. Stars are Woo's own
   .star-rating markup so Enfold's sprite renders them exactly as the product
   page Reviews tab does; only the float needs neutralizing inside our flex
   meta row. */

.htfr-wrap .htfr-review-row {
    padding: 10px 0;
}

.htfr-wrap .htfr-review-stars {
    flex: 0 0 auto;
    line-height: 1;
}

.htfr-wrap .htfr-review-stars .star-rating {
    float: none;
    margin: 0;
}

/* reviews carry no status pill, so the byline is the leading text on the
   meta line - give it the same breathing room the pill used to provide */
.htfr-wrap .htfr-review-row .htfr-row-meta {
    margin-bottom: 6px;
}

.htfr-wrap .htfr-empty {
    margin-top: 16px;
}

/* average-rating stars sitting after the review count on a product heading */
.htfr-wrap .htfr-group-head .star-rating {
    float: none;
    align-self: center;
    margin: 0;
}

/* The "show more" fold is a <details> element, which is why this page still
   ships no JavaScript. The two label spans swap on [open]. */
.htfr-wrap .htfr-more {
    clear: both;
}

.htfr-wrap .htfr-more > summary {
    display: block;
    cursor: pointer;
    padding: 9px 0 2px;
    font-size: 12px;
    font-weight: 700;
    color: #006799;
    list-style: none;
}

.htfr-wrap .htfr-more > summary::-webkit-details-marker {
    display: none;
}

.htfr-wrap .htfr-more > summary::marker {
    content: "";
}

.htfr-wrap .htfr-more > summary:hover {
    text-decoration: underline;
}

.htfr-wrap .htfr-more > summary::after {
    content: " \25BE";
}

.htfr-wrap .htfr-more[open] > summary::after {
    content: " \25B4";
}

.htfr-wrap .htfr-more .htfr-more-open {
    display: none;
}

.htfr-wrap .htfr-more[open] .htfr-more-open {
    display: inline;
}

.htfr-wrap .htfr-more[open] .htfr-more-closed {
    display: none;
}

@media screen and (max-width: 570px) {
    .htfr-wrap .htfr-row {
        gap: 10px;
    }
    .htfr-wrap .htfr-vote-btn {
        min-width: 48px;
    }
    .htfr-wrap .htfr-controls {
        gap: 10px;
    }
    /* the row wraps at this width, so the button stops being a right-hand
       anchor and just becomes the last item on its own line */
    .htfr-wrap .htfr-jump {
        margin-left: 0;
    }
    .htfr-wrap .htfr-jump-panel {
        right: auto;
        left: 0;
    }
}
