:root {
	--wplcw-green: #0b4f40;
	--wplcw-green-dark: #073d32;
	--wplcw-line: #06c755;
	--wplcw-border: #d8e1de;
	--wplcw-muted: #63716d;
	--wplcw-danger: #b42318;
}

.wplcw-line-button-wrap { margin: 14px 0; }
.wplcw-line-button,
.woocommerce a.wplcw-line-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 8px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--wplcw-line);
	box-shadow: 0 8px 20px rgba(6,199,85,.18);
	color: #fff;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wplcw-line-button:hover,
.wplcw-line-button:focus,
.woocommerce a.wplcw-line-button:hover,
.woocommerce a.wplcw-line-button:focus { background: #05ad4a; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(6,199,85,.24); }
.wplcw-line-logo, .wplcw-chat-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--wplcw-line); font-size: 8px; font-weight: 900; letter-spacing: -.02em; }

.wplcw-floating-chat {
	position: fixed;
	z-index: 9998;
	bottom: 22px;
	display: flex;
	align-items: center;
	gap: 9px;
	max-width: min(310px, calc(100vw - 32px));
	min-height: 56px;
	padding: 8px 14px 8px 9px;
	border-radius: 999px;
	background: var(--wplcw-line);
	box-shadow: 0 12px 32px rgba(0,0,0,.2);
	color: #fff;
	font-weight: 750;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}
.wplcw-floating-chat.is-right { right: 20px; }
.wplcw-floating-chat.is-left { left: 20px; }
.wplcw-floating-chat:hover, .wplcw-floating-chat:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 15px 38px rgba(0,0,0,.24); }
.wplcw-floating-chat .wplcw-chat-mark { width: 40px; height: 40px; font-size: 9px; }
.wplcw-chat-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wplcw-product-chat-wrap { clear: both; margin: 12px 0 0; }
.woocommerce .wplcw-product-chat.button,
.wplcw-product-chat.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 8px 16px; border-color: var(--wplcw-line); background: var(--wplcw-line); color: #fff; }
.woocommerce .wplcw-product-chat.button:hover,
.wplcw-product-chat.button:hover { border-color: #05ad4a; background: #05ad4a; color: #fff; }
.woocommerce .wplcw-product-chat .wplcw-chat-mark { width: 30px; height: 30px; }

.wplcw-account-panel {
	margin: 0 0 24px;
	/* padding: clamp(18px, 3vw, 26px);
	border: 1px solid #e5e7eb;
	border-radius: 14px; */
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	color: #0f172a;
}
.wplcw-account-panel *, .wplcw-account-panel *::before, .wplcw-account-panel *::after { box-sizing: border-box; }

/* Head */
.wplcw-account-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}
.wplcw-head-content { min-width: 0; }
.wplcw-tag-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	border-radius: 6px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	margin-bottom: 6px;
}
.wplcw-tag-line-icon { color: #06c755; }
.wplcw-account-head h2 {
	margin: 0;
	color: #111827;
	font-size: clamp(20px, 2.6vw, 24px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
}
.wplcw-account-head p {
	margin: 4px 0 0;
	color: #6b7280;
	font-size: 13.5px;
	line-height: 1.5;
}
.wplcw-head-status { flex: 0 0 auto; }
.wplcw-account-state {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	color: #374151;
}
.wplcw-account-state.is-linked .wplcw-state-dot {
	background: #10b981;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.wplcw-account-state.is-unlinked .wplcw-state-dot {
	background: #9ca3af;
}
.wplcw-state-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
}

/* Profile Card */
.wplcw-line-profile-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 14px 18px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: none;
	margin-bottom: 14px;
}
.wplcw-avatar-wrap {
	position: relative;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
}
.wplcw-avatar-wrap img {
	width: 100%;
	height: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.wplcw-avatar-line-badge {
	position: absolute;
	bottom: -1px;
	right: -1px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #06c755;
	border: 2px solid #ffffff;
	display: grid;
	place-items: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.wplcw-line-profile-main { min-width: 0; }
.wplcw-profile-badge-label {
	display: inline-block;
	color: #6b7280;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 2px;
}
.wplcw-profile-name {
	display: block;
	font-size: 16.5px;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.01em;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.wplcw-profile-uid-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 4px;
	padding: 1px 7px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	font-size: 11.5px;
	color: #6b7280;
}
.wplcw-uid-prefix { font-weight: 600; color: #9ca3af; }
.wplcw-profile-uid-pill code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 11.5px;
	color: #4b5563;
	background: none;
	padding: 0;
}
.wplcw-friend-status,
.wpcn-line-oa-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 9999px;
	font-size: 13.2px;
	font-weight: 600;
	white-space: nowrap;
	line-height: 1.35;
	box-sizing: border-box;
}
.wplcw-friend-status.is-friend,
.wpcn-line-oa-badge.wpcn-line-oa-verified {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #15803d;
}
.wplcw-friend-status.is-not-friend {
	background: #fffbeb;
	border: 1px solid #fef3c7;
	color: #b45309;
}
.wplcw-friend-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}
.wplcw-refresh-friend-btn {
	display: inline-flex;
	align-items: center;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 4px;
	background: #ffffff;
	border: 1px solid #fcd34d;
	color: #b45309;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.15s ease;
	line-height: 1.2;
}
.wplcw-refresh-friend-btn:hover {
	background: #fef3c7;
	color: #78350f;
	border-color: #f59e0b;
}
.wplcw-oa-check-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #86efac;
	color: #166534;
	transition: all 0.15s ease;
	white-space: nowrap;
}
.wplcw-oa-check-action:hover {
	background: #f0fdf4;
	border-color: #22c55e;
	color: #15803d;
}

