/* ADARegistry - enlarge dog photo edit button */
#field_1_191 .filepond--action-edit-item {
    width: 2.75em !important;
    height: 2.75em !important;
}

#field_1_191 .filepond--action-edit-item-alt svg {
    width: 1.8em !important;
    height: 1.8em !important;
}

/* ADARegistry - center Close and Done below the photo */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child {
    position: fixed !important;
    left: calc(50% - 55px) !important;
    bottom: 95px !important;
    margin: 0 !important;
    z-index: 99999 !important;
}

.PinturaRoot .PinturaButtonExport {
    position: fixed !important;
    left: calc(50% + 10px) !important;
    bottom: 95px !important;
    margin: 0 !important;
    z-index: 99999 !important;
}

/* Replace Pintura Close X with Cancel text */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child svg {
    display: none !important;
}
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child::after {
    content: "Cancel";
    font-size: 14px;
    font-weight: 500;
}
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child {
    width: 68px !important;
}

/* Separate Cancel and Done buttons */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child {
    left: calc(50% - 115px) !important;
    width: 85px !important;
}

.PinturaRoot .PinturaButtonExport {
    left: calc(50% + 10px) !important;
}

/* Move Cancel and Done below the photo */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child,
.PinturaRoot .PinturaButtonExport {
    bottom: 40px !important;
}

/* Lower Cancel and Done to clear the photo */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child,
.PinturaRoot .PinturaButtonExport {
    bottom: 5px !important;
}

/* Final positioning: below photo, above rotation controls */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child,
.PinturaRoot .PinturaButtonExport {
    bottom: 105px !important;
}

/* Move Cancel and Done farther below the crop area */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child,
.PinturaRoot .PinturaButtonExport {
    bottom: 50px !important;
}

/* Hide Pintura rotation and zoom controls; retain Cancel and Done */
.PinturaRoot .PinturaTabList.PinturaControlList,
.PinturaRoot .PinturaTabPanels.PinturaControlPanels {
    display: none !important;
}

/* Make Cancel a clearly visible button beside Done */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child {
    background: #f2f2f2 !important;
    border: 1px solid #bdbdbd !important;
    border-radius: 24px !important;
    color: #222 !important;
    height: 42px !important;
    min-width: 85px !important;
    padding: 0 16px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.15) !important;
}
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child::after {
    color: #222 !important;
    content: "Cancel" !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Match Cancel button size to Done */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child {
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    font-size: 14px !important;
    border-radius: 24px !important;
}

/* Match Cancel visually to the Done button */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child {
    transform: scale(.62) !important;
    transform-origin: center center !important;
}

/* Improve Cancel text size while retaining compact button */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child::after {
    font-size: 27px !important;
    font-weight: 600 !important;
}

/* Match Cancel button and text to Done */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child {
    transform: none !important;
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
}
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child::after {
    font-size: 18px !important;
    font-weight: 500 !important;
}

/* Final match: Cancel and Done same visual size */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child {
    transform: scale(.62) !important;
    transform-origin: center center !important;
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
}
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child::after {
    font-size: 29px !important;
    font-weight: 500 !important;
}

/* Correct Cancel sizing */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child {
    transform: none !important;
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
}
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child::after {
    font-size: 16px !important;
    font-weight: 400 !important;
}

/* Force Cancel to match Done */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child {
    box-sizing: border-box !important;
    flex: 0 0 81px !important;
    width: 81px !important;
    min-width: 81px !important;
    max-width: 81px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 44px !important;
    transform: none !important;
}
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child::after {
    font-size: 14px !important;
    line-height: 44px !important;
    font-weight: 400 !important;
}

/* Remove Cancel button from the photo editor */
.PinturaRoot .PinturaNavGroup:first-child .PinturaNavSet > button:first-child {
    display: none !important;
}

/* White background behind uploaded Image Hopper photos */
.ginput_container_image_hopper .filepond--item-panel {
    background: #ffffff !important;
}
.ginput_container_image_hopper .filepond--panel-root {
    background: #ffffff !important;
}
