/* iv_onepage — спільні стилі: змінні, кнопки, поля, вікно входу, кнопка в шапці */
:root {
	--ivop-accent: #43ab54;
	--ivop-accent-d: #3a9449;
	--ivop-accent-l: #eaf6ec;
	--ivop-text: #333;
	--ivop-muted: #777;
	--ivop-border: #d6d4d4;
	--ivop-bg: #f7f7f7;
	--ivop-danger: #d9534f;
	--ivop-danger-l: #fdf0ef;
	--ivop-warn: #e8a317;
	--ivop-warn-l: #fff8e6;
	--ivop-info: #428bca;
	--ivop-info-l: #eef5fb;
	--ivop-radius: 6px;
}

/* ---------- кнопки ---------- */
.ivop-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 20px;
	background: var(--ivop-accent); color: #fff !important; border: 1px solid var(--ivop-accent-d);
	border-radius: var(--ivop-radius); font: 700 15px/1.2 Arial, Helvetica, sans-serif;
	text-decoration: none !important; cursor: pointer; transition: background .15s;
}
.ivop-btn:hover, .ivop-btn:focus-visible { background: var(--ivop-accent-d); }
.ivop-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ivop-btn--big { width: 100%; min-height: 50px; font-size: 17px; }
.ivop-btn--ghost { background: #fff; color: var(--ivop-accent-d) !important; border-color: var(--ivop-accent); }
.ivop-btn--ghost:hover { background: var(--ivop-accent-l); }
.ivop-btn.is-loading { pointer-events: none; opacity: .75; }
.ivop-btn.is-loading::after {
	content: ''; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
	border-radius: 50%; animation: ivop-spin .8s linear infinite;
}
@keyframes ivop-spin { to { transform: rotate(360deg); } }

.ivop-link { color: var(--ivop-accent-d); font-weight: 700; text-decoration: underline; cursor: pointer; }
.ivop-center { display: block; text-align: center; margin-top: 14px; }
.ivop-muted { color: var(--ivop-muted); }
.ivop-small { font-size: 12px; }

/* ---------- поля ---------- */
.ivop-row { display: flex; flex-wrap: wrap; margin: 0 -7px; }
.ivop-col-2 { width: 50%; padding: 0 7px; }
.ivop-field { margin-bottom: 14px; position: relative; }
.ivop-row > .ivop-field:not(.ivop-col-2) { width: 100%; padding: 0 7px; }
.ivop-field label { display: block; margin: 0 0 5px; font-weight: 700; font-size: 13px; color: var(--ivop-text); }
.ivop-field label i { color: var(--ivop-danger); font-style: normal; }
.ivop-field label small { font-weight: 400; color: var(--ivop-muted); }
.ivop-field input[type=text], .ivop-field input[type=tel], .ivop-field input[type=email],
.ivop-field input[type=password], .ivop-field input[type=number], .ivop-field textarea {
	width: 100%; height: 44px; padding: 0 12px; box-sizing: border-box;
	border: 1px solid var(--ivop-border); border-radius: var(--ivop-radius); background: #fff;
	font: 16px/1.3 Arial, Helvetica, sans-serif; color: var(--ivop-text); box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.ivop-field textarea { height: auto; min-height: 64px; padding: 10px 12px; resize: vertical; }
.ivop-field input:focus, .ivop-field textarea:focus {
	outline: none; border-color: var(--ivop-accent); box-shadow: 0 0 0 3px rgba(67,171,84,.18);
}
.ivop-field.has-error input, .ivop-field.has-error textarea { border-color: var(--ivop-danger); background: var(--ivop-danger-l); }
.ivop-err { display: none; margin-top: 4px; color: var(--ivop-danger); font-size: 12px; }
.ivop-field.has-error .ivop-err { display: block; }

.ivop-pass { position: relative; }
.ivop-pass input { padding-right: 44px !important; }
.ivop-pass__eye { position: absolute; right: 0; top: 0; width: 44px; height: 44px; border: 0; background: none; color: var(--ivop-muted); cursor: pointer; }

.ivop-msg { padding: 10px 12px; margin-bottom: 12px; border-radius: var(--ivop-radius); font-size: 13px; background: var(--ivop-danger-l); color: #a94442; border: 1px solid #f2c6c4; }
.ivop-msg.is-ok { background: var(--ivop-accent-l); color: #2c6e37; border-color: #bfe3c5; }

/* ---------- Google ---------- */
.ivop-social { margin-bottom: 6px; }
.ivop-social__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ivop-gbtn { display: flex; justify-content: center; min-height: 44px; min-width: 240px; }
.ivop-fbbtn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; min-width: 240px; padding: 0 16px; border: 0; border-radius: 4px; background: #1877f2; color: #fff; font: 500 14px/1 Arial, sans-serif; cursor: pointer; }
.ivop-fbbtn:hover { background: #166fe5; }
.ivop-fbbtn.is-loading { opacity: .6; pointer-events: none; }
.ivop-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--ivop-muted); font-size: 13px; }
.ivop-or::before, .ivop-or::after { content: ''; flex: 1; height: 1px; background: #e5e5e5; }
.ivop-social--page { max-width: 400px; margin: 10px 0 20px; }

/* ---------- вікно входу ---------- */
.ivop-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ivop-modal[hidden] { display: none; }
.ivop-modal__back { position: absolute; inset: 0; background: rgba(0,0,0,.5); animation: ivop-fade .15s; }
.ivop-modal__box {
	position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto;
	background: #fff; border-radius: 10px; padding: 22px 22px 20px; box-shadow: 0 12px 40px rgba(0,0,0,.25);
	animation: ivop-pop .18s ease-out; font-family: Arial, Helvetica, sans-serif; color: var(--ivop-text);
}
@keyframes ivop-fade { from { opacity: 0; } }
@keyframes ivop-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ivop-modal__close { position: absolute; top: 6px; right: 8px; width: 38px; height: 38px; border: 0; background: none; font-size: 28px; line-height: 1; color: #999; cursor: pointer; }
.ivop-modal__close:hover { color: var(--ivop-text); }
.ivop-modal__title { margin: 0 0 14px; font-size: 18px; font-weight: 700; text-transform: none; color: var(--ivop-text); }
.ivop-tabs { display: flex; gap: 4px; margin: 0 36px 16px 0; background: var(--ivop-bg); border-radius: 8px; padding: 4px; }
.ivop-tab { flex: 1; height: 38px; border: 0; background: none; border-radius: 6px; font: 700 14px Arial, sans-serif; color: var(--ivop-muted); cursor: pointer; }
.ivop-tab.is-active { background: #fff; color: var(--ivop-text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ivop-pane { display: none; }
.ivop-pane.is-active { display: block; }
.ivop-modal .ivop-field { margin-bottom: 12px; }
body.ivop-lock { overflow: hidden; }

@media (max-width: 480px) {
	.ivop-modal { align-items: flex-end; padding: 0; }
	.ivop-modal__box { max-width: none; border-radius: 14px 14px 0 0; max-height: 92vh; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: ivop-up .22s ease-out; }
	.ivop-modal .ivop-col-2 { width: 100%; }
}
@keyframes ivop-up { from { transform: translateY(100%); } }

/* ---------- кнопка в шапці ---------- */
.ivop-nav { float: right; display: flex; align-items: center; gap: 10px; }
.ivop-nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; color: inherit; font-weight: 700; }
.ivop-nav__out { font-weight: 400; opacity: .8; }

.ivop-star { color: var(--ivop-danger); font-weight: 700; margin-left: 1px; cursor: help; }
.ivop-note { margin: 8px 0 0; font-size: 12px; color: #999; line-height: 1.4; }