/* LINE OA Add-friend Recommendation Card (Keep prominent as requested) */
.wplcw-oa-banner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
	margin-bottom: 14px;
}
.wplcw-oa-banner-icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #06c755;
	color: #ffffff;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.wplcw-oa-banner-info { flex: 1 1 auto; min-width: 0; }
.wplcw-oa-banner-info strong {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #166534;
}
.wplcw-oa-banner-info p {
	margin: 2px 0 0;
	font-size: 12.5px;
	color: #15803d;
	line-height: 1.4;
}
.wplcw-oa-banner-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 8px;
	background: #06c755;
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s ease;
}
.wplcw-oa-banner-action:hover {
	background: #05ad4a;
}

/* Details Grid - Clean, Unified, Formal */
.wplcw-account-details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 14px 0 18px;
}
.wplcw-detail-card {
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #ffffff;
	transition: border-color .15s ease;
}
.wplcw-detail-card:hover {
	border-color: #cbd5e1;
}
.wplcw-detail-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}
.wplcw-detail-icon {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 6px;
	background: #f1f5f9;
	color: #475569;
}
.wplcw-detail-label {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
}
.wplcw-detail-value {
	font-size: 14.5px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 4px;
	line-height: 1.4;
}
.wplcw-email-cell { min-width: 0; }
.wplcw-email-str {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #111827;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.wplcw-detail-meta {
	font-size: 11.5px;
	color: #9ca3af;
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.wplcw-meta-placeholder {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 4px;
	background: #fef3c7;
	color: #92400e;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}
.wplcw-meta-verified { color: #64748b; }
.wplcw-meta-link {
	color: #2563eb;
	text-decoration: none;
	font-weight: 600;
}
.wplcw-meta-link:hover { text-decoration: underline; }
.wplcw-notify-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 700;
}
.wplcw-notify-pill.is-active { color: #15803d; }
.wplcw-notify-pill.is-inactive { color: #64748b; }
.wplcw-notify-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #10b981;
}

/* Actions Row - Clean & Restrained */
.wplcw-account-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
}
.woocommerce .wplcw-account-panel .button,
.woocommerce .wplcw-account-panel a.button,
.wplcw-account-panel .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: all .15s ease;
}
.wplcw-account-panel .wplcw-btn-test {
	background: #0f172a !important;
	border: 1px solid #0f172a !important;
	color: #ffffff !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
.wplcw-account-panel .wplcw-btn-test:hover {
	background: #1e293b !important;
	border-color: #1e293b !important;
	color: #ffffff !important;
}
.wplcw-account-panel .wplcw-danger-link {
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	color: #dc2626 !important;
	box-shadow: none !important;
	margin-left: auto;
}
.wplcw-account-panel .wplcw-danger-link:hover {
	background: #fef2f2 !important;
	border-color: #fca5a5 !important;
	color: #b91c1c !important;
}

/* Empty State */
.wplcw-connect-empty-hero {
	padding: 28px 24px;
	border: 1px dashed #cbd5e1;
	border-radius: 16px;
	background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
	text-align: center;
	margin-bottom: 20px;
}
.wplcw-empty-icon-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}
.wplcw-empty-line-bubble {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #06c755;
	display: grid;
	place-items: center;
	/* box-shadow: 0 10px 24px rgba(6, 199, 85, 0.28); */
}
.wplcw-empty-text-wrap h3 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
}
.wplcw-empty-text-wrap p {
	margin: 0 0 18px;
	color: #64748b;
	font-size: 14px;
	line-height: 1.5;
}
.wplcw-empty-perks {
	list-style: none;
	padding: 0;
	margin: 0 auto 24px;
	max-width: 480px;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.wplcw-empty-perks li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: #334155;
	font-weight: 500;
}
.wplcw-btn-connect-line {
	margin-top: 25px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 28px;
	border-radius: 12px;
	background: #06c755;
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	/* box-shadow: 0 8px 20px rgba(6, 199, 85, 0.25); */
	transition: all .18s ease;
}
.wplcw-btn-connect-line:hover {
	background: #05ad4a;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(6, 199, 85, 0.35);
}

