@import "https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap";

:is(.polygraphy-detail, .polygraphy-review-dialog) [data-polygraphy-review-area] {
    min-width: 0;
}

:is(.polygraphy-detail, .polygraphy-review-dialog) [data-polygraphy-review-content] {
    max-width: 100%;
    margin-top: 24px;
}

:is(.polygraphy-detail, .polygraphy-review-dialog) [data-polygraphy-review-form] .of_row {
    margin-bottom: 20px;
}

:is(.polygraphy-detail, .polygraphy-review-dialog) [data-polygraphy-review-form] label {
    display: block;
}

:is(.polygraphy-detail, .polygraphy-review-dialog) [data-polygraphy-review-form] label > span {
    display: block;
    margin-bottom: 8px;
}

:is(.polygraphy-detail, .polygraphy-review-dialog) [data-polygraphy-review-form] input:not([type="hidden"]),
:is(.polygraphy-detail, .polygraphy-review-dialog) [data-polygraphy-review-form] textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

:is(.polygraphy-detail, .polygraphy-review-dialog) .polygraphy-review-error,
:is(.polygraphy-detail, .polygraphy-review-dialog) #polygraphy-review-summary {
    color: #c4000c;
    overflow-wrap: anywhere;
}

:is(.polygraphy-detail, .polygraphy-review-dialog) [data-polygraphy-review-form] [aria-invalid="true"] {
    border-color: #c4000c;
}

:is(.polygraphy-detail, .polygraphy-review-dialog) [data-polygraphy-review-area] :focus-visible {
    outline: 2px solid #c4000c;
    outline-offset: 3px;
}

:is(.polygraphy-detail, .polygraphy-review-dialog) [data-polygraphy-review-area] [hidden] {
    display: none !important;
}

:is(.polygraphy-detail, .polygraphy-review-dialog) [data-polygraphy-review-form] [disabled] {
    opacity: .65;
    cursor: wait;
}


.polygraphy-review-dialog[hidden],
.polygraphy-review-dialog [hidden] {
    display: none !important;
}

.polygraphy-review-dialog {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.polygraphy-review-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 50%);
}

.polygraphy-review-panel {
    position: absolute;
    top: 100px;
    right: 0;
    bottom: 0;
    width: 505px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgb(235 238 240);
}

.polygraphy-review-panel h2 {
    margin: 0;
    padding-right: 40px;
    font-family: Onest, sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 36px;
    color: #0a1015;
}

.polygraphy-review-close {
    position: absolute;
    z-index: 1;
    top: 32px;
    right: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0;
    cursor: pointer;
}

.polygraphy-review-close::before,
.polygraphy-review-close::after {
    position: absolute;
    content: "";
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #000;
    transform: rotate(45deg);
}

.polygraphy-review-close::after {
    transform: rotate(-45deg);
}

.polygraphy-review-dialog [data-polygraphy-review-content] {
    margin-top: 48px;
}

.polygraphy-review-dialog [data-polygraphy-review-form] .of_row {
    margin-bottom: 24px;
}

.polygraphy-review-dialog [data-polygraphy-review-form] p {
    font-weight: 300;
    font-size: 13px;
    line-height: 18px;
    color: #1e2832;
    margin: 0 0 24px;
}

.polygraphy-review-dialog [data-polygraphy-review-form] .btn {
    background: #c4000c;
    color: #fff;
    width: 230px;
    max-width: 100%;
    height: 60px;
    border: none;
    font-family: Onest, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    transition: all .3s ease;
    border-radius: 0;
    appearance: none;
}

.polygraphy-review-dialog [data-polygraphy-review-form] .btn:hover {
    background: #e6000f;
}

.polygraphy-review-dialog :focus-visible {
    outline: 2px solid #c4000c;
    outline-offset: 3px;
}

@media (width <= 505px) {
    .polygraphy-review-panel {
        top: 50px;
        width: 100%;
        padding: 32px 17px;
    }

    .polygraphy-review-close {
        right: 17px;
    }
}
