/* ===== フォーム全体 ===== */
form {
    width: 100%;
}

/* ===== ラベル ===== */
label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #555;
    font-weight: 500;
}

/* ===== 入力系共通 ===== */
input,
select,
textarea {
    width: 100%;
    padding: 7px;
    font-size: 0.9rem;
    color: #555;
    border: 1px solid lightgray;
    border-radius: 0;
    background-color: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

/* ===== フォーカス ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #888;
}

/* ===== プレースホルダー ===== */
::placeholder {
    color: #aaa;
}

/* ===== チェックボックス / ラジオ ===== */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 0.3rem;
}

/* ===== チェック表示（商品一覧フィルタ用） ===== */
label.check-option {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

label.check-option:last-of-type {
    margin-bottom: 0;
}

label.check-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid lightgray;
    border-radius: 0;
    background: #fff;
    position: relative;
    cursor: pointer;
    flex: 0 0 16px;
}

label.check-option input[type="checkbox"]:checked {
    background: #337ab7;
    border-color: #337ab7;
}

label.check-option input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 5px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

label.check-option input[type="checkbox"]:focus-visible {
    outline: 1px solid rgba(51, 122, 183, 0.4);
    outline-offset: 1px;
}

/* ===== ボタン ===== */
button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background-color: #000;
    color: #fff;
    transition: background-color 0.2s;
}

/* ===== 無効状態 ===== */
input:disabled,
select:disabled,
button:disabled {
    background-color: lightgray;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== グループ余白 ===== */
.form-group {
    margin-bottom: 1rem;
}

/* ===== 横並び ===== */
.form-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ===== 小さい入力 ===== */
.input-sm {
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
}

/* ===== 大きい入力 ===== */
.input-lg {
    padding: 0.7rem;
    font-size: 1rem;
}


.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* form.css の .form-row（横並び flex）を上書き：ラベル上・入力下（#payment 内は直接子に含めない） */
.form-grid>.form-row,
.form-grid .row>.form-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
}

.form-grid>.form-row label,
.form-grid .row>.form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #333;
}

.form-grid>.form-row .optional,
.form-grid .row>.form-row .optional {
    font-weight: 400;
    color: #888;
}

.form-grid>.form-row .woocommerce-input-wrapper,
.form-grid .row>.form-row .woocommerce-input-wrapper {
    width: 100%;
    display: block;
}

.form-grid>.form-row .input-text,
.form-grid>.form-row select,
.form-grid>.form-row textarea,
.form-grid .row>.form-row .input-text,
.form-grid .row>.form-row select,
.form-grid .row>.form-row textarea {
    width: 100%;
    box-sizing: border-box;
}