/* Security Note */
.wplcw-account-security-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.5;
}
.wplcw-security-icon {
	color: #6b7280;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	margin-top: 1px;
}
.wplcw-security-desc strong { color: #374151; font-weight: 600; }

@media (max-width: 768px) {
	/* .wplcw-account-panel { padding: 20px 16px; border-radius: 16px; } */
	.wplcw-account-head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.wplcw-head-status { align-self: flex-start; }
	.wplcw-line-profile-card { grid-template-columns: auto 1fr; gap: 14px; padding: 16px; }
	.wplcw-friend-status { grid-column: 1 / -1; justify-self: flex-start; }
	.wplcw-oa-banner { flex-direction: column; text-align: center; gap: 12px; }
	.wplcw-oa-banner-action { width: 100%; justify-content: center; }
	.wplcw-account-details { grid-template-columns: 1fr; gap: 10px; }
	.wplcw-account-actions { flex-direction: column; }
	.woocommerce .wplcw-account-panel .button,
	.wplcw-account-panel .button { width: 100%; justify-content: center; margin-left: 0 !important; }
}

/* ==========================================================================
   Social Login (Google & LINE) - Modern Frontend Styles
   ========================================================================== */

/* WooCommerce Form Height & Clearfix Fixes */
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register,
.woocommerce-page form.woocommerce-form-login,
.woocommerce-page form.woocommerce-form-register,
.woocommerce form.login,
.woocommerce form.register {
	height: auto !important;
	min-height: 100% !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

.woocommerce form.woocommerce-form-login::after,
.woocommerce form.woocommerce-form-register::after,
.woocommerce-page form.woocommerce-form-login::after,
.woocommerce-page form.woocommerce-form-register::after,
.woocommerce form.login::after,
.woocommerce form.register::after {
	content: "" !important;
	display: table !important;
	clear: both !important;
}

/* Main Button Wrapper */
.wpgl-button-wrapper {
	margin: 10px 0 0 0 !important;
	display: flex !important;
	width: 100% !important;
	clear: both !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

.wpgl-button-wrapper.wpgl-pos-top_inside,
.wpgl-button-wrapper.wpgl-pos-above_form {
	margin: 4px 0 0 0 !important;
}

.wpgl-buttons-stack {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px;
	width: 100% !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

.wpgl-btn-item {
	width: 100% !important;
	display: flex !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

/* Google GIS Render Target Container */
.wpgl-render-target {
	position: relative !important;
	display: flex !important;
	align-items: flex-start !important;
	justify-content: center !important;
	width: 100% !important;
	box-sizing: border-box !important;
	overflow: visible !important;
	transform-origin: center center !important;
}

.wpgl-line-btn {
	transform-origin: center center !important;
}

.wpgl-size-large .wpgl-render-target {
	height: 40px !important;
	min-height: 40px !important;
}

.wpgl-size-medium .wpgl-render-target {
	height: 32px !important;
	min-height: 32px !important;
}

.wpgl-size-small .wpgl-render-target {
	height: 20px !important;
	min-height: 20px !important;
}

.wpgl-render-target .S9gUrf-YoZ4jf {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	overflow: visible !important;
}

.wpgl-size-large .wpgl-render-target .S9gUrf-YoZ4jf {
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
}

.wpgl-size-medium .wpgl-render-target .S9gUrf-YoZ4jf {
	height: 32px !important;
	min-height: 32px !important;
	max-height: 32px !important;
}

.wpgl-size-small .wpgl-render-target .S9gUrf-YoZ4jf {
	height: 20px !important;
	min-height: 20px !important;
	max-height: 20px !important;
}

.wpgl-render-target .S9gUrf-YoZ4jf > div {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
}

/* Invisible space reservation placeholder */
.wpgl-google-placeholder {
	visibility: hidden !important;
	width: 100% !important;
	pointer-events: none !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.wpgl-google-size-large.wpgl-google-placeholder { height: 40px !important; }
.wpgl-google-size-medium.wpgl-google-placeholder { height: 32px !important; }
.wpgl-google-size-small.wpgl-google-placeholder { height: 20px !important; }

/* Google Button Styles */
.wpgl-google-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-direction: row !important;
	box-sizing: border-box !important;
	text-decoration: none !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-weight: 500 !important;
	letter-spacing: .25px !important;
	line-height: normal !important;
	cursor: pointer;
	user-select: none;
	border-radius: 4px;
	width: 100%;
	position: relative !important;
	white-space: nowrap !important;
}

.wpgl-google-btn-icon-only {
	justify-content: center !important;
	padding: 0 !important;
}

.wpgl-google-theme-outline {
	background-color: #ffffff !important;
	color: #3c4043 !important;
	border: 1px solid #dadce0 !important;
}

.wpgl-google-theme-filled_blue {
	background-color: #1a73e8 !important;
	color: #ffffff !important;
	border: 1px solid transparent !important;
}

.wpgl-google-theme-filled_black {
	background-color: #131314 !important;
	color: #ffffff !important;
	border: 1px solid transparent !important;
}

.wpgl-google-shape-rectangular { border-radius: 4px !important; }
.wpgl-google-shape-pill { border-radius: 9999px !important; }
.wpgl-google-shape-circle { border-radius: 50% !important; }
.wpgl-google-shape-square { border-radius: 4px !important; }

.wpgl-google-size-large {
	height: 40px !important;
	padding: 0 12px !important;
	font-size: 14px !important;
}
.wpgl-google-size-large .wpgl-google-icon {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	margin-right: 8px !important;
}

.wpgl-google-size-medium {
	height: 32px !important;
	padding: 0 10px !important;
	font-size: 14px !important;
}
.wpgl-google-size-medium .wpgl-google-icon {
	width: 14px !important;
	height: 14px !important;
	min-width: 14px !important;
	margin-right: 8px !important;
}

.wpgl-google-size-small {
	height: 20px !important;
	padding: 0 8px !important;
	font-size: 11px !important;
}
.wpgl-google-size-small .wpgl-google-icon {
	width: 10px !important;
	height: 10px !important;
	min-width: 10px !important;
	margin-right: 6px !important;
}

.wpgl-google-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
}

.wpgl-google-icon svg {
	width: 100%;
	height: 100%;
}

.wpgl-google-text {
	flex-grow: 1 !important;
	text-align: center !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	vertical-align: top !important;
}

/* Positioning Google GIS iframe */
.wpgl-size-large:not(.wpgl-type-icon-only):not(.wpgl-type-icon_only) .wpgl-render-target iframe,
#wpgl-admin-preview .wpgl-size-large:not(.wpgl-type-icon-only):not(.wpgl-type-icon_only) iframe {
	position: absolute !important;
	top: -2px !important;
	left: -10px !important;
	height: 44px !important;
	margin: 0 !important;
	z-index: 2 !important;
	display: block !important;
	max-width: none !important;
	min-width: auto !important;
	border: none !important;
	box-sizing: content-box !important;
	vertical-align: top !important;
}

.wpgl-size-medium:not(.wpgl-type-icon-only):not(.wpgl-type-icon_only) .wpgl-render-target iframe,
#wpgl-admin-preview .wpgl-size-medium:not(.wpgl-type-icon-only):not(.wpgl-type-icon_only) iframe {
	position: absolute !important;
	top: -2px !important;
	left: -8px !important;
	height: 36px !important;
	margin: 0 !important;
	z-index: 2 !important;
	display: block !important;
	max-width: none !important;
	min-width: auto !important;
	border: none !important;
	box-sizing: content-box !important;
	vertical-align: top !important;
}

.wpgl-size-small:not(.wpgl-type-icon-only):not(.wpgl-type-icon_only) .wpgl-render-target iframe,
#wpgl-admin-preview .wpgl-size-small:not(.wpgl-type-icon-only):not(.wpgl-type-icon_only) iframe {
	position: absolute !important;
	top: -2px !important;
	left: -6px !important;
	height: 24px !important;
	margin: 0 !important;
	z-index: 2 !important;
	display: block !important;
	max-width: none !important;
	min-width: auto !important;
	border: none !important;
	box-sizing: content-box !important;
	vertical-align: top !important;
}

/* Ensure Google GSI iframes are never constrained by theme's embed, iframe, object { max-width: 100%; } */
.wpgl-container iframe,
.wpgl-render-target iframe,
.wpgl-render-target .S9gUrf-YoZ4jf iframe,
.wpgl-button-wrapper iframe,
#wpgl-admin-preview iframe {
	max-width: none !important;
	min-width: auto !important;
}

