.cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear .3s;
}

.cart-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

.cart-drawer__panel:focus {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.cart-drawer,
	.cart-drawer__overlay,
	.cart-drawer__panel {
		transition: none;
	}
}

.cart-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .45);
	opacity: 0;
	transition: opacity .3s ease;
}

.cart-drawer.is-open .cart-drawer__overlay {
	opacity: 1;
}

.cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 420px;
	max-width: 100%;
	height: 100%;
	background: var(--white);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.22, .61, .36, 1);
	box-shadow: -12px 0 40px rgba(15, 23, 42, .12);
}

.cart-drawer.is-open .cart-drawer__panel {
	transform: translateX(0);
}

.cd-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px;
	border-bottom: 1px solid var(--line);
}

.cd-title {
	font-family: 'Outfit', sans-serif;
	font-size: 20px;
	font-weight: 700;
}

.cd-close {
	width: 32px;
	height: 32px;
	border: none;
	background: none;
	color: var(--gray);
	cursor: pointer;
	padding: 4px;
}

.cd-close svg {
	width: 100%;
	height: 100%;
}

.cart-drawer__content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.cart-drawer__items {
	flex: 1;
	overflow-y: auto;
	padding: 16px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cart-drawer__empty {
	color: var(--gray);
	font-size: 14px;
	padding: 24px 0;
	margin: 0;
}

.cd-item {
	display: flex;
	gap: 12px;
}

.cd-item__thumb {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	border-radius: 12px;
	background: var(--bg-light) center/cover no-repeat;
}

.cd-item__thumb,
.cart-item__img,
.order-line__media {
	overflow: hidden;
}

.cd-item__photo,
.cart-item__photo,
.order-line__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cd-item__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cd-item__name {
	font-family: 'Outfit', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--dark);
}

.cd-item__name:hover {
	color: var(--green);
}

.cd-item__meta {
	font-size: 12px;
	color: var(--gray);
}

.cd-item__row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.cd-item__price {
	font-weight: 600;
	font-size: 14px;
	margin-right: auto;
}

.cd-qty {
	display: flex;
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
}

.cd-qty__btn {
	width: 28px;
	height: 28px;
	border: none;
	background: none;
	cursor: pointer;
	color: var(--dark);
	font-size: 16px;
	line-height: 1;
}

.cd-qty__btn:hover {
	background: var(--green-soft);
	color: var(--green);
}

.cd-qty__input {
	width: 34px;
	height: 28px;
	border: none;
	text-align: center;
	font-size: 13px;
	font-family: inherit;
	-moz-appearance: textfield;
}

.cd-qty__input::-webkit-outer-spin-button,
.cd-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cd-item__del {
	width: 28px;
	height: 28px;
	border: none;
	background: none;
	color: var(--gray);
	cursor: pointer;
	padding: 5px;
}

.cd-item__del:hover {
	color: var(--ib-danger, #dc2626);
}

.cd-item__del svg {
	width: 100%;
	height: 100%;
}

.cd-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-top: 1px solid var(--line);
	font-size: 14px;
}

.cd-total__value {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cd-total__count {
	color: var(--gray);
}

.cd-total__value b {
	font-size: 18px;
}

.cd-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 24px 24px;
}

.cd-actions .btn {
	width: 100%;
}

.cd-actions__checkout.is-disabled {
	background: var(--bg-light);
	color: var(--gray);
	pointer-events: none;
}

.shop-toasts {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1100;
	max-width: min(320px, calc(100vw - 48px));
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.shop-toast {
	background: var(--dark);
	color: var(--white);
	border-radius: 12px;
	padding: 12px 18px;
	font-size: 14px;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .3s ease, transform .3s ease;
}

.shop-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.shop-toast--error {
	background: #dc2626;
}

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

body.has-drawer {
	overflow: hidden;
}

body.has-drawer .ib-contact-widget,
body.has-drawer .ib-video-widget {
	visibility: hidden;
}

body.has-drawer .shop-toasts {
	right: calc(var(--drawer-width, 420px) + 24px);
}

@media (max-width: 760px) {
	body.has-drawer .shop-toasts {
		right: 16px;
		bottom: auto;
		top: 16px;
	}
}

@media (max-width: 520px) {
	.cart-drawer__panel {
		width: 100%;
	}

	.shop-toasts {
		right: 16px;
		left: 16px;
		bottom: 16px;
	}
}

.stack {
	display: flex;
	flex-direction: column;
}

.stack--gap-sm {
	gap: 8px;
}

.stack--gap-md {
	gap: 16px;
}

.qty {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px;
	border: 1px solid var(--line);
	border-radius: 10px;
	flex-shrink: 0;
}

.qty__btn {
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 8px;
	background: var(--bg-light);
	color: var(--dark);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.qty__btn:hover {
	background: var(--green-soft);
	color: var(--green);
}

.qty__input {
	width: 40px;
	height: 28px;
	border: none;
	outline: none;
	text-align: center;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	-moz-appearance: textfield;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.input-field {
	width: 100%;
	min-height: 46px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
	font-family: inherit;
	font-size: 14px;
	color: var(--dark);
	outline: none;
	transition: border-color .15s ease;
}

.input-field::placeholder {
	color: var(--gray);
}

.input-field:hover {
	border-color: var(--light-gray);
}

.input-field:focus {
	border-color: var(--green);
}

textarea.input-field {
	min-height: 96px;
	resize: vertical;
}

.card-surface {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--white);
}

.card-surface__title {
	margin: 0 0 20px;
	font-family: 'Outfit', sans-serif;
	font-size: 18px;
	font-weight: 700;
}

.summary {
	position: sticky;
	top: 20px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--white);
}

.summary__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	font-size: 14px;
}

