.cstm-page {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    background: #fff;
    margin-bottom: 40px;
}

.cstm-page, 
.cstm-page * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cstm-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #E9528E;
    text-align: center;
    margin-top: 40px;
}

#cstm-search-box {
    font-size: 0.875rem;
    padding: 13px;
    border: none;
    border-radius: 25px;
    background-color: #F5F5F5;
    width: 100%;
    color: #535353;
    margin-top: 40px;
}

.cstm-sort {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #AAAAAC;
}

.cstm-sort-radio-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.cstm-sort-radio-group input[type="radio"] {
    display: none;
}

.cstm-sort-radio-group .radio-label {
    border: 1px solid #AAAAAC;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    color: #AAAAAC;
    display: inline-block;
    text-align: center;
}

.cstm-sort-radio-group input[type="radio"]:checked + .radio-label {
    background-color: #7D40A0;
    color: #ffffff;
}

#cstm-therapist-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow: auto;
    flex-direction: column;
    align-items: center;
}

.cstm-card {
    border-radius: 10px;
    border: 1px solid #AAAAAC;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin-bottom: 40px;
    position: relative;
}

.cstm-top {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    border-bottom: solid 1px #AAAAAC;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.cstm-top-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
    overflow: hidden;
}

.cstm-avatar {
    min-width: 80px;
    max-width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cstm-avatar img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cstm-name {
    font-size: 1rem;
    font-weight: bold;
    color: #535353;
    white-space: nowrap;
    overflow: hidden;
}

.cstm-email {
    font-size: 0.875rem;
    color: #535353;
    white-space: nowrap;
    overflow: hidden;
}

.cstm-user-id {
    font-size: 0.75rem;
    color: #535353;
}

.cstm-store-id {
    font-size: 0.75rem;
    color: #535353;
}

.cstm-last-login {
    font-size: 0.875rem;
    color: #535353;
}

.cstm-bottom {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}


.cstm-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.875rem;
    color: #7D40A0;
    min-width: 68px
}

.cstm-btn img {    
    height: 30px;
    width: auto;
}

.cstm-badge {
    background: #7D40A0;
    color: #fff;
    font-size: 0.875rem;
    position: absolute;
    text-align: center;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    font-weight: 100;
}

.cstm-error-message {
    text-align: center;
    font-size: 1rem;
    color: #AAAAAC;
    margin: 20px 0;
}

.cstm-register-therapist-button {
    position: fixed;
    bottom: 6.5rem;
    right: 1.25rem;
    padding: 4px 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    z-index: 100;
    border-radius: 50%;
    background-color: #E9528E;
    border: none;
}

@media screen and (min-width: 1024px) {
    .cstm-register-therapist-button {
        right: calc(13.0208333333% + 1.25rem);
    }
}

.cstm-register-therapist-button img {
    width: 24px;
    height: 24px;
}

.cstm-delete-btn {
    background: #AAAAAC;
    color: #fff;
    font-size: 0.875rem;
    text-align: center;
    width: 60px;
    height: 25px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-left: auto;
    margin-right: 0;
}


/* -------------------------------------------------------------------------------- */

.cstm-invite-page {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    background: #fff;
}

.cstm-invite-page, 
.cstm-invite-page * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cstm-invite-form-section {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.cstm-invite-form-section label {
    font-size: 1rem;
    color: #535353;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#cstm-invite-form-name,
#cstm-invite-form-email {
    border: none;
    background-color: #F5F5F5;
    color: #535353;
    width: 100%;
    resize: none;
    border-radius: 1.5625rem;
    margin-top: 0.3125rem;
    padding: 0.75rem;
}

.cstm-invite-form-counter {
    color: #AAAAAC;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    bottom: 0.3125rem;
    font-size: 0.875rem;
    right: 0.625rem;    
}

#cstm-invite-submit {
    display: flex;
    position: relative;
    background-color: #E9528E;
    color: white;
    text-decoration: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 1.875rem;
    font-size: 1rem;
    gap: 0.1875rem;
    padding: 0.75rem 1.25rem;
    width: 18.625rem;
    margin: 0 auto;
    margin-top: 40px;
}

#cstm-invite-submit.is-disabled {
    background-color: #AAAAAC;
    color: #fff;
    cursor: not-allowed;
    pointer-events: none;
    transition: none;
}

#cstm-invite-submit::before {
    position: absolute;
    display: block;
    content: "";
    top: 50%;
    height: 0.625rem;
    right: 1.625rem;
    width: 0.625rem;
    border-bottom: 1px solid #fff;
    border-left: 1px solid #fff;
    -webkit-transform: translatey(-50%) rotate(-135deg);
    transform: translatey(-50%) rotate(-135deg);
}

.cstm-invite-store {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-top: 20px;
}

.cstm-invite-store-avatar-wrap {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
}

.cstm-invite-store-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cstm-invite-store-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.cstm-invite-store-label {
    font-size: 0.875rem;
    color: #AAAAAC;
}

.cstm-invite-store-name {
    font-size: 1rem;
    color: #535353;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cstm-invite-status {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 0.375rem;
    padding: 0.75rem 1rem;
    margin-top: 20px;
    background: #FAFAFA;
    border-radius: 0.875rem;
    border: 1px solid #EFEFEF;
}

.cstm-status-item {
    font-size: 0.875rem;
    color: #535353;
    word-break: break-word;
}

.cstm-invite-status-invalid {
    color: #AAAAAC;
    text-align: center;
}


/* -------------------------------------------------------------------------------- */

.cstm-invite-success-page {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    background: #fff;
}

.cstm-invite-success-page-message {
    margin-top: 20px;
    font-size: 1rem;
    text-align: center;
    color: #535353;
}

.cstm-invite-success-desc {
    margin-top: 20px;
    color: #535353;
    text-align: center;
    font-size: 1rem;
}

.cstm-invite-success-tips {
    margin-top: 40px;
    background: #F9F9F9;
    border-radius: 10px;
    padding: 1rem;
    color: #535353;
}

.cstm-invite-success-tips-title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #535353;
}

.cstm-invite-success-tips ul {
    margin: 0;
    padding-left: 1.2rem;
}

.cstm-invite-success-tips li {
    line-height: 1.8;
    font-size: 0.825rem;
}


.cstm-invite-success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.cstm-invite-success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #E9528E;
    color: #fff;
    text-decoration: none;
    border-radius: 1.875rem;
    padding: 0.65rem 1.25rem;
    min-width: 10rem;
    font-size: 0.95rem;
}

.cstm-invite-success-btn.is-secondary {
    background: #F0F0F0;
    color: #535353;
}
