/* HomePro native RealesWP signup + comments | design-only override.
 * Target actual RealesWP 2.1.1 selectors. Does not touch scripts, forms, data or checkout.
 */

/* 1. Sign Up: branded hierarchy, quiet checkbox rows and readable links. */
#signup .modal-dialog .modal-content {
    border-radius: 12px;
    overflow: hidden;
}
#signup .modal-header {
    background: linear-gradient(105deg, #087d79 0%, #0a8d89 62%, #0eaaa6 100%);
    border-bottom: 0;
    padding: 18px 24px;
}
#signup .modal-header .modal-title,
#signup .modal-header #signupLabel {
    color: #fff;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}
#signup .modal-body {
    padding: 23px 24px 24px;
    background: #fff;
}
#signup #userSignupForm .checkbox.custom-checkbox {
    margin: 0;
}
#signup #userSignupForm .checkbox.custom-checkbox > label {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #c8e6e3;
    border-radius: 8px;
    background: #f0faf8;
    color: #20474a;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    flex-wrap: wrap;
}
#signup #userSignupForm .checkbox.custom-checkbox > label > span.fa {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    float: none;
    border: 1.5px solid #314348;
    border-radius: 4px;
    background: #fff;
    color: transparent;
    font-size: 11px;
    line-height: 1;
}
#signup #userSignupForm .checkbox.custom-checkbox input[type="checkbox"]:checked + span.fa {
    border-color: #0eaaa6;
    background: #0eaaa6;
    color: #fff;
    -webkit-text-stroke: 0.25px #fff;
}
#signup #userSignupForm .checkbox.custom-checkbox input[type="checkbox"]:focus-visible + span.fa {
    outline: 3px solid #087d79;
    outline-offset: 3px;
}
#signup #userSignupForm .checkbox.custom-checkbox label:has(input:checked) {
    background: #e3f7f4;
    border-color: #99d5d1;
}
#signup #userSignupForm .checkbox.custom-checkbox label a {
    color: #087d79;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#signup #userSignupForm .checkbox.custom-checkbox label a:focus-visible,
#signup #userSignupForm .help-block a:focus-visible,
#signup #submitSignup:focus-visible {
    outline: 3px solid #087d79;
    outline-offset: 3px;
}
#signup #userSignupForm .help-block .text-green,
#signup #userSignupForm .help-block a.modal-si {
    color: #087d79;
    font-weight: 600;
}
#signup #userSignupForm .form-control:focus {
    border-color: #0eaaa6;
    box-shadow: 0 0 0 3px rgba(14, 170, 166, .16);
}
#signup #submitSignup.btn-green {
    background: #0eaaa6;
    border-color: #0eaaa6;
    color: #fff;
    font-weight: 700;
    border-radius: 7px;
}
#signup #submitSignup.btn-green:hover,
#signup #submitSignup.btn-green:focus-visible {
    background: #087d79;
    border-color: #087d79;
    color: #fff;
}

/* 2. Comments: subtle thread distinction; deliberately different Edit / Reply tones. */
#comments .comment-list li.comment > .commentContent {
    border: 1px solid #dae8e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(12, 49, 54, .035);
    min-width: 0;
}
#comments .comment-list .children > li.comment > .commentContent {
    border-color: #b9dfdb;
    background: #f0faf8;
}
#comments .comment-list .commentContent .commentName {
    padding: 13px 15px 7px;
    color: #19383d;
    font-weight: 700;
}
#comments .comment-list .commentContent .commentName a,
#comments .comment-list .commentContent .commentName cite {
    color: #19383d;
}
#comments .comment-list .children .commentContent .commentName,
#comments .comment-list .children .commentContent .commentName a,
#comments .comment-list .children .commentContent .commentName cite {
    color: #087d79;
}
#comments .comment-list .commentContent .commentBody {
    padding: 0 15px 13px;
    color: #2f464c;
    line-height: 1.65;
    overflow-wrap: anywhere;
    word-break: normal;
}
#comments .comment-list .commentContent .commentBody p {
    color: inherit;
    line-height: inherit;
    overflow-wrap: anywhere;
}
#comments .comment-list .commentBody a[href] {
    color: #087d79;
    text-decoration-line: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}
