.custom-therapist-reservation-button {
    background-color: rgba(233, 81, 142);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}

.custom-therapist-reservation-button:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

.custom-therapist-reservation-button-login-prompt-message {
    color: #333;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease-in-out;
}

#weekly-schedule-shortcode {
    max-width: 768px;
    margin-bottom: 10px;
}

/* モーダルの背景 */
.custom-therapist-reservation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.custom-therapist-reservation-modal, 
.custom-therapist-reservation-modal * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* モーダルのコンテンツ */
.custom-therapist-reservation-modal-content {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 1024px;
    height: 100dvh;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    border: solid 1px #333;
    overflow: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 100;
    padding: 3px;
}

/* モーダルのクロスボタン */
.custom-therapist-reservation-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

/* 戻るボタン */
.custom-therapist-reservation-back-button,
.custom-therapist-reservation-cancell-button {
    width: 150px;
    padding: 10px;
    background-color: #6c757d;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* 料金フォームグループ */
.custom-therapist-reservation-price-form-group {
    margin-bottom: 10px;
    padding: 5px;
    border: 2px solid rgba(233, 81, 142);
    border-radius: 6px;
    width: 200px;
}

/* フォームグループ */
.custom-therapist-reservation-form-group {
    margin-bottom: 10px;
    padding: 5px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 5px;
}

.custom-therapist-reservation-form-group label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: inline-block;
}

.custom-therapist-reservation-form-group > label {
    padding: 5px 5px;
    border-radius: 5px;
    font-size: 14px;
}

.custom-therapist-reservation-required-badge {
    background-color: #E9518E;
    white-space: nowrap;
    border-radius: 0.6875rem;
    font-size: 12px;
    padding: 0.25rem 0.375rem;
    line-height: 1;
    display: inline-block;
    color: #ffffff;
}

.custom-therapist-reservation-not-required-badge {
    background-color: #aaa;
    white-space: nowrap;
    border-radius: 0.6875rem;
    font-size: 12px;
    padding: 0.25rem 0.375rem;
    line-height: 1;
    display: inline-block;
    color: #ffffff;
}

.custom-therapist-reservation-form-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
    display: inline-block;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
    background: initial;
    border: initial;
    width: auto;
    height: auto;
}

.custom-therapist-reservation-form-group input[type="text"],
.custom-therapist-reservation-form-group input[type="tel"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    margin-top: 5px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

/* 料金表示のスタイル */
#total-price,
#total-price-options,
#final-total-price {
    font-size: 16px;
    color: #000000;
    margin-left: 10px;
}

/* 1枚目モーダル */

/* 前の週・次の週ボタン */
#weekly-schedule-controls {
    text-align: center;
    margin-bottom: 10px;
}

.week-nav-button {
    background-color: #ffffff;
    color: #333;
    padding: 6px 12px;
    margin: 0 10px;
    border: solid 1px #333;
    border-radius: 4px;
}

.week-nav-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.5;
}

#month-year,
#month-year-for-reschedule {
    font-size: 14px;
    font-weight: bold;
    vertical-align: middle;
}

.custom-therapist-reservation-form-group input[type="date"],
.custom-therapist-reservation-form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 5px;
}

#custom-therapist-reservation-form {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
    align-items: center;
}

#weekly-schedule {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.custom-therapist-reservation-weekly-schedule {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
    margin-bottom: 15px;
    position: relative;
}

.custom-therapist-reservation-weekly-schedule-shortcode {
    overflow-y: auto;
    overflow-x: hidden;
    height: 50vh;
    margin-bottom: 15px;
    position: relative;
}

.custom-therapist-reservation-weekly-schedule table,
.custom-therapist-reservation-weekly-schedule-shortcode table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.custom-therapist-reservation-weekly-schedule table .status-available,
.custom-therapist-reservation-weekly-schedule-shortcode table .status-available {
    background-color: #e6ffe6;
}

.custom-therapist-reservation-weekly-schedule table .status-unavailable,
.custom-therapist-reservation-weekly-schedule-shortcode table .status-unavailable {
    background-color: rgb(233, 81, 142, 0.3);
}

