.bslg-choden-order-form,
.bslg-choden-order-form * {
    box-sizing: border-box;
}

.bslg-choden-order-form {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 24px;
    border: 1px solid #d8dde3;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2933;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.bslg-choden-order-form--edit {
    position: relative;
    min-height: 92px;
    border: 2px dashed #3979bd;
    background: #f7fbff;
    box-shadow: none;
}

.bslg-choden-order-form__edit-title,
.bslg-choden-order-form__edit-text,
.bslg-choden-order-form__version {
    display: block;
}

.bslg-choden-order-form__edit-title {
    margin-bottom: 6px;
    font-size: 17px;
}

.bslg-choden-order-form__edit-text {
    color: #4f5b66;
    font-size: 13px;
}

.bslg-choden-order-form__version {
    position: absolute;
    top: 14px;
    right: 16px;
    color: #596773;
    font-size: 12px;
}

.bslg-choden-order-form__form {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.bslg-choden-order-form__header {
    margin: 0 0 24px;
}

.bslg-choden-order-form__title {
    margin: 0 0 8px;
    padding: 0;
    color: #1f2933;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
}

.bslg-choden-order-form__introduction {
    margin: 0;
    color: #4f5b66;
    line-height: 1.8;
}

.bslg-choden-order-form__section {
    min-width: 0;
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid #d8dde3;
    border-radius: 9px;
}

.bslg-choden-order-form__section-title {
    width: auto;
    margin: 0;
    padding: 0 8px;
    color: #1f2933;
    font-size: 18px;
    font-weight: 700;
}

.bslg-choden-order-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.bslg-choden-order-form__field {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.bslg-choden-order-form__field--full {
    grid-column: 1 / -1;
}

.bslg-choden-order-form__label {
    display: block;
    margin: 0 0 6px;
    color: #1f2933;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.bslg-choden-order-form__required {
    color: #b42318;
    font-size: 12px;
    font-weight: 700;
}

.bslg-choden-order-form__control {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #6f7c89;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2933;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
}

.bslg-choden-order-form__control:focus {
    border-color: #2563eb;
    outline: 2px solid rgba(37, 99, 235, 0.18);
    outline-offset: 1px;
}

.bslg-choden-order-form__control[readonly] {
    background: #f3f5f7;
    color: #45515c;
}

.bslg-choden-order-form__textarea {
    min-height: 160px;
    resize: vertical;
}

.bslg-choden-order-form__help {
    display: block;
    margin-top: 6px;
    color: #596773;
    font-size: 13px;
    line-height: 1.5;
}

.bslg-choden-order-form__notice {
    display: block;
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid #c8d0d8;
    border-radius: 8px;
}

.bslg-choden-order-form__notice--success {
    border-color: #75b798;
    background: #d1e7dd;
    color: #0f5132;
}

.bslg-choden-order-form__notice--warning {
    border-color: #ffecb5;
    background: #fff3cd;
    color: #664d03;
}

.bslg-choden-order-form__notice--error {
    border-color: #f1aeb5;
    background: #f8d7da;
    color: #842029;
}

.bslg-choden-order-form__notice-title {
    margin: 0 0 8px;
    color: inherit;
    font-size: 22px;
    line-height: 1.4;
}

.bslg-choden-order-form__notice-text {
    margin: 6px 0 0;
}

.bslg-choden-order-form__actions {
    margin-top: 8px;
}

.bslg-choden-order-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0;
    padding: 11px 24px;
    border: 1px solid #0d6efd;
    border-radius: 6px;
    background: #0d6efd;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

.bslg-choden-order-form__submit:hover,
.bslg-choden-order-form__submit:focus {
    border-color: #0b5ed7;
    background: #0b5ed7;
    color: #ffffff;
}

.bslg-choden-order-form__field.is-hidden {
    display: none;
}

@media (max-width: 767px) {
    .bslg-choden-order-form {
        padding: 16px;
        border-radius: 8px;
    }

    .bslg-choden-order-form__title {
        font-size: 23px;
    }

    .bslg-choden-order-form__section {
        padding: 16px;
    }

    .bslg-choden-order-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bslg-choden-order-form__field--full {
        grid-column: auto;
    }

    .bslg-choden-order-form__submit {
        width: 100%;
    }
}

.bslg-choden-order-form__section-help {
    margin: 0 0 16px;
    color: #596773;
    font-size: 14px;
    line-height: 1.7;
}

.bslg-choden-order-form__check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #1f2933;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.bslg-choden-order-form__check-label input {
    width: 20px;
    height: 20px;
    margin: 0;
}

.bslg-choden-order-form .is-hidden {
    display: none;
}

.bslg-choden-order-form--edit .bslg-choden-order-form__edit-list{margin:8px 0 0;padding-left:20px;}
.bslg-choden-order-form--edit .bslg-choden-order-form__edit-list li{margin:3px 0;}
.bslg-choden-order-form--edit .bslg-choden-order-form__edit-list a{color:#0b5ed7;text-decoration:underline;}

.bslg-choden-order-form__confirm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bslg-choden-order-form__confirm-grid > div {
    min-width: 0;
    padding: 14px;
    border: 1px solid #d8dde3;
    border-radius: 7px;
    background: #f8fafc;
}

.bslg-choden-order-form__confirm-grid strong,
.bslg-choden-order-form__confirm-grid span {
    display: block;
}

.bslg-choden-order-form__confirm-grid strong {
    margin-bottom: 5px;
    font-size: 13px;
    color: #596773;
}

.bslg-choden-order-form__confirm-full {
    grid-column: 1 / -1;
}

.bslg-choden-order-form__actions--confirm {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bslg-choden-order-form__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0;
    padding: 11px 24px;
    border: 1px solid #6f7c89;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2933;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
}

.bslg-choden-order-form__back:hover,
.bslg-choden-order-form__back:focus {
    background: #eef2f6;
    color: #1f2933;
}

@media (max-width: 767px) {
    .bslg-choden-order-form__confirm-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bslg-choden-order-form__confirm-full {
        grid-column: auto;
    }

    .bslg-choden-order-form__actions--confirm,
    .bslg-choden-order-form__back {
        width: 100%;
    }
}


/* v0.1.39 弔電台紙サンプル画像選択 */
.bslg-choden-order-form__type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bslg-choden-order-form__type-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    padding: 10px;
    border: 2px solid #c8d0d8;
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
    flex-direction: column;
    align-items: stretch;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.bslg-choden-order-form__type-card:hover {
    border-color: #5386bd;
    box-shadow: 0 4px 12px rgba(15, 42, 68, .12);
    transform: translateY(-1px);
}

.bslg-choden-order-form__type-card.is-selected {
    border-color: #155eef;
    background: #f4f8ff;
    box-shadow: 0 0 0 3px rgba(21, 94, 239, .14);
}

.bslg-choden-order-form__type-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.bslg-choden-order-form__type-radio:focus-visible + .bslg-choden-order-form__type-image-wrap {
    outline: 3px solid rgba(37, 99, 235, .4);
    outline-offset: 2px;
}

.bslg-choden-order-form__type-image-wrap {
    display: flex;
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 9px;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    background: #f7f7f5;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bslg-choden-order-form__type-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bslg-choden-order-form__type-name,
.bslg-choden-order-form__type-price,
.bslg-choden-order-form__type-description,
.bslg-choden-order-form__type-selected-label {
    display: block;
}

.bslg-choden-order-form__type-name {
    color: #1f2933;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.bslg-choden-order-form__type-price {
    margin-top: 2px;
    color: #a13a00;
    font-size: 15px;
    font-weight: 700;
}

.bslg-choden-order-form__type-description {
    margin-top: 5px;
    color: #596773;
    font-size: 12px;
    line-height: 1.45;
}

.bslg-choden-order-form__type-selected-label {
    margin-top: auto;
    padding-top: 7px;
    color: transparent;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.bslg-choden-order-form__type-card.is-selected .bslg-choden-order-form__type-selected-label {
    color: #155eef;
}

.bslg-choden-order-form__confirm-type-image {
    display: block;
    width: 130px;
    max-width: 100%;
    height: 174px;
    margin: 0 0 8px;
    border: 1px solid #c8d0d8;
    border-radius: 6px;
    background: #fff;
    object-fit: contain;
}

@media (max-width: 820px) {
    .bslg-choden-order-form__type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .bslg-choden-order-form__type-grid {
        grid-template-columns: 1fr;
    }
}

/* v0.1.40 申込確認ポップアップ */
body.bslg-choden-modal-open {
    overflow: hidden;
}

.bslg-choden-order-form__modal {
    position: fixed;
    z-index: 100050;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bslg-choden-order-form__modal.is-open {
    display: flex;
}

.bslg-choden-order-form__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
}

.bslg-choden-order-form__modal-dialog {
    position: relative;
    display: flex;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    border: 1px solid #aeb8c2;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
    flex-direction: column;
    overflow: hidden;
    outline: none;
}

.bslg-choden-order-form__modal-header {
    display: flex;
    min-height: 74px;
    padding: 18px 20px;
    border-bottom: 1px solid #d8dde3;
    background: #f7f9fb;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.bslg-choden-order-form__modal-title {
    margin: 0;
    color: #1f2933;
    font-size: 23px;
    line-height: 1.35;
}

.bslg-choden-order-form__modal-lead {
    margin: 4px 0 0;
    color: #596773;
    font-size: 14px;
}

.bslg-choden-order-form__modal-close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #87929d;
    border-radius: 7px;
    background: #ffffff;
    color: #1f2933;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.bslg-choden-order-form__modal-close:hover,
.bslg-choden-order-form__modal-close:focus {
    border-color: #334155;
    background: #eef2f6;
}

.bslg-choden-order-form__modal-body {
    padding: 18px 20px 8px;
    overflow-y: auto;
}

.bslg-choden-order-form__modal-section {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    background: #ffffff;
}

.bslg-choden-order-form__modal-section h4 {
    margin: 0 0 12px;
    color: #1f2933;
    font-size: 17px;
}

.bslg-choden-order-form__modal-list {
    display: grid;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.bslg-choden-order-form__modal-list > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #e0e5ea;
    border-radius: 6px;
    background: #f8fafc;
}

.bslg-choden-order-form__modal-list > div.is-wide {
    grid-column: 1 / -1;
}

.bslg-choden-order-form__modal-list dt {
    margin: 0 0 3px;
    color: #596773;
    font-size: 12px;
    font-weight: 700;
}

.bslg-choden-order-form__modal-list dd {
    margin: 0;
    color: #1f2933;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.bslg-choden-order-form__modal-type {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.bslg-choden-order-form__modal-type img {
    display: block;
    width: 126px;
    height: 168px;
    border: 1px solid #c8d0d8;
    border-radius: 6px;
    background: #f7f7f5;
    object-fit: contain;
}

.bslg-choden-order-form__modal-type strong,
.bslg-choden-order-form__modal-type span {
    display: block;
}

.bslg-choden-order-form__modal-type strong {
    color: #1f2933;
    font-size: 17px;
}

.bslg-choden-order-form__modal-type span {
    margin-top: 8px;
    color: #596773;
    line-height: 1.6;
}

.bslg-choden-order-form__modal-message {
    margin-top: 12px;
    min-height: 92px;
    padding: 13px 14px;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    background: #fbfcfd;
    color: #1f2933;
    line-height: 1.8;
    white-space: pre-line;
}

.bslg-choden-order-form__modal-actions {
    display: flex;
    padding: 16px 20px;
    border-top: 1px solid #d8dde3;
    background: #f7f9fb;
    justify-content: flex-end;
    gap: 12px;
}

.bslg-choden-order-form__modal-actions .bslg-choden-order-form__submit:disabled {
    border-color: #87929d;
    background: #87929d;
    cursor: wait;
}

@media (max-width: 767px) {
    .bslg-choden-order-form__modal {
        padding: 10px;
        align-items: stretch;
    }

    .bslg-choden-order-form__modal-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 8px;
    }

    .bslg-choden-order-form__modal-header,
    .bslg-choden-order-form__modal-body,
    .bslg-choden-order-form__modal-actions {
        padding-left: 14px;
        padding-right: 14px;
    }

    .bslg-choden-order-form__modal-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .bslg-choden-order-form__modal-list > div.is-wide {
        grid-column: auto;
    }

    .bslg-choden-order-form__modal-type {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .bslg-choden-order-form__modal-type img {
        width: 92px;
        height: 124px;
    }

    .bslg-choden-order-form__modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .bslg-choden-order-form__modal-actions .bslg-choden-order-form__back,
    .bslg-choden-order-form__modal-actions .bslg-choden-order-form__submit {
        width: 100%;
    }
}

/* v0.1.41 申込ボタン無反応対策・入力エラーの明示 */
.bslg-choden-order-form__validation-summary {
    width: 100%;
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 2px solid #b42318;
    border-radius: 6px;
    background: #fff1f0;
    color: #7a271a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
}

.bslg-choden-order-form__validation-summary[hidden] {
    display: none !important;
}

.bslg-choden-order-form__control.is-invalid,
.bslg-choden-order-form__type-radio.is-invalid + .bslg-choden-order-form__type-image-wrap {
    border-color: #d92d20 !important;
    box-shadow: 0 0 0 2px rgba(217, 45, 32, .18) !important;
}


/* v0.1.42 日付制限・郵便番号から住所自動入力 */
.bslg-choden-order-form__postal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.bslg-choden-order-form__postal-button {
    min-width: 104px;
    padding: 9px 14px;
    border: 1px solid #2f6fad;
    border-radius: 5px;
    background: #2f6fad;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.bslg-choden-order-form__postal-button:hover,
.bslg-choden-order-form__postal-button:focus {
    background: #235987;
    border-color: #235987;
    color: #fff;
}

.bslg-choden-order-form__postal-button:disabled {
    opacity: .55;
    cursor: wait;
}

.bslg-choden-order-form__postal-status {
    display: block;
    min-height: 1.45em;
    margin-top: 5px;
    font-size: 12px;
    color: #465665;
}

.bslg-choden-order-form__postal-status.is-success {
    color: #146c43;
}

.bslg-choden-order-form__postal-status.is-error {
    color: #b02a37;
    font-weight: 700;
}

@media (max-width: 575px) {
    .bslg-choden-order-form__postal-row {
        grid-template-columns: 1fr;
    }
    .bslg-choden-order-form__postal-button {
        width: 100%;
    }
}

/* v0.1.51: Concrete CMS標準エディターで登録した説明文の表示 */
.bslg-choden-order-form__introduction > :first-child,
.bslg-choden-order-form__type-description > :first-child,
.bslg-choden-order-form__payment-description > div > :first-child {
    margin-top: 0;
}

.bslg-choden-order-form__introduction > :last-child,
.bslg-choden-order-form__type-description > :last-child,
.bslg-choden-order-form__payment-description > div > :last-child {
    margin-bottom: 0;
}

.bslg-choden-order-form__payment-description {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #d7dee6;
    border-radius: 6px;
    background: #f7f9fb;
    color: #354052;
    font-size: 13px;
    line-height: 1.55;
}

.bslg-choden-order-form__payment-description:empty {
    display: none;
}
