/** Fotoğraf Aksiyon Sistemi Anayasası. */
html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo :is([hidden], .ccrm-ui-photo__placeholder[hidden], .ccrm-ui-photo__image[hidden], .ccrm-ui-photo__button[hidden]) {
    display: none;
}

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo {
    position: relative;
    display: inline-flex;
    width: 108px;
    flex: 0 0 108px;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__preview {
    display: flex;
    width: 108px;
    height: 108px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--ccrm-border);
    border-radius: 8px;
    background: var(--ccrm-surface);
    color: var(--ccrm-muted);
}

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo--fit-contain .ccrm-ui-photo__preview img { object-fit: contain; }
html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__placeholder { display: inline-flex; align-items: center; justify-content: center; }

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__actions {
    display: grid;
    width: 108px;
    grid-template-columns: 58px 50px;
    gap: 0;
}

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__actions.is-single,
html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__actions.is-single-action { grid-template-columns: 108px; }

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__button {
    appearance: none;
    display: inline-flex;
    height: var(--ccrm-photo-action-height);
    min-height: var(--ccrm-photo-action-height);
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 5px;
    border: 1px solid #bfdbfe;
    border-radius: 0;
    background: var(--ccrm-surface);
    color: var(--ccrm-primary);
    box-shadow: none;
    font-size: 9.5px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__button--edit { border-radius: 6px 0 0 6px; }
html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__button--remove {
    margin-left: -1px;
    border-color: #fecaca;
    border-radius: 0 6px 6px 0;
    color: var(--ccrm-danger);
}

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__actions.is-single .ccrm-ui-photo__button--edit,
html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__actions.is-single-action .ccrm-ui-photo__button--edit { border-radius: 6px; }

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__button--edit:hover,
html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__button--edit:focus-visible { background: var(--ccrm-primary); color: #fff; }

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__button--remove:hover,
html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__button--remove:focus-visible {
    border-color: var(--ccrm-danger-hover);
    background: var(--ccrm-danger-hover);
    color: #fff;
}

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo__input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}


html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo-column {
    display: flex;
    width: 108px;
    min-width: 108px;
    flex: 0 0 108px;
    align-self: start;
    align-items: flex-start;
    justify-content: flex-start;
}

html body.ccrm-app.ccrm-ui-v4 .ccrm-ui-photo-column > .ccrm-ui-photo {
    margin: 0;
}