/* Icon-only mode iframe positioning - allow Google GSI to naturally position and center its iframe */
.wpgl-type-icon-only .wpgl-render-target iframe,
.wpgl-type-icon_only .wpgl-render-target iframe,
#wpgl-admin-preview .wpgl-type-icon-only iframe,
#wpgl-admin-preview .wpgl-type-icon_only iframe {
	border: none !important;
	display: block !important;
	max-width: none !important;
	min-width: auto !important;
}

/* Center Alignment */
.wpgl-align-center {
	justify-content: center !important;
	text-align: center !important;
}

.wpgl-align-center .wpgl-buttons-stack {
	margin-left: auto !important;
	margin-right: auto !important;
	align-items: center !important;
}

.wpgl-align-center .wpgl-btn-item {
	justify-content: center !important;
	align-items: center !important;
}

.wpgl-align-center:not(.wpgl-type-icon-only):not(.wpgl-type-icon_only) .wpgl-render-target {
	justify-content: center !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.wpgl-align-center:not(.wpgl-type-icon-only):not(.wpgl-type-icon_only) .wpgl-line-btn {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Left Alignment */
.wpgl-align-left {
	justify-content: flex-start !important;
	text-align: left !important;
}

.wpgl-align-left .wpgl-buttons-stack {
	margin-left: 0 !important;
	margin-right: auto !important;
	align-items: flex-start !important;
}

.wpgl-align-left .wpgl-btn-item {
	justify-content: flex-start !important;
	align-items: flex-start !important;
}

.wpgl-align-left .wpgl-render-target {
	justify-content: flex-start !important;
	margin-left: 0 !important;
	margin-right: auto !important;
}

.wpgl-align-left .wpgl-line-btn {
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Right Alignment */
.wpgl-align-right {
	justify-content: flex-end !important;
	text-align: right !important;
}

.wpgl-align-right .wpgl-buttons-stack {
	margin-left: auto !important;
	margin-right: 0 !important;
	align-items: flex-end !important;
}

.wpgl-align-right .wpgl-btn-item {
	justify-content: flex-end !important;
	align-items: flex-end !important;
}

.wpgl-align-right .wpgl-render-target {
	justify-content: flex-end !important;
	margin-left: auto !important;
	margin-right: 0 !important;
}

.wpgl-align-right .wpgl-line-btn {
	margin-left: auto !important;
	margin-right: 0 !important;
}

/* Full Width */
.wpgl-is-full-width {
	width: 100% !important;
}

.wpgl-is-full-width .wpgl-buttons-stack {
	width: 100% !important;
	max-width: 400px !important;
}

.wpgl-is-full-width .wpgl-btn-item {
	width: 100% !important;
}

.wpgl-is-full-width .wpgl-render-target {
	width: 100% !important;
}

.wpgl-is-full-width .wpgl-line-btn {
	width: 100% !important;
	max-width: 100% !important;
}

/* Divider */
.wpgl-divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 14px 0 10px 0 !important;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	width: 100%;
	clear: both !important;
}

.wpgl-divider::before,
.wpgl-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #e2e8f0;
}

.wpgl-divider:not(:empty)::before { margin-right: .85em; }
.wpgl-divider:not(:empty)::after { margin-left: .85em; }

.wpgl-divider.wpgl-divider-bottom,
.wpgl-button-wrapper + .wpgl-divider,
.wpgl-button-wrapper + .wpgl-loading + .wpgl-divider {
	margin: 14px 0 16px 0 !important;
}

#loginform .wpgl-divider,
#registerform .wpgl-divider {
	clear: both !important;
	margin-top: 18px !important;
}

