.pwcc-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.pwcc-wrap input[type="password"],
.pwcc-wrap input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    order: 2;
    padding-right: 40px;
}

.pwcc-btn {
    order: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin: 0;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1;
    color: #fff;
    background: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 3px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    text-decoration: none;
    white-space: nowrap;
}

.pwcc-btn:hover,
.pwcc-btn:focus {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.pwcc-btn.pwcc-ok {
    background: #46b450;
    border-color: #46b450;
}

.pwcc-btn.pwcc-fail,
.pwcc-btn.pwcc-empty {
    background: #dc3232;
    border-color: #dc3232;
}

.pwcc-label {
    pointer-events: none;
    user-select: none;
}

/* Absolutely-positioned copy button for .wp-pwd pages (admin profile,
   user-new, etc.) — sits on the far left so it never collides with the
   hide-toggle / clear "X" buttons WordPress puts on the right. */
.pwcc-btn--left {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 20;
    order: unset;
    flex-shrink: 0;
    min-height: 40px;
}

.wp-pwd .pwcc-wrap {
    padding-left: 62px;
}

.wp-pwd .pwcc-wrap input[type="password"],
.wp-pwd .pwcc-wrap input[type="text"] {
    padding-right: 5rem;
}

@media (max-width: 782px) {
    .pwcc-wrap {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }

    .pwcc-wrap input[type="password"],
    .pwcc-wrap input[type="text"] {
        font-size: 16px;
    }

    .pwcc-btn {
        min-height: 44px;
        padding: 0 12px;
        font-size: 13px;
        border-radius: 4px;
    }

    .pwcc-btn:active {
        transform: scale(.96);
    }

    .pwcc-btn--left {
        left: 0;
        top: 0;
        z-index: 20;
        min-height: 44px;
    }

    .wp-pwd .pwcc-wrap {
        padding-left: 62px;
        padding-right: 5rem;
    }

    .wp-pwd .pwcc-wrap input[type="password"],
    .wp-pwd .pwcc-wrap input[type="text"] {
        padding-right: 0;
    }

    #profile-page .pwcc-btn--left {
        left: 0;
        top: 0;
        z-index: 20;
    }
}
