/* =============================================
   WOOCOMMERCE CUSTOM STYLES - OneClickShuttles
   ============================================= */

/* === Contenedor general === */
.woocommerce {
	max-width: 1200px;
	margin: 0 auto;
}

body.woocommerce-account .woocommerce {
	padding: 40px 20px;
}

/* === Sistema de Pestañas === */
.ocs-woocommerce-tabs {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-bottom: 30px;
	border-bottom: 2px solid #e5e7eb;
}

.ocs-woocommerce-tabs button {
	background: transparent !important;
	color: #646970 !important;
	border: none !important;
	padding: 15px 40px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.3s ease;
	border-bottom: 3px solid transparent !important;
	margin-bottom: -2px;
	box-shadow: none !important;
	border-radius: 0 !important;
	position: relative;
	text-transform: none !important;
}

.ocs-woocommerce-tabs button:hover {
	color: #F3A51C !important;
	background: transparent !important;
	transform: none !important;
	box-shadow: none !important;
}

.ocs-woocommerce-tabs button.active {
	color: #F3A51C !important;
	border-bottom-color: #F3A51C !important;
	background: transparent !important;
}

.ocs-woocommerce-tabs button.active:after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 3px;
	background: #F3A51C;
}

/* === My Account - Layout de pestañas === */
.woocommerce .col2-set {
	display: block;
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
}

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2 {
	float: none;
	width: 100%;
	background: white;
	padding: 35px;
	border-radius: 10px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
	border: 1px solid #e5e7eb;
	display: none; /* Ocultos por defecto */
}

.woocommerce .col2-set .col-1.active,
.woocommerce .col2-set .col-2.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.woocommerce .col2-set .col-1:hover,
.woocommerce .col2-set .col-2:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
	transition: all 0.3s ease;
}

/* === Títulos === */
.woocommerce h2,
.woocommerce-account h2 {
	color: #1d2327;
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 25px 0;
	padding-bottom: 15px;
	border-bottom: 2px solid #F3A51C;
}

/* === Formularios === */
.woocommerce form.login,
.woocommerce form.register {
	border: none;
	padding: 0;
	margin: 0;
	border-radius: 0;
}

.woocommerce form .form-row {
	padding: 0;
	margin: 0 0 18px 0;
}

