.photoweb-estimate-wrap {
	--pw-green: #2e8b57;
	--pw-green-dark: #256e45;
	--pw-green-light: #eaf6ef;
	--pw-gray: #f4f5f6;
	--pw-gray-border: #e1e4e6;
	--pw-text: #333333;
	--pw-white: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	color: var(--pw-text);
	box-sizing: border-box;
}
.photoweb-estimate-wrap *,
.photoweb-estimate-wrap *::before,
.photoweb-estimate-wrap *::after {
	box-sizing: border-box;
}

.photoweb-columns {
	display: flex;
	gap: 32px;
	align-items: flex-start;
}
.photoweb-inputs {
	flex: 1 1 640px;
	min-width: 0;
}
.photoweb-sidebar {
	flex: 0 0 300px;
	position: sticky;
	top: var(--photoweb-sticky-top, 20px);
}

.photoweb-badge {
	background: var(--pw-green-light);
	color: var(--pw-green-dark);
	border: 1px solid var(--pw-green);
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 20px;
}

.photoweb-section {
	background: var(--pw-white);
	border: 1px solid var(--pw-gray-border);
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 20px;
}
.photoweb-section-title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 700;
	color: var(--pw-green-dark);
	border-left: 4px solid var(--pw-green);
	padding-left: 10px;
}

.photoweb-base-price-row {
	display: flex;
	justify-content: space-between;
	background: var(--pw-gray);
	border-radius: 8px;
	padding: 14px 16px;
	font-weight: 600;
}
.photoweb-base-price {
	color: var(--pw-green-dark);
	font-size: 18px;
}

.photoweb-select {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	border: 1px solid var(--pw-gray-border);
	border-radius: 8px;
	background: var(--pw-white);
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--pw-green) 50%), linear-gradient(135deg, var(--pw-green) 50%, transparent 50%);
	background-position: calc(100% - 20px) center, calc(100% - 15px) center;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}
.photoweb-select:focus {
	outline: none;
	border-color: var(--pw-green);
}

/* オプション：ボタン形式のチェックボックス（スマホでもタップしやすい） */
.photoweb-option-buttons {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}
.photoweb-option-button {
	position: relative;
	display: block;
	cursor: pointer;
}
.photoweb-option-checkbox {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.photoweb-option-label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 2px solid var(--pw-gray-border);
	background: var(--pw-gray);
	border-radius: 8px;
	padding: 12px 14px;
	transition: all 0.15s ease;
}
.photoweb-option-name {
	font-size: 14px;
	font-weight: 600;
}
.photoweb-option-price {
	font-size: 13px;
	color: #666;
}
.photoweb-option-checkbox:checked + .photoweb-option-label {
	border-color: var(--pw-green);
	background: var(--pw-green-light);
}
.photoweb-option-checkbox:checked + .photoweb-option-label .photoweb-option-price {
	color: var(--pw-green-dark);
	font-weight: 700;
}
.photoweb-option-checkbox:focus-visible + .photoweb-option-label {
	outline: 2px solid var(--pw-green);
}

.photoweb-option-block {
	margin-bottom: 18px;
}
.photoweb-option-block:last-child {
	margin-bottom: 0;
}
.photoweb-radio-group-title {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--pw-text);
}

/* 数量入力型オプション */
.photoweb-quantity-group {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	background: var(--pw-gray);
	border: 2px solid var(--pw-gray-border);
	border-radius: 8px;
	padding: 12px 14px;
}
.photoweb-quantity-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.photoweb-quantity-name {
	font-size: 14px;
	font-weight: 600;
}
.photoweb-quantity-unit-price {
	font-size: 12px;
	color: #666;
}
.photoweb-quantity-stepper {
	display: flex;
	align-items: center;
	gap: 8px;
}
.photoweb-qty-btn {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	border: 2px solid var(--pw-green);
	background: var(--pw-white);
	color: var(--pw-green-dark);
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
}
.photoweb-qty-btn:hover {
	background: var(--pw-green-light);
}
.photoweb-qty-input {
	width: 60px;
	text-align: center;
	padding: 8px 4px;
	border: 1px solid var(--pw-gray-border);
	border-radius: 8px;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}
.photoweb-quantity-unit-label {
	font-size: 13px;
	color: #666;
}

/* 明細テーブル */
.photoweb-breakdown-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.photoweb-breakdown-table td {
	padding: 10px 4px;
	border-bottom: 1px solid var(--pw-gray-border);
}
.photoweb-align-right {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.photoweb-row-total td {
	font-weight: 700;
	font-size: 17px;
	color: var(--pw-green-dark);
	border-top: 2px solid var(--pw-green);
	border-bottom: none;
}

.photoweb-payment-simulation {
	margin-top: 18px;
	background: var(--pw-gray);
	border-radius: 8px;
	padding: 14px 16px;
}
.photoweb-payment-simulation h4 {
	margin: 0 0 10px;
	font-size: 14px;
}
.photoweb-payment-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	padding: 4px 0;
}

/* フォーム */
.photoweb-form-row {
	margin-bottom: 16px;
}
.photoweb-form-row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}
.photoweb-required {
	color: #d9534f;
	font-size: 11px;
	font-weight: 700;
	margin-left: 4px;
}
.photoweb-form-row input[type="text"],
.photoweb-form-row input[type="email"],
.photoweb-form-row input[type="tel"],
.photoweb-form-row textarea {
	width: 100%;
	padding: 11px 12px;
	font-size: 15px;
	border: 1px solid var(--pw-gray-border);
	border-radius: 8px;
	background: var(--pw-white);
}
.photoweb-form-row input:focus,
.photoweb-form-row textarea:focus {
	outline: none;
	border-color: var(--pw-green);
}
.photoweb-checkbox-inline {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 400;
	cursor: pointer;
}
.photoweb-checkbox-inline input {
	width: 18px;
	height: 18px;
}

.photoweb-submit-button {
	width: 100%;
	background: var(--pw-green);
	color: var(--pw-white);
	border: none;
	border-radius: 8px;
	padding: 16px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}
.photoweb-submit-button:hover {
	background: var(--pw-green-dark);
}
.photoweb-submit-button:disabled {
	background: #a9a9a9;
	cursor: not-allowed;
}

.photoweb-form-message {
	margin-bottom: 14px;
	font-size: 14px;
	padding: 10px 12px;
	border-radius: 8px;
	display: none;
}
.photoweb-form-message.is-success {
	display: block;
	background: var(--pw-green-light);
	color: var(--pw-green-dark);
	border: 1px solid var(--pw-green);
}
.photoweb-form-message.is-error {
	display: block;
	background: #fdecea;
	color: #c0392b;
	border: 1px solid #e6a09a;
}

/* サイドバー：現在の見積り */
.photoweb-price-card {
	background: var(--pw-green);
	color: var(--pw-white);
	border-radius: 12px;
	padding: 22px 20px;
}
.photoweb-price-card-label {
	font-size: 13px;
	opacity: 0.9;
}
.photoweb-price-card-amount {
	font-size: 30px;
	font-weight: 700;
	margin: 6px 0 14px;
	font-variant-numeric: tabular-nums;
}
.photoweb-price-card-sub {
	font-size: 13px;
	line-height: 1.9;
	opacity: 0.95;
}
.photoweb-price-card-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.3);
	margin: 12px 0;
}
.photoweb-price-card-note {
	margin-top: 14px;
	font-size: 11px;
	opacity: 0.85;
	line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 880px) {
	.photoweb-columns {
		flex-direction: column;
	}
	.photoweb-sidebar {
		width: 100%;
		position: static;
		order: -1;
	}
	.photoweb-option-buttons {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}