#loginform p.submit,
#registerform p.submit {
	margin-bottom: 0 !important;
}

#loginform p.submit::after,
#registerform p.submit::after,
#loginform .forgetmenot::after,
#registerform .forgetmenot::after {
	content: "" !important;
	display: table !important;
	clear: both !important;
}

.wpgl-loading {
	display: none;
	font-size: 13px;
	color: #1a73e8;
	margin-top: 8px;
	text-align: center;
	font-weight: 500;
	width: 100%;
	clear: both;
}

.wpgl-logged-in-msg {
	padding: 10px 14px;
	background-color: #f0f6fc;
	border-left: 4px solid #1a73e8;
	margin: 10px 0;
	font-size: 14px;
}

/* LINE Login Button Styles */
.wpgl-line-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: 600;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
	border: none;
	outline: none;
	user-select: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.wpgl-line-btn:hover {
	text-decoration: none !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.wpgl-line-btn:active {
	transform: translateY(1px);
}

.wpgl-line-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 10px;
	flex-shrink: 0;
}

.wpgl-line-text {
	flex-grow: 1;
	text-align: center;
	padding-right: 22px;
}

.wpgl-line-size-large {
	height: 40px !important;
	font-size: 14px;
	padding: 0 14px;
	line-height: 40px;
}

