.urufc-floating-cart {
	position: fixed;
	right: 22px;
	bottom: 56px;
	z-index: 99999;
	font-family: inherit;
}

.urufc-floating-cart * {
	box-sizing: border-box;
}

.urufc-toggle {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--main-color);
	color: var(--text-color-over-main);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.urufc-toggle:hover,
.urufc-toggle:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.urufc-floating-cart.is-open .urufc-toggle {
	opacity: 0;
	pointer-events: none;
	transform: scale(0.92);
}

.urufc-toggle:focus-visible,
.urufc-close:focus-visible,
.urufc-empty-cart:focus-visible,
.urufc-remove:focus-visible,
.urufc-checkout:focus-visible {
	outline: 3px solid rgba(22, 22, 22, 0.3);
	outline-offset: 3px;
}

.urufc-toggle-icon {
	width: 31px;
	height: 31px;
	line-height: 0;
}

.urufc-toggle-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.urufc-count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: #161616;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
}

.urufc-panel {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, calc(100vw - 32px));
	height: min(520px, calc(100vh - 122px));
	max-height: 520px;
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
	color: #202124;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px) scale(0.98);
	transform-origin: bottom right;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.urufc-floating-cart.is-open .urufc-panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.urufc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid #efefef;
}

.urufc-notices {
	padding: 0 16px;
}

.urufc-notices:empty {
	display: none;
}

.urufc-notices .woocommerce-error,
.urufc-notices .woocommerce-message,
.urufc-notices .woocommerce-info,
.urufc-notices .urufc-js-notice {
	margin: 14px 0 0;
	padding: 12px 14px;
	border: 1px solid #f1d7d7;
	border-radius: 12px;
	background: #fff5f5;
	color: #202124;
	font-size: 13px;
	line-height: 1.35;
	list-style: none;
}

.urufc-notices .woocommerce-message {
	border-color: #d7ead7;
	background: #f5fff5;
}

.urufc-notices li {
	margin-left: 30px !important;
}

.urufc-notices a,
.urufc-notices a:visited {
	color: #000;
	font-weight: 700;
}

.urufc-header h2 {
	margin: 0;
	color: #202124;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.urufc-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.urufc-empty-cart {
	padding: 7px 10px;
	border: 1px solid #dcdcdc;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
}

.urufc-empty-cart:hover {
	background: #f3f3f3;
}

.urufc-empty-cart:disabled {
	cursor: wait;
	opacity: 0.6;
}

.urufc-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #202124;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.urufc-close:hover {
	background: #f3f3f3;
}

.urufc-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 14px 16px;
	background: #fff;
}

.urufc-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.urufc-item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 14px;
	padding: 10px;
	border: 1px solid #ececec;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
	align-items: start;
}

.urufc-item-image {
	overflow: hidden;
	border-radius: 12px;
	background: #f5f5f5;
}

.urufc-item-image img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
}

.urufc-item-info {
	min-width: 0;
}

.urufc-item-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.urufc-item-name,
.urufc-item-name:visited {
	color: #000;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
	text-decoration: none;
}

.urufc-item-name:hover {
	text-decoration: underline;
}

.urufc-item-price {
	flex: 0 0 auto;
	color: #202124;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.urufc-item-variation {
	margin-top: 5px;
	color: #646464;
	font-size: 12px;
	line-height: 1.35;
}

.urufc-item-variation p,
.urufc-item-variation dl {
	margin: 0;
}

.urufc-item-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 9px;
}

.urufc-item-quantity {
	color: #555;
	font-size: 13px;
}

.urufc-remove {
	padding: 0;
	border: 0;
	background: transparent;
	color: #202124;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

.urufc-remove:hover {
	color: #000;
}

.urufc-remove:disabled {
	cursor: wait;
	opacity: 0.6;
}

.urufc-empty {
	display: flex;
	min-height: 220px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	color: #555;
	text-align: center;
}

.urufc-empty p {
	margin: 0 0 7px;
	color: #202124;
	font-size: 18px;
	font-weight: 800;
}

.urufc-empty small {
	max-width: 260px;
	font-size: 13px;
	line-height: 1.45;
}

.urufc-footer {
	padding: 14px 16px 16px;
	border-top: 1px solid #efefef;
	background: #fff;
}

.urufc-checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 13px 16px;
	border: 0;
	border-radius: 12px;
	background: var(--main-color);
	color: var(--text-color-over-main);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.urufc-checkout:hover {
	color: var(--text-color-over-main);
	filter: brightness(0.97);
	transform: translateY(-1px);
}

.urufc-checkout:visited {
	color: var(--text-color-over-main);
}

.urufc-checkout.is-disabled {
	background: #ececec;
	color: #777;
	cursor: not-allowed;
	transform: none;
}

@media (max-width: 480px) {
	.urufc-floating-cart {
		right: 14px;
	}

	.urufc-panel {
		right: -2px;
		bottom: 0;
		width: calc(100vw - 24px);
		height: min(520px, calc(100vh - 104px));
		border-radius: 16px;
	}

	.urufc-item {
		grid-template-columns: 62px minmax(0, 1fr);
		gap: 11px;
	}

	.urufc-item-image img {
		width: 62px;
		height: 62px;
	}

	.urufc-item-top {
		display: block;
	}

	.urufc-item-price {
		display: block;
		margin-top: 4px;
	}
}
