/**
 * Ferro Center Custom Styles
 */

.fc-whatsapp-float {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9999;

	width: 56px;
	height: 56px;
	border-radius: 999px;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	background: #25D366;
	color: #ffffff;

	box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
	text-decoration: none;
}

.fc-whatsapp-float:hover {
	filter: brightness(0.95);
	color: #ffffff;
}

.fc-whatsapp-icon {
	width: 28px;
	height: 28px;
	display: block;
}

.grecaptcha-badge {
	display: none;
}

.fc-banner-preview img {
	max-width: 220px;
	height: auto;
}

.fc-product-summary-banners {
	display: flex;
	gap: 30px;
	padding: 10px 0 40px;
}

@media all and (max-width: 750px) {
	.fc-product-summary-banners {
		padding-top: 0;
		margin-top: -40px;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: 20px;
	}
}

@media all and (max-width: 450px) {
	.fc-product-summary-banners {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}
}


/* Invoice Styles */

.woocommerce-order-invoice-pdf {
	margin-top: 20px;
}

.invoice-pdf-download-section {
	background: #f7f7f7;
	padding: 20px;
	border-radius: 5px;
	margin-top: 10px;
}

.invoice-pdf-download-section p:first-child {
	margin: 0 0 15px 0;
}

.invoice-pdf-download-section p:last-child {
	margin: 0;
}

.invoice-pdf-download-section .button {
	margin-right: 10px;
}

.invoice-pdf-remove-button {
	color: #a00 !important;
	margin-left: 5px;
}

.invoice-placeholder {
	color: #999;
}

/* Newsletter */
.fc-newsletter {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.fc-news-form-wrapper .gform_wrapper form {
	display: flex;
	margin: 0;
}

.fc-news-form-wrapper input[type="email"] {
	flex: 1;
	padding: 10px;
	border: none;
}

.fc-news-form-wrapper button,
.fc-news-form-wrapper input[type="submit"] {
	background: #ff5a00;
	color: #fff;
	border: none;
	padding: 0 20px;
}

#fc-newsletter.fc-newsletter .gform_footer {
	margin-top: 0;
	margin-left: 3%;
}

.fc-newsletter .fc-news-form-wrapper .gform_wrapper form {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* validation errors */
.fc-newsletter .gform-theme--framework .gform_validation_errors {
	display: none;
}

.fc-newsletter .gfield_validation_message {
	position: absolute;
	font-size: 12px;
	color: red;
	margin-top: 5px;
}

.fc-newsletter .gfield_description.validation_message.gfield_validation_message {
	color: #FF5A00;
}

/* Newsletter Popup */
.fc-newsletter-close:hover {
	color: #333;
}

.fc-newsletter-content h2 {
	margin: 0 0 15px 0;
	font-size: 26px;
	color: #333;
}

.fc-newsletter-content p {
	margin: 0 0 25px 0;
	color: #666;
	font-size: 16px;
	line-height: 1.5;
}

@media (max-width: 768px) {
	.fc-newsletter-container {
		padding: 30px 20px;
	}

	.fc-newsletter-content h2 {
		font-size: 22px;
	}

	.fc-newsletter-content p {
		font-size: 14px;
	}
}

/* Popups */
.fc-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: none;
}

.fc-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(3px);
}

.fc-popup-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 40px;
	border-radius: 12px;
	max-width: 800px;
	width: 90%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: fc-popup-fadein 0.3s ease-out;
}

@keyframes fc-popup-fadein {
	from {
		opacity: 0;
		transform: translate(-50%, -45%);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}

.fc-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 32px;
	cursor: pointer;
    padding: 0;
    margin: 0;
    min-height: 0;
    line-height: 1;
}

.gform-theme--api, .gform-theme--foundation {
	--gf-color-primary: #ff6200 !important;
	--gf-color-primary-darker: #e65c00 !important;
	--gf-form-gap-y: 20px !important;
	--gf-ctrl-btn-font-size: 18px !important;
    --gf-font-size-secondary: 16px !important;
    --gf-font-size-tertiary: 14px !important;
	--gf-radius: 0px !important;
	--gf-font-size-primary: 18px !important;
	--gf-ctrl-btn-text-transform: uppercase !important;
}

/* Defaults gravity forms styles */
.gform-theme--framework ::placeholder {
	color: rgb(180, 180, 180) !important;
}

/* form upload field */
.ginput_container_fileupload .gform_fileupload_rules {
	display: none !important;
}

.ginput_container_fileupload {
	position: relative;
}

.ginput_container_fileupload input[type="file"] {
	position: absolute;
	opacity: 0;
	width: 0.1px;
	height: 0.1px;
	z-index: -1;
	overflow: hidden;
}

.gfield .custom-file-label {
	display: inline-block;
	padding: 10px 15px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer !important;
	margin-top: 5px;
	color: #666;
	font-size: 12px;
	transition: all 0.3s ease;
	user-select: none;
}

.gfield .custom-file-label:hover {
	background: #e9e9e9;
	border-color: #ccc;
}

.gfield .custom-file-label:active {
	transform: scale(0.98);
}

.ginput_container_fileupload input[type="file"]::-webkit-file-upload-button {
	display: none;
}

.ginput_container_fileupload input[type="file"]::file-selector-button {
	display: none;
}

/* Hide top validation message to prevent form to grow vertically */
.fc-distributors-content .gform_validation_errors {
	display: none !important;
}