/* Comments section v2 (2026-12-02). Markup: Extra-child/comments.php + core/abondance-comments.php */
#comment-wrap { --abd-navy:#011627; --abd-blue:#0E339A; --abd-sky:#5495CF; --abd-ice:#F0F8FF; --abd-line:#E3E8EF; --abd-mute:#5B6573; margin-top:48px; padding-top:40px !important; border-top:1px solid var(--abd-line); }

#comment-wrap *, #comment-wrap *::before, #comment-wrap *::after { box-sizing:border-box; }
#comment-wrap .comment-reply-link:focus-visible, #comment-wrap .form-submit > input:focus-visible, #comment-wrap .comment-content a:focus-visible { outline:3px solid var(--abd-sky); outline-offset:2px; }

/* Section titles: one style for both */
#comment-wrap #comments, #comment-wrap #reply-title { font-family:Outfit,sans-serif !important; font-size:28px !important; font-weight:600 !important; color:var(--abd-navy) !important; line-height:1.2; }
#comment-wrap #comments { display:flex; align-items:center; gap:12px; margin:0 0 24px !important; padding:0 !important; }
#comment-wrap #comments .abd-count { display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px; padding:0 10px; border-radius:999px; background:var(--abd-ice); color:var(--abd-blue); font-size:17px; font-weight:700; }

/* Comment list */
#comment-wrap .commentlist, #comment-wrap .commentlist .children { list-style:none !important; margin:0 !important; padding:0 !important; }
#comment-wrap .commentlist > li { margin:0 0 20px !important; }
#comment-wrap .commentlist .children { margin:14px 0 0 28px !important; padding-left:22px !important; border-left:2px solid var(--abd-line) !important; }
#comment-wrap .commentlist .children > li { margin:0 0 14px !important; }

/* Card */
#comment-wrap .comment-body { display:grid !important; grid-template-columns:44px 1fr; column-gap:14px; background:#fff; border:1px solid var(--abd-line); border-radius:14px; padding:20px 22px 16px !important; margin:0 !important; box-shadow:0 1px 2px rgba(1,22,39,.04); }
#comment-wrap .comment_avatar { grid-row:1 / span 2; width:44px; height:44px; border-radius:50%; overflow:hidden; background:#2E6DA4; color:#fff; display:flex !important; align-items:center; justify-content:center; font:600 16px/1 Outfit,sans-serif; float:none !important; position:static !important; }
#comment-wrap .comment_avatar img { width:100%; height:100%; object-fit:cover; }
#comment-wrap .comment_postinfo { display:flex; flex-wrap:wrap; align-items:center; text-align:left; justify-content:flex-start; gap:4px 10px; min-height:44px; margin:0 !important; padding:0 !important; }
#comment-wrap .comment_postinfo .fn { font-weight:700; font-size:16px; color:var(--abd-navy); }
#comment-wrap .comment_postinfo .comment_date { font-size:13.5px; color:var(--abd-mute) !important; }
#comment-wrap .abd-edit a { font-size:13px; color:var(--abd-blue); }
#comment-wrap .moderation { font-size:14px; color:var(--abd-mute); margin:6px 0 8px !important; }
#comment-wrap .comment_area { grid-column:2; margin:0 !important; padding:0 !important; }
#comment-wrap .comment-content { margin-top:6px; }
#comment-wrap .comment-content p { font-size:16px; line-height:1.65; color:#1F2933; margin:0 0 12px !important; padding:0 !important; }
#comment-wrap .comment-content a { color:var(--abd-blue); overflow-wrap:anywhere; word-break:break-word; }

/* Team reply */
#comment-wrap .abd-badge { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; background:var(--abd-blue); color:#fff; font-size:12px; font-weight:600; letter-spacing:.02em; }
#comment-wrap li.abd-team > .comment-body { background:var(--abd-ice); border-color:#CFE3F7; }
#comment-wrap li.abd-team > .comment-body .comment_avatar { background:var(--abd-blue); }

