.rtn-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rtn-field__label {
    color: var(--rtn-input-label);
    font-family: var(--rtn-font-body);
    font-size: var(--rtn-input-font-size);
    line-height: var(--rtn-input-line-height);
}

.rtn-field__help {
    margin: 0 var(--rtn-input-padding-x);
    color: var(--rtn-input-help);
    font-family: var(--rtn-font-body);
    font-size: 0.75rem;
    line-height: 1rem;
}

.rtn-field__help--error {
    color: var(--rtn-red-info-text);
}

.rtn-input-shell {
    box-sizing: border-box;
    height: var(--rtn-input-height);
    min-height: var(--rtn-input-height);
    max-height: var(--rtn-input-height);
    display: flex;
    align-items: center;
    gap: var(--rtn-input-gap);
    padding: var(--rtn-input-padding-y) var(--rtn-input-padding-x);
    border: 0;
    border-radius: var(--rtn-input-radius);
    background: var(--rtn-input-bg);
    color: var(--rtn-input-text);
    transition: background-color var(--rtn-dur-fast) var(--rtn-ease), box-shadow var(--rtn-dur-fast) var(--rtn-ease);
}

.rtn-input-shell:focus-within,
.rtn-input-shell--focused {
    box-shadow: var(--rtn-input-focus-ring);
}

.rtn-input-shell--error {
    box-shadow: 0 0 0 1px var(--rtn-input-border-error);
}

.rtn-input-shell--disabled {
    background: var(--rtn-input-bg-disabled);
    color: var(--rtn-fg-3);
    cursor: not-allowed;
    opacity: 0.65;
}

.rtn-input {
    min-width: 0;
    width: 100%;
    min-height: 20px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font-family: var(--rtn-font-body);
    font-size: var(--rtn-input-font-size);
    line-height: var(--rtn-input-line-height);
}

.rtn-input::placeholder {
    color: var(--rtn-input-placeholder);
    opacity: 1;
}

.rtn-input--example::placeholder {
    color: var(--rtn-input-example);
}

.rtn-input:disabled {
    color: inherit;
    cursor: not-allowed;
}

.rtn-input__value {
    min-width: 0;
    width: 100%;
    color: var(--rtn-input-readonly);
    font-family: var(--rtn-font-body);
    font-size: var(--rtn-input-font-size);
    line-height: var(--rtn-input-line-height);
}

select.rtn-input,
input[type="file"].rtn-input {
    cursor: pointer;
}

input[type="file"].rtn-input::file-selector-button {
    margin-right: 8px;
    padding: 4px 8px;
    border: 0;
    border-radius: var(--rtn-radius-xs);
    background: var(--rtn-neutral-0);
    color: var(--rtn-blue-info-text);
    font: inherit;
    cursor: pointer;
}

.rtn-input__prefix,
.rtn-input__suffix {
    flex: none;
    color: inherit;
    font-family: var(--rtn-font-body);
    font-size: var(--rtn-input-font-size);
    line-height: var(--rtn-input-line-height);
}

.rtn-input__action {
    flex: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--rtn-radius-xs);
    background: transparent;
    color: var(--rtn-fg-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rtn-input__action i,
.rtn-input__action svg,
.rtn-input__action img {
    width: 20px;
    height: 20px;
    color: var(--rtn-fg-3);
    font-size: 16px;
    line-height: 20px;
}

.rtn-input__action:focus-visible {
    outline: 0;
    box-shadow: var(--rtn-input-focus-ring);
}

.rtn-choice-field {
    box-sizing: border-box;
    height: var(--rtn-input-height);
    min-height: var(--rtn-input-height);
    max-height: var(--rtn-input-height);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: var(--rtn-input-padding-y) var(--rtn-input-padding-x);
    border: 0;
    border-radius: var(--rtn-input-radius);
    background: var(--rtn-input-bg);
    color: var(--rtn-input-text);
    font-family: var(--rtn-font-body);
    font-size: var(--rtn-input-font-size);
    line-height: var(--rtn-input-line-height);
}

.rtn-choice-field--stacked {
    height: auto;
    max-height: none;
    align-items: stretch;
    flex-direction: column;
}

.rtn-choice-field--error {
    box-shadow: 0 0 0 1px var(--rtn-input-border-error);
}

.rtn-choice-field__label {
    color: var(--rtn-input-placeholder);
}

.rtn-choice-field__options {
    display: flex;
    align-items: center;
    gap: 32px;
}

.rtn-choice-field--stacked .rtn-choice-field__options {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
}

.rtn-choice-field__option {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rtn-input-text);
    cursor: pointer;
}

.rtn-choice-field--stacked .rtn-choice-field__option {
    min-height: 44px;
    justify-content: space-between;
    padding: 8px 0;
}

.rtn-choice-field__input {
    appearance: none;
    width: var(--rtn-choice-size);
    height: var(--rtn-choice-size);
    margin: 0;
    border: var(--rtn-choice-border);
    border-radius: var(--rtn-radius-pill);
    background: var(--rtn-neutral-0);
    display: grid;
    place-content: center;
    cursor: pointer;
}

.rtn-choice-field__input::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: var(--rtn-radius-pill);
    background: var(--rtn-blue-primary);
    transform: scale(0);
    transition: transform var(--rtn-dur-fast) var(--rtn-ease);
}

.rtn-choice-field__input:checked::before {
    transform: scale(1);
}

.rtn-choice-field__input:focus-visible {
    outline: 0;
    box-shadow: var(--rtn-input-focus-ring);
}

.rtn-choice-field__input:disabled,
.rtn-choice-field__option--disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

@media (max-width: 360px) {
    .rtn-choice-field:not(.rtn-choice-field--stacked) {
        align-items: flex-start;
        flex-direction: column;
    }

    .rtn-choice-field:not(.rtn-choice-field--stacked) .rtn-choice-field__options {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }
}