.wpgl-line-size-medium {
	height: 32px !important;
	font-size: 12px;
	padding: 0 10px;
	line-height: 32px;
}

.wpgl-line-size-small {
	height: 20px !important;
	font-size: 11px;
	padding: 0 8px;
	line-height: 20px;
}

.wpgl-line-size-small .wpgl-line-icon { margin-right: 6px; }
.wpgl-line-size-medium .wpgl-line-icon { margin-right: 8px; }
.wpgl-line-size-small .wpgl-line-text { padding-right: 14px; }
.wpgl-line-size-medium .wpgl-line-text { padding-right: 18px; }

.wpgl-line-shape-rectangular,
.wpgl-line-shape-square,
.wpgl-shape-rectangular .wpgl-line-btn {
	border-radius: 4px !important;
}

.wpgl-line-shape-pill,
.wpgl-shape-pill .wpgl-line-btn {
	border-radius: 9999px !important;
}

.wpgl-line-shape-circle,
.wpgl-shape-circle .wpgl-line-btn {
	border-radius: 50% !important;
}

.wpgl-line-btn-icon-only.wpgl-line-shape-circle,
.wpgl-line-btn-icon-only.wpgl-line-shape-pill,
.wpgl-type-icon-only.wpgl-shape-pill .wpgl-line-btn,
.wpgl-type-icon_only.wpgl-shape-pill .wpgl-line-btn,
.wpgl-type-icon-only .wpgl-line-shape-circle,
.wpgl-type-icon-only .wpgl-line-shape-pill,
.wpgl-type-icon_only .wpgl-line-shape-circle,
.wpgl-type-icon_only .wpgl-line-shape-pill {
	border-radius: 50% !important;
}

