/* =========================================================
   DISCUSSION: device Opinions page, review Opinions, news Comments
   lumischema_discussion() + template-parts/device-opinions.php
   ========================================================= */
.ls-op-hero { display: flex; gap: 18px; align-items: center; margin: 0 0 22px; padding: 16px 18px; background: #f6f9fe; border: 1px solid #d6e4fb; border-top: 4px solid #0b5fd8; border-radius: 14px; box-shadow: 0 8px 24px rgba(7, 29, 51, .08); }
.ls-op-hero-img { display: flex; flex: 0 0 96px; align-items: center; justify-content: center; width: 96px; height: 110px; padding: 8px; background: #fff; border: 1px solid #e1e9f4; border-radius: 12px; box-sizing: border-box; }
.ls-op-hero-img img { display: block; max-width: 100%; max-height: 94px; width: auto; height: auto; object-fit: contain; }
.ls-op-hero-img .ls-ico { width: 48px; height: 48px; }
.ls-op-hero-body { flex: 1; min-width: 0; }
.ls-op-hero-body .ls-device-brand { margin: 0 0 6px; }
.ls-op-hero h1 { margin: 0 0 4px; color: #071D33; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; font-weight: 800; letter-spacing: -.3px; }
.ls-op-hero h1 span { color: #0b5fd8; }
.ls-op-hero p { margin: 0 0 12px; color: #526477; font-size: 14px; line-height: 1.5; }

.ls-op-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.ls-op-toolbar h2 { margin: 0; padding-left: 10px; border-left: 4px solid #0b5fd8; color: #071D33; font-size: 18px; line-height: 1.2; font-weight: 800; }
.ls-op-sort { display: inline-flex; padding: 3px; background: #edf4ff; border-radius: 9px; }
.ls-op-sort a { padding: 6px 12px; border-radius: 7px; color: #4a5d7a; font-size: 12px; font-weight: 700; text-decoration: none; }
.ls-op-sort a.is-active { background: #fff; color: #071D33; box-shadow: 0 1px 3px rgba(7, 29, 51, .12); }
.ls-op-post-btn { margin-left: auto; }
.ls-op-post-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ls-op-list, .ls-op-replies { list-style: none; margin: 0; padding: 0; }
.ls-op-thread { margin: 0 0 12px; background: #fff; border: 1px solid #e1e9f4; border-radius: 12px; box-shadow: 0 1px 3px rgba(11, 42, 82, .05); overflow: hidden; }
.ls-op-replies { margin: 0 14px 14px 62px; border-left: 3px solid #d6e4fb; }
.ls-op-replies > li { margin: 0; }
.ls-op { display: flex; gap: 12px; padding: 14px 16px; scroll-margin-top: 90px; }
.ls-op.is-reply { padding: 10px 0 10px 14px; }
.ls-op:target { background: #fffbea; }
.ls-op.is-pending { background: #fffbea; }
.ls-op-avatar { position: relative; display: flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .3px; }
.ls-op.is-reply .ls-op-avatar { flex-basis: 30px; width: 30px; height: 30px; font-size: 11px; }
.ls-op-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ls-op-main { flex: 1; min-width: 0; }
.ls-op-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 4px; font-size: 12px; }
.ls-op-name { color: #071D33; font-size: 14px; font-weight: 800; }
.ls-op-badge { padding: 2px 7px; border-radius: 999px; background: #071D33; color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; }
.ls-op-to { color: #667085; }
.ls-op-to a { color: #0b5fd8; font-weight: 700; text-decoration: none; }
.ls-op-time { margin-left: auto; color: #667085; text-decoration: none; }
.ls-op-time:hover { color: #0b5fd8; }
.ls-op-pending { margin: 4px 0 6px; color: #8a4b00; font-size: 12px; font-weight: 600; }
.ls-op-text { color: #26384f; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.ls-op-text p { margin: 0 0 8px; }
.ls-op-text p:last-child { margin-bottom: 0; }
.ls-op-foot { margin-top: 8px; }
.ls-op-reply { display: inline-flex; align-items: center; gap: 5px; color: #0b5fd8; font-size: 12px; font-weight: 700; text-decoration: none; }
.ls-op-reply:hover { color: #071D33; }
.ls-op-reply svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.ls-op-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 6px; }
.ls-op-pages a, .ls-op-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid #c3d3ea; border-radius: 8px; background: #fff; color: #071D33; font-size: 13px; font-weight: 700; text-decoration: none; box-sizing: border-box; }
.ls-op-pages a:hover { border-color: #0b5fd8; color: #0b5fd8; }
.ls-op-pages .is-current { background: #071D33; border-color: #071D33; color: #fff; }
.ls-op-pages .is-gap { border: 0; background: none; min-width: 20px; padding: 0; }

.ls-op-empty { display: flex; gap: 14px; align-items: center; padding: 18px; background: #f6f9fe; border: 1px dashed #c3d3ea; border-radius: 12px; color: #4a5d7a; font-size: 14px; line-height: 1.5; }
.ls-op-empty .ls-ico { flex: 0 0 40px; width: 40px; height: 40px; }
.ls-op-empty p { margin: 0; }
.ls-op-empty strong { color: #071D33; }

/* Comment form (also when it moves under an opinion to reply). */
.ls-op-form { margin: 22px 0 0; }
.ls-op-form #respond { padding: 18px; background: #fff; border: 1px solid #e1e9f4; border-top: 4px solid #0b5fd8; border-radius: 12px; box-shadow: 0 8px 24px rgba(7, 29, 51, .06); }
.ls-op-list #respond { margin: 0 16px 16px 64px; padding: 14px 16px; background: #f6f9fe; border: 1px solid #d6e4fb; border-top: 3px solid #0b5fd8; border-radius: 10px; box-shadow: none; }
.ls-op-replies #respond { margin: 0 0 12px 14px; }
.ls-op-list .ls-op-form-title { font-size: 16px; }
.ls-op-list .ls-op-form-inner input[type="text"], .ls-op-list .ls-op-form-inner input[type="email"], .ls-op-list .ls-op-form-inner textarea { background: #fff; }
.ls-op-list .ls-op-form-inner textarea { min-height: 96px; }
/* The comment being answered: hide its own Reply link while the form is open under it. */
.ls-op:has(+ #respond) .ls-op-foot { display: none; }
.ls-op-form-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; color: #071D33; font-size: 18px; font-weight: 800; }
.ls-op-cancel a { color: #c62828; font-size: 12px; font-weight: 700; text-decoration: none; }
.ls-op-note, .ls-op-form .logged-in-as { margin: 0 0 12px; color: #667085; font-size: 12px; }
.ls-op-form .logged-in-as a { color: #0b5fd8; }
.ls-op-form-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.ls-op-form-inner > p { grid-column: 1 / -1; margin: 0 0 12px; }
.ls-op-form-inner > .comment-form-author, .ls-op-form-inner > .comment-form-email { grid-column: auto; }
.ls-op-form-inner label { display: block; margin: 0 0 5px; color: #071D33; font-size: 13px; font-weight: 700; }
.ls-op-form-inner .required { color: #c62828; }
.ls-op-form-inner input[type="text"], .ls-op-form-inner input[type="email"], .ls-op-form-inner input[type="url"], .ls-op-form-inner textarea { width: 100%; padding: 10px 12px; background: #f9fbff; border: 1px solid #c3d3ea; border-radius: 8px; color: #10233f; font-family: inherit; font-size: 14px; line-height: 1.5; box-sizing: border-box; }
.ls-op-form-inner textarea { min-height: 120px; resize: vertical; }
.ls-op-form-inner input:focus, .ls-op-form-inner textarea:focus { outline: none; background: #fff; border-color: #0b5fd8; box-shadow: 0 0 0 3px rgba(11, 95, 216, .15); }
.ls-op-form-inner .comment-form-url, .ls-op-form-inner #url, .ls-op-form-inner label[for="url"] { display: none; }
.ls-op-form-inner > input[type="text"], .ls-op-form-inner > input[type="email"] { margin: 0 0 12px; }
.ls-op-form-inner .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.ls-op-form-inner .comment-form-cookies-consent label { margin: 0; color: #4a5d7a; font-weight: 500; font-size: 12px; }
.ls-op-form-inner .form-submit { margin: 0; }
.ls-op-submit { border: 0; cursor: pointer; min-height: 44px; padding: 0 22px; font-size: 13px; }
.ls-op-closed { padding: 14px 16px; background: #f6f9fe; border: 1px solid #e1e9f4; border-radius: 12px; color: #4a5d7a; font-size: 14px; }

@media (max-width: 760px) {
    .ls-op-hero { flex-direction: column; align-items: stretch; padding: 14px; }
    .ls-op-hero-img { width: 100%; height: 140px; flex-basis: auto; }
    .ls-op-hero-img img { max-height: 120px; }
    .ls-op-post-btn { width: 100%; justify-content: center; margin-left: 0; }
    .ls-op { padding: 12px; gap: 10px; }
    .ls-op-replies { margin: 0 10px 12px 26px; }
    .ls-op-time { margin-left: 0; width: 100%; }
    .ls-op-form-inner { grid-template-columns: 1fr; }
    .ls-op-form #respond { padding: 14px; }
    .ls-op-list #respond { margin: 0 12px 12px; padding: 12px; }
    .ls-op-replies #respond { margin: 0 0 10px 6px; }
}

/* Buttons (same look as the device hero buttons, so this file works on its own). */
.ls-op-post-btn, .ls-op-submit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 8px; background: #071D33; color: #fff; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; }
.ls-op-post-btn:hover, .ls-op-submit:hover, .ls-op-post-btn:focus-visible, .ls-op-submit:focus-visible { background: #0b2a52; color: #fff; }
.ls-op-submit { min-height: 44px; padding: 0 22px; }

/* Section on review and news pages */
.ls-disc-wrap { margin: 32px 0 8px; padding-top: 24px; border-top: 1px solid #e1e9f4; }
.ls-disc .ls-op-toolbar h2 { font-size: 20px; }

/* Header link with count: "Opinions 12" / "Comments 3" */
.ls-disc-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border: 1px solid #c3d3ea; border-radius: 999px; background: #fff; color: #071D33; font-size: 12px; font-weight: 700; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.ls-disc-link .ls-ico { width: 16px; height: 16px; flex: 0 0 16px; }
.ls-disc-link b { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #edf4ff; color: #0b5fd8; font-size: 11px; font-weight: 800; text-align: center; }
.ls-disc-link:hover, .ls-disc-link:focus-visible { border-color: #0b5fd8; color: #0b5fd8; }
.ls-nhero .ls-disc-link { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; }
.ls-nhero .ls-disc-link b { background: rgba(255,255,255,.18); color: #fff; }
.ls-nhero .ls-disc-link:hover { border-color: #fff; color: #fff; }
