.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: #c5a983;
    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: #C5A983;
    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-last-login {
    font-size: 0.875rem;
    color: #535353;
}

.cstm-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: center;
    justify-items: center;
}


.cstm-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.875rem;
    color: #C5A983;
    min-width: 68px
}

.cstm-btn img {    
    height: 30px;
    width: auto;
}

.cstm-badge {
    background: #C5A983;
    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: #c5a983;
    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-section-note {
    font-size: 0.825rem;
    color: #c5a983;
}

#cstm-invite-form-name,
#cstm-invite-form-email,
#cstm-invite-form-realname,
#cstm-invite-form-furigana,
#cstm-invite-form-address,
#cstm-invite-form-phone,
#cstm-invite-form-birthdate,
#cstm-invite-form-height,
#cstm-invite-form-weight,
#cstm-invite-form-blood-type,
#cstm-invite-form-x-username,
#cstm-invite-form-x-password,
#cstm-invite-form-line-email,
#cstm-invite-form-line-password,
#cstm-invite-form-experience-months
 {
    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: #c5a983;
    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;
    margin-bottom: 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-form-radio {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.cstm-invite-form-radio label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 1.5625rem;
  background: #F5F5F5;
  color: #535353;
  border: 1px solid #EFEFEF;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  user-select: none;
}

.cstm-invite-form-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid #AAAAAC;
  border-radius: 50%;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cstm-invite-form-radio input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0.5rem; height: 0.5rem;
  background: #c5a983;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .15s ease;
}

.cstm-invite-form-radio input[type="radio"]:checked {
  border-color: #c5a983;
}
.cstm-invite-form-radio input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}


.cstm-invite-form-radio label:has(input[type="radio"]:checked) {
  background: #FFE6F0;
  color: #c5a983;
  border-color: #c5a983;
}


/* -------------------------------------------------------------------------------- */

.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: #c5a983;
    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;
}