.wpgl-line-btn-icon-only.wpgl-line-shape-square,
.wpgl-line-btn-icon-only.wpgl-line-shape-rectangular,
.wpgl-type-icon-only.wpgl-shape-rectangular .wpgl-line-btn,
.wpgl-type-icon_only.wpgl-shape-rectangular .wpgl-line-btn,
.wpgl-type-icon-only .wpgl-line-shape-square,
.wpgl-type-icon-only .wpgl-line-shape-rectangular,
.wpgl-type-icon_only .wpgl-line-shape-square,
.wpgl-type-icon_only .wpgl-line-shape-rectangular {
	border-radius: 4px !important;
}

.wpgl-line-theme-green {
	background-color: #06C755 !important;
	color: #ffffff !important;
}

.wpgl-line-theme-green:hover {
	background-color: #05b34c !important;
	color: #ffffff !important;
}

.wpgl-line-theme-dark {
	background-color: #1E1E1E !important;
	color: #ffffff !important;
}

.wpgl-line-theme-dark:hover {
	background-color: #333333 !important;
	color: #ffffff !important;
}

.wpgl-line-theme-white {
	background-color: #ffffff !important;
	color: #06C755 !important;
	border: 1px solid #06C755 !important;
}

.wpgl-line-theme-white:hover {
	background-color: #f7fdf9 !important;
}

/* Layout Modes */
.wpgl-layout-vertical .wpgl-buttons-stack {
	flex-direction: column !important;
}

.wpgl-layout-horizontal .wpgl-buttons-stack {
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 10px !important;
	align-items: center !important;
	width: 100% !important;
}

.wpgl-layout-horizontal:not(.wpgl-type-icon-only):not(.wpgl-type-icon_only) .wpgl-btn-item {
	width: auto !important;
	flex: 1 1 0 !important;
	min-width: 0 !important;
	max-width: 50% !important;
}

.wpgl-layout-horizontal:not(.wpgl-type-icon-only):not(.wpgl-type-icon_only) .wpgl-line-btn {
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 8px !important;
	white-space: nowrap !important;
}

.wpgl-layout-horizontal:not(.wpgl-type-icon-only):not(.wpgl-type-icon_only) .wpgl-line-text {
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
	padding-right: 6px !important;
}

.wpgl-layout-grid_2 .wpgl-buttons-stack {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 12px !important;
	width: 100% !important;
}

.wpgl-layout-grid_2 .wpgl-btn-item {
	width: 100% !important;
	min-width: 0 !important;
}

.wpgl-layout-grid_2 .wpgl-render-target,
.wpgl-layout-grid_2 .wpgl-line-btn {
	width: 100% !important;
	max-width: 100% !important;
}

@media screen and (max-width: 480px) {
	.wpgl-layout-grid_2:not(.wpgl-type-icon-only):not(.wpgl-type-icon_only) .wpgl-buttons-stack {
		grid-template-columns: 1fr !important;
	}
}

/* Icon Only Mode */
.wpgl-type-icon-only .wpgl-buttons-stack,
.wpgl-type-icon_only .wpgl-buttons-stack {
	display: inline-flex !important;
	width: auto !important;
	max-width: 100% !important;
	gap: 16px !important;
}

