.gm-cart-addons {
	margin-top: 48px;
}

.gm-cart-addons__title {
	margin: 0 0 22px;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.2;
}

.gm-cart-addons__list {
	display: grid;
	gap: 12px;
}

.gm-addon-card {
	display: grid;
	grid-template-columns: 30px 82px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	padding: 20px;
	border: 1px solid #ff9d72;
	border-radius: 12px;
	background: #fff0e6;
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		opacity 0.2s ease;
}

.gm-addon-card.is-added {
	border-color: #b5b5b5;
	background: #f7f7f7;
}

.gm-addon-checkbox {
	display: flex;
	width: 24px;
	height: 24px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 2px solid #ff6f4a;
	border-radius: 5px;
	background: transparent;
	cursor: pointer;
}

.gm-addon-checkbox:hover,
.gm-addon-checkbox:focus-visible {
	background: rgba(255, 111, 74, 0.1);
}

.gm-addon-checkbox:focus-visible,
.gm-addon-details-button:focus-visible,
.gm-addon-modal__close:focus-visible,
.gm-addon-modal__add:focus-visible {
	outline: 3px solid rgba(0, 104, 223, 0.25);
	outline-offset: 3px;
}

.gm-addon-card.is-added .gm-addon-checkbox {
	background: #0875e1;
	border-color: #0875e1;
}

.gm-addon-card.is-added .gm-addon-checkbox__check {
	width: 11px;
	height: 6px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translateY(-1px) rotate(-45deg);
}

.gm-addon-card__image img {
	display: block;
	width: 82px;
	height: 82px;
	border-radius: 8px;
	object-fit: cover;
}

.gm-addon-card__title {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.3;
}

.gm-addon-card__price {
	margin-bottom: 7px;
	font-size: 17px;
}

.gm-addon-card__price del {
	margin-right: 6px;
	color: #777;
}

.gm-addon-card__price ins {
	text-decoration: none;
}

.gm-addon-details-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #ff6847;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
}

.gm-addon-details-button:hover {
	text-decoration: underline;
}

.gm-addon-card__status {
	margin-top: 5px;
	color: #24713c;
	font-size: 13px;
	font-weight: 600;
}

.gm-addon-checkbox.is-loading,
.gm-addon-modal__add.is-loading {
	opacity: 0.55;
	cursor: wait;
}

/* Modal */

body.gm-modal-open {
	overflow: hidden;
}

.gm-addon-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.gm-addon-modal.is-open {
	display: flex;
}

.gm-addon-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 30, 42, 0.6);
	backdrop-filter: blur(3px);
}

.gm-addon-modal__dialog {
	position: relative;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(720px, 100%);
	max-height: min(830px, calc(100vh - 40px));
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.gm-addon-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 28px;
	border-bottom: 1px solid #e2e6e9;
}

.gm-addon-modal__header h2 {
	margin: 0;
	font-size: 21px;
}

.gm-addon-modal__close {
	display: flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #203244;
	font-size: 32px;
	font-weight: 300;
	cursor: pointer;
}

.gm-addon-modal__body {
	overflow-y: auto;
	padding: 28px;
}

.gm-addon-modal__product-header {
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	margin-bottom: 28px;
}

.gm-addon-modal__image img {
	display: block;
	width: 68px;
	height: 68px;
	border-radius: 7px;
	object-fit: cover;
}

.gm-addon-modal__product-header h3 {
	margin: 0 0 5px;
	font-size: 20px;
}

.gm-addon-modal__price {
	font-size: 17px;
}

.gm-addon-modal__price del {
	margin-right: 5px;
	color: #777;
}

.gm-addon-modal__price ins {
	text-decoration: none;
}

.gm-addon-modal__description {
	font-size: 16px;
	line-height: 1.65;
}

.gm-addon-modal__description > :first-child {
	margin-top: 0;
}

.gm-addon-modal__description > :last-child {
	margin-bottom: 0;
}

.gm-addon-modal__footer {
	display: flex;
	justify-content: center;
	padding: 18px 28px;
	border-top: 1px solid #e2e6e9;
	background: #fff;
}

.gm-addon-modal__add {
	min-width: 170px;
	padding: 13px 24px;
	border: 0;
	border-radius: 9px;
	background: #0875e1;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.gm-addon-modal__add:hover {
	background: #0667c6;
}

.gm-addon-modal__add:disabled {
	background: #7f8a93;
	cursor: default;
}

@media (max-width: 600px) {
	.gm-cart-addons {
		margin-top: 36px;
	}

	.gm-addon-card {
		grid-template-columns: 26px 64px minmax(0, 1fr);
		gap: 12px;
		padding: 16px;
	}

	.gm-addon-card__image img {
		width: 64px;
		height: 64px;
	}

	.gm-addon-card__title {
		font-size: 16px;
	}

	.gm-addon-card__price {
		font-size: 15px;
	}

	.gm-addon-modal {
		padding: 10px;
	}

	.gm-addon-modal__dialog {
		max-height: calc(100vh - 20px);
		border-radius: 12px;
	}

	.gm-addon-modal__header,
	.gm-addon-modal__body,
	.gm-addon-modal__footer {
		padding: 18px;
	}
}