/* WP WhatsApp & KakaoTalk Chat - Front-end Styles */
:root {
	--wpsct-wa-color: #25d366;
	--wpsct-kakao-bg: #fee500;
	--wpsct-kakao-text: #3c1e1e;
	--wpsct-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	--wpsct-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wpsct-widget-root {
	position: fixed;
	z-index: 99999;
	font-family: var(--wpsct-font);
	box-sizing: border-box;
}

.wpsct-widget-root *, 
.wpsct-widget-root *::before, 
.wpsct-widget-root *::after {
	box-sizing: border-box;
}

/* Position: Bottom Right */
.wpsct-pos-bottom-right {
	bottom: 25px;
	right: 25px;
}

/* Position: Bottom Left */
.wpsct-pos-bottom-left {
	bottom: 25px;
	left: 25px;
}

/* =======================================
   TRIGGER BUBBLE BUTTON (CIRCULAR)
   ======================================= */
.wpsct-trigger-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	background: var(--wpsct-primary, #075e54);
	color: #ffffff;
	border: none;
	border-radius: 50%;
	padding: 0;
	cursor: pointer;
	box-shadow: var(--wpsct-shadow);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
}

.wpsct-trigger-btn:hover {
	transform: translateY(-3px) scale(1.06);
	box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

.wpsct-btn-content {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.wpsct-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpsct-btn-label {
	display: none;
}

/* Pulse Animation Ring */
.wpsct-pulse-ring {
	position: absolute;
	top: -5px;
	left: -5px;
	right: -5px;
	bottom: -5px;
	border-radius: 50%;
	border: 2px solid var(--wpsct-primary, #075e54);
	animation: wpsct-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
	pointer-events: none;
	opacity: 0.7;
}

@keyframes wpsct-pulse {
	0% {
		transform: scale(0.95);
		opacity: 0.8;
	}
	70% {
		transform: scale(1.15);
		opacity: 0;
	}
	100% {
		transform: scale(1.15);
		opacity: 0;
	}
}

/* =======================================
   POPUP CARD
   ======================================= */
.wpsct-chat-popup-card {
	position: absolute;
	bottom: 70px;
	width: 320px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: var(--wpsct-shadow);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px) scale(0.95);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wpsct-pos-bottom-right .wpsct-chat-popup-card {
	right: 0;
}

.wpsct-pos-bottom-left .wpsct-chat-popup-card {
	left: 0;
}

.wpsct-chat-popup-card.wpsct-active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

/* Popup Header */
.wpsct-popup-header {
	background: var(--wpsct-primary, #075e54);
	color: #ffffff;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.wpsct-header-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wpsct-online-indicator {
	width: 10px;
	height: 10px;
	background-color: #25d366;
	border-radius: 50%;
	display: inline-block;
	box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}

.wpsct-popup-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
}

.wpsct-close-btn {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
	padding: 0 4px;
	transition: opacity 0.2s;
}

.wpsct-close-btn:hover {
	opacity: 1;
}

.wpsct-popup-subhead {
	padding: 12px 18px;
	background: #f8f9fa;
	border-bottom: 1px solid #edf2f7;
}

.wpsct-popup-subhead p {
	margin: 0;
	font-size: 13px;
	color: #64748b;
	line-height: 1.4;
}

/* Popup Body Items */
.wpsct-popup-body {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wpsct-channel-item {
	display: flex;
	align-items: center;
	padding: 12px;
	border-radius: 12px;
	text-decoration: none !important;
	color: #1e293b !important;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	transition: all 0.2s ease;
	cursor: pointer;
}

.wpsct-channel-item:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	transform: translateX(3px);
}

.wpsct-icon-wrapper {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.wa-bg {
	background: var(--wpsct-wa-color);
}

.kakao-bg {
	background: var(--wpsct-kakao-bg);
}

.wpsct-channel-details {
	margin-left: 12px;
	flex-grow: 1;
}

.wpsct-channel-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.wpsct-channel-sub {
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
}

.wpsct-arrow {
	font-size: 20px;
	color: #cbd5e1;
	font-weight: bold;
}

.wpsct-popup-footer {
	padding: 8px;
	text-align: center;
	font-size: 11px;
	color: #94a3b8;
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
}

/* =======================================
   STACKED BUTTONS STYLE (CIRCULAR BUBBLES)
   ======================================= */
.wpsct-stacked-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-end;
}

.wpsct-pos-bottom-left .wpsct-stacked-buttons {
	align-items: flex-start;
}

.wpsct-stacked-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	padding: 0;
	text-decoration: none !important;
	box-shadow: var(--wpsct-shadow);
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	cursor: pointer;
}

.wpsct-stacked-btn:hover {
	transform: translateY(-3px) scale(1.1);
	box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.wpsct-wa-stacked {
	background: var(--wpsct-wa-color);
	color: #ffffff !important;
}

.wpsct-kakao-stacked {
	background: var(--wpsct-kakao-bg);
	color: var(--wpsct-kakao-text) !important;
}

.wpsct-stacked-label {
	display: none;
}

/* =======================================
   KAKAOTALK PERSONAL MODAL (QR & ID)
   ======================================= */
.wpsct-modal-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wpsct-modal-wrapper.wpsct-modal-active {
	opacity: 1;
	visibility: visible;
}

.wpsct-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
}

.wpsct-modal-card {
	position: relative;
	width: 90%;
	max-width: 360px;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	transform: scale(0.9) translateY(20px);
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 2;
}

.wpsct-modal-wrapper.wpsct-modal-active .wpsct-modal-card {
	transform: scale(1) translateY(0);
}

.wpsct-modal-header.kakao-header {
	background: var(--wpsct-kakao-bg);
	color: var(--wpsct-kakao-text);
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.wpsct-modal-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 17px;
}

.wpsct-modal-close {
	background: rgba(60, 30, 30, 0.1);
	border: none;
	color: var(--wpsct-kakao-text);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.wpsct-modal-close:hover {
	background: rgba(60, 30, 30, 0.2);
}

.wpsct-modal-body {
	padding: 24px 20px;
	text-align: center;
}

.wpsct-qr-frame {
	display: inline-block;
	padding: 10px;
	background: #ffffff;
	border: 2px dashed #fcd34d;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.06);
	margin-bottom: 12px;
}

.wpsct-qr-image {
	display: block;
	max-width: 180px;
	height: auto;
	border-radius: 8px;
}

.wpsct-qr-hint {
	font-size: 13px;
	color: #64748b;
	line-height: 1.4;
	margin: 0 0 16px 0;
}

.wpsct-id-container {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 12px 14px;
	margin-bottom: 14px;
	text-align: left;
}

.wpsct-id-label-text {
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

.wpsct-id-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	padding: 6px 10px 6px 14px;
}

.wpsct-id-value {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	user-select: all;
}

.wpsct-btn-copy {
	background: #fee500;
	color: #3c1e1e;
	border: none;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: all 0.2s ease;
}

.wpsct-btn-copy:hover {
	background: #f5dc00;
	transform: scale(1.03);
}

.wpsct-btn-copy.copied {
	background: #25d366;
	color: #ffffff;
}

.wpsct-modal-app-link {
	margin-top: 10px;
}

.wpsct-open-kakao-btn {
	display: inline-block;
	width: 100%;
	padding: 10px 16px;
	background: #f1f5f9;
	color: #475569 !important;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.wpsct-open-kakao-btn:hover {
	background: #e2e8f0;
	color: #1e293b !important;
}

/* Mobile responsive fixes */
@media (max-width: 480px) {
	.wpsct-pos-bottom-right,
	.wpsct-pos-bottom-left {
		bottom: 15px;
		right: 15px;
		left: auto;
	}

	.wpsct-chat-popup-card {
		width: calc(100vw - 30px);
		max-width: 340px;
	}
}
