.ishop-bundle-box,
.ishop-bundle-box * {
	box-sizing: border-box;
}

.ishop-bundle-box {
	direction: rtl;
	text-align: right;
	border: 1px solid #f2c2c8;
	background: #fff9f9;
	border-radius: 10px;
	padding: 14px 16px;
	margin: 0 0 16px 0;
	font-family: inherit;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.ishop-bundle-box__title {
	font-size: 14px;
	font-weight: 700;
	color: #2b2b2b;
	margin-bottom: 12px;
	overflow-wrap: anywhere;
}

.ishop-bundle-box__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.ishop-bundle-box__item {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 8px 10px;
	width: 100%;
	max-width: 100%;
	background: #fff;
	border: 1px solid #efefef;
	border-radius: 8px;
	padding: 8px 10px;
	transition: border-color .15s ease, background .15s ease;
}

.ishop-bundle-box__item:has(.ishop-bundle-checkbox:checked) {
	border-color: #f03a50;
	background: #fff5f6;
}

.ishop-bundle-box__item-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	cursor: pointer;
	margin: 0;
}

.ishop-bundle-box__item-checkbox {
	position: relative;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.ishop-bundle-checkbox {
	position: absolute;
	inset: 0;
	opacity: 0;
	margin: 0;
	cursor: pointer;
}

.ishop-bundle-box__item-checkbox-mark {
	position: absolute;
	inset: 0;
	border: 2px solid #cfcfcf;
	border-radius: 5px;
	background: #fff;
	pointer-events: none;
}

.ishop-bundle-checkbox:checked + .ishop-bundle-box__item-checkbox-mark {
	background: #f03a50;
	border-color: #f03a50;
}

.ishop-bundle-checkbox:checked + .ishop-bundle-box__item-checkbox-mark::after {
	content: "";
	position: absolute;
	top: 2px;
	right: 5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ishop-bundle-box__item-thumb {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 6px;
	overflow: hidden;
	display: block;
}

.ishop-bundle-box__item-thumb img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover;
	display: block;
}

.ishop-bundle-box__item-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 10px;
	flex: 1 1 140px;
	min-width: 0;
	max-width: 100%;
}

.ishop-bundle-box__item-name {
	font-size: 13px;
	color: #333;
	line-height: 1.6;
	flex: 1 1 130px;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
	text-decoration: none;
}

.ishop-bundle-box__item-name:hover {
	color: #f03a50;
	text-decoration: underline;
}

.ishop-bundle-box__item-price {
	font-size: 12px;
	color: #666;
	white-space: nowrap;
	background: #f4f4f4;
	border-radius: 6px;
	padding: 3px 8px;
	flex: 0 0 auto;
	line-height: 1.4;
}

/* The theme has its own global font-size (and often a stacked
   number-over-currency layout) for ".price"/".amount" elements, meant for
   the big single-product price. Since get_price_html() reuses those same
   classes, we force our own small, single-line style back on every nested
   node so it doesn't inherit the theme's large/stacked price styling. */
.ishop-bundle-box__item-price,
.ishop-bundle-box__item-price * {
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	display: inline !important;
}

.ishop-bundle-box__item-price del {
	opacity: .6;
}

.ishop-bundle-box__item-price ins {
	text-decoration: none;
	color: #f03a50 !important;
}

/* -------------------------------------------------------------------
 * Combined price shown right next to the product's own price.
 * ------------------------------------------------------------------- */

.ishop-bundle-main-price-wrap {
	display: inline-block;
	max-width: 100%;
}

.ishop-bundle-main-price-extra {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #f03a50;
	overflow-wrap: anywhere;
}

.ishop-bundle-loading {
	opacity: .6;
	pointer-events: none;
}

/* -------------------------------------------------------------------
 * Added-to-cart modal
 * ------------------------------------------------------------------- */

.ishop-bundle-modal-overlay {
	position: fixed !important;
	inset: 0 !important;
	background: rgba(20, 15, 10, .55);
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 2147483647 !important;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease;
	direction: rtl;
}

.ishop-bundle-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.ishop-bundle-modal {
	background: #fff;
	border-radius: 18px;
	padding: 32px 28px 26px;
	width: 100%;
	max-width: 380px;
	text-align: center;
	position: relative;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	transform: translateY(14px) scale(.97);
	transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.ishop-bundle-modal-overlay.is-open .ishop-bundle-modal {
	transform: translateY(0) scale(1);
}

.ishop-bundle-modal__close {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 30px;
	height: 30px;
	border: none;
	background: #f4f4f4;
	color: #888;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ishop-bundle-modal__close:hover {
	background: #ebebeb;
	color: #333;
}

.ishop-bundle-modal__check-wrap {
	margin: 0 auto 14px;
	width: 76px;
	height: 76px;
}

.ishop-bundle-modal__check {
	width: 76px;
	height: 76px;
}

.ishop-bundle-modal__check-circle {
	stroke: #ff8a00;
	stroke-width: 3;
	stroke-dasharray: 152;
	stroke-dashoffset: 152;
}

.ishop-bundle-modal__check-mark {
	stroke: #ff8a00;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 34;
	stroke-dashoffset: 34;
}

.ishop-bundle-modal__check.is-animating .ishop-bundle-modal__check-circle {
	animation: ishop-bundle-draw-circle .5s ease-out forwards;
}

.ishop-bundle-modal__check.is-animating .ishop-bundle-modal__check-mark {
	animation: ishop-bundle-draw-mark .35s .45s ease-out forwards;
}

@keyframes ishop-bundle-draw-circle {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes ishop-bundle-draw-mark {
	to {
		stroke-dashoffset: 0;
	}
}

.ishop-bundle-modal__title {
	font-size: 17px;
	font-weight: 700;
	color: #222;
	margin-bottom: 8px;
}

.ishop-bundle-modal__items {
	font-size: 13px;
	color: #777;
	line-height: 1.9;
	margin-bottom: 22px;
	min-height: 1px;
}

.ishop-bundle-modal__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ishop-bundle-modal__btn {
	flex: 1 1 140px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.ishop-bundle-modal__btn--primary {
	background: linear-gradient(135deg, #ff9a3c, #ff7a00);
	color: #fff;
	box-shadow: 0 8px 18px rgba(255, 122, 0, .35);
}

.ishop-bundle-modal__btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(255, 122, 0, .45);
	color: #fff;
}

.ishop-bundle-modal__btn--secondary {
	background: #fff;
	color: #ff7a00;
	border: 1.5px solid #ffcf9e;
}

.ishop-bundle-modal__btn--secondary:hover {
	background: #fff6ec;
}

@media (max-width: 420px) {
	.ishop-bundle-modal {
		padding: 26px 18px 20px;
		border-radius: 16px;
	}

	.ishop-bundle-modal__btn {
		flex: 1 1 100%;
	}
}
