﻿.mail-login-popup {
	position: absolute;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.15);
	padding: 16px 20px;
	min-width: 220px;
	z-index: 9999;
	display: none;
	backdrop-filter: blur(10px);
	background: rgba(255,255,255,0.97);
	transition: opacity .2s ease;
	left: 0;
	top: 100%;
	margin-top: 4px
}

.mail-login-popup.active {
	display: block;
	opacity: 1
}

.mail-login-popup .popup-title {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 2px solid #f0f0f0;
	display: flex;
	align-items: center;
	gap: 6px
}

.mail-login-popup .popup-title span {
	font-size: 16px
}

.mail-login-popup .popup-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 10px
}

.mail-login-popup .popup-grid a {
	color: #555;
	text-decoration: none;
	font-size: 13px;
	padding: 3px 0;
	transition: color .2s;
	border-bottom: 1px dashed transparent;
	white-space: nowrap
}

.mail-login-popup .popup-grid a:hover {
	color: #4285f4;
	border-bottom-color: #4285f4
}

.mail-login-popup .popup-footer {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #f0f0f0;
	font-size: 12px;
	color: #999;
	text-align: center
}

.mail-login-popup .popup-footer a {
	color: #4285f4;
	text-decoration: none
}

.mail-login-popup .popup-footer a:hover {
	text-decoration: underline
}

.mail-trigger-wrap {
	position: relative;
	display: inline-block
}

.mail-trigger-wrap .mail-trigger {
	cursor: pointer;
	display: inline-block;
	padding: 1px 10px;
	border-radius: 4px;
	transition: background .2s;
	text-decoration: none;
	color: ##1f2d3d
}

.date-area.date-area-hidden {
	position: relative
}

.date-area.date-area-hidden .mail-trigger-wrap {
	position: relative
}

#hoverCard {
	position: fixed;
	display: none;
	z-index: 999999;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.14),0 2px 8px rgba(0,0,0,0.04);
	border: 1px solid rgba(220,228,240,0.5);
	min-width: 160px;
	padding: 6px 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity .12s ease
}

#hoverCard.active {
	display: block;
	opacity: 1;
	pointer-events: auto
}

#hoverCard::before {
	content: '';
	position: absolute;
	top: -5px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 10px;
	height: 10px;
	background: #fff;
	border-top: 1px solid rgba(220,228,240,0.5);
	border-left: 1px solid rgba(220,228,240,0.5);
	border-radius: 2px 0 0 0
}

#hoverCard .menu-list {
	list-style: none;
	padding: 0 4px;
	margin: 0
}

#hoverCard .menu-list li {
	display: flex;
	align-items: center;
	padding: 8px 14px;
	margin: 1px 0;
	border-radius: 10px;
	color: #2c3e50;
	font-size: 14px;
	font-weight: 400;
	gap: 10px;
	cursor: pointer;
	transition: background .1s;
	line-height: 1.4
}

#hoverCard .menu-list li:hover {
	background: #f0f5ff
}

#hoverCard .menu-list li:active {
	background: #e4ecfa
}

#hoverCard .menu-list .menu-icon {
	width: 20px;
	text-align: center;
	font-size: 16px;
	flex-shrink: 0;
	opacity: .7
}

#hoverCard .menu-list .menu-text {
	white-space: nowrap;
	font-size: 14px
}
        #hoverCard .card-footer {
            padding: 10px 18px 4px 18px;
            font-size: 12px;
            color: #7b8ba3;
            display: flex;
            justify-content: center;
            border-top: 1px solid #f0f4fa;
            margin-top: 4px;
            gap: 8px;
        }
        #hoverCard .card-footer a {
            color: #3c6e9e;
            text-decoration: none;
            padding: 4px 12px;
            border-radius: 30px;
            transition: background 0.1s;
        }
        #hoverCard .card-footer a:hover {
            background: #eaf1fb;
        }
#hoverCard .menu-divider {
	height: 1px;
	background: #eef2f7;
	margin: 4px 14px
}

#hoverCard .menu-list .menu-item-danger .menu-text {
	color: #e74c5e
}

#hoverCard .menu-list .menu-item-danger:hover {
	background: #fef0f2
}

.custom-confirm-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.45);
	z-index: 9999999;
	display: none;
	justify-content: center;
	align-items: center;
	animation: fadeIn .2s ease
}

.custom-confirm-overlay.active {
	display: flex
}

.custom-confirm-box {
	background: white;
	border-radius: 16px;
	padding: 28px 24px 20px;
	max-width: 320px;
	width: 90%;
	box-shadow: 0 20px 60px rgba(0,0,0,0.2);
	animation: scaleIn .2s ease
}

.custom-confirm-box .confirm-title {
	font-size: 17px;
	font-weight: 600;
	color: #1a2a3a;
	text-align: center;
	margin-bottom: 8px
}

.custom-confirm-box .confirm-message {
	font-size: 15px;
	color: #5a6e85;
	text-align: center;
	margin-bottom: 24px;
	line-height: 1.5
}

.custom-confirm-box .confirm-buttons {
	display: flex;
	gap: 12px;
	justify-content: center
}

.custom-confirm-box .confirm-buttons button {
	padding: 10px 28px;
	border: 0;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all .15s;
	min-width: 80px
}

.custom-confirm-box .confirm-buttons .btn-cancel {
	background: #f0f2f5;
	color: #5a6e85
}

.custom-confirm-box .confirm-buttons .btn-cancel:hover {
	background: #e4e8ee
}

.custom-confirm-box .confirm-buttons .btn-confirm {
	background: #3c6e9e;
	color: white
}

.custom-confirm-box .confirm-buttons .btn-confirm:hover {
	background: #2d5a82
}

.custom-confirm-box .confirm-buttons .btn-confirm-danger {
	background: #e74c5e;
	color: white
}

.custom-confirm-box .confirm-buttons .btn-confirm-danger:hover {
	background: #c0392b
}

@keyframes fadeIn {
	from {
		opacity: 0
	}

	to {
		opacity: 1
	}
}

@keyframes scaleIn {
	from {
		transform: scale(0.92);
		opacity: 0
	}

	to {
		transform: scale(1);
		opacity: 1
	}
}

@media(max-width:480px) {
	.iframe-wrapper {
		width: 100px;
		height: 26px
	}

	#hoverCard {
		min-width: 140px;
		border-radius: 12px;
		padding: 4px 0
	}

	#hoverCard .menu-list li {
		padding: 7px 12px;
		font-size: 13px;
		gap: 8px;
		border-radius: 8px
	}

	#hoverCard .menu-list .menu-icon {
		font-size: 14px;
		width: 18px
	}

	#hoverCard .menu-list .menu-text {
		font-size: 13px
	}

	#hoverCard .menu-divider {
		margin: 3px 12px
	}

	#hoverCard::before {
		width: 8px;
		height: 8px;
		top: -4px
	}

	.custom-confirm-box {
		padding: 24px 20px 18px;
		max-width: 280px
	}

	.custom-confirm-box .confirm-title {
		font-size: 16px
	}

	.custom-confirm-box .confirm-message {
		font-size: 14px
	}

	.custom-confirm-box .confirm-buttons button {
		padding: 8px 20px;
		font-size: 14px;
		min-width: 60px
	}
}

@media(max-width:380px) {
	#hoverCard {
		min-width: 120px
	}

	#hoverCard .menu-list li {
		padding: 6px 10px;
		font-size: 12px
	}

	#hoverCard .menu-list .menu-text {
		font-size: 12px
	}
}