/**
 * Public styles.
 *
 * Note: font-family, font-size, font-weight and button colors are
 * intentionally NOT declared here. They are inherited from the
 * active theme so the popup and CTA blend with the site design.
 */

/* ---------------------------------------------------------------
 * Popup
 * ------------------------------------------------------------- */

.ug-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 99999;
	justify-content: center;
	align-items: center;
}

.ug-popup-overlay.ug-is-open {
	display: flex;
}

.ug-popup-box {
	background: #fff;
	padding: 40px;
	width: 90%;
	max-width: 500px;
	border-radius: 10px;
	text-align: center;
	position: relative;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	transform: scale(0);
	animation: ugZoomIn 0.5s forwards;
	box-sizing: border-box;
}

@keyframes ugZoomIn {
	to {
		transform: scale(1);
	}
}

.ug-popup-close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	background: transparent;
	border: 0;
	padding: 0;
	z-index: 10;
}

.ug-popup-image {
	display: block;
	margin: 0 auto 10px;
	max-width: 100%;
	height: auto;
	max-height: 130px;
	object-fit: cover;
}

.ug-popup-countdown {
	color: #d9534f;
	margin: 15px 0;
	background: #f9f9f9;
	padding: 10px;
	border-radius: 5px;
}

/*
 * CTA button: layout only — colors, borders, padding, typography
 * are left to the active theme's ".button" class (or equivalent).
 */
.ug-popup-cta-btn {
	display: inline-block;
	margin-top: 15px;
}

/* ---------------------------------------------------------------
 * Returns
 * ------------------------------------------------------------- */

.ug-returns__form {
	margin-top: 1em;
}

/*
 * "Return" icon shown next to:
 *   - the "Returns" item in the WooCommerce My Account navigation
 *   - the "Returns" heading on the endpoint page
 *
 * Uses the Uncode theme's own icon webfont ("uncodeicon") via the
 * Unicode codepoint \f01e. Because the icon is real text, it inherits
 * color, font-size and baseline from the surrounding text
 * automatically - no flexbox or vertical-align hacks needed, exactly
 * like the other tabs of the My Account menu.
 */
.woocommerce-MyAccount-navigation-link--returns > a::before,
.ug-returns__title::before {
	content: "\f01e";
	font-family: "uncodeicon";
	font-weight: normal;
	font-style: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1.75;
	speak: never;
	margin-right: 0.5em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-feature-settings: "liga";
	        font-feature-settings: "liga";
}

/* ---------------------------------------------------------------
 * Back-in-stock notifications
 *
 * Font sizes, colors and button styling are intentionally NOT
 * declared here - they are inherited from the active theme so the
 * form blends naturally with the product page.
 * ------------------------------------------------------------- */

.ug-stock-notify {
	margin: 1.5em 0;
	padding: 1em 1.25em;
	background: rgba(0, 0, 0, 0.03);
	border-radius: 4px;
}

.ug-stock-notify__title {
	margin: 0 0 0.35em;
}

.ug-stock-notify__intro {
	margin: 0 0 1em;
}

.ug-stock-notify__row {
	margin: 0 0 0.75em;
}

.ug-stock-notify__email {
	width: 100%;
	box-sizing: border-box;
}

/* Honeypot: visually hidden but still present in the DOM. */
.ug-stock-notify__hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

button[type="submit"].ug-stock-notify__submit {
	/* The `button` class on the submit element lets the theme
	 * style colors and typography; we force the layout specifics
	 * needed by this form. */
	display: block;
	width: 100%;
	line-height: 1;
	margin-top: 0.25em;
}

.ug-stock-notify__message {
	margin-top: 0.5em;
	min-height: 1.2em;
}

.ug-stock-notify__message.is-success {
	color: #46824a;
}

.ug-stock-notify__message.is-error {
	color: #c9302c;
}
