@charset "utf-8";
/*
Site Name:
File Name: medpassWallet.css
Description: CSS
Created: 2026/3/9
*/
.medpassWalletArea {
    width: 100%;
}

button.walletLoginBtn,
body#passwordAuthentication button.walletLoginBtn,
body#passwordAuthentication button#medpassWalletLoginButton.walletLoginBtn {
    width: 372px;
    height: 56px;
    border: none;
    border-radius: 6px;
    background-color: var(--green);
    color: #fff;
    cursor: pointer;
    font-family: "Noto Sans JP", "Inter", sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.44px;
    text-shadow: none;
    box-shadow: none;
    background-image: none !important;
}

button.walletLoginBtn:hover,
button.walletLoginBtn.ui-state-hover {
    background-color: var(--green-hover);
}

button.walletLoginBtn:disabled,
body#passwordAuthentication button.walletLoginBtn:disabled {
    cursor: default;
    opacity: 0.65;
}

button.walletLoginBtn .ui-button-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 0;
    line-height: normal;
    box-sizing: border-box;
}

button.walletLoginBtn .ui-button-text::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 37px;
    flex: 0 0 auto;
    background-image: url("/resources/images/ssi/medpasswallet-logo.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

body#passwordAuthentication button#medpassWalletLoginButton.walletLoginBtn:hover,
body#passwordAuthentication button#medpassWalletLoginButton.walletLoginBtn.ui-state-hover {
    background-color: #5bc28e;
}

.medpassWalletDialog.ui-dialog {
    width: 760px !important;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px) !important;
    position: fixed !important;
    top: 24px !important;
    right: auto !important;
    left: 50% !important;
    margin: 0 !important;
    transform: translateX(-50%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    font-family: "Noto Sans JP", "Inter", sans-serif;
    overflow: hidden;
}

.medpassWalletDialog .ui-dialog-content {
    height: auto !important;
    max-height: calc(100vh - 48px) !important;
    padding: 0;
    border: none;
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: auto;
}

.medpassWalletModal {
    color: #1f2937;
    background: #fff;
}

.medpassWalletModalHeader {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 24px 28px 16px;
    border-bottom: 1px solid #d9e2e7;
    background: #fff;
}

.medpassWalletModalTitle {
    margin: 0;
    padding: 0 48px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

button.medpassWalletCloseBtn {
    position: absolute;
    top: 18px;
    right: 28px;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: none;
    border-radius: 50%;
    background: #eef3f5 !important;
    background-image: none !important;
    color: #405461;
    cursor: pointer;
    text-shadow: none;
    outline: none;
    box-shadow: none !important;
}

button.medpassWalletCloseBtn::before {
    content: "\00d7";
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 40px;
    text-align: center;
}

button.medpassWalletCloseBtn:hover,
button.medpassWalletCloseBtn.ui-state-hover,
button.medpassWalletCloseBtn:focus,
button.medpassWalletCloseBtn.ui-state-focus {
    background: #dde8ed !important;
    background-image: none !important;
    border: none !important;
    color: #243846;
    outline: none !important;
    box-shadow: none !important;
}

button.medpassWalletCloseBtn .ui-button-text,
button.medpassWalletCloseBtn .ui-icon {
    display: none !important;
}

.medpassWalletQrSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 28px 10px;
}

.medpassWalletQrFrame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 300px;
    border: 1px solid #cfd8dc;
    background: #fff;
}

.medpassWalletQrImage {
    display: block;
    width: 300px;
    height: 300px;
}

