.sr-profile-edit,
.sr-profile-edit * {
    box-sizing: border-box;
}

.sr-profile-edit [hidden] {
    display: none !important;
}

.sr-profile-edit {
    --sr-profile-bg: #f4f6ff;
    --sr-profile-text: #050710;
    --sr-profile-muted: #4f5b84;
    --sr-profile-border: #dfe3ea;
    --sr-profile-border-strong: #d5dbe5;
    --sr-profile-primary: #4148f5;
    --sr-profile-primary-hover: #2f38e8;
    --sr-profile-success: #137333;
    --sr-profile-danger: #b42318;
    --sr-profile-danger-bg: #fff1f0;
    --sr-profile-nav-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    --sr-profile-nav-width: calc(100% - 2rem);

    position: relative;
    left: 50%;
    min-height: 100dvh;
    width: 100vw;
    margin-top: -1rem;
    margin-left: -50vw;
    color: var(--sr-profile-text);
    background: var(--sr-profile-bg);
    font-family: inherit;
}

.sr-profile-edit::after {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    height: calc(6.4rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(223, 227, 234, 0.9);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 30px rgba(5, 7, 16, 0.08);
    content: "";
}

.sr-profile-edit__body {
    width: min(100%, 30.25rem);
    margin: 1.05rem auto 0;
    padding: 3.05rem 1.38rem 8.9rem;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background: #ffffff;
    box-shadow: 0 -1px 0 rgba(5, 7, 16, 0.02);
}

.sr-profile-edit__panel,
.sr-profile-edit__form {
    display: grid;
    gap: 1.15rem;
}

.sr-profile-edit__form {
    position: relative;
}

.sr-profile-edit__notice {
    border-radius: 1rem;
    background: #ffffff;
}

.sr-profile-edit__notice {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
    color: var(--sr-profile-muted);
    line-height: 1.4;
}

.sr-profile-edit__notice p {
    margin: 0;
}

.sr-profile-edit__panel.is-loading .sr-profile-edit__notice {
    min-height: 10rem;
    align-items: center;
    justify-content: center;
}

.sr-profile-edit__panel.is-loading .sr-profile-edit__notice > * {
    display: none;
}

.sr-profile-edit__panel.is-loading .sr-profile-edit__notice::before {
    display: block;
    width: 4.75rem;
    height: 4.75rem;
    background: transparent url("../img/logo-feira-2.svg") center / contain no-repeat;
    content: "";
    animation: sr-profile-spin 900ms linear infinite;
}

.sr-profile-edit__heading {
    display: flex;
    gap: 0.62rem;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 0;
    color: var(--sr-profile-primary);
}

.sr-profile-edit__heading h2 {
    margin: 0;
    color: inherit;
    font-family: inherit;
    font-size: 1.36rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
}

.sr-profile-edit__heading-icon {
    display: inline-flex;
    width: 1.72rem;
    height: 1.72rem;
    color: inherit;
}

.sr-profile-edit__heading-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.sr-profile-edit__section {
    display: grid;
    gap: 1.28rem;
}

.sr-profile-edit__section:first-of-type {
    gap: 0.60rem;
}

.sr-profile-edit__section--contact {
    padding-top: 1.42rem;
    border-top: 1px solid #e5e9f0;
}

.sr-profile-edit__section-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.sr-profile-edit__section-title {
    margin: 0;
    color: var(--sr-profile-text);
    font-family: inherit;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.sr-profile-edit__logo-field {
    display: grid;
    gap: 0.56rem;
}

.sr-profile-edit__logo-picker {
    position: relative;
    display: inline-grid;
    width: 7.55rem;
    cursor: pointer;
}

.sr-profile-edit__logo-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.sr-profile-edit__logo-preview {
    display: grid;
    place-items: center;
    width: 7.55rem;
    height: 7.55rem;
    overflow: hidden;
    border: 1px solid var(--sr-profile-border);
    border-radius: 999px;
    color: var(--sr-profile-muted);
    background: #fbfcff;
    box-shadow: inset 0 0 0 1px rgba(5, 7, 16, 0.02);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sr-profile-edit__logo-picker:hover .sr-profile-edit__logo-preview,
.sr-profile-edit__logo-picker:focus-within .sr-profile-edit__logo-preview {
    border-color: var(--sr-profile-primary);
    box-shadow: 0 0 0 3px rgba(64, 80, 245, 0.14);
}

.sr-profile-edit__logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sr-profile-edit__objectives {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 2.35rem;
    padding: 0.58rem 0.82rem;
    border: 1px solid rgba(64, 72, 245, 0.18);
    border-radius: 999px;
    color: var(--sr-profile-primary);
    background: rgba(64, 72, 245, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sr-profile-edit__objectives::after {
    display: inline-block;
    width: 0.42rem;
    height: 0.42rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.sr-profile-edit__objectives:hover,
.sr-profile-edit__objectives:focus {
    border-color: var(--sr-profile-primary);
    color: var(--sr-profile-primary-hover);
    background: rgba(64, 72, 245, 0.12);
    box-shadow: 0 5px 14px rgba(64, 72, 245, 0.12);
    transform: translateY(-1px);
}

.sr-profile-edit__objectives:focus-visible {
    outline: 3px solid rgba(64, 80, 245, 0.22);
    outline-offset: 3px;
}

.sr-profile-edit__objectives.is-loading {
    cursor: wait;
    opacity: 0.82;
    pointer-events: none;
}

.sr-profile-edit__objectives.is-loading::before {
    display: inline-block;
    flex: 0 0 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
    background: transparent url("../img/logo-feira-2.svg") center / contain no-repeat;
    content: "";
    animation: sr-profile-spin 900ms linear infinite;
}

.sr-profile-edit__objectives.is-loading::after {
    display: none;
}

.sr-profile-edit__field {
    display: grid;
}

.sr-profile-edit__label {
    display: block;
    margin: 0;
    color: var(--sr-profile-text);
    font-size: 0.78rem;
    font-weight: 400 !important;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sr-profile-edit .sr-profile-edit__field > .sr-profile-edit__label,
.sr-profile-edit .sr-profile-edit__logo-label {
    font-weight: 400 !important;
}

.sr-profile-edit__input {
    display: block;
    width: 100%;
    min-height: 2.9rem;
    padding: 0.74rem 0.95rem;
    border: 1px solid var(--sr-profile-border-strong);
    border-radius: 0.62rem;
    outline: none;
    background: #fbfcff;
    color: var(--sr-profile-text);
    font: inherit;
    font-size: 1rem;
    line-height: 1.2;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sr-profile-edit__input::placeholder {
    color: #52608e;
    opacity: 1;
}

.sr-profile-edit__input:focus {
    border-color: var(--sr-profile-primary);
    box-shadow: 0 0 0 3px rgba(64, 80, 245, 0.16);
}

.sr-profile-edit__actions {
    position: fixed;
    right: 50%;
    bottom: var(--sr-profile-nav-bottom);
    z-index: 21;
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    width: var(--sr-profile-nav-width);
    transform: translateX(50%);
}

.sr-profile-edit__actions.has-back-button {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sr-profile-edit__primary,
.sr-profile-edit__secondary {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--sr-profile-primary);
    border-radius: 5px;
    background: var(--sr-profile-primary);
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    line-height: 1.1;
    text-align: center;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.sr-profile-edit__primary {
    border-color: var(--sr-profile-primary);
    color: #ffffff;
    background: var(--sr-profile-primary);
}

.sr-profile-edit__secondary {
    gap: 0.45rem;
    border-color: #000000 !important;
    color: #000000 !important;
    background: transparent !important;
    background-color: transparent !important;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

.sr-profile-edit__primary:hover,
.sr-profile-edit__primary:focus {
    background: var(--sr-profile-primary-hover);
}

.sr-profile-edit__secondary:hover,
.sr-profile-edit__secondary:focus {
    border-color: #000000 !important;
    color: #000000 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.sr-profile-edit__primary:focus-visible,
.sr-profile-edit__secondary:focus-visible {
    outline: 3px solid rgba(64, 80, 245, 0.22);
    outline-offset: 3px;
}

.sr-profile-edit__form.is-loading .sr-profile-edit__primary {
    cursor: wait;
    opacity: 0.82;
    pointer-events: none;
}

.sr-profile-edit__primary.is-loading::before {
    display: inline-block;
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    border: 0;
    border-radius: 0;
    background: transparent url("../img/logo-feira-2.svg") center / contain no-repeat;
    content: "";
    animation: sr-profile-spin 900ms linear infinite;
}

.sr-profile-edit__form.is-loading .sr-profile-edit__secondary,
.sr-profile-edit__form.is-loading .sr-profile-edit__input,
.sr-profile-edit__form.is-loading .sr-profile-edit__logo-picker,
.sr-profile-edit__form.is-loading .sr-profile-edit__objectives {
    pointer-events: none;
}

.sr-profile-edit__form.is-loading::before {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 1rem;
    background: rgba(244, 246, 255, 0.92);
    content: "";
    animation: sr-profile-loading-surface 180ms ease-out 120ms both;
}

.sr-profile-edit__form.is-loading::after {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 19;
    width: 4.75rem;
    height: 4.75rem;
    background: transparent url("../img/logo-feira-2.svg") center / contain no-repeat;
    content: "";
    transform: translate(-50%, -50%);
    animation: sr-profile-content-spin 900ms linear infinite;
}

.sr-profile-edit__status {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(19, 115, 51, 0.18);
    border-radius: 0.75rem;
    color: var(--sr-profile-success);
    background: #effaf3;
    font-size: 0.94rem;
    line-height: 1.35;
}

.sr-profile-edit__status.is-error {
    border-color: rgba(180, 35, 24, 0.18);
    color: var(--sr-profile-danger);
    background: var(--sr-profile-danger-bg);
}

@media (min-width: 431px) {
    .sr-profile-edit {
        --sr-profile-nav-width: min(28.25rem, calc(100% - 2rem));
    }

    .sr-profile-edit__body {
        padding-inline: 1.55rem;
    }
}

@media (max-width: 360px) {
    .sr-profile-edit__section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .sr-profile-edit__objectives {
        width: 100%;
    }
}


@keyframes sr-profile-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes sr-profile-content-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes sr-profile-loading-surface {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sr-profile-edit__primary.is-loading::before,
    .sr-profile-edit__objectives.is-loading::before,
    .sr-profile-edit__panel.is-loading .sr-profile-edit__notice::before,
    .sr-profile-edit__form.is-loading::after {
        animation-duration: 1600ms;
    }

    .sr-profile-edit__form.is-loading::before {
        animation: none;
    }
}
