/* ------------------------------------------------------------------------------------------------------------------ */
/* LINE通知 */

.cls-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;
    padding-inline: 1.25rem;
}

.cls-page,
.cls-page * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cls-page-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #E9528E;
    text-align: center;
    margin-top: 40px;
}

.cls-line-connect {
    padding: 10px 0px;
    font-size: 0.875rem;
    text-align: center;
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    width: 100%;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: normal;
    word-wrap: break-word;
    background-color: #06c755;
    margin: 10px auto;
}

.cls-line-disconnect {
    padding: 10px 0px;
    font-size: 0.875rem;
    text-align: center;
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    width: 100%;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: normal;
    word-wrap: break-word;
    background-color: #808080;
    margin: 10px auto;
}


.cls-line-header {
    text-align: center;
}

.cls-line-title {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}

.cls-line-lead {
    font-size: 0.875rem;
    color: #333;
    margin-top: 10px;
}

.cls-line-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 20px 0;
}

.cls-line-benefit {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 16px;
    width: 100%;
    max-width: 280px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    text-align: center;
    color: #333;
}

.cls-line-label {
    background-color: #06c755;
    color: #fff;
    border-radius: 999px;
    display: inline-block;
    font-size: 13px;
    padding: 4px 10px;
    margin-bottom: 10px;
}

.cls-line-benefit strong {
    display: block;
    margin-top: 6px;
    color: #06c755;
    font-weight: bold;
    font-size: 1.1em;
}

.cls-line-note {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
}

.cls-toggle-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.cls-toggle-item {
    display: flex;
    flex-direction: column;
}

.cls-toggle-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.cls-toggle-description {
    font-size: 0.875rem;
    margin: 0 0 5px 0;
    color: #555;
}

.cls-toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.cls-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cls-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.cls-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cls-toggle-switch input:checked + .cls-toggle-slider {
    background-color: #4caf50;
}

.cls-toggle-switch input:checked + .cls-toggle-slider:before {
    transform: translateX(22px);
}


/* ------------------------------------------------------------------------------------------------------------------ */
/* プッシュ通知 */

.cls-push-notification-toggle-section {
    display: flex;
    flex-direction: row;
    margin-top: 40px;
    align-items: center;
    justify-content: space-evenly;
}

.cls-section-title {
    color: #535353;
    font-size: 1rem;
    width: 100px;
}

.cls-push-notification-switch {
    position: relative;
    display: inline-block;
    width: 85px;
    height: 34px;
}

.cls-push-notification-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cls-push-notification-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #AAAAAC;
    transition: 0.4s;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.cls-push-notification-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    border-radius: 50px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

.cls-push-notification-text-on,
.cls-push-notification-text-off {
    position: absolute;
    font-size: 0.875rem;
    color: white;
    transition: 0.4s;
}

.cls-push-notification-text-off {
    left: 33px;
    opacity: 1;
}

.cls-push-notification-text-on {
    right: 35px;
    opacity: 0;
}

.cls-push-notification-switch input:checked + .cls-push-notification-slider {
    background-color: #7D40A0;
}

.cls-push-notification-switch input:checked + .cls-push-notification-slider:before {
    transform: translateX(50px); 
}

.cls-push-notification-switch input:checked + .cls-push-notification-slider .cls-push-notification-text-on {
    opacity: 1;
}

.cls-push-notification-switch input:checked + .cls-push-notification-slider .cls-push-notification-text-off {
    opacity: 0;
}

.cls-section-message {
    text-align: center;
    font-size: 0.875rem;
    color: #E9528E;
    display: none;
    margin-top: 10px;
}

#cls-install-btn {
    font-size: 0.875rem;
    color: #fff;
    background: #E9528E;
    height: 30px;
    width: 150px;
    margin: 0 auto;
    border-radius: 30px;
    display: none;
    margin-top: 10px;
}

.cls-install-message {
    text-align: center;
    font-size: 0.875rem;
    color: #E9528E;
    display: none;
    margin-top: 10px;
}


/* ------------------------------------------------------------------------------------------------------------------ */
/* LINE通知 */

