/* Unicoms Consumer Rights – frontend */
:root {
	--ucr-blue: #0e47cb;
	--ucr-text: #1d2327;
	--ucr-border: #d6d9de;
	--ucr-radius: 6px;
}

/* ---------- Notice link ---------- */
.ucr-notice-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ucr-blue);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.ucr-notice-link:hover,
.ucr-notice-link:focus { color: #0a3597; }
.ucr-notice-link__icon {
	width: 14px;
	height: 16px;
	flex: 0 0 auto;
	background: var(--ucr-blue);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M7 0 0 2.5v5.2C0 11.6 3 15 7 16c4-1 7-4.4 7-8.3V2.5L7 0z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M7 0 0 2.5v5.2C0 11.6 3 15 7 16c4-1 7-4.4 7-8.3V2.5L7 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ucr-checkout-notice { margin: 0 0 14px; }

/* ---------- Modal ---------- */
.ucr-modal[hidden] { display: none !important; }
.ucr-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.ucr-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 20, 30, .6);
}
.ucr-modal__dialog {
	position: relative;
	background: #fff;
	color: var(--ucr-text);
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	max-width: min(640px, 100%);
	width: 100%;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 20px;
	outline: none;
}
.ucr-modal__dialog--form { max-width: min(680px, 100%); padding: 28px; }
.ucr-modal__dialog--image { padding-top: 48px; }
.ucr-modal__close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	padding: 0;
	z-index: 2;
}
.ucr-modal__close:hover { color: #000; }
html.ucr-modal-open { overflow: hidden; }

.ucr-notice-full img,
.ucr-garan-full img,
.ucr-zoom img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
}
.ucr-notice-full__link,
.ucr-garan-full__link,
.ucr-zoom__link {
	text-align: center;
	margin: 12px 0 0;
	font-size: 14px;
}
.ucr-zoom { overflow: auto; }
.ucr-zoom img { cursor: zoom-in; }
.ucr-zoom.is-zoomed img { width: auto; max-width: none; cursor: zoom-out; }

.ucr-qr-link { color: var(--ucr-blue); text-decoration: underline; word-break: break-all; }

/* ---------- Zoom trigger ---------- */
.ucr-zoom-trigger {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	line-height: 0;
}
.ucr-zoom-trigger img { display: block; width: 100%; height: auto; }

/* ---------- GARAN ---------- */
.ucr-garan { margin: 14px 0; clear: both; }
.ucr-garan--full .ucr-zoom-trigger { border: 1px solid #eee; }
.ucr-garan__meta { display: block; margin-top: 6px; font-size: 13px; }
.ucr-garan--nested { margin: 8px 0; }
.ucr-garan-nested {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	cursor: pointer;
}
.ucr-garan-nested img { display: block; height: 34px; width: auto; max-width: 100%; }
.ucr-garan-nested__text {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: var(--ucr-text);
	border: 1px solid #222;
	padding: 3px 8px;
	border-radius: 3px;
	background: #fff;
}
.ucr-garan-nested:hover .ucr-garan-nested__text { background: #f3f5f9; }
form.cart .ucr-garan { flex-basis: 100%; width: 100%; }

.ucr-checkout-garan { margin: 0 0 16px; }
.ucr-checkout-garan__title { font-weight: 600; margin: 0 0 8px; }
.ucr-checkout-garan__item { margin: 0 0 12px; }
.ucr-checkout-garan__name { display: block; font-size: 13px; margin-bottom: 4px; }
.ucr-block-checkout-holder { margin: 16px 0; }

/* ---------- Class triggers (menu items / Bricks elements) ---------- */
.ucr-open-legal-notice,
.ucr-open-withdrawal,
.ucr-open-legal-notice > a,
.ucr-open-withdrawal > a { cursor: pointer; }

/* ---------- Withdrawal ---------- */
.ucr-wd-button {
	display: inline-block;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.ucr-wd-order-info .ucr-wd-button { text-decoration: none; }

.ucr-wd-modal__title { margin: 0 0 12px; font-size: 1.4em; padding-right: 30px; }
.ucr-wd-form { max-width: 680px; }
.ucr-wd-form__intro { font-size: .95em; margin: 0 0 16px; }
.ucr-wd-group { border: 1px solid var(--ucr-border); border-radius: var(--ucr-radius); padding: 12px 16px 4px; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 0 16px; }
.ucr-wd-group legend { font-weight: 600; padding: 0 6px; }
.ucr-wd-field { margin: 0 0 14px; width: 100%; }
.ucr-wd-field--half { flex: 1 1 200px; width: auto; }
.ucr-wd-field[hidden] { display: none; }
.ucr-wd-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.ucr-wd-field input,
.ucr-wd-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 11px;
	border: 1px solid var(--ucr-border);
	border-radius: var(--ucr-radius);
	font: inherit;
	background: #fff;
}
.ucr-wd-field input:focus,
.ucr-wd-field textarea:focus { outline: 2px solid var(--ucr-blue); outline-offset: 0; border-color: var(--ucr-blue); }
.ucr-wd-privacy { font-size: .85em; color: #555; }
.ucr-wd-submit { margin: 8px 0 0; }
.ucr-wd-confirm { font-weight: 600; }
.ucr-wd-confirm[disabled] { opacity: .6; cursor: wait; }
.ucr-wd-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ucr-wd .required { color: #b32d2e; }

.ucr-wd-msg { padding: 14px 16px; border-radius: var(--ucr-radius); margin: 0 0 16px; }
.ucr-wd-msg p { margin: 0 0 8px; }
.ucr-wd-msg p:last-child { margin: 0; }
.ucr-wd-msg--success { background: #edf7ed; border: 1px solid #b7dfb9; }
.ucr-wd-msg--error { background: #fcf0f1; border: 1px solid #f0b8bd; color: #8a1f28; }

.ucr-repair-table th { width: 40%; }

@media (max-width: 600px) {
	.ucr-modal { padding: 8px; }
	.ucr-modal__dialog { padding: 14px; max-height: calc(100vh - 16px); }
	.ucr-modal__dialog--form { padding: 20px 16px; }
}
