﻿.quick-call-widget {
		--quick-call-gap: 18px;
		position: fixed;
		z-index: 95;
	}

	.quick-call-widget[data-corner='bottom-right'] {
		right: calc(var(--quick-call-gap) + env(safe-area-inset-right));
		bottom: calc(var(--quick-call-gap) + env(safe-area-inset-bottom));
		left: auto;
		top: auto;
	}

	.quick-call-widget[data-corner='bottom-left'] {
		left: calc(var(--quick-call-gap) + env(safe-area-inset-left));
		bottom: calc(var(--quick-call-gap) + env(safe-area-inset-bottom));
		right: auto;
		top: auto;
	}

	.quick-call-widget[data-corner='top-right'] {
		right: calc(var(--quick-call-gap) + env(safe-area-inset-right));
		top: calc(var(--header-offset, 72px) + var(--quick-call-gap) + env(safe-area-inset-top));
		left: auto;
		bottom: auto;
	}

	.quick-call-widget[data-corner='top-left'] {
		left: calc(var(--quick-call-gap) + env(safe-area-inset-left));
		top: calc(var(--header-offset, 72px) + var(--quick-call-gap) + env(safe-area-inset-top));
		right: auto;
		bottom: auto;
	}

	.quick-call-widget__trigger {
		position: relative;
		width: 64px;
		height: 64px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 0;
		border-radius: 999px;
		background: linear-gradient(145deg, #4fc7f6, #1f8fd1);
		box-shadow: 0 12px 26px rgba(31, 110, 214, 0.34);
		cursor: grab;
		transition: transform 0.22s ease, box-shadow 0.22s ease;
		touch-action: none;
	}

	.quick-call-widget__trigger::after {
		content: '';
		position: absolute;
		inset: -6px;
		border-radius: inherit;
		border: 2px solid rgba(85, 194, 241, 0.45);
		opacity: 0;
		transform: scale(0.82);
	}

	.quick-call-widget:not(.is-open):not(.is-dragging) .quick-call-widget__trigger::after {
		animation: quick-call-pulse 2.5s ease-out infinite;
	}

	.quick-call-widget__trigger:hover {
		transform: translateY(-2px);
		box-shadow: 0 16px 30px rgba(31, 110, 214, 0.38);
	}

	.quick-call-widget.is-dragging .quick-call-widget__trigger {
		cursor: grabbing;
		transform: scale(0.97);
	}

	.quick-call-widget__trigger-icon {
		width: 26px;
		height: 26px;
		filter: brightness(0) invert(1);
		pointer-events: none;
	}

	.quick-call-widget__panel {
		position: absolute;
		width: min(320px, calc(100vw - (var(--quick-call-gap) * 2) - env(safe-area-inset-left) - env(safe-area-inset-right)));
		padding: 14px 14px 12px;
		border: 1px solid rgba(148, 163, 184, 0.36);
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.98);
		box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(8px) scale(0.97);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	}

	.quick-call-widget[data-corner^='top'] .quick-call-widget__panel {
		transform: translateY(-8px) scale(0.97);
	}

	.quick-call-widget[data-corner^='bottom'] .quick-call-widget__panel {
		bottom: calc(100% + 12px);
	}

	.quick-call-widget[data-corner^='top'] .quick-call-widget__panel {
		top: calc(100% + 12px);
	}

	.quick-call-widget[data-corner$='right'] .quick-call-widget__panel {
		right: 0;
	}

	.quick-call-widget[data-corner$='left'] .quick-call-widget__panel {
		left: 0;
	}

	.quick-call-widget.is-open .quick-call-widget__panel {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0) scale(1);
	}

	.quick-call-widget__title {
		margin: 0 0 10px;
		font-size: 1rem;
		font-weight: 800;
		color: #0f172a;
	}

	.quick-call-widget__list {
		list-style: none;
		margin: 0;
		padding: 0;
		display: grid;
		gap: 9px;
	}

	.quick-call-widget__item {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px;
		align-items: center;
		padding: 8px 10px;
		border-radius: 11px;
		background: #f8fbff;
		border: 1px solid #e2e8f0;
	}

	.quick-call-widget__phone {
		font-weight: 700;
		font-size: 0.95rem;
		color: #0f172a;
		line-height: 1.2;
		white-space: nowrap;
	}

	.quick-call-widget__phone:hover {
		color: #0369a1;
	}

	.quick-call-widget__messengers {
		display: inline-flex;
		gap: 6px;
		align-items: center;
	}

	.quick-call-widget__social-link {
		width: 34px;
		height: 34px;
		border-radius: 50%;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		transition: transform 0.2s ease, box-shadow 0.2s ease;
	}

	.quick-call-widget__social-link:hover {
		transform: translateY(-2px);
		box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
	}

	.quick-call-widget__social-icon {
		width: 22px;
		height: 22px;
		display: block;
	}

	.quick-call-widget__order {
		margin-top: 12px;
	}

	.quick-call-widget__order-btn {
		width: 100%;
		min-height: 42px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 10px 14px;
		border: 0;
		border-radius: 11px;
		background: linear-gradient(145deg, #4fc7f6, #1f8fd1);
		color: #ffffff;
		font-size: 0.95rem;
		font-weight: 700;
		line-height: 1.2;
		text-align: center;
		cursor: pointer;
		transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	}

	.quick-call-widget__order-btn:hover {
		transform: translateY(-1px);
		box-shadow: 0 8px 18px rgba(31, 110, 214, 0.28);
		filter: brightness(1.03);
	}

	.quick-call-widget__order-btn:focus-visible {
		outline: 2px solid #0ea5e9;
		outline-offset: 2px;
	}

	@keyframes quick-call-pulse {
		0% {
			opacity: 0;
			transform: scale(0.82);
		}

		18% {
			opacity: 0.75;
		}

		100% {
			opacity: 0;
			transform: scale(1.26);
		}
	}

	@media (max-width: 768px) {
		.quick-call-widget {
			--quick-call-gap: 16px;
		}

		.quick-call-widget__trigger {
			width: 60px;
			height: 60px;
		}

		.quick-call-widget__panel {
			width: min(300px, calc(100vw - (var(--quick-call-gap) * 2) - env(safe-area-inset-left) - env(safe-area-inset-right)));
			padding: 12px;
		}

		.quick-call-widget__item {
			grid-template-columns: 1fr;
			gap: 7px;
		}
	}

	@media (max-width: 540px) {
		.quick-call-widget {
			--quick-call-gap: 14px;
		}

		.quick-call-widget__trigger {
			width: 56px;
			height: 56px;
		}

		.quick-call-widget__trigger-icon {
			width: 24px;
			height: 24px;
		}

		.quick-call-widget__panel {
			width: min(286px, calc(100vw - (var(--quick-call-gap) * 2) - env(safe-area-inset-left) - env(safe-area-inset-right)));
		}
	}