.cls-line-notification-toggle-section {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    align-items: center;
    justify-content: space-evenly;
    border-bottom: 1px solid #7D40A0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.cls-line-notification-toggle-section-for-store {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    border-bottom: 1px solid #7D40A0;
    margin-bottom: 1.25rem;
    margin-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.cls-line-notification-toggle-section-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}



.cls-line-notification-switch {
    position: relative;
    display: inline-block;
    width: 85px;
    height: 34px;
}

.cls-line-notification-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cls-line-notification-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #AAAAAC;
    transition: 0.4s;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.cls-line-notification-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    border-radius: 50px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

.cls-line-notification-text-on,
.cls-line-notification-text-off {
    position: absolute;
    font-size: 0.875rem;
    color: white;
    transition: 0.4s;
}

.cls-line-notification-text-off {
    left: 33px;
    opacity: 1;
}

.cls-line-notification-text-on {
    right: 35px;
    opacity: 0;
}

.cls-line-notification-switch input:checked + .cls-line-notification-slider {
    background-color: #7D40A0;
}

.cls-line-notification-switch input:checked + .cls-line-notification-slider:before {
    transform: translateX(50px); 
}

.cls-line-notification-switch input:checked + .cls-line-notification-slider .cls-line-notification-text-on {
    opacity: 1;
}

.cls-line-notification-switch input:checked + .cls-line-notification-slider .cls-line-notification-text-off {
    opacity: 0;
}

.cls-add-friend-btn {
    background: #06c755;
    color: #fff;
    border-radius: 100px;
    width: 140px;
    height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 auto;
    display: block;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    gap: 5px;
}

.cls-add-friend-btn img {
    width: 35px;
    height: auto;
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* LINE通知 */

.cls-line-sub-section {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #AAAAAC;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.cls-sub-section-title {
    font-size: 1rem;
    color: #7D40A0;
}

.cls-sub-section-description {
    font-size: 0.875rem;
    color: #535353;
    margin-top: 10px;
}

.cls-line-sub-section-togle-content {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cls-line-sub-section-togle-content-title {
    color: #535353;
    font-size: 1rem;
    width: 100px;
}

.cls-sub-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 27px;
}

.cls-sub-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cls-sub-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #AAAAAC;
    transition: 0.4s;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.cls-sub-switch-slider:before {
    position: absolute;
    content: "";
    height: 21px;
    width: 21px;
    border-radius: 50px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
}

.cls-sub-switch input:checked + .cls-sub-switch-slider {
    background-color: #7D40A0;
}

.cls-sub-switch input:checked + .cls-sub-switch-slider:before {
    transform: translateX(30px);
}

/* ------------------------------------------------------------------------------------------------------------------ */
/* 店舗用 LINEアカウント追加ボタン */

#cls-store-add-line-account-btn {
    font-size: 0.875rem;
    color: #06c755;
    background-color: #ffffff;
    border: 1px solid #06c755;
    border-radius: 999px;
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
}

#cls-store-add-line-account-btn::before {
    content: "＋";
    font-size: 0.875rem;
    line-height: 1;
}


/* ------------------------------------------------------------------------------------------------------------------ */
/* LINEアカウント一覧 */

.cls-line-list {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 350px;
}

.cls-line-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #06c755;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.cls-line-item-for-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #06c755;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.cls-line-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cls-line-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #AAAAAC;
}

.cls-line-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cls-line-name {
    font-size: 0.875rem;
    color: #535353;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.cls-line-controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.cls-line-account-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #AAAAAC;
    background-color: #ffffff;
    color: #AAAAAC;
    font-size: 0.875rem;
    cursor: pointer;
    line-height: 1.4;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.08s ease;
    min-width: 90px;
    text-align: center;
}

.cls-line-account-switch::after {
    content: "連携解除";
}

.cls-line-account-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.cls-line-account-slider,
.cls-line-account-round {
    display: none;
}
    
/* ------------------------------------------------------------------------------------------------------------------ */
/* 店舗用：空状態メッセージ */

.cls-store-line-empty {
    font-size: 0.875rem;
    margin-top: 0.625rem;
    color: #E9528E;
    text-align: center;
}