.ofacf-multi-select {
    min-width: 0;
}
.ofacf-multi-select-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}
.ofacf-multi-select-actions .button,
.ofacf-proposal-row .button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--orange, #fe532e);
    border-radius: 5px;
    background: #fff;
    color: #222;
    font: inherit;
    cursor: pointer;
}
.ofacf-multi-select-actions .button:hover,
.ofacf-proposal-row .button:hover {
    background: var(--orange, #fe532e);
    color: #fff;
}
.ofacf-multi-select-actions .button:disabled,
.ofacf-proposal-row .button:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.ofacf-proposals {
    margin-top: 14px;
}
.ofacf-proposals > strong {
    display: block;
    margin-bottom: 8px;
}
.ofacf-proposal-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ofacf-proposal-row input {
    flex: 1 1 auto;
    min-width: 0;
}
.ofacf-random-error,
.ofacf-upload-help {
    display: block;
    margin-block: 8px;
}
.ofacf-random-error {
    color: #b32d2e;
}
.ofacf-upload-input {
    display: block;
    max-width: 100%;
    margin-block: 8px;
}
.ofacf-uploaded-choice {
    border-color: var(--orange, #fe532e);
}
.ofacf-uploaded-choice img {
    max-width: 100%;
    height: auto;
}
.ofacf-form .ofacf-proposal-row input {
    box-sizing: border-box;
}
.ofacf-choice-list--stacked {
    flex-direction: column;
    align-items: stretch;
}
.ofacf-choice-list--stacked > label {
    width: fit-content;
    max-width: 100%;
}
.ofacf-choice-list > .ofacf-choice-group {
    flex: 0 0 100%;
    min-width: 0;
}
.ofacf-choice-group {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 12px;
}
.ofacf-choice-group > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-weight: 700;
}
.ofacf-choice-group-count {
    font-size: .9em;
    font-weight: 400;
}
.ofacf-choice-group-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 10px;
}
.ofacf-choice-list--stacked .ofacf-choice-group-options {
    flex-direction: column;
    align-items: flex-start;
}
.ofacf-image-choice-group {
    width: 100%;
    box-sizing: border-box;
}
.ofacf-image-choice-list--stacked {
    flex-direction: column;
    align-items: flex-start;
}
.ofacf-image-choice-list--stacked .ofacf-image-choice-option {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.ofacf-quantity-limit-help {
    margin-block: 8px;
}
.ofacf-upload-control {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 8px;
    cursor: pointer;
}
.ofacf-upload-button {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--orange, #fe532e);
    border-radius: 5px;
    background: #fff;
    color: #222;
}
.ofacf-upload-control input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}
.ofacf-upload-control:focus-within .ofacf-upload-button {
    outline: 2px solid var(--orange, #fe532e);
    outline-offset: 2px;
}
.ofacf-upload-file-list {
    overflow-wrap: anywhere;
}
@media (max-width: 480px) {
    .ofacf-proposal-row {
        align-items: stretch;
    }
    .ofacf-proposal-row .button {
        flex: 0 0 auto;
    }
}
