/**
 * 2007-2016 PrestaShop
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2016 PrestaShop SA
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 */

/* Contenedor del botón */
.tlg-product-information-container {
	margin: 15px 0;
}

/* Botón de solicitar información */
.tlg-product-info-btn {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	background-color: #ffffff;
	color: #c11c1e;
	border: 2px solid #c11c1e;
}

.tlg-product-info-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
	background-color: #c11c1e;
	color: #ffffff;
}

.tlg-product-info-btn i {
	margin-right: 8px;
}

/* Modal / Popup */
.tlg-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6);
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Contenido del modal */
.tlg-modal-content {
	background-color: #fefefe;
	margin: 5% auto;
	padding: 30px;
	border: 1px solid #888;
	border-radius: 8px;
	width: 90%;
	max-width: 600px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	animation: slideDown 0.3s ease;
	position: relative;
}

@keyframes slideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Botón de cerrar */
.tlg-close {
	color: #aaa;
	float: right;
	font-size: 32px;
	font-weight: bold;
	line-height: 20px;
	cursor: pointer;
	transition: color 0.3s ease;
	position: absolute;
	right: 20px;
	top: 20px;
}

.tlg-close:hover,
.tlg-close:focus {
	color: #000;
}

/* Título del modal */
.tlg-modal-title {
	margin-top: 0;
	margin-bottom: 20px;
	color: #333;
	font-size: 24px;
	font-weight: 600;
}

/* Detalles del producto */
.tlg-product-details {
	background-color: #f8f9fa;
	padding: 15px;
	border-radius: 5px;
	margin-bottom: 20px;
	border-left: 4px solid #007bff;
}

/* Formulario */
#tlg-product-info-form .form-group {
	margin-bottom: 20px;
}

#tlg-product-info-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

#tlg-product-info-form .required {
	color: #c11c1e;
}

#tlg-product-info-form .form-control {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}

#tlg-product-info-form .form-control:focus {
	outline: none;
	border-color: #007bff;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#tlg-product-info-form textarea.form-control {
	resize: vertical;
	min-height: 120px;
}

/* Alertas */
.tlg-alert {
	padding: 12px 15px;
	margin-bottom: 20px;
	border-radius: 4px;
	font-size: 14px;
}

.tlg-alert.alert-success {
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.tlg-alert.alert-danger {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.tlg-alert.alert-warning {
	background-color: #fff3cd;
	border: 1px solid #ffeeba;
	color: #856404;
}

/* Acciones del formulario */
.form-actions {
	margin-top: 25px;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.form-actions .btn {
	padding: 10px 25px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
}

.form-actions .btn-success {
	background-color: #28a745;
	color: white;
}

.form-actions .btn-success:hover {
	background-color: #218838;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.form-actions .btn-success:disabled {
	background-color: #6c757d;
	cursor: not-allowed;
	transform: none;
}

.form-actions .btn-default {
	background-color: #6c757d;
	color: white;
}

.form-actions .btn-default:hover {
	background-color: #5a6268;
}

/* Evitar scroll en el body cuando el modal está abierto */
body.tlg-modal-open {
	overflow: hidden;
}

/* Campos de solo lectura para usuarios logueados */
.form-control[readonly] {
	background-color: #f5f5f5;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
	.tlg-modal-content {
		width: 95%;
		margin: 10% auto;
		padding: 20px;
	}

	.tlg-modal-title {
		font-size: 20px;
	}

	.form-actions {
		flex-direction: column;
	}

	.form-actions .btn {
		width: 100%;
	}
}
