.photo-editor-source {
    display: block;
    width: 100%;
    height: auto;
}

.photo-editor-canvas {
    display: none;
    width: 100%;
    height: auto;
    background: #eef1f3;
}

.photo-editor {
    margin: 16px 0 20px;
    padding: 16px;
    color: #263238;
    background: #fff;
    border: 1px solid #dde3e6;
    border-radius: 8px;
}

.photo-editor__heading,
.photo-editor__advanced-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.photo-editor__heading h4 {
    margin: 0 0 3px;
    font-size: 18px;
    font-weight: 600;
}

.photo-editor__heading p {
    margin: 0;
    color: #758087;
    font-size: 13px;
}

.photo-editor__badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    color: #708087;
    background: #f2f5f6;
    border-radius: 999px;
    font-size: 12px;
}

.photo-editor__presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.photo-editor__presets--with-original {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-preset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 7px 9px;
    color: #45545b;
    background: #fff;
    border: 1px solid #d6dde0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.photo-preset:hover,
.photo-preset:focus {
    color: #e47100;
    border-color: #e47100;
    outline: none;
}

.photo-preset:focus {
    box-shadow: 0 0 0 3px rgba(228, 113, 0, .18);
}

.photo-preset.is-active {
    color: #e47100;
    background: #fff8f0;
    border-color: #e47100;
    box-shadow: inset 0 0 0 1px #e47100;
}

.photo-editor__note {
    margin: 10px 0 0;
    color: #758087;
    font-size: 13px;
}

.photo-editor__advanced {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #edf0f2;
}

.photo-editor__advanced-title strong {
    font-size: 15px;
}

.photo-editor__total {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 7px;
    color: #e47100;
    background: #fff4e8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.photo-editor__reset {
    padding: 2px 0;
    color: #6e7b81;
    background: transparent;
    border: 0;
    font-size: 13px;
}

.photo-editor__reset:hover,
.photo-editor__reset:focus {
    color: #e47100;
    text-decoration: underline;
    outline: none;
}

.photo-editor__controls {
    padding: 8px 11px 11px;
}

.photo-editor__group {
    margin-top: 10px;
    overflow: hidden;
    background: #fafbfb;
    border: 1px solid #e5e9eb;
    border-radius: 6px;
}

.photo-editor__group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    padding: 8px 11px;
    cursor: pointer;
    color: #3e4b51;
    font-size: 14px;
    font-weight: 600;
    list-style: none;
    user-select: none;
}

.photo-editor__group summary::-webkit-details-marker {
    display: none;
}

.photo-editor__group summary::after {
    content: '\e114';
    margin-left: auto;
    color: #849096;
    font-family: 'Glyphicons Halflings';
    font-size: 10px;
    transition: transform .18s ease;
}

.photo-editor__group[open] summary::after {
    transform: rotate(180deg);
}

.photo-editor__group[open] summary {
    background: #fff;
    border-bottom: 1px solid #e8ecee;
}

.photo-editor__count {
    min-width: 22px;
    margin-left: 7px;
    padding: 2px 6px;
    color: #7c878c;
    background: #edf1f2;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.photo-editor__group summary::after {
    order: 3;
}

.photo-editor__count {
    order: 2;
}

.photo-editor__group summary > span:first-child {
    margin-right: auto;
}

.photo-control {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    margin: 2px 0;
    font-size: 14px;
    font-weight: 400;
}

.photo-control input[type="range"] {
    width: 100%;
    margin: 0;
    accent-color: #e47100;
}

.photo-control input[type="range"]:focus {
    outline: 2px solid rgba(228, 113, 0, .28);
    outline-offset: 2px;
}

.photo-control output {
    color: #768187;
    font-size: 13px;
    text-align: right;
}

.photo-editor__status {
    margin: 9px 0 0;
    color: #7a858a;
    font-size: 12px;
    text-align: right;
}

.photo-module {
    margin-top: 10px;
    padding: 11px;
    background: #fff;
    border: 1px solid #e3e8ea;
    border-radius: 6px;
}

.photo-module__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    color: #3f4c52;
    font-size: 14px;
    font-weight: 600;
}

.photo-module__reset {
    padding: 1px 0;
    color: #899398;
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 400;
}

.photo-module__reset:hover,
.photo-module__reset:focus {
    color: #e47100;
    outline: none;
    text-decoration: underline;
}

.photo-color-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.photo-color-tab {
    min-height: 30px;
    padding: 5px 7px;
    color: #667278;
    background: #f5f7f8;
    border: 1px solid #e2e7e9;
    border-radius: 5px;
    font-size: 12px;
}

.photo-color-tab {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 3px;
    padding-left: 3px;
}

.photo-color-tab:hover,
.photo-color-tab:focus,
.photo-color-tab.is-active {
    color: #e47100;
    background: #fff8f0;
    border-color: #e47100;
    outline: none;
}

.photo-color-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border-radius: 50%;
}

.photo-color-dot--red { background: #e95454; }
.photo-color-dot--orange { background: #ee8a42; }
.photo-color-dot--yellow { background: #e2bc35; }
.photo-color-dot--green { background: #57a86d; }
.photo-color-dot--aqua { background: #40aeb2; }
.photo-color-dot--blue { background: #4b7fcb; }

@media (max-width: 480px) {
    .photo-editor {
        padding: 14px 12px;
    }

    .photo-editor__heading p {
        display: none;
    }

    .photo-preset {
        min-height: 40px;
    }

    .photo-control {
        grid-template-columns: 62px minmax(0, 1fr) 34px;
        gap: 6px;
    }

    .photo-color-tab {
        font-size: 0;
    }

    .photo-color-dot {
        width: 14px;
        height: 14px;
        margin-right: 0;
    }
}
