.qa-report [hidden] {
    display: none !important;
}

.qa-report__button {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 10030;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 15px 0 12px;
    border: 0;
    border-radius: 8px;
    background: #cf4d30;
    color: #fff;
    box-shadow: 0 12px 28px rgba(207, 77, 48, 0.28);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.qa-report__button:hover,
.qa-report__button:focus {
    background: #b83f25;
}

.qa-report__button.is-capturing {
    visibility: hidden;
}

.qa-report__button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 18px;
    line-height: 1;
}

.qa-report__button-text {
    line-height: 1;
    white-space: nowrap;
}

.qa-report__overlay {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(17, 24, 39, 0.58);
}

.qa-report__modal {
    position: relative;
    width: min(620px, calc(100vw - 48px));
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(17, 24, 39, 0.28);
    color: #2f3a43;
}

.qa-report__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f2f4f7;
    color: #475467;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 34px;
}

.qa-report__close:hover,
.qa-report__close:focus {
    background: #e6eaf0;
}

.qa-report__header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid #e7ebf0;
    background: #f7faf8;
}

.qa-report__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #1f7a54;
    font-size: 12px;
    font-weight: 800;
}

.qa-report__header h2 {
    margin: 0;
    color: #1f2933;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}

.qa-report__sheet-link {
    display: inline-flex;
    margin-top: 8px;
    color: #1f7a54;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.qa-report__sheet-link:hover,
.qa-report__sheet-link:focus {
    color: #12563a;
}

.qa-report__form {
    padding: 24px 32px 30px;
}

.qa-report__field {
    display: block;
    margin-bottom: 18px;
}

.qa-report__field > span {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.qa-report__field input[type="text"],
.qa-report__field textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #cfd7df;
    border-radius: 8px;
    background: #fff;
    color: #1f2933;
    font-size: 14px;
    line-height: 1.45;
    outline: none;
}

.qa-report__field input[type="text"] {
    height: 42px;
    padding: 0 12px;
}

.qa-report__field textarea {
    min-height: 150px;
    resize: vertical;
    padding: 12px;
}

.qa-report__type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.qa-report__type-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
    min-height: 34px;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid #d5dbe5;
    border-radius: 8px;
    background: #ffffff;
    color: #28354d;
    font-size: 13px;
    cursor: pointer;
}

.qa-report__type-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 1;
    display: none;
    box-sizing: border-box;
    width: min(320px, calc(100vw - 72px));
    padding: 12px 14px;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    background: #ffffff;
    color: #344054;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.18);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.65;
    pointer-events: none;
    white-space: normal;
}

.qa-report__type-tooltip strong {
    display: block;
    margin: 0 0 3px;
    color: #12563a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
}

.qa-report__type-tooltip span {
    display: block;
}

.qa-report__type-tooltip span + strong {
    margin-top: 10px;
}

.qa-report__type-option::before {
    position: absolute;
    left: 18px;
    bottom: calc(100% + 4px);
    z-index: 2;
    display: none;
    width: 12px;
    height: 12px;
    border-right: 1px solid #d7e0ea;
    border-bottom: 1px solid #d7e0ea;
    background: #ffffff;
    box-shadow: 4px 4px 10px rgba(17, 24, 39, 0.05);
    content: "";
    pointer-events: none;
    transform: rotate(45deg);
}

.qa-report__type-option:nth-child(even) .qa-report__type-tooltip {
    right: 0;
    left: auto;
}

.qa-report__type-option:nth-child(even)::before {
    right: 18px;
    left: auto;
}

.qa-report__type-option:hover .qa-report__type-tooltip,
.qa-report__type-option:focus-within .qa-report__type-tooltip,
.qa-report__type-option:hover::before,
.qa-report__type-option:focus-within::before {
    display: block;
}

.qa-report__type-option input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #1f7a54;
}

.qa-report__type-option:has(input:checked) {
    border-color: #1f7a54;
    background: #edf7f2;
    color: #12563a;
    font-weight: 700;
}

.qa-report__field input[type="text"]:focus,
.qa-report__field textarea:focus {
    border-color: #1f7a54;
    box-shadow: 0 0 0 3px rgba(31, 122, 84, 0.12);
}

.qa-report__file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
}

.qa-report__file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    height: 38px;
    border-radius: 8px;
    background: #344054;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.qa-report__file-button:hover,
.qa-report__file-button:focus-within {
    background: #1f2937;
}

.qa-report__file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.qa-report__file-name {
    min-width: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-all;
}

.qa-report__file-help {
    margin: 6px 0 0;
    color: #8a95a6;
    font-size: 12px;
    line-height: 1.5;
}

.qa-report__preview {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.qa-report__preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 10px;
}

.qa-report__preview-item {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.qa-report__preview-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f1f5f9;
}

.qa-report__preview-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
}

.qa-report__preview-name {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qa-report__preview-remove {
    flex: 0 0 auto;
    border: 0;
    border-radius: 6px;
    background: #eef2f6;
    color: #475467;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 8px;
}

.qa-report__preview-remove:hover,
.qa-report__preview-remove:focus {
    background: #fdecec;
    color: #b42318;
    outline: none;
}

.qa-report__capture-status {
    min-height: 18px;
    margin: 8px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

.qa-report__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 26px;
}

.qa-report__action {
    min-width: 94px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.qa-report__action--secondary {
    background: #eef2f6;
    color: #475467;
}

.qa-report__action--primary {
    background: #1f7a54;
    color: #fff;
}

.qa-report__action--primary:hover,
.qa-report__action--primary:focus {
    background: #176343;
}

.qa-report__action:disabled {
    cursor: default;
    opacity: 0.55;
}

.qa-report__submit-blocker {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.38);
    backdrop-filter: blur(3px);
    cursor: wait;
}

.qa-report__submit-loader {
    position: relative;
    box-sizing: border-box;
    width: 220px;
    min-height: 110px;
    text-align: center;
}

.qa-report__submit-loader .pre-loader-ring {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border: 6px solid rgba(68, 185, 142, 0.18);
    border-top-color: #20b985;
    border-radius: 50%;
    animation: qa-report-loader-spin .82s linear infinite;
}

.qa-report__submit-loader .pre-loader-image {
    position: absolute;
    top: 13px;
    left: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    transform: translateX(-50%);
    object-fit: contain;
}

.qa-report__submit-text {
    display: block;
    margin-top: 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

@keyframes qa-report-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .qa-report__button {
        right: 16px;
        bottom: 16px;
        height: 42px;
        padding-right: 12px;
    }

    .qa-report__overlay {
        align-items: flex-start;
        padding: 16px;
    }

    .qa-report__modal {
        width: 100%;
        max-height: calc(100vh - 32px);
    }

    .qa-report__header {
        padding: 24px 20px 18px;
    }

    .qa-report__form {
        padding: 20px;
    }

    .qa-report__type-options {
        grid-template-columns: 1fr;
    }

    .qa-report__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .qa-report__action {
        width: 100%;
        min-width: 0;
    }

    .qa-report__submit-loader {
        width: min(220px, calc(100vw - 48px));
    }
}
