@charset "utf-8";

/* ==========================================================================
   promotion_sp2611.css
   SP (max-width:1000px) only. 2-column tile grid for #campaign cards.
   Loaded AFTER promotion250829.css so it overrides at equal specificity.
   Do not edit promotion250829.css.
   ========================================================================== */

@media (max-width: 1000px) {

	/* ---- grid container ---------------------------------------------- */
	#campaign {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 10px;
		align-items: stretch;
		width: calc(100% - 10.666666666666668vw);
		margin: 0 auto;
	}

	#campaign > .other_lineup_ttl {
		grid-column: 1 / -1;
		margin: 20px 0 0 0;
	}

	/* ---- tile frame --------------------------------------------------- */
	#campaign > .prd {
		width: 100%;
		margin: 0;
		padding: 10px 10px 14px;
		box-sizing: border-box;
		background: #fff;
		border: 1px solid #E4E5E7;
		border-bottom: 1px solid #E4E5E7;
		border-radius: 6px;
		cursor: pointer;
		display: flex;
		flex-direction: column;
		position: relative;  /* anchor for the discount badge */
	}

	#campaign > .prd:last-child {
		margin-bottom: 0;
	}

	/* ---- stack order inside the tile --------------------------------- */
	/* display:contents dissolves the PC left/right wrappers so the four
	   blocks become direct flex items and can be reordered. */
	#campaign > .prd .prd-bl--grid {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
		margin: 0;
		padding: 0;
		max-height: none;
		flex: 1 1 auto;
	}

	#campaign > .prd .prd-col-left,
	#campaign > .prd .prd-col-right {
		display: contents;
	}

	#campaign > .prd .prd-bl-02 { order: 1; margin-top: 0; }
	#campaign > .prd .prd-bl-01 { order: 2; margin-top: 6px; }
	#campaign > .prd .prd-bl-03 { order: 3; margin-top: 6px; }
	/* margin-top:auto pushes the price + button to the bottom so the
	   buttons line up across a row of tiles */
	#campaign > .prd .prd-bl-05 { order: 4; margin-top: auto; padding-top: 8px; }

	/* ---- product image ----------------------------------------------- */
	#campaign > .prd .prd-image {
		padding: 0;
	}

	#campaign > .prd .prd-image-item-img {
		margin-bottom: 0;
	}

	#campaign > .prd .prd-image-item-img img {
		width: 100%;
		height: auto;
		display: block;
	}

	/* ---- color swatches ----------------------------------------------
	   The inline <style> in index.html places these absolutely with a
	   16px gap, which is wider than a half-width tile. */
	#campaign #miniae .color-chip {
		position: static;
		margin-top: 4px;
		text-align: center;
	}

	#campaign #miniae .color-chip-txt {
		font-size: 10px;
		margin-bottom: 3px;
		text-align: center;
	}

	#campaign #miniae .color-chiplist {
		gap: 8px;
		justify-content: center;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	#campaign #miniae .color-chiplist li span {
		width: 16px;
		height: 16px;
	}

	#campaign #miniae .color-chiplist li.is-active span {
		outline-offset: 2px;
	}

	/* ---- product name ------------------------------------------------ */
	#campaign > .prd .prd-bl-01 {
		text-align: center;
	}

	#campaign > .prd .label {
		margin-bottom: 4px;
	}

	#campaign > .prd .label-item {
		font-size: 10px;
		padding: 2px 8px;
	}

	#campaign #roomba515 .prd-title-item-img img,
	#campaign #roomba715 .prd-title-item-img img,
	#campaign #roomba875 .prd-title-item-img img,
	#campaign #roomba105 .prd-title-item-img img,
	#campaign #roomba205 .prd-title-item-img img,
	#campaign #miniae .prd-title-item-img img {
		width: 100%;
		max-width: 100%;
		height: auto;
	}

	/* ---- short summary: keep the heading, drop the bullet list ------- */
	#campaign > .prd .prd-check-heading {
		font-size: 12px;
		line-height: 1.5;
		text-align: center;
		margin: 0;
	}

	#campaign > .prd .prd-check-heading br {
		display: none;
	}

	#campaign > .prd .prd-check-ol,
	#campaign > .prd .attention-list {
		display: none;
	}

	/* ---- discount badge over the product image -----------------------
	   SwitchBot style: one badge on the image, price on a single line.
	   .prd-check-heading already carries a bottom border, so the price
	   block must not add a top border too (it reads as a double rule). */
	#campaign > .prd .prd-price--divided {
		padding-top: 8px;
		border-top: none;
	}

	#campaign > .prd .prd-price-tag {
		position: absolute;
		top: 8px;
		right: 8px;
		left: auto;
		bottom: auto;
		z-index: 2;
	}

	#campaign > .prd .prd-price-tag-txt {
		display: inline-flex;
		height: 22px;
		font-size: 12px;
		font-weight: bold;
		line-height: 1;
		padding: 0 8px;
		border-radius: 3px;
		text-align: center;
		white-space: nowrap;
	}

	#campaign > .prd .prd-price-tag-txt::after {
		display: none;
	}

	/* the green "OFF" line repeats the badge. #roomba875 uses the same
	   element for its gift campaign and has no badge, so keep it there. */
	#campaign > .prd .pricedown-ol:has(.prd-price-tag) .price__cpMessage {
		display: none;
	}

	/* !important only because #roomba875 carries an inline font-size */
	#campaign > .prd .price__cpMessage {
		font-size: 12px !important;
		line-height: 1.4;
		margin-bottom: 2px;
	}

	#campaign > .prd .price__cpMessage br {
		display: none;
	}

	#campaign > .prd .price__cpLimit {
		font-size: 12px;
	}

	/* selling price and struck list price share one line */
	#campaign > .prd .pricedown-ol {
		max-width: none;
		position: static;
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		justify-content: center;
		column-gap: 5px;
		text-align: center;
	}

	#campaign > .prd .price-dawn {
		order: 1;
		height: auto;
		display: inline-block;
		font-size: 12px;
		line-height: 1.2;
	}

	#campaign > .prd .price-dawn strong {
		font-size: 22px;
	}

	#campaign > .prd .price-normal {
		order: 2;
		font-size: 10px;
		display: inline-block;
		white-space: nowrap;
	}

	#campaign > .prd .price__cpMessage,
	#campaign > .prd .note {
		flex-basis: 100%;
	}

	#campaign > .prd .note {
		font-size: 9px;
		line-height: 1.4;
		margin: 4px 0 0 0;
		color: #767676;
		text-align: left;
	}
	/* ---- single button: PDP only -------------------------------------- */
	/* .btnsWrap is flex on PC, which squeezes the single button in a
	   half-width tile. Block layout keeps it full width. */
	#campaign > .prd .btnsWrap {
		display: block;
		margin-top: 8px;
		gap: 0;
	}

	#campaign > .prd .btns {
		display: block;
		margin: 8px 0 0 0;
		width: 100%;
	}

	#campaign > .prd .btnsWrap .btns {
		margin-top: 0;
	}

	#campaign > .prd .btn-secondary {
		display: none;
	}

	#campaign > .prd .btn-primary {
		display: block;
		width: 100%;
		max-width: none;
		box-sizing: border-box;
		margin: 0;
		padding: 10px 4px;
		font-size: 13px;
		text-align: center;
	}

	#campaign > .prd .btn__subTxt {
		display: none;
	}

	/* the inline <style> in index.html sets #miniae .btns .btn to 50% for
	   the two-button row; the tile has one button, so take the full width */
	#campaign #miniae .btns .btn {
		width: 100%;
	}

}

