/*
Theme Name: MONSHEL Lightning Child
Theme URI: https://dogresortmonshel.com/
Description: Dog Resort MONSHEL専用 Lightning子テーマ
Author: MONSHEL
Template: lightning
Version: 1.5.0
Text Domain: monshel-lightning-child
*/

/* 予約画面の仕上げ */
.mphb_sc_checkout-wrapper,
.mphb-checkout-form,
.mphb_sc_checkout-form {
    max-width: 920px;
    margin: 36px auto;
    padding: 34px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0,0,0,.16);
    box-sizing: border-box;
}

.mphb_sc_checkout-wrapper h2,
.mphb_sc_checkout-wrapper h3,
.mphb-checkout-form h2,
.mphb-checkout-form h3 {
    margin-top: 30px;
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 5px solid #8b5e3c;
    line-height: 1.35;
}

.mphb_sc_checkout-wrapper input,
.mphb_sc_checkout-wrapper select,
.mphb_sc_checkout-wrapper textarea,
.mphb-checkout-form input,
.mphb-checkout-form select,
.mphb-checkout-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    font-size: 16px;
    background: #fff;
    border: 1px solid #cfc8c1;
    border-radius: 7px;
    box-sizing: border-box;
}

.mphb_sc_checkout-wrapper textarea,
.mphb-checkout-form textarea {
    min-height: 110px;
}