.summary__row--head {
	padding-top: 0;
}

.summary__head-title {
	font-family: 'Outfit', sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.summary__val {
	font-weight: 700;
}

.summary__note {
	font-size: 13px;
	color: var(--gray);
}

.summary__hr {
	border: none;
	border-top: 1px solid var(--line);
	margin: 12px 0;
}

.summary__row--total {
	font-size: 18px;
	font-weight: 800;
}

.summary__row--total .summary__val {
	color: var(--green);
}

.summary__action {
	width: 100%;
	margin-top: 12px;
}

.cart-page--empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.cart-page__empty {
	margin: 0;
	color: var(--gray);
}

.cart-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--white);
}

.cart-item__img {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	border-radius: 12px;
	background: var(--bg-light) center/cover no-repeat;
}

.cart-item__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cart-item__title {
	font-family: 'Outfit', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--dark);
}

.cart-item__title:hover {
	color: var(--green);
}

.cart-item__params,
.cart-item__unit {
	font-size: 13px;
	color: var(--gray);
}

.cart-item__price {
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.cart-item__remove {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	padding: 3px;
	border: none;
	background: none;
	color: var(--light-gray);
	cursor: pointer;
}

.cart-item__remove:hover {
	color: var(--ib-danger, #dc2626);
}

.cart-item__remove svg {
	width: 100%;
	height: 100%;
}

.order-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
}

.order-item + .order-item {
	border-top: 1px solid var(--line);
}

.order-item__left {
	flex: 1;
	min-width: 0;
}

.order-item__title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
}

.order-item__mult {
	color: var(--gray);
	font-weight: 400;
}

.order-item__param {
	margin-top: 6px;
}

.order-item__size {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 2px 8px;
	border: 1px solid var(--green-border);
	border-radius: 6px;
	background: var(--green-soft);
	font-size: 12px;
	color: var(--green-dark);
}

.order-item__price {
	font-weight: 700;
	white-space: nowrap;
}

.checkout__error {
	margin: 0 0 20px;
	padding: 14px 18px;
	border: 1px solid #fecaca;
	border-radius: 12px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 14px;
}

.checkout__fields {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.checkout__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.checkout__field--wide {
	grid-column: 1 / -1;
}

.checkout__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--gray);
}

.shop-add {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.shop-add__row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.shop-add__submit {
	flex: 1 1 auto;
}

.shop-add__variation {
	width: 100%;
	min-height: 46px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
	font-family: inherit;
	font-size: 14px;
	color: var(--dark);
	cursor: pointer;
}

.shop-add__note {
	margin: 0;
	color: var(--gray);
}

.order-received {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.order-card {
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--white);
	box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}

.order-card__title {
	margin: 0 0 16px;
	font-family: 'Outfit', sans-serif;
	font-size: 18px;
	font-weight: 700;
}

.order-received__head {
	display: flex;
	align-items: center;
	gap: 18px;
}

.order-received__badge {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--gradient);
}

.order-received__badge svg {
	width: 26px;
	height: 26px;
}

.order-received__head .order-card__title {
	margin: 0 0 4px;
}

.order-received__meta {
	margin: 0;
	font-size: 14px;
	color: var(--gray);
}

.order-lines {
	display: flex;
	flex-direction: column;
}

.order-line {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}

.order-line:first-child {
	border-top: 0;
	padding-top: 0;
}

.order-line__media {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	background: var(--bg-light) center/cover no-repeat;
}

.order-line__info {
	flex: 1;
	min-width: 0;
}

.order-line__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--dark);
}

.order-line__name:hover {
	color: var(--green);
}

.order-line__qty {
	font-size: 14px;
	color: var(--gray);
}

