.bpde-wrap {
	margin: 10px 0;
}

.bpde-estimate {
	border: 1px solid #e8e8e8;
	border-radius: 4px;
	padding: 10px 12px;
	background: #f9faf9;
}

.bpde-estimate__grid {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	column-gap: 24px;
	row-gap: 0;
	align-items: start;
}

.bpde-estimate__left {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bpde-estimate__right {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bpde-estimate__header {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bpde-icon {
	color: #498D00;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.bpde-estimate__title {
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
}

.bpde-estimate .bpde-estimate__label {
	font-size: 12px;
	color: #666;
	margin: 0;
	white-space: nowrap;
}

.bpde-wrap .bpde-estimate .bpde-estimate__select {
	width: 100%;
	padding: 6px 8px;
	font-size: 13px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	appearance: auto;
	cursor: pointer;
	height: 40px;
}

.bpde-wrap .bpde-estimate .bpde-estimate__select:disabled {
	opacity: 0.5;
	cursor: wait;
}

.bpde-estimate__time {
	font-size: 17px;
	font-weight: 700;
	color: #498D00;
	min-height: 24px;
	line-height: 1.4;
}

.bpde-estimate__loading {
	display: inline-block;
	color: #999;
	font-weight: 400;
	font-size: 13px;
	animation: bpde-pulse 1.2s ease-in-out infinite;
}

@keyframes bpde-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.bpde-estimate__disclaimer {
	font-size: 12px;
	color: #888;
	margin: 3px 0 0;
	line-height: 1.4;
}

.bpde-estimate--hidden {
	display: none;
}

@media (max-width: 767px) {
	.bpde-estimate {
		padding: 12px;
	}

	.bpde-estimate__grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas:
			"header time"
			"label label"
			"select select"
			"disclaimer disclaimer";
		row-gap: 0;
		column-gap: 12px;
		align-items: start;
	}

	.bpde-estimate__left,
	.bpde-estimate__right {
		display: contents;
	}

	.bpde-estimate__header {
		grid-area: header;
		min-width: 0;
		align-self: center;
	}

	.bpde-estimate__title {
		font-size: clamp(13px, 3.5vw, 15px);
		line-height: 1.2;
	}

	.bpde-estimate__time {
		grid-area: time;
		align-self: center;
		text-align: right;
		font-size: clamp(16px, 4.5vw, 20px);
		line-height: 1.2;
		min-height: 0;
		min-width: 0;
		overflow-wrap: break-word;
	}

	.bpde-estimate .bpde-estimate__label {
		grid-area: label;
		font-size: clamp(13px, 3.4vw, 14px);
		margin-top: 12px;
		white-space: normal;
	}

	.bpde-wrap .bpde-estimate .bpde-estimate__right .bpde-estimate__select {
		grid-area: select;
		width: 100%;
		max-width: none;
		min-width: 0;
		box-sizing: border-box;
		height: 44px;
		font-size: 15px;
		margin-top: 5px;
	}

	.bpde-estimate__disclaimer {
		grid-area: disclaimer;
		font-size: clamp(13px, 3.4vw, 14px);
		line-height: 1.4;
		margin: 10px 0 0;
	}
}