/* Reply button */
#comment-wrap .reply-container { display:block; margin-top:4px; }
#comment-wrap .comment-reply-link { display:inline-flex !important; align-items:center; gap:6px; padding:6px 14px !important; border:1px solid var(--abd-line); border-radius:999px; background:#fff; color:var(--abd-blue) !important; font-size:14px !important; font-weight:600; text-decoration:none !important; text-transform:none !important; transition:background .15s, border-color .15s; }
#comment-wrap .comment-reply-link::before { content:""; width:14px; height:14px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E") center/contain no-repeat; }
#comment-wrap .comment-reply-link:hover { background:var(--abd-ice); border-color:#CFE3F7; }

/* Form */
#comment-wrap #respond { margin-top:36px; background:#F7F9FC; border:1px solid var(--abd-line); border-radius:16px; padding:28px 28px 24px; }
#comment-wrap #reply-title { margin:0 0 8px !important; padding:0 !important; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; }
#comment-wrap #reply-title small { font:400 14px/1.4 Roboto,Arial,sans-serif; }
#comment-wrap #cancel-comment-reply-link { color:var(--abd-blue); text-decoration:underline; }
#comment-wrap .comment-notes { display:block !important; font-size:14px; color:var(--abd-mute); margin:0 0 18px !important; }
#comment-wrap .abd-fields { display:flex; flex-direction:column; gap:0; }
@media (min-width:768px) { #comment-wrap .abd-fields { flex-direction:row; gap:16px; } #comment-wrap .abd-fields > p { flex:1 1 0; min-width:0; } }
#comment-wrap #commentform p { margin:0 0 16px !important; padding:0 !important; }
#comment-wrap .abd-field { display:block; }
#comment-wrap #commentform label { display:block !important; font-size:14px !important; font-weight:600 !important; color:var(--abd-navy); margin:0 0 6px !important; text-transform:none !important; }
#comment-wrap #commentform .required { color:#B42318; }
#comment-wrap #commentform ::placeholder { color:#6B7684 !important; opacity:1; letter-spacing:normal !important; text-transform:none !important; font-weight:400 !important; }
#comment-wrap #commentform input[type="text"], #comment-wrap #commentform input[type="email"], #comment-wrap #commentform input[type="url"], #comment-wrap #commentform textarea { width:100%; border:1px solid #CBD3DD !important; border-radius:10px !important; background:#fff !important; padding:12px 14px !important; font-size:16px !important; letter-spacing:normal !important; text-transform:none !important; color:var(--abd-navy); transition:border-color .15s, box-shadow .15s; }
#comment-wrap #commentform textarea { min-height:150px; line-height:1.6; resize:vertical; }
#comment-wrap #commentform input:focus, #comment-wrap #commentform textarea:focus { outline:none; border-color:var(--abd-sky) !important; box-shadow:0 0 0 3px rgba(84,149,207,.22); }
#comment-wrap .form-submit { display:flex; justify-content:flex-end; margin:4px 0 0 !important; }
#comment-wrap .form-submit > input { background:var(--abd-blue) !important; color:#fff !important; border:0 !important; border-radius:999px !important; padding:12px 26px !important; font:700 16px/1.5 Roboto,Arial,sans-serif !important; letter-spacing:normal !important; text-transform:none !important; cursor:pointer; }
#comment-wrap .form-submit > input:hover { background:var(--abd-navy) !important; }

@media (max-width:640px) {
  #comment-wrap .comment-body { grid-template-columns:36px 1fr; padding:16px !important; column-gap:10px; }
  #comment-wrap .comment_avatar { width:36px; height:36px; font-size:14px; }
  #comment-wrap .comment_avatar { grid-row:1; grid-column:1; }
  #comment-wrap .comment_postinfo { grid-row:1; grid-column:2; }
  #comment-wrap .comment_postinfo { min-height:36px; }
  #comment-wrap .comment_area { grid-column:1 / -1; }
  #comment-wrap .comment-content { margin-top:10px; }
  #comment-wrap .commentlist .children { margin-left:4px !important; padding-left:10px !important; }
  #comment-wrap #respond { padding:20px 16px; }
  #comment-wrap #comments, #comment-wrap #reply-title { font-size:24px !important; }
}