.woocommerce form .form-row label {
	display: block;
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.woocommerce form .form-row label .required {
	color: #dc2626;
	margin-left: 2px;
}

/* === Inputs === */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-Input {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #d1d5db;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.5;
	background: #f9fafb;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce-Input:focus {
	outline: none;
	border-color: #F3A51C;
	background: white;
	box-shadow: 0 0 0 3px rgba(243, 165, 28, 0.1);
}

/* === Checkboxes === */
.woocommerce form.login .form-row,
.woocommerce form.register .form-row {
	display: block;
}

.woocommerce-form__label-for-checkbox {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 400 !important;
}

.woocommerce form .form-row input[type="checkbox"] {
	width: auto !important;
	height: 18px;
	margin: 0;
	cursor: pointer;
}

/* === Botones === */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button {
	background: linear-gradient(135deg, #F3A51C 0%, #e09416 100%) !important;
	color: white !important;
	border: none !important;
	padding: 12px 28px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	border-radius: 6px !important;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 3px 10px rgba(243, 165, 28, 0.3) !important;
	text-align: center;
	display: inline-block;
	line-height: 1.5 !important;
	text-decoration: none !important;
	text-transform: none !important;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: linear-gradient(135deg, #e09416 0%, #c97f0f 100%) !important;
	box-shadow: 0 5px 15px rgba(243, 165, 28, 0.4) !important;
	transform: translateY(-2px);
	color: white !important;
}

/* === Lost Password === */
.woocommerce-form-login .lost_password {
	margin-top: 12px;
}

.woocommerce-form-login .lost_password a {
	color: #48B7B6;
	text-decoration: none;
	font-size: 14px;
}

.woocommerce-form-login .lost_password a:hover {
	color: #3da5a4;
	text-decoration: underline;
}

/* === Mensajes === */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
	padding: 15px 20px !important;
	margin-bottom: 25px !important;
	border-radius: 6px !important;
	border-left: 4px solid !important;
	background: white !important;
	border-top: none !important;
	border-right: none !important;
	border-bottom: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	list-style: none !important;
}

.woocommerce-error {
	border-left-color: #dc2626 !important;
	background: #fef2f2 !important;
	color: #991b1b !important;
}

.woocommerce-info {
	border-left-color: #48B7B6 !important;
	background: #f0fdfa !important;
	color: #134e4a !important;
}

.woocommerce-message {
	border-left-color: #16a34a !important;
	background: #f0fdf4 !important;
	color: #166534 !important;
}

.woocommerce-error li,
.woocommerce-info li,
.woocommerce-message li {
	list-style: none !important;
	margin: 0 !important;
}

/* === My Account Navigation === */
.woocommerce-account .woocommerce-MyAccount-navigation {
	background: white;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	border: 1px solid #e5e7eb;
	margin-bottom: 30px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin-bottom: 5px;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 10px 15px;
	color: #1d2327;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s ease;
	font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: #f9fafb;
	color: #F3A51C;
	padding-left: 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: linear-gradient(135deg, #F3A51C 0%, #e09416 100%);
	color: white;
}

.woocommerce-account .woocommerce-MyAccount-content {
	background: white;
	border-radius: 10px;
	padding: 35px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	border: 1px solid #e5e7eb;
}

/* === Responsive === */
@media (max-width: 768px) {
	.ocs-woocommerce-tabs button {
		padding: 12px 25px !important;
		font-size: 15px !important;
	}

	.woocommerce .col2-set {
		max-width: 100%;
	}

	.woocommerce .col2-set .col-1,
	.woocommerce .col2-set .col-2 {
		padding: 25px 20px;
	}

	body.woocommerce-account .woocommerce {
		padding: 30px 15px;
	}

	.woocommerce button.button,
	.woocommerce input.button {
		width: 100%;
		padding: 14px 20px !important;
	}
}

@media (max-width: 480px) {
	.ocs-woocommerce-tabs button {
		padding: 10px 20px !important;
		font-size: 14px !important;
	}

	.woocommerce h2,
	.woocommerce-account h2 {
		font-size: 18px;
	}

	.woocommerce .col2-set .col-1,
	.woocommerce .col2-set .col-2 {
		padding: 20px 15px;
	}
}


.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	outline: none;
	border-color: #F3A51C;
	background: white;
	box-shadow: 0 0 0 4px rgba(243, 165, 28, 0.1);
}

/* Checkboxes personalizados */
.woocommerce form .form-row-wide label.woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 400;
	margin-bottom: 0;
}

.woocommerce form .form-row-wide input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #F3A51C;
}

/* Botones */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
	background: linear-gradient(135deg, #F3A51C 0%, #e09416 100%);
	color: white;
	border: none;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: none;
	box-shadow: 0 4px 12px rgba(243, 165, 28, 0.3);
	text-align: center;
	display: inline-block;
	text-decoration: none;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
	background: linear-gradient(135deg, #e09416 0%, #c97f0f 100%);
	box-shadow: 0 6px 16px rgba(243, 165, 28, 0.4);
	transform: translateY(-2px);
	color: white;
}

.woocommerce button.button:active,
.woocommerce input.button:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(243, 165, 28, 0.3);
}

/* Lost password link */
.woocommerce-form-login .woocommerce-LostPassword {
	margin-top: 15px;
}

.woocommerce-form-login .woocommerce-LostPassword a {
	color: #48B7B6;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease;
}

.woocommerce-form-login .woocommerce-LostPassword a:hover {
	color: #3da5a4;
	text-decoration: underline;
}