.custom-therapist-reservation-weekly-schedule thead th,
.custom-therapist-reservation-weekly-schedule-shortcode thead th {
    position: sticky;
    top: 0;
    background-color: #f2f2f2;
    z-index: 2;
    border: 2px solid #bbb;
    text-align: center;
}

.custom-therapist-reservation-weekly-schedule tbody td,
.custom-therapist-reservation-weekly-schedule-shortcode tbody td{
    border: 2px solid #bbb;
    padding: 3px;
    text-align: center;
    font-size: 10px;
    word-wrap: break-word;
    height: 20px;
}

.custom-therapist-reservation-weekly-schedule th,
.custom-therapist-reservation-weekly-schedule-shortcode th {
    background-color: #f2f2f2;
    color: #333;
}

.custom-therapist-reservation-weekly-schedule td.available,
.custom-therapist-reservation-weekly-schedule td.unavailable,
.custom-therapist-reservation-weekly-schedule-shortcode td.available,
.custom-therapist-reservation-weekly-schedule-shortcode td.unavailable {
    font-size: 18px;
    font-weight: bold;
}

.custom-therapist-reservation-weekly-schedule td.available,
.custom-therapist-reservation-weekly-schedule-shortcode td.available {
    font-size: 18px;
    font-weight: bold;
    background-color: #e6ffe6;
    cursor: pointer;
}

.custom-therapist-reservation-weekly-schedule td.unavailable,
.custom-therapist-reservation-weekly-schedule-shortcode td.unavailable {
    background-color: #dcdcdc;
    color: #696969; 
}

.custom-therapist-reservation-weekly-schedule td.highlight,
.custom-therapist-reservation-weekly-schedule-shortcode td.highlight {
    background-color: #e6ffe6;
    color: #333;
}

.custom-therapist-reservation-weekly-schedule td.disabled,
.custom-therapist-reservation-weekly-schedule-shortcode td.disabled {
    background-color: #dcdcdc;
    color: #696969;
    cursor: not-allowed;
    position: relative;
}

.custom-therapist-reservation-weekly-schedule td.selected,
.custom-therapist-reservation-weekly-schedule-shortcode td.selected {
    background-color: #28a745;
}

/* ツールチップの基本スタイル */
.custom-therapist-reservation-weekly-schedule td.disabled::after,
.custom-therapist-reservation-weekly-schedule-shortcode td.disabled::after  {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.custom-therapist-reservation-weekly-schedule td.disabled::before,
.custom-therapist-reservation-weekly-schedule-shortcode td.disabled::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.75) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

/* ホバー時にツールチップを表示 */
.custom-therapist-reservation-weekly-schedule td.disabled:hover::after,
.custom-therapist-reservation-weekly-schedule td.disabled:hover::before,
.custom-therapist-reservation-weekly-schedule-shortcode td.disabled:hover::after,
.custom-therapist-reservation-weekly-schedule-shortcode td.disabled:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 次へボタン */
.custom-therapist-reservation-submit-button {
    width: 150px;
    padding: 10px;
    background-color: rgb(233, 81, 142);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.custom-therapist-reservation-message {
    background-color: #e6ffe6;
    border: 1px solid #4caf50;
    padding: 5px 5px;
    border-radius: 10px;
    color: #333;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-family: 'Arial', sans-serif;
    margin-bottom: 15px;
    margin-top: 3px;
    width: 100%;
    font-size: 12px;
}

#custom-therapist-reservation-options-form {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-therapist-reservation-form-group-option-form {
    display: flex;
    flex-direction: column;
}

#reservation-options-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
    padding-top: 10px;
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#reservation-options-container input[type="checkbox"],
.reservation-no-options-container input[type="checkbox"] {
    display: none;
}

/* ラベルのスタイル */
#reservation-options-container label,
.reservation-no-options-container label {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    min-width: 60px;
    transition: all 0.2s ease;
    color: #333;
}

#reservation-options-container input[type="checkbox"]:checked + label,
.reservation-no-options-container input[type="checkbox"]:checked + label {
    background-color: rgb(233, 81, 142);
    color: white;
    border-color: rgb(233, 81, 142);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

#custom-therapist-reservation-options-modal .custom-therapist-reservation-form-group {
    align-items: center;
    margin-bottom: 5px;
    margin-top: 5px;
    width: 100%;
    flex: 1;
    overflow: auto;
}