#comments .comment-list .commentContent .commentActions {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 11px 15px;
}
#comments .comment-list .commentActions .commentTime {
    float: none;
    min-width: 0;
    line-height: 1.45;
}
#comments .comment-list .commentActions .commentTime a {
    color: #63747a;
    font-weight: 500;
    overflow-wrap: anywhere;
}
#comments .comment-list .commentActions ul {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    float: none;
    padding: 0;
    margin: 0;
    list-style: none;
}
#comments .comment-list .commentActions ul > li {
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
}
#comments .comment-list .commentActions .reply:has(a.comment-reply-link) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 7px;
    background: #087d79;
    color: #fff;
}
#comments .comment-list .commentActions .reply a.comment-reply-link {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
#comments .comment-list .commentActions ul > li:has(> a.comment-edit-link) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #dce5ec;
    border-radius: 7px;
    background: #edf2f6;
    color: #445a72;
}
#comments .comment-list .commentActions ul > li > a.comment-edit-link {
    color: #445a72;
    font-weight: 650;
    text-decoration: none;
}
#comments .comment-list .commentActions .reply:has(a.comment-reply-link):hover {
    background: #096d69;
}
#comments .comment-list .commentActions ul > li:has(> a.comment-edit-link):hover {
    background: #e0e9f0;
}
#comments .comment-list .commentActions a:focus-visible {
    outline: 3px solid #0eaaa6;
    outline-offset: 3px;
    border-radius: 3px;
}

@media (max-width: 600px) {
    #signup .modal-header { padding: 16px 18px; }
    #signup .modal-body { padding: 19px 18px 22px; }
    #comments .comment-list .commentContent .commentActions { align-items: flex-start; }
    #comments .comment-list .commentActions ul { gap: 8px; }
}

/* 3. Native RealesWP comment form — HomePro reply composer (v1.4.33).
 * Scoped to the actual #comments #respond markup; no changes to input names,
 * submission targets, authorization, comment moderation, or agent reviews.
 */
#comments #respond.comment-respond {
    box-sizing: border-box;
    max-width: 100%;
    margin: 30px 0 12px;
    padding: clamp(18px, 3.5vw, 28px);
    border: 1px solid #cfe5e2;
    border-top: 4px solid #0eaaa6;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 58, 64, .045);
    color: #2b454b;
}
#comments #respond #reply-title.comment-reply-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 19px;
    padding: 0 0 16px;
    border-bottom: 1px solid #dcebe9;
    color: #173e42;
    font-size: clamp(24px, 4vw, 31px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -.025em;
}
#comments #respond #reply-title small {
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0;
}
#comments #respond #cancel-comment-reply-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #d4e2e6;
    border-radius: 8px;
    background: #edf2f5;
    color: #36576a;
    text-decoration: none;
}
#comments #respond #cancel-comment-reply-link:hover {
    background: #e1eaf0;
    color: #27495d;
}
#comments #respond .comment-form {
    margin: 0;
}
#comments #respond .comment-form p.logged-in-as,
#comments #respond .comment-form p.comment-notes {
    margin: 0 0 21px;
    padding: 13px 15px;
    border: 1px solid #d3eae6;
    border-radius: 10px;
    background: #f0f9f7;
    color: #465f66;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
#comments #respond .comment-form p.logged-in-as a,
#comments #respond .comment-form p.comment-notes a {
    color: #087d79;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
