/* Wishlist button */
.ucw-wishlist-placement {
	width: 100%;
}

.ucw-wishlist-btn-wrap {
	text-align: center;
	margin: 15px 0;
}

.ucw-wishlist-btn-wrap--icon_only {
	margin: 0;
}

.ucw-wishlist-placement--image_corner {
	width: auto;
}

.ucw-wishlist-placement--image_corner .ucw-wishlist-btn-wrap {
	margin: 0;
}

.ucw-wishlist-placement--next_to_name .ucw-wishlist-btn-wrap {
	display: inline-flex;
}

.ucw-wishlist-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0;
	border: none;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-decoration: none;
}

.ucw-wishlist-btn--icon_only {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 10px 25px rgba(17, 17, 17, 0.12);
}

.ucw-wishlist-placement--image_corner .ucw-wishlist-btn {
	min-width: 42px;
	min-height: 42px;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 10px 25px rgba(17, 17, 17, 0.12);
}

.ucw-wishlist-placement--next_to_name .ucw-wishlist-btn {
	padding: 6px 0;
}

.ucw-wishlist-btn:hover,
.ucw-wishlist-btn:focus {
	opacity: 0.85;
}

.ucw-wishlist-btn__icon {
	flex-shrink: 0;
}

.ucw-wishlist-target {
	position: relative;
}

.ucw-wishlist-title-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ucw-wishlist-title-row .ucw-wishlist-placement--next_to_name {
	width: auto;
}

.ucw-wishlist-placement--top_left {
	top: 12px;
	left: 12px;
}

.ucw-wishlist-placement--top_right {
	top: 12px;
	right: 12px;
}

.ucw-wishlist-placement--bottom_left {
	left: 12px;
	bottom: 12px;
}

.ucw-wishlist-placement--bottom_right {
	right: 12px;
	bottom: 12px;
}

.ucw-wishlist-target--image > .ucw-wishlist-placement--image_corner {
	position: absolute;
	z-index: 4;
}

.single-product .ucw-wishlist-title-row .ucw-wishlist-btn {
	font-size: 0.95rem;
}

/* Modal overlay */
.ucw-modal-root {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.55);
}

.ucw-modal-root.is-open {
	display: flex;
}

.ucw-modal-root.is-loading .ucw-modal {
	opacity: 0.6;
	pointer-events: none;
}

/* Modal panel */
.ucw-modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #333;
}

.ucw-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 20px 24px 0;
}

.ucw-modal__added {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ucw-modal__thumb {
	position: relative;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
}

.ucw-modal__thumb img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 2px;
}

.ucw-modal__check {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #3cb371;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ucw-modal__status {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: #444;
	line-height: 1.3;
}

.ucw-modal__close {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	margin: -4px -4px 0 0;
	padding: 0;
	border: none;
	background: transparent;
	color: #555;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ucw-modal__close:hover {
	color: #111;
}

.ucw-modal__body {
	padding: 20px 24px 24px;
}

.ucw-modal__title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 700;
	color: #333;
	line-height: 1.25;
}

.ucw-modal__hint {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.45;
	color: #888;
}

.ucw-modal__field {
	margin-bottom: 20px;
}

.ucw-modal__label {
	display: block;
	position: relative;
	margin-bottom: 0;
	padding: 0 8px;
	font-size: 13px;
	color: #555;
	background: #fff;
	transform: translateY(10px);
	z-index: 1;
	width: fit-content;
	margin-left: 10px;
}

.ucw-modal__input-wrap {
	position: relative;
	border: 1px solid #111;
	padding: 14px 12px 10px;
}

.ucw-modal__input {
	display: block;
	width: 100%;
	border: none;
	outline: none;
	font-size: 15px;
	color: #333;
	background: transparent;
	padding: 0 72px 0 0;
	box-shadow: none;
}

.ucw-modal__input:focus {
	outline: none;
}

.ucw-modal__counter {
	position: absolute;
	right: 12px;
	bottom: 10px;
	font-size: 12px;
	color: #999;
	pointer-events: none;
	white-space: nowrap;
}

.ucw-modal__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

.ucw-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 2px;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.ucw-modal__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ucw-modal__btn--skip {
	background: #fff;
	border: 1px solid #111;
	color: #333;
}

.ucw-modal__btn--skip:hover:not(:disabled) {
	background: #f8f8f8;
}

.ucw-modal__btn--create {
	background: #e9729f;
	border: 1px solid #e9729f;
	color: #fff;
}

.ucw-modal__btn--create:hover:not(:disabled) {
	background: #d85f8c;
	border-color: #d85f8c;
}

.ucw-modal__btn--save {
	background: #4f4f4f;
	border: 1px solid #4f4f4f;
	color: #fff;
}

.ucw-modal__btn--save:hover:not(:disabled) {
	background: #3f3f3f;
	border-color: #3f3f3f;
}

.ucw-modal__footer {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: #999;
	text-align: left;
}

body.ucw-modal-open {
	overflow: hidden;
}

.ucw-modal__error {
	margin: 0 0 12px;
	font-size: 13px;
	color: #c0392b;
}
