.swv-password-toggle .elementor-form .swv-pt__field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
}

.swv-password-toggle .swv-pt__field > .elementor-field-label {
    grid-column: 1 / -1;
    grid-row: 1;
}

.swv-password-toggle .elementor-form .swv-pt__input {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline-end: 56px;
}

.swv-password-toggle .elementor-form .swv-pt__button {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: center;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #475569;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    touch-action: manipulation;
}

.swv-password-toggle .elementor-form .swv-pt__button:hover {
    background: transparent;
    color: #991b1b;
}

.swv-password-toggle .elementor-form .swv-pt__button:focus-visible {
    outline: 2px solid #991b1b;
    outline-offset: -3px;
}

.swv-password-toggle .swv-pt__button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.swv-password-toggle .swv-pt__button[data-swv-pt-visible="false"] .swv-pt__icon--hide,
.swv-password-toggle .swv-pt__button[data-swv-pt-visible="true"] .swv-pt__icon--show {
    display: none;
}

.swv-password-toggle .swv-pt__field > .elementor-message {
    grid-column: 1 / -1;
}

/* Hide the native Edge eye only after the custom control has been installed. */
.swv-password-toggle .swv-pt__input::-ms-reveal {
    display: none;
}

@media (forced-colors: active) {
    .swv-password-toggle .elementor-form .swv-pt__button {
        color: ButtonText;
    }
}
