.itvdesk-passkey-login {
    margin: 0 0 14px;
}

.itvdesk-passkey-login-button {
    align-items: center;
    background: #fff;
    border: 1px solid #b8c9da;
    border-radius: 5px;
    color: #17324d;
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    min-height: 44px;
    padding: 9px 14px;
    width: 100%;
}

.itvdesk-passkey-login-button:hover,
.itvdesk-passkey-login-button:focus {
    border-color: #1686ad;
    box-shadow: 0 0 0 3px rgba(22, 134, 173, .12);
    outline: 0;
}

.itvdesk-passkey-login-button:disabled {
    cursor: wait;
    opacity: .65;
}

.itvdesk-passkey-login-message,
.itvdesk-passkey-message {
    color: #2d5870;
    font-size: 14px;
    margin-top: 9px;
    min-height: 20px;
}

/* Do not reserve empty space below passkey controls. Status text appears only
   while WebAuthn is waiting, succeeds, or needs to show an actionable error. */
.itvdesk-passkey-login-message:empty,
.itvdesk-passkey-message:empty {
    display: none;
}

.itvdesk-passkey-login-message.is-error,
.itvdesk-passkey-message.is-error {
    color: #a53535;
}

.itvdesk-passkey-login-message.is-success,
.itvdesk-passkey-message.is-success {
    color: #27754f;
}

.itvdesk-passkey-manage {
    color: #1f2d3d;
    margin: 0 auto;
    max-width: 1080px;
    padding: 24px 18px 40px;
}

.itvdesk-passkey-header {
    align-items: center;
    background: #f5f8fc;
    border: 1px solid #dce6f0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 28px 30px;
}

.itvdesk-passkey-header span {
    color: #1686ad;
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.itvdesk-passkey-header h1 {
    font-size: 34px;
    margin: 5px 0 8px;
}

.itvdesk-passkey-header p,
.itvdesk-passkey-panel p {
    color: #53667a;
    margin: 0;
}

.itvdesk-passkey-back {
    align-items: center;
    border: 1px solid #b9c9da;
    color: #24415e;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 700;
    gap: 8px;
    min-height: 44px;
    padding: 9px 16px;
}

.itvdesk-passkey-panel {
    border: 1px solid #dce6f0;
    margin-bottom: 22px;
    padding: 26px 28px;
}

.itvdesk-passkey-panel-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.itvdesk-passkey-panel h2 {
    font-size: 24px;
    margin: 0 0 7px;
}

.itvdesk-passkey-count {
    background: #edf6f9;
    border: 1px solid #cce2ea;
    color: #246078;
    flex: 0 0 auto;
    font-weight: 700;
    padding: 6px 10px;
}

.itvdesk-passkey-list {
    border-top: 1px solid #e1e9f1;
}

.itvdesk-passkey-item {
    align-items: center;
    border-bottom: 1px solid #e1e9f1;
    display: grid;
    gap: 15px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: 17px 0;
}

.itvdesk-passkey-item-icon {
    align-items: center;
    background: #edf6f9;
    color: #167aa1;
    display: flex;
    font-size: 20px;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.itvdesk-passkey-item-copy strong,
.itvdesk-passkey-item-copy span {
    display: block;
}

.itvdesk-passkey-item-copy span {
    color: #647588;
    font-size: 14px;
    margin-top: 4px;
}

.itvdesk-passkey-remove {
    background: #fff;
    border: 1px solid #d3a7a7;
    color: #9c3838;
    cursor: pointer;
    font-weight: 700;
    min-height: 38px;
    padding: 7px 13px;
}

.itvdesk-passkey-empty {
    background: #f8fafc;
    border: 1px dashed #cbd7e3;
    color: #53667a;
    padding: 18px;
}

.itvdesk-passkey-add-row {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) auto;
    margin-top: 20px;
}

.itvdesk-passkey-add-row label {
    font-weight: 700;
    grid-column: 1 / -1;
}

.itvdesk-passkey-add-row input {
    border: 1px solid #bdcad8;
    box-sizing: border-box;
    font-size: 16px;
    min-height: 44px;
    padding: 9px 12px;
    width: 100%;
}

.itvdesk-passkey-add-row button {
    min-height: 44px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .itvdesk-passkey-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding: 22px;
    }

    .itvdesk-passkey-header h1 {
        font-size: 29px;
    }

    .itvdesk-passkey-panel {
        padding: 22px 18px;
    }

    .itvdesk-passkey-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .itvdesk-passkey-item form {
        grid-column: 2;
    }

    .itvdesk-passkey-add-row {
        grid-template-columns: 1fr;
    }
}
