/**
 * Add to Calendar — popover menu styles.
 *
 * Scoped entirely to .eng-atc-* so nothing here touches the host button (the
 * site owns that). The wrapper only establishes a positioning context; the menu
 * is the single piece of new UI this feature introduces.
 *
 * @package Eng_Core_Functions
 */

.eng-atc-wrap {
	position: relative;
	display: inline-block;
}

.eng-atc-menu {
	position: absolute;
	top: calc( 100% + 6px );
	left: 0;
	z-index: 9999;
	min-width: 200px;
	margin: 0;
	padding: 6px;
	background: #fff;
	border: 1px solid rgba( 0, 0, 0, 0.12 );
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.16 );
	font-family: inherit;
	font-size: 15px;
	line-height: 1.3;
	text-align: left;
}

.eng-atc-menu[hidden] {
	display: none;
}

.eng-atc-item {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 12px;
	background: none;
	border: 0;
	border-radius: 5px;
	color: #1a1a1a;
	font: inherit;
	text-align: left;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.eng-atc-item:hover,
.eng-atc-item:focus {
	background: #f2f4f7;
	color: #1a1a1a;
	outline: none;
}

.eng-atc-item:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: -2px;
}