.mphb_sc_checkout-wrapper input[type="submit"],
.mphb_sc_checkout-wrapper button[type="submit"],
.mphb-checkout-form input[type="submit"],
.mphb-checkout-form button[type="submit"] {
    display: block;
    width: 100%;
    max-width: 420px;
    min-height: 52px;
    margin: 24px auto 0;
    padding: 14px 28px;
    background: #8b5e3c;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.mphb_sc_checkout-wrapper input[type="submit"]:hover,
.mphb_sc_checkout-wrapper button[type="submit"]:hover,
.mphb-checkout-form input[type="submit"]:hover,
.mphb-checkout-form button[type="submit"]:hover {
    background: #6f472d;
}

.site-info,
.site-footer-copyright p:nth-child(2) {
    display: none !important;
}

@media (max-width: 781px) {
    .mphb_sc_checkout-wrapper,
    .mphb-checkout-form,
    .mphb_sc_checkout-form {
        width: calc(100% - 24px);
        margin: 20px auto;
        padding: 22px 16px;
        border-radius: 10px;
    }
}


/* 料金内訳表 */
.mphb-price-breakdown {
    width: 100%;
    border-collapse: collapse;
}

.mphb-price-breakdown th,
.mphb-price-breakdown td {
    padding: 10px 12px;
    border: 1px solid #e2d7cc;
    vertical-align: middle;
}

.mphb-price-breakdown th {
    background: #faf7f3;
    font-weight: 700;
}

.mphb-price-breakdown-rate {
    line-height: 1.6;
}

.mphb-price-breakdown-accommodation-total td,
.mphb-price-breakdown-subtotal td {
    font-weight: 700;
}

.mphb-price-breakdown-total td {
    font-weight: 700;
    background: #faf7f3;
}


/* 予約フォーム簡略化 */
.monshel-fullname-field { margin-bottom:18px; }
.monshel-fullname-field label { display:inline-block; margin-bottom:6px; font-weight:600; }
.monshel-fullname-field input { width:100%; min-height:48px; padding:11px 13px; font-size:16px; background:#fff; border:1px solid #cfc8c1; border-radius:7px; box-sizing:border-box; }
.monshel-hidden-customer-field { display:none !important; }
.monshel-postal-help, .monshel-postal-status { margin-top:6px; font-size:13px; color:#6f472d; }


.monshel-address-help { margin:6px 0 0; font-size:13px; color:#6f472d; }


/* 愛犬頭数入力 */
.monshel-dog-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}
.monshel-dog-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
.monshel-dog-field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #cfc8c1;
    border-radius: 7px;
    background: #fff;
    box-sizing: border-box;
}
.monshel-address-help,
.monshel-postal-help,
.monshel-postal-status {
    margin-top: 6px;
    font-size: 13px;
    color: #6f472d;
}
@media (max-width: 600px) {
    .monshel-dog-fields { grid-template-columns: 1fr; }
}


/* お部屋欄にある重複した代表者氏名を非表示 */
.monshel-hidden-room-guest-name {
    display: none !important;
}


/* 幼児サービス：人数ステッパー */
.mphb_sc_checkout-services-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.mphb_sc_checkout-services-list li.monshel-service-stepper-ready {
    display: block !important;
    position: relative;
    margin: 0 !important;
    padding: 18px 0 22px !important;
    border-bottom: 1px solid #e2d7cc;
}

.mphb_sc_checkout-services-list li.monshel-service-stepper-ready:last-child {
    border-bottom: 0;
}

.mphb_sc_checkout-services-list li.monshel-service-stepper-ready > label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-weight: 600;
    line-height: 1.7;
}

.monshel-original-service-checkbox,
.monshel-service-remove-control {
    display: none !important;
}

.monshel-service-stepper {
    display: grid !important;
    grid-template-columns: 52px 80px 52px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.monshel-service-stepper button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #8b5e3c !important;
    border-radius: 8px !important;
    background: #8b5e3c !important;
    color: #fff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
}

.monshel-service-stepper button:hover,
.monshel-service-stepper button:focus {
    background: #6f472d !important;
    border-color: #6f472d !important;
}

.monshel-service-stepper input[type="number"] {
    display: block !important;
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 8px !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    background: #fff !important;
    border: 1px solid #cfc8c1 !important;
    border-radius: 8px !important;
    appearance: textfield;
    -moz-appearance: textfield;
}

.monshel-service-stepper input[type="number"]::-webkit-inner-spin-button,
.monshel-service-stepper input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.monshel-service-stepper-unit {
    grid-column: 1 / -1;
    display: block;
    margin: 2px 0 0;
    text-align: center;
    font-size: 14px;
    color: #555;
}

@media (max-width: 781px) {
    .mphb_sc_checkout-services-list li.monshel-service-stepper-ready {
        padding: 16px 0 20px !important;
    }

    .monshel-service-stepper {
        grid-template-columns: 52px 76px 52px !important;
    }

    .monshel-service-stepper input[type="number"] {
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
    }
}

.monshel-service-stepper{grid-template-columns:52px 80px 52px auto!important}
.monshel-service-stepper-unit{grid-column:auto!important;margin:0 0 0 2px!important;white-space:nowrap}
@media(max-width:781px){.monshel-service-stepper{grid-template-columns:52px 76px 52px auto!important}}


/* 幼児サービスを大人・子供の直下へ表示 */
.mphb-services-details {
    margin-top: 18px;
    margin-bottom: 22px;
}

.mphb-services-details-title {
    margin-bottom: 12px !important;
}

/* PCではサービス名と人数操作を横並び */
@media (min-width: 782px) {
    .mphb_sc_checkout-services-list li.monshel-service-stepper-ready {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 16px !important;
    }

    .mphb_sc_checkout-services-list li.monshel-service-stepper-ready > label {
        margin: 0 !important;
    }

    .mphb_sc_checkout-services-list li.monshel-service-stepper-ready .monshel-service-stepper {
        margin: 0 !important;
        justify-self: end !important;
    }
}


/* 幼児合計人数 */
.monshel-infant-total-field {
    margin: 0 0 18px;
}

.monshel-infant-total-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.monshel-infant-total-field select {
    width: 100%;
    min-height: 42px;
}

.monshel-infant-total-help {
    margin-top: 6px;
    font-size: 12px;
    color: #6a5a4f;
}


/* 幼児人数を子供欄の直下に固定 */
.monshel-infant-total-field {
    clear: both;
}


/* 客室定員による幼児（布団あり）の制限 */
.monshel-capacity-notice {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border: 1px solid #d8c5b6;
    border-radius: 7px;
    background: #faf7f3;
    font-size: 13px;
    line-height: 1.6;
}

.monshel-capacity-notice.is-full {
    border-color: #c62828;
    color: #9f1f1f;
    background: #fff7f7;
}

.monshel-service-stepper button:disabled {
    opacity: .42 !important;
    cursor: not-allowed !important;
}


/* 子供欄の直下に幼児合計人数を固定 */
.monshel-infant-total-field {
    margin-top: 14px !important;
    margin-bottom: 18px !important;
}

.mphb-services-details {
    margin-top: 0 !important;
}

.monshel-dog-fields {
    margin-top: 18px !important;
}


/* 空室確認画面の表示順：子供 → 幼児 → 愛犬 */
.mphb-booking-form .monshel-infant-total-field,
.mphb_sc_booking_form-wrapper .monshel-infant-total-field {
    margin-top: 14px !important;
    margin-bottom: 18px !important;
}

.mphb-booking-form .monshel-dog-fields,
.mphb_sc_booking_form-wrapper .monshel-dog-fields {
    margin-top: 0 !important;
}


/* 幼児合計人数：確実に入力できる数値欄 */
.monshel-infant-total-field input[type="number"] {
    display: block !important;
    width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 10px 13px !important;
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #cfc8c1 !important;
    border-radius: 4px !important;
    pointer-events: auto !important;
    user-select: auto !important;
    opacity: 1 !important;
}

.monshel-infant-total-field input[type="number"]:disabled,
.monshel-infant-total-field input[type="number"][readonly] {
    background: #fff !important;
    color: #333 !important;
    opacity: 1 !important;
}


/* v1.4.0: PHPで直接出力する幼児人数欄 */
.monshel-infant-total-field {
    margin: 14px 0 18px !important;
}

.monshel-infant-total-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.monshel-infant-total-input {
    display: block !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 13px !important;
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #cfc8c1 !important;
    border-radius: 4px !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}


/* v1.4.1: 直接予約フォームの幼児欄 */
.mphb-booking-form .monshel-infant-total-field {
    margin-top: 14px !important;
    margin-bottom: 18px !important;
}


/* v1.5.0: 客室詳細ページの幼児人数欄 */
.single-mphb_room_type .monshel-infant-total-field,
.single-mphb_room_type .monshel-infant-total-input {
    box-sizing: border-box;
}

.single-mphb_room_type .monshel-infant-total-field {
    margin-top: 14px !important;
    margin-bottom: 18px !important;
}
