.shark-photo-editor {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto !important;
    box-sizing: border-box;
}

.shark-photo-editor *,
.shark-photo-editor *::before,
.shark-photo-editor *::after {
    box-sizing: border-box;
}

.shark-photo-file {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.shark-photo-stage {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 100%;
    overflow: hidden;
    border: 2px dashed #b8c0ca;
    border-radius: 10px;
    background: #f4f6f8;
}

.shark-photo-canvas {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.shark-photo-canvas:active {
    cursor: grabbing;
}

.shark-photo-editing .shark-photo-stage {
    border-style: solid;
    border-color: #4d5966;
    background: #111;
}

.shark-photo-editing .shark-photo-canvas {
    display: block;
}

.shark-photo-empty {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border: 0;
    padding: 20px;
    background: transparent;
    color: #3d4650;
    font: inherit;
    cursor: pointer;
}

.shark-photo-empty::before {
    content: "+";
    display: block;
    margin-bottom: 8px;
    font-size: 34px;
    line-height: 1;
}

.shark-photo-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.shark-photo-crop-controls {
    margin-top: 10px;
}

.shark-photo-crop-hint {
    margin-bottom: 6px;
    color: #4b5563;
    font-size: 13px;
    text-align: center;
}

.shark-photo-zoom-label {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    color: #303842;
    font-size: 13px;
}

.shark-photo-zoom {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
}

.shark-photo-button {
    flex: 1 1 100px;
    min-height: 38px;
    border: 1px solid #9ba5b1;
    border-radius: 5px;
    padding: 7px 12px;
    background: #fff;
    color: #20262d;
    font: inherit;
    cursor: pointer;
}

.shark-photo-remove {
    border-color: #bd2945;
    color: #bd2945;
}

.shark-photo-status {
    min-height: 20px;
    margin-top: 6px;
    color: #bd2945;
    font-size: 13px;
}

.shark-photo-editor > img {
    display: block;
    max-width: 100%;
    border-radius: 10px;
}

.shark-photo-error .shark-photo-stage {
    border-color: #bd2945;
}