.order-line__sum {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

.order-totals {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.order-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
}

.order-total--grand {
	font-size: 18px;
	font-weight: 800;
}

.order-total--grand .order-total__value {
	color: var(--green);
}

.order-fields {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 24px;
	margin: 0;
}

.order-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.order-field dt {
	font-size: 12px;
	color: var(--gray);
}

.order-field dd {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.order-received__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 919.98px) {
	.summary {
		position: static;
	}
}

@media (max-width: 640px) {
	.checkout__fields,
	.order-fields {
		grid-template-columns: 1fr;
	}

	.cart-item {
		flex-wrap: wrap;
	}

	.cart-item__main {
		flex: 1 1 calc(100% - 96px);
	}

	.cart-item__price {
		margin-left: auto;
	}

	.order-received__actions {
		justify-content: stretch;
	}

	.order-received__actions .btn {
		flex: 1 1 100%;
	}
}

.block-products .btn,
.cart-drawer .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--ib-radius, 12px);
	background: var(--ib-fill, var(--gradient, var(--ib-accent, #008f76)));
	color: var(--white, var(--ib-accent-contrast, #fff));
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease;
}

.block-products .btn:hover,
.cart-drawer .btn:hover {
	filter: brightness(1.06);
	color: var(--white, var(--ib-accent-contrast, #fff));
}

.block-products .btn--gradient,
.cart-drawer .btn--gradient {
	padding: 16px 24px;
	overflow: hidden;
}

.block-products .btn--outline,
.cart-drawer .btn--outline {
	background: var(--white, #fff);
	color: var(--green-dark, var(--ib-accent, #008f76));
	border: 1px solid var(--green-border, var(--ib-line, rgba(0, 0, 0, .12)));
}

.block-products .btn--muted,
.cart-drawer .btn--muted {
	background: var(--bg-light, #f1f5f4);
	color: var(--gray, #6b7280);
	pointer-events: none;
}

.block-products .btn-arrow,
.cart-drawer .btn-arrow {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateX(6px);
	transition: max-width .22s ease, opacity .22s ease, transform .22s ease;
}

.block-products .btn-arrow svg,
.cart-drawer .btn-arrow svg {
	width: 16px;
	height: 16px;
}

.block-products .btn:hover .btn-arrow,
.cart-drawer .btn:hover .btn-arrow {
	max-width: 22px;
	opacity: 1;
	transform: translateX(0);
}


body .js-add-to-cart.btn,
body .cart-drawer .btn,
body .block-products .btn,
body .cd-actions .btn {
	background: var(--ib-fill, var(--ib-accent, var(--gradient, #008f76)));
	color: var(--ib-accent-contrast, var(--white, #fff));
	border-radius: var(--ib-radius, 12px);
}

body .cart-drawer .btn--outline,
body .cd-actions__cart.btn--outline,
body .block-products .btn--outline {
	background: var(--ib-bg, var(--white, #fff));
	color: var(--ib-fg, var(--green-dark, #111));
	border: 1px solid var(--ib-line, var(--green-border, rgba(0, 0, 0, .12)));
}

body .js-add-to-cart.btn--muted,
body .block-products .btn--muted {
	background: var(--ib-soft, var(--bg-light, #f1f5f4));
	color: var(--ib-muted, var(--gray, #6b7280));
}

.shop-stars {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.shop-stars__star {
  width: 16px;
  height: 16px;
  fill: var(--ib-line, #d9d9d9);
}

.shop-stars__star.is-on {
  fill: var(--ib-accent);
}

.summary__row--points {
	flex-wrap: wrap;
}

.summary__points {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.summary__points-check {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--green);
}

.summary__points-note {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--gray);
}

.summary__points-note.is-short,
.summary__row--points.is-short .summary__val {
	color: var(--ib-danger, #dc2626);
}

.summary__row--due[hidden] {
	display: none;
}

.order-files {
	display: grid;
	gap: 12px;
}

.order-files__title {
	margin: 0;
}

.order-files__note {
	margin: 0;
	color: var(--gray);
}

.order-files__list,
.account-files__list,
.account-files__links,
.account-points__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.order-files__item,
.account-files__link {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	overflow-wrap: anywhere;
}

.order-files__meta {
	font-size: 13px;
	color: var(--gray);
}

.account-files__title,
.account-points__title {
	margin: 0 0 14px;
}

.account-files__item {
	display: grid;
	gap: 6px;
	padding: 14px 0;
	border-top: 1px solid var(--line);
}

.account-files__item:first-child {
	padding-top: 0;
	border-top: none;
}

.account-files__product {
	font-weight: 700;
	color: var(--dark);
	text-decoration: none;
}

.account-files__product:hover {
	color: var(--green);
}

.account-files__link a,
.order-files__item a {
	color: var(--green);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.account-files__links {
	gap: 6px;
}

.account-points__balance {
	margin: 0 0 6px;
	font-size: 28px;
	font-weight: 800;
	color: var(--green);
}

.account-points__rules {
	margin: 0;
}

.account-points__history {
	margin-top: 16px;
}

.account-points__item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 16px;
	padding: 10px 0;
	border-top: 1px solid var(--line);
}

.account-points__item:first-child {
	border-top: none;
}

.account-points__date {
	grid-row: 2;
	font-size: 13px;
}

.account-points__delta {
	grid-row: 1 / span 2;
	grid-column: 2;
	align-self: center;
	font-weight: 700;
	white-space: nowrap;
}

.account-points__delta.is-plus {
	color: var(--green);
}