.wpgl-type-icon-only .wpgl-btn-item,
.wpgl-type-icon_only .wpgl-btn-item {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.wpgl-type-icon-only.wpgl-size-large .wpgl-btn-item,
.wpgl-type-icon_only.wpgl-size-large .wpgl-btn-item,
.wpgl-type-icon-only.wpgl-size-large .wpgl-render-target,
.wpgl-type-icon_only.wpgl-size-large .wpgl-render-target,
.wpgl-type-icon-only.wpgl-size-large .S9gUrf-YoZ4jf,
.wpgl-type-icon_only.wpgl-size-large .S9gUrf-YoZ4jf {
	width: 40px !important;
	min-width: 40px !important;
	max-width: 40px !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	flex: 0 0 40px !important;
}

.wpgl-type-icon-only.wpgl-size-medium .wpgl-btn-item,
.wpgl-type-icon_only.wpgl-size-medium .wpgl-btn-item,
.wpgl-type-icon-only.wpgl-size-medium .wpgl-render-target,
.wpgl-type-icon_only.wpgl-size-medium .wpgl-render-target,
.wpgl-type-icon-only.wpgl-size-medium .S9gUrf-YoZ4jf,
.wpgl-type-icon_only.wpgl-size-medium .S9gUrf-YoZ4jf {
	width: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;
	max-height: 32px !important;
	flex: 0 0 32px !important;
}

.wpgl-type-icon-only.wpgl-size-small .wpgl-btn-item,
.wpgl-type-icon_only.wpgl-size-small .wpgl-btn-item,
.wpgl-type-icon-only.wpgl-size-small .wpgl-render-target,
.wpgl-type-icon_only.wpgl-size-small .wpgl-render-target,
.wpgl-type-icon-only.wpgl-size-small .S9gUrf-YoZ4jf,
.wpgl-type-icon_only.wpgl-size-small .S9gUrf-YoZ4jf {
	width: 20px !important;
	min-width: 20px !important;
	max-width: 20px !important;
	height: 20px !important;
	min-height: 20px !important;
	max-height: 20px !important;
	flex: 0 0 20px !important;
}

.wpgl-type-icon-only.wpgl-align-center,
.wpgl-type-icon_only.wpgl-align-center {
	justify-content: center !important;
}

.wpgl-type-icon-only.wpgl-align-left,
.wpgl-type-icon_only.wpgl-align-left {
	justify-content: flex-start !important;
}

.wpgl-type-icon-only.wpgl-align-right,
.wpgl-type-icon_only.wpgl-align-right {
	justify-content: flex-end !important;
}

.wpgl-type-icon-only.wpgl-align-left .wpgl-buttons-stack,
.wpgl-type-icon_only.wpgl-align-left .wpgl-buttons-stack {
	margin-left: 0 !important;
	margin-right: auto !important;
	justify-content: flex-start !important;
	align-items: flex-start !important;
}

.wpgl-type-icon-only.wpgl-align-center .wpgl-buttons-stack,
.wpgl-type-icon_only.wpgl-align-center .wpgl-buttons-stack {
	margin-left: auto !important;
	margin-right: auto !important;
	justify-content: center !important;
	align-items: center !important;
}

.wpgl-type-icon-only.wpgl-align-right .wpgl-buttons-stack,
.wpgl-type-icon_only.wpgl-align-right .wpgl-buttons-stack {
	margin-left: auto !important;
	margin-right: 0 !important;
	justify-content: flex-end !important;
	align-items: flex-end !important;
}

.wpgl-type-icon-only.wpgl-layout-horizontal .wpgl-buttons-stack,
.wpgl-type-icon_only.wpgl-layout-horizontal .wpgl-buttons-stack {
	flex-direction: row !important;
	display: inline-flex !important;
}

.wpgl-type-icon-only.wpgl-layout-grid_2 .wpgl-buttons-stack,
.wpgl-type-icon_only.wpgl-layout-grid_2 .wpgl-buttons-stack {
	display: inline-grid !important;
	grid-template-columns: repeat(2, auto) !important;
}

.wpgl-type-icon-only .wpgl-line-btn,
.wpgl-type-icon_only .wpgl-line-btn {
	padding: 0 !important;
	justify-content: center !important;
}

.wpgl-type-icon-only .wpgl-line-btn .wpgl-line-icon,
.wpgl-type-icon_only .wpgl-line-btn .wpgl-line-icon {
	margin: 0 !important;
}

.wpgl-type-icon-only .wpgl-line-btn .wpgl-line-text,
.wpgl-type-icon_only .wpgl-line-btn .wpgl-line-text {
	display: none !important;
}

.wpgl-type-icon-only.wpgl-size-large .wpgl-line-btn,
.wpgl-type-icon_only.wpgl-size-large .wpgl-line-btn {
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	max-width: 40px !important;
}

.wpgl-type-icon-only.wpgl-size-medium .wpgl-line-btn,
.wpgl-type-icon_only.wpgl-size-medium .wpgl-line-btn {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
}

.wpgl-type-icon-only.wpgl-size-small .wpgl-line-btn,
.wpgl-type-icon_only.wpgl-size-small .wpgl-line-btn {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	max-width: 20px !important;
}