#comments #respond .comment-form p.logged-in-as a:last-of-type {
    color: #3a6074;
}
#comments #respond .comment-form .required {
    color: #ac4536;
    font-weight: 750;
}
#comments #respond .hprc-comment-field-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0 0 10px;
}
#comments #respond .hprc-comment-label {
    margin: 0;
    color: #214448;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;
}
#comments #respond .hprc-comment-helper {
    color: #506b70;
    font-size: 13px;
    line-height: 1.5;
}
#comments #respond #commentform .form-group {
    margin-bottom: 18px;
}
#comments #respond #commentform textarea#comment {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 158px;
    padding: 16px 17px;
    border: 1.5px solid #bcd5d3;
    border-radius: 11px;
    background: #fbfdfd;
    color: #1d3e44;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: none;
    resize: vertical;
    transition: border-color .15s ease, box-shadow .15s ease;
}
#comments #respond #commentform textarea#comment::placeholder {
    color: #637a7d;
    opacity: 1;
}
#comments #respond #commentform textarea#comment:hover {
    border-color: #84bcb8;
}
#comments #respond #commentform textarea#comment:focus {
    outline: none;
    border-color: #0eaaa6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14, 170, 166, .18);
}
#comments #respond #commentform input.form-control {
    max-width: 100%;
    border-color: #bcd5d3;
    border-radius: 9px;
}
#comments #respond #commentform input.form-control:focus {
    border-color: #0eaaa6;
    box-shadow: 0 0 0 3px rgba(14, 170, 166, .18);
}
#comments #respond #commentform p.form-submit {
    margin: 20px 0 0;
    padding: 0;
}
#comments #respond #commentform input#submit {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 185px;
    min-height: 48px;
    margin: 0;
    padding: 13px 23px;
    border: 1px solid #087d79;
    border-radius: 9px;
    background: #087d79;
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 750;
    letter-spacing: .01em;
    white-space: normal;
    box-shadow: 0 6px 15px rgba(8, 125, 121, .13);
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}
#comments #respond #commentform input#submit:hover {
    border-color: #076662;
    background: #076662;
    color: #fff;
}
#comments #respond #commentform input#submit:focus-visible,
#comments #respond #cancel-comment-reply-link:focus-visible,
#comments #respond .comment-form p a:focus-visible {
    outline: 3px solid #0eaaa6;
    outline-offset: 3px;
}
#comments #respond #commentform input#submit:disabled {
    opacity: .62;
    cursor: not-allowed;
}
/* A nested reply form is moved into the selected comment by WordPress. */
#comments .comment-list #respond.comment-respond {
    margin: 14px 0 18px;
}
@media (max-width: 600px) {
    #comments #respond.comment-respond {
        margin: 24px 0 10px;
        padding: 18px 16px 20px;
        border-radius: 13px;
    }
    #comments #respond #reply-title.comment-reply-title {
        margin-bottom: 17px;
        padding-bottom: 14px;
    }
    #comments #respond .comment-form p.logged-in-as,
    #comments #respond .comment-form p.comment-notes {
        padding: 12px 13px;
        margin-bottom: 18px;
    }
    #comments #respond #commentform textarea#comment {
        min-height: 152px;
        padding: 14px;
    }
    #comments #respond #commentform input#submit {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    #comments #respond #commentform textarea#comment,
    #comments #respond #commentform input#submit {
        transition: none;
    }
}

/* 4. Comment action contrast and administrative edit clarity (v1.4.34).
 * Theme/global link colors can override Reply on active/visited states.
 * These scoped declarations keep white text and icons on the deep-teal button.
 */
#comments .comment-list .commentContent .commentActions .reply:has(a.comment-reply-link),
#comments .comment-list .commentContent .commentActions .reply:has(a.comment-reply-link):hover,
#comments .comment-list .commentContent .commentActions .reply:has(a.comment-reply-link):focus-within {
    color: #fff !important;
}
#comments .comment-list .commentContent .commentActions .reply a.comment-reply-link,
#comments .comment-list .commentContent .commentActions .reply a.comment-reply-link:link,
#comments .comment-list .commentContent .commentActions .reply a.comment-reply-link:visited,
#comments .comment-list .commentContent .commentActions .reply a.comment-reply-link:hover,
#comments .comment-list .commentContent .commentActions .reply a.comment-reply-link:focus,
#comments .comment-list .commentContent .commentActions .reply a.comment-reply-link:active,
#comments .comment-list .commentContent .commentActions .reply .icon-action-undo,
#comments .comment-list .commentContent .commentActions .reply .icon-action-undo::before {
    color: #fff !important;
    opacity: 1;
    text-decoration-color: #fff;
}
/* RealesWP renders a pencil span even when WP omits edit_comment_link().
 * Hide those orphan control wrappers rather than showing a dead pencil.
 * A legitimate moderator Edit link remains visible and uses a distinct tone.
 */
#comments .comment-list .commentActions ul > li:has(> .icon-pencil):not(:has(a.comment-edit-link)) {
    display: none !important;
}
#comments .comment-list .commentActions a.hprc-admin-comment-edit {
    color: #354d64;
    font-weight: 700;
}

/* v1.4.35: reply composer is moved by WordPress Core.  These margins also
 * improve fallback anchor navigation when JavaScript is unavailable. */
#comments #respond.comment-respond {
    scroll-margin-top: 90px;
    scroll-margin-bottom: 24px;
    overflow-anchor: none;
}
#comments .comment-list #respond.comment-respond {
    scroll-margin-top: 76px;
}