/* ==========================================================================
   Campaign end notice / countdown. Shown on PC and SP.
   Markup is built by promotion_sp2611.js; hidden until a phase is set.
   ========================================================================== */

.cpEnd {
	display: none;
}

.cpEnd.is-soon,
.cpEnd.is-count {
	display: block;
}

.cpEnd-num {
	font-variant-numeric: tabular-nums;
	font-weight: bold;
}

/* ---- green band above the product cards -------------------------- */
.cpEnd--a {
	max-width: 1000px;
	margin: 0 auto 20px;
	padding: 10px 14px;
	box-sizing: border-box;
	background: #598e74;
	color: #fff;
	border-radius: 4px;
	text-align: center;
	font-size: 16px;
	line-height: 1.5;
}

.cpEnd--a .cpEnd-ttl {
	font-weight: bold;
}

.cpEnd--a .cpEnd-clock {
	display: inline-block;
	margin-left: 6px;
}

.cpEnd--a .cpEnd-num {
	font-size: 22px;
	padding: 0 2px;
}

@media (max-width: 1000px) {
	.cpEnd--a {
		width: calc(100% - 10.666666666666668vw);
		font-size: 13px;
		padding: 8px 10px;
	}

	.cpEnd--a .cpEnd-num {
		font-size: 18px;
	}
}
