/**
 * @category  Softaware
 * @package   Softaware_ProductQa
 * @copyright Copyright © Softaware Commerce Ltd (https://softawarecommerce.com/)
 *
 * Luma styles. Hyvä uses Tailwind classes in its own templates and does not load this file.
 */
.sw-qa { --sw-qa-accent: #1979c3; --sw-qa-muted: #666; --sw-qa-line: #e3e3e3; }
.sw-qa__head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sw-qa__summary { margin: 0; color: var(--sw-qa-muted); }
.sw-qa__form, .sw-qa__answer-form { background: #f8f8f8; border: 1px solid var(--sw-qa-line); padding: 20px; margin: 0 0 24px; }
.sw-qa__form[hidden], .sw-qa__answer-form[hidden], .sw-qa [hidden] { display: none !important; }
.sw-qa__form .fieldset { margin: 0; }
.sw-qa__form .field, .sw-qa__answer-form .field { margin-bottom: 15px; }
.sw-qa__form .label, .sw-qa__answer-form .label { display: block; font-weight: 600; margin-bottom: 6px; }
.sw-qa__form .field.choice .label { display: inline; font-weight: 400; }
.sw-qa__row { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
.sw-qa__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sw-qa__moderation-note { color: var(--sw-qa-muted); font-size: 1.3rem; }
.sw-qa__form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sw-qa__message { margin-top: 15px; padding: 10px 14px; }
.sw-qa__message--success { background: #e5efe5; color: #006400; }
.sw-qa__message--error { background: #fae5e5; color: #e02b27; }
.sw-qa__guest-note { margin-bottom: 0; }
.sw-qa__tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.sw-qa__search { flex: 1 1 240px; }
.sw-qa__filter select, .sw-qa__sort select { min-width: 160px; }
.sw-qa__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sw-qa__list { list-style: none; margin: 0; padding: 0; }
.sw-qa__item { border-top: 1px solid var(--sw-qa-line); padding: 20px 0; margin: 0; }
.sw-qa__item:first-child { border-top: 0; }
.sw-qa__q, .sw-qa__a { display: flex; gap: 12px; }
.sw-qa__a { margin-top: 14px; }
.sw-qa__body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sw-qa__badge { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--sw-qa-accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.sw-qa__badge--answer { background: #fff; color: #333; border: 1px solid #ccc; }
.sw-qa__a--store .sw-qa__badge--answer { background: #333; color: #fff; border-color: #333; }
.sw-qa__question { font-weight: 600; margin: 3px 0 0; }
.sw-qa__answer { margin: 3px 0 0; }
.sw-qa__answer p { margin: 0 0 6px; }
.sw-qa__meta { color: var(--sw-qa-muted); font-size: 1.2rem; margin: 4px 0 0; }
.sw-qa__tag { display: inline-block; margin-left: 6px; padding: 0 6px; background: #f0f0f0; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.sw-qa__unanswered { color: var(--sw-qa-muted); font-style: italic; margin: 10px 0 0 40px; }
.sw-qa__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 12px 0 0 40px; }
.sw-qa .sw-qa__vote { background: #fff; border: 1px solid #ccc; border-radius: 3px; color: #333; font-size: 1.3rem; font-weight: 400; padding: 4px 12px; line-height: 1.4; box-shadow: none; }
.sw-qa .sw-qa__vote:hover { border-color: var(--sw-qa-accent); background: #fff; }
.sw-qa .sw-qa__vote--small { font-size: 1.2rem; padding: 1px 8px; margin-left: 8px; }
.sw-qa .sw-qa__vote--done, .sw-qa .sw-qa__vote:disabled { opacity: .6; cursor: default; }
.sw-qa .sw-qa__link { background: none; border: 0; padding: 0; color: var(--sw-qa-accent); text-decoration: underline; font-weight: 400; box-shadow: none; }
.sw-qa .sw-qa__link:hover { background: none; border: 0; color: #006bb4; }
.sw-qa__answer-form { margin: 14px 0 0 40px; }
.sw-qa__empty { color: var(--sw-qa-muted); padding: 10px 0; }
.sw-qa__more-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 10px; }
.sw-qa__count { margin: 0; color: var(--sw-qa-muted); font-size: 1.3rem; }
.sw-qa__note { text-align: center; color: var(--sw-qa-muted); font-size: 1.3rem; }

/* listing badge */
.sw-qa-badge { margin: 4px 0 8px; font-size: 1.2rem; }
.sw-qa-badge__link { color: #666; text-decoration: underline; }

/* widget */
.sw-qa-latest__list { list-style: none; padding: 0; margin: 0; }
.sw-qa-latest__item { border-bottom: 1px solid #e3e3e3; padding: 12px 0; margin: 0; }
.sw-qa-latest__product { font-weight: 600; }
.sw-qa-latest__question { margin: 6px 0 0; }
.sw-qa-latest__answer p { display: inline; margin: 0; }

/* my account */
.sw-qa-account__list { list-style: none; padding: 0; margin: 0; }
.sw-qa-account__item { border: 1px solid #e3e3e3; padding: 18px 20px; margin-bottom: 16px; }
.sw-qa-account__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sw-qa-account__product { font-weight: 600; }
.sw-qa-account__status { font-size: 1.2rem; font-weight: 600; padding: 2px 8px; background: #fdf0d5; color: #6f4400; }
.sw-qa-account__status--1 { background: #e5efe5; color: #006400; }
.sw-qa-account__status--2 { background: #eee; color: #555; }

@media (min-width: 768px) {
    .sw-qa__row { grid-template-columns: 1fr 1fr; }
}
.sw-qa__row > .field.required > .label:after { content: '*'; color: #e02b27; font-size: 1.2rem; margin: 0 0 0 5px; }
