.estimate-contents {
	width: 100%;
	font-family: Noto Sans, sans-serif;
	padding-top: 32px;
}
.estimate-contents h2 {
	all: initial;
	font-size: 18px;
	font-weight: 700;
	color: #000;
	text-align: center;
}
.estimate-main {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-top: 32px;
}
.estimate-item-box {
	display: flex;
	gap: 16px;
	padding: 16px;
	border: 10px solid #ebebeb;
}
.estimate-item-box .item-check {

}
.estimate-item-box .item-image img {
	width: 120px;
	height: auto;
	object-fit: contain;
	border: 1px solid #ccc;
	align-self: flex-start;
}
.estimate-item-box .item-action {
	display: flex;
	flex-direction: column;
  justify-content: center;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	min-width: 200px;
}
.estimate-item-box .item-action .cart-button {
	flex: 0 0 auto;
	min-width: 0;
	width: 100%;
	padding: 6px 40px;
	background-color: #fff;
	color: #24bbb7;
	font-size: 16px;
	font-weight: 400;
	border: 1px solid #24bbb7;
	border-radius: 5px;
	cursor: pointer;
	height: 50px;
}
.estimate-item-box .item-action .cart-button:focus,
.estimate-item-box .item-action .cart-button:active {
	background-color: #fff;
}
.estimate-item-box .item-action .delete-button {
	flex: 0 0 auto;
	min-width: 0;
	width: 100%;
	padding: 6px 40px;
	background-color: #fff;
	color: #999;
	font-size: 14px;
	font-weight: 400;
	border: 1px solid #ccc;
	border-radius: 5px;
	cursor: pointer;
	height: 40px;
}
.estimate-item-box .item-action .delete-button:focus,
.estimate-item-box .item-action .delete-button:active {
	background-color: #fff;
}
.estimate-item-box .item-detail {
	display: flex;
  flex-direction: column;
	gap: 4px;
}
.estimate-item-box .item-detail .item-name {
	font-size: 16px;
	font-weight: 700;
	color: #000;
}
.estimate-item-box .item-detail .item-code {
	font-size: 16px;
  color: #000;
}
.estimate-item-box .item-detail .item-value {
	font-size: 16px;
  color: #000;
}
.estimate-item-box .item-detail .item-total {
	font-size: 16px;
	font-weight: 700;
	color: #000;
}
.estimate-action {
	display: flex;
	justify-content: center;
  gap: 16px;
}
.estimate-action .download-button {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	padding: 8px;
	background-color: #24bbb7;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	height: 50px;
	margin-left: 10%;
}
.estimate-action .download-button:focus,
.estimate-action .download-button:active {
	background-color: #24bbb7;
}
.estimate-action .share-button {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	padding: 8px;
	background-color: #fff;
	color: #24bbb7;
	font-size: 16px;
	font-weight: 400;
	border: 1px solid #24bbb7;
	border-radius: 5px;
	cursor: pointer;
	height: 50px;
	margin-right: 10%;
}
.estimate-action .share-button:focus,
.estimate-action .share-button:active {
	background-color: #fff;
}
.estimate-page-action {
	width: 320px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 24px;
}
.estimate-page-action .top-button {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	padding: 8px;
	background-color: #fff;
	color: gray;
	font-size: 16px;
	font-weight: 400;
	border: 1px solid #808080;
	border-radius: 5px;
	cursor: pointer;
	height: 50px;
}
.estimate-page-action .top-button:focus,
.estimate-page-action .top-button:active {
	background-color: #fff;
}
.empty-estimate-message {
	box-sizing: border-box;
	width: 100%;
	padding: 20px;
	border: 1px solid rgba(0, 0, 0, .125);
	border-radius: 3.5px;
	background: #fff;
	box-shadow: 0 2px 2px #00000024, 0 1px 5px #0000001f, 0 3px 1px -2px #0003;
	margin: 7px 0 14px;
}
.empty-estimate-message p {
	margin: 0;
	font-size: 14px;
	color: #666;
}
.estimate-dialog {
	border: 2px solid #24BBB7;
	border-radius: 10px;
	padding: 0;
	width: calc(98% - 16px);
	max-width: 680px;
	max-height: 85vh;
	box-shadow: 0 4px 20px #0000004d;
	font-family: Noto Sans JP, Avenir, Open Sans, Helvetica Neue, Helvetica, Arial, Verdana, Roboto, Hiragino Kaku Gothic Pro, Meiryo UI, Meiryo, MS PGothic, sans-serif;
}
.estimate-dialog .dialog-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
	background-color: #fff;
	color: #000;
	position: sticky;
	top: 0;
	z-index: 1;
}
.estimate-dialog .dialog-header h3 {
	all: initial;
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
	padding-right: 1rem;
	text-align: center;
}
.estimate-dialog .dialog-close-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #0000001a;
	border: none;
	border-radius: 50%;
	color: #333;
	cursor: pointer;
}
.estimate-dialog .dialog-close-btn:focus,
.estimate-dialog .dialog-close-btn:active {
	background: #0000001a;
}
.estimate-dialog .dialog-body {
	padding: 1rem;
	overflow-y: auto;
	max-height: calc(85vh - 70px);
}
.estimate-dialog .dialog-body .dialog-body-message {
	text-align: center;
	font-size: 1.2rem;
	font-weight: 700;
}
.estimate-dialog .dialog-footer {
	display: flex;
	justify-content: center;
	gap: 15px;
	padding: 32px;
	float: none;
}
.estimate-dialog .dialog-footer button {
	flex: 1;
	box-sizing: border-box;
	max-width: 150px;
	margin: 0;
	font-weight: 700;
}
.estimate-dialog .dialog-footer .dialog-footer-cancel-btn {
	background: #fff;
  color: #24bbb7;
  border: 2px solid #24bbb7;
  border-radius: 4px;
  padding: 10px 30px;
  min-width: 120px;
  white-space: nowrap;
}
.estimate-dialog .dialog-footer .dialog-footer-cancel-btn:focus,
.estimate-dialog .dialog-footer .dialog-footer-cancel-btn:active {
	background: #fff;
}
.estimate-dialog .dialog-footer .dialog-footer-ok-btn {
	background: #40c4c4;
	color: #fff;
	border: 1px solid #40C4C4;
	border-radius: 4px;
	padding: 10px 30px;
	min-width: 120px;
	white-space: nowrap;
}
.estimate-dialog .dialog-footer .dialog-footer-ok-btn:focus,
.estimate-dialog .dialog-footer .dialog-footer-ok-btn:active {
	background: #40c4c4;
}
.estimate-download-dialog .dialog-body-message.estimate-download-dialog-message,
.estimate-share-dialog .dialog-body-message.estimate-download-dialog-message {
	text-align: left;
	font-size: 1rem;
	font-weight: 400;
}
.estimate-download-dialog .dialog-body hr,
.estimate-share-dialog .dialog-body hr {
	border: none;
	border-top: 1px solid #ccc;
	margin: 1rem 0;
}
.estimate-download-form-group {
	margin-bottom: 1.5rem;
}
.estimate-download-form-group:last-child {
	margin-bottom: 0;
}
.estimate-download-form-label {
	margin: 0 0 .5rem;
	font-size: 1rem;
	font-weight: 700;
}
.estimate-download-radio-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 2.5rem;
	row-gap: .5rem;
}
.estimate-download-radio {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: 1.05rem;
	font-weight: 400;
	color: #000;
	cursor: pointer;
}
/* ADD S 2026-07-22 ING Akutsu 合算は2商品以上選択時のみ（1件選択時はグレーアウトして選択不可） */
.estimate-download-radio-disabled {
	color: #aaa;
	cursor: not-allowed;
}
/* ADD E 2026-07-22 ING Akutsu */
/* Materializeがinput[type=radio]を強制的に非表示にするため、このダイアログ内では上書きして表示する */
.estimate-download-dialog input[type="radio"],
.estimate-share-dialog input[type="radio"] {
	position: static !important;
	left: auto !important;
	opacity: 1 !important;
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #24bbb7;
}
.estimate-download-name-input {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}
.estimate-dialog .dialog-footer .estimate-download-submit-btn,
.estimate-dialog .dialog-footer .estimate-share-submit-btn {
	flex: 1;
	max-width: none;
	background: #40c4c4;
	color: #fff;
	border: 1px solid #40C4C4;
}
.estimate-dialog .dialog-footer .estimate-download-submit-btn:focus,
.estimate-dialog .dialog-footer .estimate-download-submit-btn:active,
.estimate-dialog .dialog-footer .estimate-share-submit-btn:focus,
.estimate-dialog .dialog-footer .estimate-share-submit-btn:active {
	background: #40c4c4;
}
.estimate-share-name-input {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}
/* ADD S 2026-07-30 ING Akutsu 宛名を必須にする。エラー色はサイト既存のバリデーション表示（validationEngine）と同じ #ee0101 に合わせる */
/* 宛名の必須バッジ */
.estimate-required-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 5px;
	background-color: #e60000;
	color: #fff;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: middle;
	white-space: nowrap;
}
.estimate-name-error {
	margin: 6px 0 0;
	color: #ee0101;
	font-size: 1rem;
	line-height: 1.4;
}
.estimate-download-name-input.estimate-name-input-error,
.estimate-share-name-input.estimate-name-input-error {
	border-color: #ee0101;
}
/* ADD E 2026-07-30 ING Akutsu */
.estimate-share-url-row {
	display: flex;
	gap: .5rem;
}
.estimate-share-url-input {
	box-sizing: border-box;
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: .9rem;
	background: #f7f7f7;
	color: #333;
}
.estimate-share-copy-btn {
	flex-shrink: 0;
	padding: 10px 20px;
	background: #fff;
	color: #24bbb7;
	border: 2px solid #24bbb7;
	border-radius: 4px;
	cursor: pointer;
}
.estimate-share-copy-btn:focus,
.estimate-share-copy-btn:active {
	background: #fff;
}
.estimate-share-copied-message {
	margin: .5rem 0 0;
	font-size: .85rem;
	color: #24bbb7;
}
.estimate-share-qr-group {
	text-align: center;
}
.estimate-share-qr-img {
	width: 160px;
	height: 160px;
	border: 1px solid #ccc;
	padding: 8px;
	box-sizing: border-box;
}
.estimate-share-qr-fullscreen-link {
	display: inline-block;
	margin-top: .5rem;
	color: #24bbb7;
}
.estimate-share-expiry-note {
	margin: 1rem 0 0;
	font-size: .85rem;
	color: #666;
}
@media (max-width: 767px) {
	.estimate-download-radio-row {
		flex-direction: column;
		align-items: flex-start;
		gap: .5rem;
	}
	.estimate-contents h2 {
		font-size: 18px;
	}
	.estimate-item-box {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	.estimate-item-box .item-image {
		text-align: center;
	}
	.estimate-item-box .item-action {
		margin-left: initial;
	}
	.estimate-action {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	.estimate-action .download-button {
		flex: initial;
		margin-left: initial;
	}
	.estimate-action .share-button {
		flex: initial;
		margin-right: initial;
	}
	.estimate-page-action {
		width: 100%;
		margin-left: initial;
		margin-right: initial;
		margin-top: 24px;
	}
}