.custom-therapist-reservation-btn-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#custom-therapist-reservation-options-modal .custom-therapist-reservation-submit-button {

    width: 150px;
}

.no-options-message {
    font-size: 14px;
    text-align: center;
    margin: 0 auto;
    border: solid 2px rgb(233, 81, 142);
    border-radius: 10px;
    padding: 15px 4px;
}


/* 3枚目モーダル */
/* ラジオボタン */
#transport-info-message,
#designation-info-message,
#schedule-info-message,
#max-points-message {
    font-size: 14px;
    color: #333;
    margin-top: 5px;
}

#cash-payment-info,
#credit-card-payment-info {
    font-size: 14px;
    color: #333;
    margin-top: -10px;
    margin-bottom: 15px;
}

#payment-info-message {
    display:none;
    font-size: 14px;
    color: #E9518E;
    margin-top: 5px;
}

.transport-info-message-note,
.designation-info-message-note,
.max-points-message-note {
    font-size: 12px;
    color: #E9518E;
}

#custom-therapist-reservation-confirmation-modal .custom-therapist-reservation-form-group {
    flex: 1;
    overflow: auto;
    margin-bottom: 20px;
}

#custom-therapist-reservation-confirmation-modal .radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 10px;
    width: 230px;
}

#custom-therapist-reservation-confirmation-modal .radio-group.radio-group-with-info {
    gap: 5px; /* 縦のスペースを小さく設定 */
}

#custom-therapist-reservation-confirmation-modal .radio-group input[type="radio"] {
    display: none;
}

#custom-therapist-reservation-confirmation-modal .radio-group .radio-label {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    min-width: 60px;
    transition: all 0.2s ease;
    color: #333;
    display: inline-block;
    margin: 5px;
    text-align: center;
}

#custom-therapist-reservation-confirmation-modal .radio-group input[type="radio"]:checked + .radio-label {
    background-color: rgb(233, 81, 142);
    color: white;
    border-color: rgb(233, 81, 142);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* 送信ボタン */
#custom-therapist-reservation-confirmation-modal .custom-therapist-reservation-submit-button {
    width: 150px;
    padding: 10px;
    background-color: #6c757d;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: not-allowed;
    opacity: 0.6;
    transition: background-color 0.3s, opacity 0.3s;
}

/* チェックボックスが選択されたときの送信ボタンのスタイル */
#custom-therapist-reservation-confirmation-modal .custom-therapist-reservation-submit-button.enabled {
    background-color: rgb(233, 81, 142);
    cursor: pointer;
    opacity: 1;
}


#custom-therapist-reservation-review-modal .custom-therapist-reservation-modal-content h2 {
    font-size: 20px;
    color: #333;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    border-radius: 4px;
}

#custom-therapist-reservation-review-modal .custom-therapist-reservation-form-group {
    display: flex;
    flex-direction: column;
    border-radius: 0px;
    gap: 3px;
}

#custom-therapist-reservation-review-modal .custom-therapist-reservation-form-group .value span {
    font-size: 14px;
    color: #333333;
    border-radius: 8px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#custom-therapist-reservation-review-modal .custom-therapist-reservation-form-group > label
{
    padding: 0px;
    font-size: 16px;
    font-weight: bold;
    background-color: #fff;
}

.custom-therapist-reservation-datetime {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

#ctr-datetime {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#ctr-datetime-span {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


#custom-therapist-reservation-confirmation-form {
    overflow: hidden;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-therapist-reservation-final-confirmation-form {
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#reservation-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow: auto;
    margin-bottom: 15px;
    padding-top: 30px;
}

#custom-therapist-reservation-review-modal .custom-therapist-reservation-submit-button {
    width: 150px;
}

.custom-therapist-reservation-create-user-form {
    overflow: hidden;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#custom-therapist-reservation-create-user-modal .custom-therapist-reservation-form-group {
    flex: 1;
    overflow: auto;
}