/* Mensajes de error y notificación */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
	padding: 16px 20px;
	margin-bottom: 25px;
	border-radius: 8px;
	border-left: 4px solid;
	background: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.woocommerce-error {
	border-left-color: #e74c3c;
	background: #fef5f5;
	color: #c0392b;
}

.woocommerce-info {
	border-left-color: #48B7B6;
	background: #f0f9f9;
	color: #2c7a7b;
}

.woocommerce-message {
	border-left-color: #27ae60;
	background: #f0fdf4;
	color: #166534;
}

.woocommerce-error li,
.woocommerce-info li,
.woocommerce-message li {
	list-style: none;
}

.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	margin-right: 10px;
}

.woocommerce-error::before {
	content: "\f06a"; /* fa-exclamation-circle */
}

.woocommerce-info::before {
	content: "\f05a"; /* fa-info-circle */
}

.woocommerce-message::before {
	content: "\f058"; /* fa-check-circle */
}

/* Separador visual entre login y register */
#customer_login .u-column1::after {
	content: "";
	position: absolute;
	right: -20px;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 80%;
	background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
}

/* Badge "Nuevo" en la columna de registro */
#customer_login .u-column2 h2::after {
	content: "Nuevo";
	position: absolute;
	top: -10px;
	right: 0;
	background: #48B7B6;
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* === My Account Dashboard === */
.woocommerce-account .woocommerce-MyAccount-navigation {
	background: white;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	border: 1px solid #e0e0e0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin-bottom: 5px;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 12px 16px;
	color: #1d2327;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s ease;
	font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: #f8f9fa;
	color: #F3A51C;
	padding-left: 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: linear-gradient(135deg, #F3A51C 0%, #e09416 100%);
	color: white;
}

.woocommerce-account .woocommerce-MyAccount-content {
	background: white;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	border: 1px solid #e0e0e0;
}

/* === Responsive === */
@media (max-width: 768px) {
	#customer_login {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	#customer_login .u-column1::after {
		display: none;
	}

	#customer_login .u-column1,
	#customer_login .u-column2 {
		padding: 30px 20px;
	}

	.woocommerce-account .woocommerce {
		padding: 40px 15px;
	}

	.woocommerce button.button,
	.woocommerce input.button {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.woocommerce-account h2 {
		font-size: 20px;
	}

	#customer_login .u-column2 h2::after {
		position: static;
		display: inline-block;
		margin-left: 10px;
	}
}

/* === Campo personalizado - Dirección de recogida === */
#ocs_pickup_address_field {
	margin-top: 25px;
	padding: 25px;
	background: #fffbeb;
	border: 2px solid #fbbf24;
	border-radius: 8px;
}

#ocs_pickup_address_field h3 {
	margin: 0 0 20px 0;
	color: #92400e;
	font-size: 18px;
	font-weight: 600;
	border-bottom: 2px solid #F3A51C;
	padding-bottom: 10px;
}

#ocs_pickup_address_field .form-row {
	margin-bottom: 0;
}

#ocs_pickup_address_field label {
	font-weight: 600;
	color: #1d2327;
	margin-bottom: 8px;
	display: block;
}

#ocs_pickup_address_field textarea {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #d1d5db;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.5;
	background: white;
	transition: all 0.3s ease;
	font-family: inherit;
}

#ocs_pickup_address_field textarea:focus {
	outline: none;
	border-color: #F3A51C;
	box-shadow: 0 0 0 3px rgba(243, 165, 28, 0.1);
}

@media (max-width: 768px) {
	#ocs_pickup_address_field {
		padding: 20px 15px;
	}
	
	#ocs_pickup_address_field h3 {
		font-size: 16px;
	}
}

/* === Block Checkout - Campo de recogida (oculto por defecto, JS lo muestra si hay actividades) === */
#oneclickshuttles-pickup-address {
	transition: opacity 0.3s ease;
}

.is-checkout #oneclickshuttles-pickup-address {
	/* Hidden by default until JS determines if activities are in cart */
}