.medpassWalletQrEmpty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.medpassWalletQrEmptyIcon {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background:
        linear-gradient(#b8c4cc, #b8c4cc) 10px 10px / 10px 10px no-repeat,
        linear-gradient(#b8c4cc, #b8c4cc) 24px 10px / 10px 10px no-repeat,
        linear-gradient(#b8c4cc, #b8c4cc) 10px 24px / 10px 10px no-repeat,
        linear-gradient(#b8c4cc, #b8c4cc) 24px 24px / 10px 10px no-repeat,
        #f4f7f8;
}

body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button {
    min-width: 240px;
    height: 56px;
    border: none;
    border-radius: 6px;
    background: var(--green);
    background-image: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.44px;
    outline: none;
    text-shadow: none;
    box-shadow: none;
}

body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button:hover,
body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button.ui-state-hover,
body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button:focus,
body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button.ui-state-focus {
    background: var(--green-hover);
    background-image: none;
    color: #fff;
    outline: none;
    box-shadow: none;
}

body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button .ui-button-text {
    padding: 0 24px;
    color: #fff;
    line-height: 56px;
    text-shadow: none;
}

body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button:hover .ui-button-text,
body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button.ui-state-hover .ui-button-text,
body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button:focus .ui-button-text,
body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button.ui-state-focus .ui-button-text {
    color: #fff;
    text-shadow: none;
}

body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button:disabled,
body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button.ui-state-disabled {
    background: #b8c4cc;
    background-image: none;
    cursor: default;
    opacity: 1;
}

body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button:disabled .ui-button-text,
body .medpassWalletDialog.ui-dialog button.medpassWalletRefreshBtn.ui-button.ui-state-disabled .ui-button-text {
    color: #fff;
    text-shadow: none;
}

.medpassWalletMessage {
    display: block;
    max-width: 720px;
    margin: 12px auto 0;
    padding: 0 28px;
    color: #c2410c;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    white-space: pre-line;
}

.medpassWalletNotice {
    display: block;
    width: calc(100% - 72px);
    max-width: 680px;
    margin: 18px auto 0;
    padding: 14px 18px;
    border: 1px solid #b7e3cf;
    border-radius: 6px;
    background: #f1fbf6;
    color: #1f2937;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
}

.medpassWalletNotice p {
    margin: 0 0 6px;
}

.medpassWalletNotice p:last-child,
.medpassWalletNotice ul:last-child {
    margin-bottom: 0;
}

.medpassWalletNotice ul {
    margin: 0 0 6px;
    padding-left: 20px;
}

.medpassWalletNotice a {
    color: #1889c5;
    text-decoration: none;
}

.medpassWalletNotice a:hover {
    text-decoration: underline;
}

.medpassWalletGuide {
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 28px 18px;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}

.medpassWalletGuide p {
    margin: 0 0 8px;
}

.medpassWalletGuide ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.medpassWalletGuide li {
    margin: 2px 0 0;
    padding: 0;
}

.medpassWalletSteps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 18px 28px 28px;
    border-top: 1px solid #d9e2e7;
}

.medpassWalletStep {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: flex-start;
}

.medpassWalletStep h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.4;
}

.medpassWalletStep p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
}

.medpassWalletStepIcon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--green);
    background-position: center;
    background-repeat: no-repeat;
}

.medpassWalletStepIconApp {
    background-image: url("/resources/images/ssi/medpasswallet-logo.png");
    background-size: 40px 37px;
}

.medpassWalletStepIconQr::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    margin: 14px;
    background:
        linear-gradient(#fff, #fff) left top / 10px 10px no-repeat,
        linear-gradient(#fff, #fff) right top / 10px 10px no-repeat,
        linear-gradient(#fff, #fff) left bottom / 10px 10px no-repeat,
        linear-gradient(#fff, #fff) right bottom / 10px 10px no-repeat,
        linear-gradient(#fff, #fff) center / 8px 8px no-repeat;
}

@media screen and (max-width: 640px) {
    button.walletLoginBtn,
    body#passwordAuthentication button.walletLoginBtn,
    body#passwordAuthentication button#medpassWalletLoginButton.walletLoginBtn {
        width: 100%;
        padding-right: 16px;
        font-size: 16px;
    }

    .medpassWalletSteps {
        grid-template-columns: 1fr;
    }

    .medpassWalletMessage,
    .medpassWalletNotice,
    .medpassWalletGuide {
        width: calc(100% - 40px);
        max-width: none;
        padding-right: 20px;
        padding-left: 20px;
    }
}