.custom-therapist-reservation-create-user-form label {
    margin-bottom: 5px;
}

#create-user-info {
    font-size: 13px;
    color: #333;
}

.no-create-user-message {
    font-size: 13px;
    color: #777;
    text-align: center;
}

.custom-therapist-reservation-create-user-form input {
    margin-bottom: 5px !important;
}

.custom-therapist-reservation-create-user-search-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    font-size: 14px;
}

.custom-therapist-reservation-create-user-search-grid-item {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.custom-therapist-reservation-create-user-search-grid-item-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;    
}

.custom-therapist-reservation-create-user-search-grid-item-user-name {
    font-size: 14px;
    color: #333;  
}

.custom-therapist-reservation-create-user-search-grid-item .custom-therapist-reservation-create-user-select-button {
    width: 50px;
    padding: 5px;
    background-color: rgb(233, 81, 142);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.custom-therapist-reservation-create-user-section {
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-therapist-reservation-create-user-section h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.custom-therapist-reservation-create-user-section label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
    margin-top: 20px;
}

.custom-therapist-reservation-create-user-section input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.custom-therapist-reservation-create-user-section button {
    width: 150px;
    padding: 10px;
    background-color: rgb(233, 81, 142);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.custom-therapist-reservation-create-user-badge {
    background-color: rgb(233, 81, 142);
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 0.5em;
    font-size: 0.8em;
    position: absolute;
    top: 10px;
    right: 10px;
}

.new-user-name-label,
.new-user-contact-label {
    font-size: 14px;
    color: #333;
    align-self: flex-start;
}


.custom-therapist-reservation-notice {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

/* アニメーション */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.week-nav-button {
    padding: 5px 10px;
    font-size: 12px;
}

.custom-therapist-reservation-form-group input[type="date"],
.custom-therapist-reservation-form-group select {
    padding: 6px;
    font-size: 12px;
}

.custom-therapist-reservation-weekly-schedule th,
.custom-therapist-reservation-weekly-schedule td,
.custom-therapist-reservation-weekly-schedule-shortcode th,
.custom-therapist-reservation-weekly-schedule-shortcode td {
    padding: 4px;
    font-size: 10px;
    height: 16px;
}

.custom-therapist-reservation-weekly-schedule table,
.custom-therapist-reservation-weekly-schedule-shortcode table {
    width: 100%;
}

#total-price,
#total-price-options,
#final-total-price {
    font-size: 12px;
}

#custom-therapist-reservation-confirmation-modal input[type="radio"] {
    transform: scale(1.2);
}

.no-transport-cost-message,
.no-designation-message {
    font-size: 14px;
    text-align: center;
    margin: 0 auto;
    border: solid 2px rgb(233, 81, 142);
    border-radius: 10px;
    padding: 15px 4px;
    margin-top: 5px;
}

#agree-to-policy {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
    display: inline-block;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
    background: initial;
    border: initial;
    width: auto;
    height: auto;
}

#cancellation-policy {
    width: 100%;
    height: 150px;
    padding: 10px;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 5px;
}

#customer-confirmation {
    width: 100%;
    height: 150px;
    padding: 10px;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 5px;
}

#question-to-therapist-and-store {
    width: 100%;
    height: 150px;
    padding: 10px;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 5px;
}

.custom-therapist-reservation-form-group-therapist-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px 10px;
    justify-content: flex-start;
    gap: 15px;
}

.custom-therapist-reservation-form-group-therapist-and-store-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ctr-therapist-name {
    font-size: 20px;
}

.ctr-store-name {
    font-size: 16px;
}

.custom-therapist-reservation-form-group-therapist-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

#value-info-form-group {
    border: none !important;
    background-color: #ffffff !important;
    padding: 0px;
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    gap: 10px !important;
    align-items: center;
}

#value-info-total-price {
    font-size: 20px !important;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

.confirmation-modal-status-message {
    background-color: #e6ffe6;
    border: 1px solid #4caf50;
    padding: 5px 5px;
    border-radius: 10px;
    color: #333;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-family: 'Arial', sans-serif;
    margin-bottom: 15px;
    margin-top: 3px;
    width: 100%;
    font-size: 12px;
}