.ppr-photo-upload {
    margin-top: 20px;
}

.ppr-photo-upload__help {
    margin: 6px 0 12px;
    color: #766f69;
    font-size: 13px;
    line-height: 1.5;
}

.ppr-photo-upload__input {
    display: block;
    width: 100%;
    max-width: 100%;
    font: inherit;
    font-size: 13px;
}

.ppr-photo-upload__input::file-selector-button,
.ppr-photo-upload__clear {
    margin-right: 10px;
    padding: 9px 14px;
    border: 1px solid #ddd7cf;
    border-radius: 8px;
    background: #fff;
    color: #5a3121;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.ppr-photo-upload__previews,
.ppr-review-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.ppr-photo-upload__preview {
    position: relative;
    width: 88px;
    height: 66px;
}

.ppr-photo-upload__preview img,
.ppr-review-photos__link img {
    display: block;
    width: 88px;
    height: 66px;
    border-radius: 8px;
    object-fit: cover;
}

.ppr-review-photos__link {
    display: block;
    flex: 0 0 auto;
}

.ppr-photo-upload__remove {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    border: 1px solid #ddd7cf;
    border-radius: 50%;
    background: #fff;
    color: #5a3121;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.ppr-photo-upload__error {
    margin: 8px 0;
    color: #b42318;
    font-size: 13px;
}

.ppr-photo-upload [hidden] {
    display: none !important;
}

.ppr-photo-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.ppr-photo-filters .ppr-photo-filters__link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid #ddd7cf;
    border-radius: 20px;
    background: #fff;
    color: #292421;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}

.ppr-photo-filters .ppr-photo-filters__link.is-active {
    border-color: #5a3121;
    background: #f5f1ed;
    color: #5a3121;
}

.ppr-photo-filters__link:focus-visible,
.ppr-review-photos__link:focus-visible,
.ppr-photo-upload__remove:focus-visible {
    outline: 2px solid #5a3121;
    outline-offset: 3px;
}
