/* =============================================================================
   WPF Theme — main.css
   Estils globals: reset, tipografia, header, footer, hero,
   components compartits i estils del wizard de reserves.

   Seccions:
   01. Variables CSS i reset
   02. Base i tipografia
   03. Layout
   04. Header + navegació
   05. Footer amb logos
   06. Hero banner (page-reserva.php)
   07. Pàgines genèriques
   08. Components compartits (botons, inputs, targetes)
   09. Acordió de FAQs
   10. Wizard de reserves (substitueix els <style> inline del plugin)
   11. Responsive
   ============================================================================= */


/* =============================================================================
   01. Variables CSS
   ============================================================================= */
:root {
	--wpf-red:          #E30613;
	--wpf-black:        #000000;
	--wpf-card-dark:    #1A1A1A;
	--wpf-card-light:   #F2F2F2;
	--wpf-white:        #FFFFFF;
	--wpf-gray:         #AAAAAA;
	--wpf-border:       #333333;
	--wpf-input-bg:     #2A2A2A;
	--wpf-input-border: #444444;
	--font-base:        'Inter', system-ui, -apple-system, sans-serif;

	--header-height: 70px;
	--container-max: 1200px;
	--wizard-max:    900px;
}


/* =============================================================================
   02. Reset bàsic i tipografia
   ============================================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: #FFFFFF;
	color: #111111;
	font-family: var(--font-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* =============================================================================
   Mi Compte — fons fosc global + overrides WooCommerce
   ============================================================================= */
body.wpf-myaccount {
	background: var(--wpf-black);
	color: #cccccc;
}

body.wpf-myaccount h1,
body.wpf-myaccount h2,
body.wpf-myaccount h3,
body.wpf-myaccount h4 {
	color: var(--wpf-white);
}

body.wpf-myaccount p {
	color: #cccccc;
}

body.wpf-myaccount a {
	color: var(--wpf-red);
}

body.wpf-myaccount a:hover {
	color: #ff3344;
}

/* Menú lateral WooCommerce */
body.wpf-myaccount .woocommerce-MyAccount-navigation {
	background: #111111;
	padding: 0.75rem;
	border-radius: 6px;
	border: 1px solid #333;
}

body.wpf-myaccount .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.wpf-myaccount .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.55rem 0.75rem;
	color: #bbbbbb;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.9rem;
	transition: background 0.15s, color 0.15s;
}

body.wpf-myaccount .woocommerce-MyAccount-navigation li a:hover {
	background: rgba(255, 255, 255, 0.07);
	color: var(--wpf-white);
}

body.wpf-myaccount .woocommerce-MyAccount-navigation .is-active a,
body.wpf-myaccount .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--wpf-red);
	color: var(--wpf-white);
}

/* Àrea de contingut */
body.wpf-myaccount .woocommerce-MyAccount-content {
	color: #cccccc;
}

/* Taules */
body.wpf-myaccount .shop_table,
body.wpf-myaccount .woocommerce-table {
	border-collapse: collapse;
	width: 100%;
	color: #cccccc;
	border: 1px solid #333333;
}

body.wpf-myaccount .shop_table th,
body.wpf-myaccount .woocommerce-table th {
	background: #1a1a1a;
	color: var(--wpf-white);
	padding: 0.65rem 0.9rem;
	border-bottom: 1px solid #333333;
	text-align: left;
	font-size: 0.85rem;
	font-weight: 700;
}

body.wpf-myaccount .shop_table td,
body.wpf-myaccount .woocommerce-table td {
	padding: 0.65rem 0.9rem;
	border-bottom: 1px solid #222222;
	vertical-align: top;
}

body.wpf-myaccount .shop_table tr:nth-child(odd) td,
body.wpf-myaccount .woocommerce-table tr:nth-child(odd) td {
	background: #111111;
}

body.wpf-myaccount .shop_table tr:nth-child(even) td,
body.wpf-myaccount .woocommerce-table tr:nth-child(even) td {
	background: #1a1a1a;
}

/* Botons WooCommerce */
body.wpf-myaccount .button,
body.wpf-myaccount button.button,
body.wpf-myaccount input[type="submit"] {
	background: transparent;
	border: 1px solid var(--wpf-white);
	color: var(--wpf-white);
	padding: 0.5rem 1.2rem;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
	font-family: var(--font-base);
	transition: background 0.15s, color 0.15s;
}

body.wpf-myaccount .button:hover,
body.wpf-myaccount button.button:hover,
body.wpf-myaccount input[type="submit"]:hover {
	background: var(--wpf-white);
	color: var(--wpf-black);
}

/* Header de Mi Compte (barra vermella superior) */
.wpf-myaccount-header {
	background: #E30613;
	padding: 2rem 1.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	margin-bottom: 0;
}

.wpf-myaccount-header .centre-name {
	color: white;
	font-size: 1.75rem;
	font-weight: 700;
}

.wpf-myaccount-header .panel-title {
	color: white;
	font-size: 1.75rem;
	font-weight: 700;
	text-align: right;
}

/* Tarjetes de reserva personalitzades */
body.wpf-myaccount .wpf-booking-card {
	border: 1px solid #2A2A2A;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	overflow: hidden;
	background: #111111;
}

body.wpf-myaccount .wpf-booking-card__header {
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #1A1A1A;
	border-bottom: 1px solid #2A2A2A;
	gap: 0.75rem;
	flex-wrap: wrap;
}

body.wpf-myaccount .wpf-booking-card__header > strong {
	color: var(--wpf-white);
	font-size: 1rem;
}

/* Badge nombre de franges */
body.wpf-myaccount .wpf-slots-badge {
	background: #2A2A2A;
	color: #AAAAAA;
	font-size: 0.75rem;
	padding: 0.2rem 0.6rem;
	border-radius: 3px;
	white-space: nowrap;
}

/* Badges d'estat */
body.wpf-myaccount .wpf-status {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.3rem 0.7rem;
	border-radius: 3px;
	white-space: nowrap;
}

body.wpf-myaccount .wpf-status--confirmed        { background: #065F46; color: #FFFFFF; }
body.wpf-myaccount .wpf-status--pending_payment  { background: #1D4ED8; color: #FFFFFF; }
body.wpf-myaccount .wpf-status--pending_transfer { background: #B45309; color: #FFFFFF; }
body.wpf-myaccount .wpf-status--cancelled        { background: #374151; color: #FFFFFF; }

/* Taula de detalls (meta info) */
body.wpf-myaccount .wpf-booking-card__details {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	margin: 0;
	padding: 1rem 1.5rem;
	display: table;
}

body.wpf-myaccount .wpf-booking-card__details th {
	background: transparent;
	color: #888888;
	font-weight: 400;
	text-align: left;
	padding: 0.3rem 0.75rem 0.3rem 1.5rem;
	width: 35%;
	border-bottom: none;
}

body.wpf-myaccount .wpf-booking-card__details td {
	color: #CCCCCC;
	padding: 0.3rem 1.5rem 0.3rem 0;
	background: transparent;
	border-bottom: none;
}

/* Taula de franges */
body.wpf-myaccount .wpf-booking-card__slots {
	width: 100%;
	border-collapse: collapse;
}

body.wpf-myaccount .wpf-booking-card__slots th {
	font-size: 0.75rem;
	color: #888888;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid #2A2A2A;
	background: transparent;
	font-weight: 600;
}

body.wpf-myaccount .wpf-booking-card__slots td {
	padding: 0.75rem 1rem;
	color: #CCCCCC;
	border-bottom: 1px solid #1A1A1A;
	font-size: 0.9rem;
	background: transparent;
}

body.wpf-myaccount .wpf-booking-card__slots tbody tr:last-child td {
	border-bottom: none;
}

body.wpf-myaccount .wpf-booking-card__slots tfoot td,
body.wpf-myaccount .wpf-booking-card__slots tfoot th {
	font-weight: 700;
	color: var(--wpf-white);
	border-top: 1px solid #2A2A2A;
	padding-top: 1rem;
	background: transparent;
	border-bottom: none;
}

/* Input i botó editar alumnes per franja */
body.wpf-myaccount .wpf-slot-action-cell {
	white-space: nowrap;
}

body.wpf-myaccount .wpf-slot-students-input {
	width: 3.5rem;
	background: #1A1A1A;
	border: 1px solid #444444;
	color: var(--wpf-white);
	padding: 0.3rem 0.5rem;
	border-radius: 3px;
	font-size: 0.95rem;
	text-align: center;
}

/* Bigger, more accessible +/- controls for participants per franja (client feedback:
   the previous plain number input relied on tiny native browser spinners). */
body.wpf-myaccount .wpf-qty-input--myaccount {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

body.wpf-myaccount .wpf-qty-input--myaccount .wpf-qty-btn {
	width: 2.75rem;
	height: 2.75rem;
	font-size: 1.4rem;
	flex-shrink: 0;
}

body.wpf-myaccount .wpf-refund-pending {
	margin: 0 0 0 1.5rem;
	padding: 0.5rem 0.9rem;
	background: #3A2A00;
	border: 1px solid #B45309;
	border-radius: 3px;
	color: #FBBF24;
	font-size: 0.85rem;
	font-weight: 600;
	display: inline-block;
}

body.wpf-myaccount .wpf-slot-btn-update {
	font-size: 0.85rem;
	padding: 0.4rem 1rem;
	border-radius: 3px;
	cursor: pointer;
	background: #E30613;
	color: var(--wpf-white);
	border: none;
	font-family: var(--font-base);
	transition: background 0.15s;
}

body.wpf-myaccount .wpf-slot-btn-update:hover {
	background: #C0000E;
}

body.wpf-myaccount .wpf-slot-time-cell {
	white-space: nowrap;
}

/* Accions i notice */
body.wpf-myaccount .wpf-booking-actions {
	padding: 0.75rem 1.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	border-top: 1px solid #2A2A2A;
}

body.wpf-myaccount .wpf-notice {
	padding: 0.5rem 1.5rem;
	color: #888888;
	font-size: 0.85rem;
}

/* Botó cancel·lar */
body.wpf-myaccount .wpf-btn-cancel {
	font-size: 0.85rem;
	padding: 0.4rem 1rem;
	border-radius: 3px;
	cursor: pointer;
	background: transparent;
	color: #AAAAAA;
	border: 1px solid #444444;
	font-family: var(--font-base);
	transition: border-color 0.15s, color 0.15s;
}

body.wpf-myaccount .wpf-btn-cancel:hover {
	border-color: var(--wpf-red);
	color: var(--wpf-red);
}

body.wpf-myaccount .wpf-action-msg {
	font-size: 0.85rem;
	color: #55dd55;
}

/* Formularis Mi Compte (edit-account, Tauler, etc.) */
body.wpf-myaccount .woocommerce-MyAccount-content label {
	display: block;
	color: var(--wpf-gray);
	font-size: 0.9rem;
	margin-bottom: 0.3rem;
}

body.wpf-myaccount .woocommerce-MyAccount-content input[type="text"],
body.wpf-myaccount .woocommerce-MyAccount-content input[type="email"],
body.wpf-myaccount .woocommerce-MyAccount-content input[type="password"],
body.wpf-myaccount .woocommerce-MyAccount-content input[type="tel"],
body.wpf-myaccount .woocommerce-MyAccount-content select,
body.wpf-myaccount .woocommerce-MyAccount-content textarea {
	background: var(--wpf-input-bg);
	border: 1px solid var(--wpf-input-border);
	color: var(--wpf-white);
	border-radius: 4px;
	padding: 0.5rem 0.75rem;
	font-family: var(--font-base);
	font-size: 0.95rem;
	width: 100%;
	box-sizing: border-box;
}

body.wpf-myaccount .woocommerce-MyAccount-content input[type="text"]::placeholder,
body.wpf-myaccount .woocommerce-MyAccount-content input[type="email"]::placeholder,
body.wpf-myaccount .woocommerce-MyAccount-content input[type="password"]::placeholder,
body.wpf-myaccount .woocommerce-MyAccount-content input[type="tel"]::placeholder,
body.wpf-myaccount .woocommerce-MyAccount-content textarea::placeholder {
	color: #888888;
}

body.wpf-myaccount .woocommerce-MyAccount-content input[type="text"]:focus,
body.wpf-myaccount .woocommerce-MyAccount-content input[type="email"]:focus,
body.wpf-myaccount .woocommerce-MyAccount-content input[type="password"]:focus,
body.wpf-myaccount .woocommerce-MyAccount-content input[type="tel"]:focus,
body.wpf-myaccount .woocommerce-MyAccount-content select:focus,
body.wpf-myaccount .woocommerce-MyAccount-content textarea:focus {
	border-color: var(--wpf-gray);
	outline: none;
}

body.wpf-myaccount .woocommerce-MyAccount-content fieldset {
	border: 1px solid var(--wpf-border);
	border-radius: 4px;
	padding: 1.25rem 1.5rem;
	margin: 1.5rem 0;
}

body.wpf-myaccount .woocommerce-MyAccount-content fieldset legend {
	color: var(--wpf-white);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0 0.5rem;
}

/* Notificacions WooCommerce en context Mi Compte */
body.wpf-myaccount .woocommerce-message {
	border-top-color: #28a745;
	background: #0a2a14;
	color: #cccccc;
}

body.wpf-myaccount .woocommerce-error {
	border-top-color: var(--wpf-red);
	background: #2a0a0a;
	color: #cccccc;
}

body.wpf-myaccount .woocommerce-info {
	border-top-color: #1D4ED8;
	background: #0a1040;
	color: #cccccc;
}

body.wpf-myaccount .woocommerce-message li,
body.wpf-myaccount .woocommerce-error li,
body.wpf-myaccount .woocommerce-info li {
	color: #cccccc;
}

/* Dashboard personalitzat */
body.wpf-myaccount .wpf-dashboard {
	padding: 0.5rem 0 1.5rem;
}

body.wpf-myaccount .wpf-dashboard__greeting {
	font-size: 1.1rem;
	color: var(--wpf-white);
	margin-bottom: 0.5rem;
}

body.wpf-myaccount .wpf-dashboard__summary {
	font-size: 0.95rem;
	color: var(--wpf-gray);
	margin-bottom: 2rem;
}

body.wpf-myaccount .wpf-dashboard__actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

body.wpf-myaccount .wpf-dashboard__btn {
	display: inline-block;
	padding: 0.75rem 1.75rem;
	background: var(--wpf-red);
	color: var(--wpf-white);
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 0.15s;
}

body.wpf-myaccount .wpf-dashboard__btn:hover {
	background: #C0000E;
	color: var(--wpf-white);
}

body.wpf-myaccount .wpf-dashboard__btn--secondary {
	background: transparent;
	border: 1px solid var(--wpf-white);
	color: var(--wpf-white);
}

body.wpf-myaccount .wpf-dashboard__btn--secondary:hover {
	background: var(--wpf-white);
	color: var(--wpf-black);
}

img,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: #111111;
	text-decoration: none;
}

a:hover {
	color: var(--wpf-red);
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.75em;
	font-weight: 700;
	line-height: 1.25;
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

button {
	font-family: var(--font-base);
	cursor: pointer;
}


/* =============================================================================
   03. Layout
   ============================================================================= */
.wpf-main {
	padding-top: var(--header-height);
	min-height: 100vh;
}

/* Variant sense padding extra per a la pàgina de reserva */
.wpf-main--no-pad {
	padding-top: var(--header-height);
}

.wpf-container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 3rem 1.5rem 4rem;
}


/* =============================================================================
   04. Header + navegació
   ============================================================================= */
.wpf-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--wpf-black);
	border-bottom: 1px solid var(--wpf-border);
	height: var(--header-height);
}

.wpf-header__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 100%;
}

/* Logo ------------------------------------------------------------------ */
.wpf-logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--wpf-white);
	text-decoration: none;
	flex-shrink: 0;
	transition: opacity 0.15s;
}

.wpf-logo:hover {
	opacity: 0.85;
	color: var(--wpf-white);
}

.wpf-logo__icon {
	color: var(--wpf-white);
	flex-shrink: 0;
}

.wpf-logo__text {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.35;
	max-width: 140px;
}

.wpf-logo__badge {
	background: var(--wpf-red);
	color: var(--wpf-white);
	font-size: 0.58rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.2rem 0.45rem;
	border-radius: 2px;
	white-space: nowrap;
	flex-shrink: 0;
}

/* Navegació -------------------------------------------------------------- */
.wpf-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

/* WP nav_menu list */
.wpf-nav__menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	align-items: center;
}

.wpf-nav__item {
	position: relative;
}

.wpf-nav__menu a,
.wpf-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.45rem 0.7rem;
	color: var(--wpf-gray);
	font-size: 0.82rem;
	text-decoration: none;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
	white-space: nowrap;
}

.wpf-nav__menu a:hover,
.wpf-nav__link:hover {
	color: var(--wpf-white);
	background: rgba(255, 255, 255, 0.05);
}

.wpf-nav__menu .current-menu-item > a,
.wpf-nav__menu .current_page_item > a,
.wpf-nav__link--active {
	color: var(--wpf-white);
}

/* Sub-menú desplegable */
.wpf-nav__menu .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	background: var(--wpf-card-dark);
	border: 1px solid var(--wpf-border);
	border-radius: 4px;
	min-width: 160px;
	z-index: 100;
	padding: 0.35rem 0;
	list-style: none;
}

.wpf-nav__item:hover > .sub-menu,
.wpf-nav__item:focus-within > .sub-menu {
	display: block;
}

.wpf-nav__menu .sub-menu li a {
	display: block;
	padding: 0.5rem 1rem;
	font-size: 0.82rem;
	border-radius: 0;
}

/* Usuari logat */
.wpf-nav__user {
	border-left: 1px solid var(--wpf-border);
	margin-left: 0.35rem;
	padding-left: 0.35rem;
}

.wpf-nav__link--user {
	gap: 0.4rem;
}

.wpf-nav__link--user svg {
	flex-shrink: 0;
}

/* Selector d'idioma Polylang */
.wpf-lang-switcher {
	border-left: 1px solid var(--wpf-border);
	margin-left: 0.35rem;
	padding-left: 0.35rem;
}

/* Polylang genera un <ul> */
.wpf-lang-switcher ul {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wpf-lang-switcher a {
	display: inline-block;
	padding: 0.35rem 0.45rem;
	color: var(--wpf-gray);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	border-radius: 3px;
	transition: color 0.15s, background 0.15s;
}

.wpf-lang-switcher a:hover {
	color: var(--wpf-white);
	background: rgba(255, 255, 255, 0.07);
}

.wpf-lang-switcher .current-lang a {
	color: var(--wpf-white);
}

/* Botó hamburguesa (mòbil) */
.wpf-menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--wpf-border);
	color: var(--wpf-white);
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 4px;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 0.4rem;
	margin-left: auto;
	flex-shrink: 0;
	transition: border-color 0.15s;
}

.wpf-menu-toggle:hover {
	border-color: var(--wpf-white);
}

.wpf-menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.22s ease, opacity 0.22s ease;
}

.wpf-menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.wpf-menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.wpf-menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}


/* =============================================================================
   05. Footer amb sponsors
   ============================================================================= */
.wpf-footer {
	background: var(--wpf-card-light);
}

/* Grid de 5 columnes de patrocinadors */
.wpf-footer-sponsors {
	background: #F2F2F2;
	padding: 2.5rem 1.5rem;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 2rem;
	align-items: flex-start;
	max-width: var(--container-max);
	margin: 0 auto;
}

.wpf-footer-sponsor-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.wpf-footer-sponsor-label {
	font-size: 0.7rem;
	color: #888888;
	letter-spacing: 0.05em;
	text-align: center;
	font-weight: 700;
}

.wpf-footer-sponsor-logos {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	max-width: 220px;
}

.wpf-footer-sponsor-group img {
	max-height: 40px;
	width: auto;
	object-fit: contain;
	filter: grayscale(100%);
	mix-blend-mode: multiply;
}

/* Grup "Amb el suport de": grid 2×2 */
.wpf-footer-sponsor-group--amb-el-suport-de .wpf-footer-sponsor-logos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	max-width: none;
}

/* Partners internacionals: imatge més ampla */
.wpf-footer-partners-img {
	max-height: 50px !important;
	max-width: 100%;
}

/* Secció de contacte (#contacta) — fons negre a tot l'ample */
.wpf-footer-contact {
	background: #1A1A1A;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 3rem 5%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	align-items: center;
}

.wpf-footer-contact-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.wpf-footer-contact-col--logo img {
	max-height: 60px;
	width: auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.wpf-footer-contact-label {
	color: #AAAAAA;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0;
}

.wpf-footer-contact-social {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.wpf-footer-contact-social a {
	color: #CCCCCC;
	transition: color 0.15s;
}

.wpf-footer-contact-social a:hover {
	color: #FFFFFF;
}

.wpf-footer-contact-link {
	color: #CCCCCC;
	font-size: 0.85rem;
	text-decoration: none;
	transition: color 0.15s;
}

.wpf-footer-contact-link:hover {
	color: #FFFFFF;
}

.wpf-footer-contact-col--hashtags p {
	color: #AAAAAA;
	font-size: 0.9rem;
	text-align: center;
	margin: 0.2rem 0;
	line-height: 1.8;
}

.wpf-footer__bottom {
	padding: 1.25rem 1.5rem;
	border-top: 1px solid #ddd;
	text-align: center;
	font-size: 0.72rem;
	color: #999;
}

.wpf-footer__bottom p {
	margin: 0;
}

/* =============================================================================
   Visibilitat per idioma (Polylang)
   ============================================================================= */
html[lang="es-ES"] .hide-es { display: none; }
html[lang="ca"]    .hide-ca  { display: none; }
html[lang="en-GB"] .hide-en  { display: none; }


/* =============================================================================
   06. Hero banner (page-reserva.php)
   ============================================================================= */
.wpf-page-hero {
	background: var(--wpf-red);
	padding: 2.5rem 1.5rem;
}

.wpf-page-hero__inner {
	max-width: var(--wizard-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.wpf-page-hero__title {
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 700;
	color: var(--wpf-white);
	margin: 0 0 0.35rem;
}

.wpf-page-hero__subtitle {
	color: var(--wpf-white);
	font-size: 0.82rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	margin: 0;
}

.wpf-page-hero__icon {
	flex-shrink: 0;
	opacity: 0.9;
}

/* Contingut de la pàgina de reserva — transparent perquè el body és blanc */
.wpf-reserva-content {
	background: transparent;
}


/* =============================================================================
   07. Pàgines genèriques (page.php / index.php)
   ============================================================================= */
.wpf-entry {
	color: #111111;
}

.wpf-entry__header {
	margin-bottom: 2rem;
}

.wpf-entry__title {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	color: #111111;
}

.wpf-entry__content {
	color: #444444;
	font-size: 1rem;
	line-height: 1.75;
}

.wpf-entry__content h2,
.wpf-entry__content h3,
.wpf-entry__content h4 {
	color: #111111;
}

.wpf-entry__content a {
	color: #111111;
	text-decoration: underline;
}

.wpf-entry__content a:hover {
	color: var(--wpf-red);
}

.wpf-entry__content ul,
.wpf-entry__content ol {
	padding-left: 1.4rem;
	list-style: revert;
	margin-bottom: 1em;
}

.wpf-no-results {
	color: #666666;
	font-size: 0.9rem;
}


/* =============================================================================
   08. Components compartits
   ============================================================================= */

/* Botons ----------------------------------------------------------------- */
.wpf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.7rem 1.6rem;
	border-radius: 4px;
	font-size: 0.95rem;
	font-weight: 700;
	font-family: var(--font-base);
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	text-decoration: none;
	border: 2px solid transparent;
	line-height: 1;
}

.wpf-btn--primary {
	background: var(--wpf-black);
	color: var(--wpf-white);
	border-color: var(--wpf-white);
}

.wpf-btn--primary:hover {
	background: var(--wpf-white);
	color: var(--wpf-black);
}

.wpf-btn--next {
	background: var(--wpf-black);
	color: var(--wpf-white);
	border-color: var(--wpf-white);
	width: 100%;
	padding: 0.9rem 2rem;
	font-size: 1rem;
}

.wpf-btn--next:hover {
	background: var(--wpf-white);
	color: var(--wpf-black);
}

.wpf-btn--ghost {
	background: none;
	color: var(--wpf-gray);
	border-color: var(--wpf-border);
}

.wpf-btn--ghost:hover {
	border-color: var(--wpf-white);
	color: var(--wpf-white);
}

.wpf-btn--outline-red {
	background: none;
	color: var(--wpf-red);
	border-color: var(--wpf-red);
}

.wpf-btn--outline-red:hover {
	background: var(--wpf-red);
	color: var(--wpf-white);
}

.wpf-btn--sm {
	padding: 0.35rem 0.9rem;
	font-size: 0.8rem;
	border-width: 1px;
}

/* Inputs ----------------------------------------------------------------- */
.wpf-field {
	margin-bottom: 1rem;
}

.wpf-field:last-child {
	margin-bottom: 0;
}

.wpf-field label {
	display: block;
	font-size: 0.85rem;
	color: var(--wpf-gray);
	margin-bottom: 0.35rem;
}

.wpf-required {
	color: var(--wpf-red);
}

.wpf-field input[type="text"],
.wpf-field input[type="email"],
.wpf-field input[type="tel"],
.wpf-field input[type="number"],
.wpf-field input[type="password"],
.wpf-field select,
.wpf-field textarea {
	width: 100%;
	background: var(--wpf-input-bg);
	border: 1px solid var(--wpf-input-border);
	border-radius: 4px;
	color: var(--wpf-white);
	padding: 0.6rem 0.85rem;
	font-size: 0.95rem;
	font-family: var(--font-base);
	outline: none;
	transition: border-color 0.15s;
	-webkit-appearance: none;
	appearance: none;
}

.wpf-field input:focus,
.wpf-field select:focus,
.wpf-field textarea:focus {
	border-color: var(--wpf-white);
}

.wpf-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	padding-right: 2.2rem;
	cursor: pointer;
}

.wpf-field select option {
	background: #222;
}

.wpf-field select optgroup {
	color: var(--wpf-gray);
	font-style: normal;
}

.wpf-field textarea {
	resize: vertical;
	min-height: 4rem;
}

.wpf-field textarea::placeholder {
	color: #888;
}

.wpf-field-error {
	border-color: var(--wpf-red) !important;
	outline: none;
}

/* Grid 2 columnes */
@media (min-width: 600px) {
	.wpf-fields-2col {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}

	.wpf-fields-2col .wpf-field {
		margin-bottom: 0;
	}
}

/* Targeta / bloc --------------------------------------------------------- */
.wpf-card {
	background: var(--wpf-card-dark);
	border: 1px solid var(--wpf-border);
	border-radius: 6px;
	padding: 1.5rem;
}

/* Info text */
.wpf-info-text {
	color: var(--wpf-gray);
	font-size: 0.8rem;
	margin: 0.5rem 0 0;
	line-height: 1.5;
}

/* Link genèric */
.wpf-link {
	color: var(--wpf-gray);
	font-size: 0.85rem;
	text-decoration: underline;
}

.wpf-link:hover {
	color: var(--wpf-white);
}


/* =============================================================================
   09. Acordió de FAQs
   ============================================================================= */
.wpf-accordion {
	margin: 0;
}

.wpf-accordion__item {
	border-bottom: 1px solid var(--wpf-border);
}

.wpf-accordion__item:first-child {
	border-top: 1px solid var(--wpf-border);
}

.wpf-accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	color: var(--wpf-white);
	padding: 1.1rem 0;
	font-size: 0.92rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	font-family: var(--font-base);
	gap: 1rem;
	transition: color 0.15s;
}

.wpf-accordion__trigger:hover {
	color: var(--wpf-red);
}

.wpf-accordion__trigger-text {
	flex: 1;
}

.wpf-accordion__icon {
	flex-shrink: 0;
	width: 1.3rem;
	height: 1.3rem;
	border: 1px solid var(--wpf-border);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	line-height: 1;
	color: var(--wpf-gray);
	transition: transform 0.22s ease, border-color 0.15s, color 0.15s;
	font-style: normal;
}

.wpf-accordion__item--open .wpf-accordion__icon {
	transform: rotate(45deg);
	border-color: var(--wpf-red);
	color: var(--wpf-red);
}

.wpf-accordion__content {
	display: none;
	color: var(--wpf-gray);
	font-size: 0.88rem;
	line-height: 1.75;
	padding: 0 0 1.1rem;
}

.wpf-accordion__item--open .wpf-accordion__content {
	display: block;
}

.wpf-accordion__content a {
	color: var(--wpf-gray);
	text-decoration: underline;
}

.wpf-accordion__content a:hover {
	color: var(--wpf-white);
}


/* =============================================================================
   10. Wizard de reserves
   Aquestes regles dupliquen i reemplacen el bloc <style> inline
   del plugin (booking-form.php). Un cop el tema estigui actiu i
   estable, el bloc inline es pot eliminar de booking-form.php.
   ============================================================================= */

/* Base de la pàgina */
.wpf-booking-page {
	font-family: var(--font-base);
	color: var(--wpf-white);
	background: var(--wpf-black);
}

.wpf-booking-page *,
.wpf-booking-page *::before,
.wpf-booking-page *::after {
	box-sizing: border-box;
}

/* Restaura color de links dins el wizard (body ara és blanc) */
.wpf-booking-page a {
	color: var(--wpf-white);
}

.wpf-booking-page a:hover {
	color: var(--wpf-gray);
}

/* Hero intern del plugin (ocult si el tema n'ofereix un via page-reserva.php) */
.wpf-is-reserva .wpf-booking-page > .wpf-hero {
	display: none;
}

/* Hero intern del plugin (quan no s'usa page-reserva.php) */
.wpf-hero {
	background: var(--wpf-red);
	padding: 2.5rem 1.5rem;
}

.wpf-hero__inner {
	max-width: var(--wizard-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.wpf-hero__title {
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 700;
	color: var(--wpf-white);
	margin: 0 0 0.4rem;
}

.wpf-hero__subtitle {
	color: var(--wpf-white);
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0;
}

.wpf-hero__icon {
	font-size: 3.5rem;
	opacity: 0.9;
	flex-shrink: 0;
}

/* Wizard container */
.wpf-wizard {
	max-width: var(--wizard-max);
	margin: 0 auto;
	padding: 2rem 1.5rem 4rem;
}

/* Progress indicator */
.wpf-progress {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	margin-bottom: 2rem;
}

.wpf-progress__label {
	font-size: 0.7rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wpf-gray);
}

.wpf-progress__steps {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.wpf-progress__step {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	border: 2px solid var(--wpf-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--wpf-gray);
	cursor: default;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.wpf-progress__step--active {
	background: var(--wpf-red);
	border-color: var(--wpf-red);
	color: var(--wpf-white);
}

.wpf-progress__step--done {
	background: var(--wpf-black);
	border-color: var(--wpf-white);
	color: var(--wpf-white);
	cursor: pointer;
}

.wpf-progress__step--done:hover {
	border-color: var(--wpf-gray);
	color: var(--wpf-gray);
}

.wpf-progress__cart {
	color: var(--wpf-gray);
	font-size: 1.2rem;
	margin-left: 0.25rem;
}

/* Error banner */
.wpf-error-banner {
	background: #5c0000;
	border: 1px solid var(--wpf-red);
	color: var(--wpf-white);
	padding: 0.75rem 1rem;
	border-radius: 4px;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}

/* Auth block (Bloc 0) */
.wpf-auth {
	background: var(--wpf-card-dark);
	border: 1px solid var(--wpf-border);
	border-radius: 6px;
	margin-bottom: 2rem;
	overflow: hidden;
}

.wpf-auth__tabs {
	display: flex;
	border-bottom: 1px solid var(--wpf-border);
}

.wpf-auth__tab {
	flex: 1;
	background: none;
	border: none;
	color: var(--wpf-gray);
	padding: 0.9rem 1rem;
	font-size: 0.9rem;
	cursor: pointer;
	font-family: var(--font-base);
	transition: color 0.15s, background 0.15s;
}

.wpf-auth__tab:hover {
	color: var(--wpf-white);
}

.wpf-auth__tab--active {
	color: var(--wpf-white);
	font-weight: 700;
	border-bottom: 2px solid var(--wpf-red);
}

.wpf-auth__panel {
	padding: 1.5rem;
}

.wpf-auth__guest-info {
	color: var(--wpf-gray);
	font-size: 0.9rem;
	margin: 0;
	line-height: 1.6;
}

.wpf-login-error {
	color: #ff7070;
	font-size: 0.85rem;
	margin-top: 0.5rem;
}

/* Blocs de formulari */
.wpf-block {
	background: var(--wpf-card-dark);
	border: 1px solid var(--wpf-border);
	border-radius: 6px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.wpf-block--hidden {
	display: none;
}

.wpf-block__title {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wpf-white);
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--wpf-border);
}

/* Quantity +/- */
.wpf-qty-input {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.wpf-qty-btn {
	width: 2.25rem;
	height: 2.25rem;
	background: var(--wpf-input-bg);
	border: 1px solid var(--wpf-input-border);
	border-radius: 50%;
	color: var(--wpf-white);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, border-color 0.15s;
	font-family: var(--font-base);
}

.wpf-qty-btn:hover:not(:disabled) {
	background: var(--wpf-border);
	border-color: var(--wpf-white);
}

.wpf-qty-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.wpf-qty-num {
	width: 5rem;
	text-align: center;
	background: var(--wpf-input-bg);
	border: 1px solid var(--wpf-input-border);
	border-radius: 4px;
	color: var(--wpf-white);
	padding: 0.5rem;
	font-size: 1rem;
	font-family: var(--font-base);
}

.wpf-qty-input--small .wpf-qty-btn {
	width: 1.8rem;
	height: 1.8rem;
	font-size: 0.95rem;
}

.wpf-qty-input--small .wpf-qty-num {
	width: 3.5rem;
	font-size: 0.9rem;
}

.wpf-over-max-warning {
	margin-top: 0.75rem;
	color: var(--wpf-red);
	font-size: 0.9rem;
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
}

/* Calendari */
.wpf-calendar {
	user-select: none;
}

.wpf-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.wpf-cal-nav {
	background: none;
	border: 1px solid var(--wpf-border);
	color: var(--wpf-white);
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	font-size: 1.1rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}

.wpf-cal-nav:hover {
	background: var(--wpf-border);
}

.wpf-cal-title {
	font-weight: 700;
	font-size: 1rem;
	text-transform: capitalize;
}

.wpf-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0.25rem;
}

.wpf-cal-day-header {
	text-align: center;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--wpf-gray);
	padding: 0.25rem 0;
}

.wpf-cal-day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	border-radius: 50%;
	border: none;
	background: none;
	color: var(--wpf-white);
	cursor: pointer;
	transition: background 0.15s;
	font-family: var(--font-base);
}

.wpf-cal-day:hover:not(.wpf-cal-day--disabled):not(.wpf-cal-day--past):not(.wpf-cal-day--empty) {
	background: var(--wpf-border);
}

.wpf-cal-day--empty {
	pointer-events: none;
}

.wpf-cal-day--past,
.wpf-cal-day--disabled {
	color: var(--wpf-border);
	cursor: default;
	pointer-events: none;
}

.wpf-cal-day--selected {
	background: var(--wpf-white) !important;
	color: var(--wpf-black) !important;
	font-weight: 700;
}

.wpf-cal-day--available {
	color: var(--wpf-white);
}

/* Tabs + grid de franges */
.wpf-slot-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.wpf-slot-tab {
	background: none;
	border: 1px solid var(--wpf-border);
	color: var(--wpf-gray);
	padding: 0.4rem 1rem;
	border-radius: 2rem;
	font-size: 0.85rem;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	font-family: var(--font-base);
}

.wpf-slot-tab:hover {
	color: var(--wpf-white);
	border-color: var(--wpf-white);
}

.wpf-slot-tab--active {
	background: var(--wpf-white);
	border-color: var(--wpf-white);
	color: var(--wpf-black);
	font-weight: 700;
}

.wpf-slot-grid {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wpf-slot-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: var(--wpf-input-bg);
	border: 1px solid var(--wpf-border);
	border-radius: 4px;
	padding: 0.7rem 1rem;
	cursor: pointer;
	width: 100%;
	text-align: left;
	transition: border-color 0.15s, background 0.15s;
	font-family: var(--font-base);
	color: var(--wpf-white);
}

.wpf-slot-row:hover:not(:disabled):not(.wpf-slot-row--full) {
	border-color: var(--wpf-white);
}

.wpf-slot-row--selected {
	background: var(--wpf-red) !important;
	border-color: var(--wpf-red) !important;
}

.wpf-slot-row--full {
	background: #0d0d0d;
	border-color: #2a2a2a;
	cursor: not-allowed;
}

.wpf-slot-row--full .wpf-slot-time {
	color: #555;
}

.wpf-slot-time {
	font-weight: 700;
	font-size: 0.95rem;
	white-space: nowrap;
}

.wpf-slot-guides {
	display: flex;
	gap: 0.3rem;
	flex-wrap: wrap;
}

.wpf-guide {
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: 700;
}

.wpf-guide--available {
	background: transparent;
	color: var(--wpf-gray);
	border: 1px solid var(--wpf-gray);
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.wpf-guide--available:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.1);
	color: var(--wpf-white);
	border-color: var(--wpf-white);
}

.wpf-guide--available:disabled {
	opacity: 0.25;
	cursor: default;
}

.wpf-guide--selected {
	background: var(--wpf-red);
	color: var(--wpf-white);
	border: 1px solid var(--wpf-red);
	cursor: pointer;
}

.wpf-guide--selected:hover {
	background: #c0000f;
	border-color: #c0000f;
}

.wpf-guide--taken {
	background: #111;
	color: #555;
	border: 1px solid #333;
	cursor: not-allowed;
}

.wpf-slot-full-badge {
	font-size: 0.68rem;
	font-weight: 700;
	background: #1e0000;
	color: #cc2222;
	border: 1px solid #4d0000;
	border-radius: 3px;
	padding: 0.1rem 0.45rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	flex-shrink: 0;
	margin-left: auto;
}

.wpf-loading-msg,
.wpf-no-slots-msg {
	color: var(--wpf-gray);
	font-size: 0.9rem;
}

/* Franges seleccionades (Bloc 6) */
.wpf-selected-slots {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.wpf-slot-selected {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--wpf-input-bg);
	border: 1px solid var(--wpf-border);
	border-radius: 4px;
	padding: 0.75rem 1rem;
	flex-wrap: wrap;
}

.wpf-slot-selected__icon {
	font-size: 1.1rem;
	flex-shrink: 0;
}

.wpf-slot-selected__date {
	font-size: 0.85rem;
	color: var(--wpf-gray);
}

.wpf-slot-selected__time {
	font-weight: 700;
	font-size: 0.9rem;
	white-space: nowrap;
}

.wpf-slot-selected__price {
	color: var(--wpf-red);
	font-weight: 700;
	font-size: 0.95rem;
	margin-left: auto;
}

.wpf-slot-remove {
	background: none;
	border: 1px solid var(--wpf-border);
	color: var(--wpf-gray);
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	font-size: 0.85rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: border-color 0.15s, color 0.15s;
	font-family: var(--font-base);
}

.wpf-slot-remove:hover {
	border-color: var(--wpf-red);
	color: var(--wpf-red);
}

.wpf-slot-total {
	border-top: 1px solid var(--wpf-border);
	padding-top: 0.75rem;
	text-align: right;
	font-size: 1rem;
	font-weight: 700;
	color: var(--wpf-white);
}

.wpf-btn-add-slot {
	background: none;
	border: 1px dashed var(--wpf-border);
	color: var(--wpf-gray);
	padding: 0.6rem 1rem;
	border-radius: 4px;
	font-size: 0.85rem;
	cursor: pointer;
	margin-bottom: 1rem;
	font-family: var(--font-base);
	transition: border-color 0.15s, color 0.15s;
	width: 100%;
}

.wpf-btn-add-slot:hover {
	border-color: var(--wpf-white);
	color: var(--wpf-white);
}

.wpf-step-actions {
	margin-top: 1.5rem;
}

.wpf-step-nav {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
	flex-wrap: wrap;
	align-items: center;
}

.wpf-step-nav .wpf-btn--next {
	flex: 1;
}

/* Modal d'avís */
.wpf-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpf-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
}

.wpf-modal__box {
	position: relative;
	background: var(--wpf-card-dark);
	border: 1px solid var(--wpf-border);
	border-radius: 6px;
	max-width: 520px;
	width: calc(100% - 2rem);
	padding: 1.5rem;
	z-index: 1;
}

.wpf-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.wpf-modal__title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
	color: var(--wpf-white);
}

.wpf-modal__close {
	background: none;
	border: none;
	color: var(--wpf-gray);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

.wpf-modal__close:hover {
	color: var(--wpf-white);
}

.wpf-modal__body {
	color: var(--wpf-gray);
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 1.25rem;
}

.wpf-modal__footer {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

/* Blocs de franja (Pas 2) */
.wpf-slot-form {
	overflow: hidden;
}

.wpf-sf__header {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.85rem 1.25rem;
	cursor: pointer;
	user-select: none;
	flex-wrap: wrap;
	transition: background 0.15s;
}

.wpf-sf__header:hover {
	background: rgba(255, 255, 255, 0.04);
}

.wpf-sf__id    { color: var(--wpf-red); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.wpf-sf__icon  { font-size: 1rem; flex-shrink: 0; }
.wpf-sf__date  { font-size: 0.82rem; color: var(--wpf-gray); flex-shrink: 0; }
.wpf-sf__time  { font-weight: 700; font-size: 0.88rem; flex-shrink: 0; white-space: nowrap; }
.wpf-sf__price { color: var(--wpf-red); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.wpf-sf__qty   { margin-left: auto; }
.wpf-sf__toggle { font-size: 0.85rem; color: var(--wpf-gray); flex-shrink: 0; min-width: 1rem; text-align: center; }

.wpf-sf__body {
	padding: 1.25rem;
	border-top: 1px solid var(--wpf-border);
}

.wpf-sf__body--collapsed {
	display: none;
}

.wpf-copy-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: rgba(227, 6, 19, 0.07);
	border: 1px solid rgba(227, 6, 19, 0.25);
	border-radius: 4px;
	padding: 0.7rem 1rem;
	margin-bottom: 1.25rem;
	font-size: 0.85rem;
	color: var(--wpf-gray);
}

.wpf-copy-notice input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: 0.15rem;
	cursor: pointer;
	accent-color: var(--wpf-red);
}

.wpf-copy-notice label {
	cursor: pointer;
}

.wpf-form-section {
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wpf-border);
}

.wpf-form-section:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.wpf-form-section__title {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wpf-gray);
	margin: 0 0 1rem;
}

.wpf-form-section__info {
	font-size: 0.8rem;
	color: var(--wpf-gray);
	line-height: 1.6;
	margin: 0 0 0.75rem;
	font-style: italic;
	color: black !important;
	font-size: 1.05em !important;
}

.wpf-checkbox-group {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 0.35rem 0.75rem;
	margin-top: 0.4rem;
}

.wpf-checkbox-item {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-size: 0.84rem;
	color: var(--wpf-gray);
	cursor: pointer;
	line-height: 1.4;
}

.wpf-checkbox-item input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: 0.1rem;
	cursor: pointer;
	accent-color: var(--wpf-red);
}

.wpf-checkbox-item:hover {
	color: var(--wpf-white);
}

.wpf-copy-lang-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	font-size: 0.84rem;
	color: var(--wpf-gray);
}

.wpf-copy-lang-row input[type="checkbox"] {
	cursor: pointer;
	accent-color: var(--wpf-red);
}

.wpf-copy-lang-row label {
	cursor: pointer;
}

/* Taula resum (Pas 3) */
.wpf-summary-block__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wpf-summary-block__title {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wpf-white);
	margin: 0;
}

.wpf-summary-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.86rem;
}

.wpf-summary-table th {
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wpf-gray);
	padding: 0.4rem 0.5rem;
	border-bottom: 1px solid var(--wpf-border);
	text-align: left;
}

.wpf-summary-table td {
	padding: 0.55rem 0.5rem;
	border-bottom: 1px solid var(--wpf-border);
	vertical-align: middle;
}

.wpf-summary-table td:nth-child(4) { white-space: nowrap; }

.wpf-summary-row { background: var(--wpf-input-bg); }
.wpf-summary-row:hover { background: rgba(255, 255, 255, 0.03); }
.wpf-summary-total-row { background: var(--wpf-black); font-weight: 700; color: var(--wpf-white); }
.wpf-summary-slot-id { color: var(--wpf-red); font-weight: 700; }
.wpf-summary-price { color: #111111; font-weight: 700; }
.wpf-summary-total-price { color: var(--wpf-white); font-weight: 700; font-size: 0.95rem; }

.wpf-conditions-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.wpf-conditions-col__title {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wpf-gray);
	margin: 0 0 0.5rem;
}

.wpf-conditions-col__body {
	font-size: 0.82rem;
	color: var(--wpf-gray);
	line-height: 1.6;
}

.wpf-conditions-col__body ul {
	padding-left: 1.2rem;
	list-style: disc;
	margin: 0.4rem 0 0;
}

.wpf-conditions-col__body li {
	margin-bottom: 0.3rem;
}

.wpf-dades-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 1rem;
}

.wpf-dades-col__label {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wpf-gray);
	margin: 0 0 0.3rem;
}

.wpf-dades-col__value {
	font-size: 0.86rem;
	color: var(--wpf-white);
	line-height: 1.5;
}

.wpf-approval-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.wpf-approval-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.87rem;
	color: var(--wpf-gray);
	cursor: pointer;
	line-height: 1.5;
}

.wpf-approval-item input[type="checkbox"] {
	flex-shrink: 0;
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.15rem;
	cursor: pointer;
	accent-color: var(--wpf-red);
}

.wpf-approval-item a {
	color: var(--wpf-gray);
	text-decoration: underline;
}

.wpf-approval-item a:hover {
	color: var(--wpf-white);
}

.wpf-approval-footnote {
	font-size: 0.78rem;
	color: #777;
	line-height: 1.5;
	margin-top: 0.35rem;
}


/* =============================================================================
   10b. Pàgina de confirmació
   ============================================================================= */

.wpf-confirmation {
	padding-top: 2.5rem;
}

.wpf-conf__header {
	text-align: center;
	padding: 2.5rem 1rem 2rem;
}

.wpf-conf__icon {
	display: inline-block;
	margin-bottom: 1rem;
}

.wpf-conf__icon--check svg {
	stroke: #55dd55;
}

.wpf-conf__header--transfer .wpf-conf__icon svg {
	stroke: #ffcc44;
}

.wpf-conf__title {
	font-size: clamp(1.6rem, 4vw, 2.5rem);
	font-weight: 700;
	color: var(--wpf-white);
	margin: 0 0 0.5rem;
}

.wpf-conf__booking-id {
	color: var(--wpf-gray);
	font-size: 1rem;
	margin: 0;
}

.wpf-conf__booking-num {
	color: var(--wpf-red);
	font-weight: 700;
	font-size: 1.25rem;
}

.wpf-conf__email-notice {
	text-align: center;
	color: var(--wpf-gray);
	font-size: 0.9rem;
	margin-bottom: 2rem;
}

.wpf-conf__alert {
	border-radius: 4px;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}

.wpf-conf__alert--warning {
	background: #2a2200;
	border: 1px solid #665500;
	border-left: 4px solid #ffcc00;
	color: #cccc88;
}

.wpf-conf__alert--warning p { margin: 0; }

/* Taula de franges */
.wpf-conf__vt-name {
	color: var(--wpf-gray);
	font-size: 0.85rem;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.wpf-conf__slots-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.wpf-conf__slots-table th {
	color: var(--wpf-gray);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-weight: 600;
	border-bottom: 1px solid var(--wpf-border);
	padding: 0.4rem 0.5rem;
	text-align: left;
}

.wpf-conf__slots-table td {
	padding: 0.55rem 0.5rem;
	border-bottom: 1px solid #222;
	color: var(--wpf-white);
}

.wpf-conf__slots-table tfoot td {
	border-top: 1px solid var(--wpf-border);
	border-bottom: none;
	padding-top: 0.65rem;
}

/* Dades bancàries */
.wpf-conf__bank-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.wpf-conf__bank-table th {
	color: var(--wpf-gray);
	font-weight: 400;
	text-align: left;
	padding: 0.3rem 1rem 0.3rem 0;
	width: 30%;
	vertical-align: top;
}

.wpf-conf__bank-table td {
	color: var(--wpf-white);
	padding: 0.3rem 0;
}

.wpf-conf__bank-table code {
	background: #1a1a1a;
	border: 1px solid #333;
	border-radius: 3px;
	padding: 0.15rem 0.5rem;
	font-size: 0.9em;
	letter-spacing: 0.04em;
}


/* =============================================================================
   12. Landing page (page-landing.php)
   ============================================================================= */

/* Hero amb imatge de fons */
.wpf-landing-hero {
	position: relative;
	min-height: 440px;
	background: var(--wpf-black) center / cover no-repeat;
	display: flex;
	align-items: flex-end;
	padding-bottom: 3.5rem;
}

.wpf-landing-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
}

.wpf-landing-hero__content {
	position: relative;
	z-index: 1;
	max-width: var(--container-max);
	width: 100%;
	margin: 0 auto;
	padding: 0 1.5rem;
	color: #fff;
}

.wpf-landing-hero__title {
	font-size: clamp( 2.5rem, 5vw, 4rem );
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0 0 0.5rem;
}

.wpf-landing-hero__subtitle {
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.8;
	margin: 0;
}

/* Secció informació pràctica */
.wpf-landing-info {
	background: #fff;
	padding: 4rem 0;
}

.wpf-landing-info__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 1.5rem;
	display: grid;
	grid-template-columns: 60fr 40fr;
	grid-template-rows: auto 1fr;
	gap: 0 3rem;
	align-items: start;
}

.wpf-info-section-title {
	grid-column: 1 / -1;
	font-size: 1.5rem;
	font-weight: 700;
	color: #111;
	margin: 0 0 1.75rem;
}

.wpf-landing-info__left {
	min-width: 0;
}

.wpf-info-table {
	width: 100%;
	border-collapse: collapse;
}

.wpf-info-table tr {
	border-bottom: 1px solid #e8e8e8;
}

.wpf-info-table tr:first-child {
	border-top: 1px solid #e8e8e8;
}

.wpf-info-table th {
	width: 160px;
	padding: 0.75rem 2rem 0.75rem 0;
	text-align: left;
	font-weight: 400;
	color: #585858;
	font-size: 1rem;
	vertical-align: top;
	white-space: nowrap;
}

.wpf-info-table td {
	padding: 0.75rem 0;
	color: #111;
	font-size: 0.9375rem;
	vertical-align: top;
}

.wpf-info-table td p {
	margin: 0 0 0.35rem;
}

.wpf-info-table td p:last-child {
	margin-bottom: 0;
}

/* Columna dreta: imatge + CTA */
.wpf-landing-cta {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.25rem;
}

.wpf-landing-side-img {
	width: 100%;
	border-radius: 4px;
	object-fit: cover;
	aspect-ratio: 4 / 5;
	display: block;
	margin-bottom: 1.5rem;
}

.wpf-landing-cta-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	background: #111111;
	color: #fff;
	border: 2px solid #111111;
	padding: 1.25rem 2rem;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-decoration: none;
	border-radius: 4px;
	width: 100%;
	transition: background 0.2s, color 0.2s;
}

.wpf-landing-cta-btn:hover {
	background: white;
	color: #111111;
}

.wpf-landing-cta-btn svg {
	flex-shrink: 0;
}

.wpf-landing-cta-subtext {
	font-size: 0.875rem;
	color: #666;
	text-align: center;
	margin: 0;
}

/* Secció FAQ — fons fosc */
.wpf-landing-faq {
	background: #111111;
	padding: 4rem 0;
	margin-top: 3rem;
	color: #fff;
}

.wpf-landing-faq__inner {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.wpf-landing-faq__header {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2.5rem;
	align-items: end;
}

.wpf-landing-faq__title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

.wpf-landing-faq__intro {
	color: #999;
	font-size: 0.9375rem;
	line-height: 1.7;
	margin: 0;
}

/* Acordió FAQ */
.wpf-faq-item {
	border-bottom: 1px solid #2a2a2a;
}

.wpf-faq-item:first-child {
	border-top: 1px solid #2a2a2a;
}

.wpf-faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.25rem 0;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	color: #fff;
	list-style: none;
	user-select: none;
}

.wpf-faq-question::-webkit-details-marker {
	display: none;
}

.wpf-faq-question::after {
	content: '+';
	font-size: 1.2rem;
	flex-shrink: 0;
	margin-left: 1rem;
	color: var(--wpf-red);
	line-height: 1;
}

details.wpf-faq-item[open] .wpf-faq-question::after {
	content: '\2212'; /* − */
}

.wpf-faq-answer {
	padding: 1rem 0 1.5rem;
	color: #CCCCCC;
	font-size: 0.95rem;
	line-height: 1.7;
}

.wpf-faq-answer a{
	color: #CCCCCC;
}

.wpf-faq-answer a:hover{
	color: var(--wpf-red);
}

.wpf-faq-answer p {
	margin: 0 0 0.6rem;
}

.wpf-faq-answer p:last-child {
	margin-bottom: 0;
}


/* =============================================================================
   11. Responsive
   ============================================================================= */

/* Tablet i mòbil --------------------------------------------------------- */
@media (max-width: 768px) {

	/* Header */
	.wpf-header__inner {
		padding: 0 1rem;
		gap: 0.5rem;
	}

	.wpf-logo__text {
		max-width: 110px;
		font-size: 0.6rem;
	}

	/* Botó hamburguesa: mínim táctil 44×44 */
	.wpf-menu-toggle {
		display: inline-flex;
		width: 2.75rem;
		height: 2.75rem;
	}

	/* Menú ocult per defecte en mòbil */
	.wpf-nav {
		display: none;
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		background: var(--wpf-black);
		border-bottom: 1px solid var(--wpf-border);
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 1rem 0;
		z-index: 999;
		margin-left: 0;
	}

	.wpf-nav--open {
		display: flex;
	}

	.wpf-nav__menu {
		flex-direction: column;
		width: 100%;
	}

	.wpf-nav__menu a,
	.wpf-nav__link {
		padding: 0.75rem 1.5rem;
		width: 100%;
		border-radius: 0;
		font-size: 0.9rem;
	}

	.wpf-nav__user {
		border-left: none;
		border-top: 1px solid var(--wpf-border);
		margin: 0.5rem 0 0;
		padding: 0.5rem 0 0;
		width: 100%;
	}

	.wpf-nav__link--user {
		padding: 0.75rem 1.5rem;
		width: 100%;
	}

	.wpf-lang-switcher {
		border-left: none;
		border-top: 1px solid var(--wpf-border);
		margin: 0;
		padding: 0.5rem 1.5rem;
		width: 100%;
	}

	/* Sub-menú en mòbil */
	.wpf-nav__menu .sub-menu {
		position: static;
		border: none;
		border-radius: 0;
		padding: 0;
		background: rgba(255, 255, 255, 0.04);
	}

	.wpf-nav__item:hover > .sub-menu {
		display: none; /* en mòbil cal clic, no hover */
	}

	/* Footer contacte — 1 columna en mòbil */
	.wpf-footer-contact {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 2.5rem 5%;
		text-align: center;
	}

	/* Footer sponsors — 2 columnes en mòbil */
	.wpf-footer-sponsors {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Partners internacionals ocupa amplada completa en mòbil */
	.wpf-footer-sponsor-group--partners {
		grid-column: 1 / -1;
	}

	/* Hero (page-reserva) */
	.wpf-page-hero {
		padding: 1.75rem 1rem;
	}

	.wpf-page-hero__icon {
		flex-shrink: 0;
		width: 48px;
		height: auto;
	}

	.wpf-page-hero__icon svg {
		width: 48px !important;
		height: 48px !important;
	}

	.wpf-page-hero__inner {
		justify-content: space-between;
		gap: 0.75rem;
	}

	/* Wizard */
	.wpf-wizard {
		padding: 1.5rem 1rem 3rem;
	}

	.wpf-conditions-grid {
		grid-template-columns: 1fr;
	}

	.wpf-dades-grid {
		grid-template-columns: 1fr 1fr;
	}

	/* Hero intern del plugin */
	.wpf-hero {
		padding: 1.75rem 1rem;
	}

	.wpf-hero__icon {
		font-size: 2.5rem;
		flex-shrink: 0;
	}

	/* Landing responsive */
	.wpf-landing-hero {
		min-height: 280px;
		padding-bottom: 2.5rem;
	}

	.wpf-landing-info__inner {
		grid-template-columns: 1fr;
	}

	.wpf-info-section-title {
		grid-column: 1;
	}

	.wpf-landing-cta {
		padding-top: 2rem;
	}

	.wpf-landing-faq__header {
		grid-template-columns: 1fr;
	}

	/* Mi Compte header */
	.wpf-myaccount-header {
		grid-template-columns: 1fr;
	}

	.wpf-myaccount-header .panel-title {
		text-align: left;
	}
}

@media (max-width: 480px) {
	.wpf-dades-grid {
		grid-template-columns: 1fr;
	}

	.wpf-checkbox-group {
		grid-template-columns: 1fr;
	}

	.wpf-footer-sponsor-group img {
		max-height: 32px;
	}

	/* Landing hero — pantalles molt petites */
	.wpf-landing-hero {
		min-height: 220px;
		padding-bottom: 1.75rem;
	}

	.wpf-landing-hero__title {
		font-size: 1.85rem;
		line-height: 1.1;
	}

	.wpf-landing-hero__subtitle {
		font-size: 0.65rem;
		letter-spacing: 0.1em;
	}

	/* Header — pantalles molt petites */
	.wpf-header__inner {
		padding: 0 0.75rem;
		gap: 0.4rem;
	}

	/* Ocultem el text del logo per donar prioritat al badge WPP + hamburguesa */
	.wpf-logo__text {
		display: none;
	}

	.wpf-logo__badge {
		font-size: 0.55rem;
		padding: 0.18rem 0.4rem;
	}

	/* Hero (page-reserva) — pantalles molt petites */
	.wpf-page-hero {
		padding: 1.5rem 0.85rem;
	}

	.wpf-page-hero__title {
		font-size: 1.75rem;
		line-height: 1.15;
	}

	.wpf-page-hero__subtitle {
		font-size: 0.7rem;
		letter-spacing: 0.08em;
	}

	.wpf-page-hero__icon,
	.wpf-page-hero__icon svg {
		width: 36px !important;
		height: 36px !important;
	}

	/* Hero intern del plugin */
	.wpf-hero {
		padding: 1.5rem 0.85rem;
	}

	.wpf-hero__title {
		font-size: 1.75rem;
		line-height: 1.15;
	}

	.wpf-hero__subtitle {
		font-size: 0.7rem;
		letter-spacing: 0.08em;
	}

	.wpf-hero__icon {
		font-size: 2rem;
	}
}

/* ============================================================
   13. Pàgina order-pay (body.woocommerce-order-pay)
   Paleta dark coherent amb el wizard de reserva.
   La columna Quant. i la fila Subtotal s'eliminen via:
     - Template override: wpf-theme/woocommerce/checkout/form-pay.php
     - Filtre PHP: WPF_Woo::remove_cart_subtotal_from_totals()
   ============================================================ */

/* Fons i text base */
body.woocommerce-order-pay {
	background: var(--wpf-black);
	color: var(--wpf-white);
}

/* Títol "Paga la comanda" */
body.woocommerce-order-pay h1,
body.woocommerce-order-pay h2,
body.woocommerce-order-pay h3 {
	color: var(--wpf-white);
	font-weight: 700;
}

/* Taula de resum de la comanda */
body.woocommerce-order-pay table.shop_table {
	border-collapse: collapse;
	width: 100%;
	color: #cccccc;
	border: 1px solid var(--wpf-border);
	background: var(--wpf-card-dark);
}

body.woocommerce-order-pay table.shop_table th {
	background: #111111;
	color: var(--wpf-white);
	padding: 0.65rem 0.9rem;
	border-bottom: 1px solid var(--wpf-border);
	text-align: left;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

body.woocommerce-order-pay table.shop_table td {
	padding: 0.65rem 0.9rem;
	border-bottom: 1px solid #222222;
	vertical-align: middle;
}

body.woocommerce-order-pay table.shop_table tfoot tr td,
body.woocommerce-order-pay table.shop_table tfoot tr th {
	color: var(--wpf-white);
	font-weight: 700;
	border-top: 1px solid var(--wpf-border);
	padding: 0.75rem 0.9rem;
}

body.woocommerce-order-pay table.shop_table .order-total td,
body.woocommerce-order-pay table.shop_table .order-total th {
	color: var(--wpf-white);
	font-size: 1.05rem;
}

/* Caixa de mètodes de pagament */
body.woocommerce-order-pay .woocommerce-checkout-payment,
body.woocommerce-order-pay #payment {
	background: var(--wpf-card-dark);
	border: 1px solid var(--wpf-border);
	border-radius: 4px;
	padding: 1.25rem;
	margin-top: 1.25rem;
}

body.woocommerce-order-pay .woocommerce-checkout-payment ul.payment_methods,
body.woocommerce-order-pay #payment ul.payment_methods {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	border-bottom: 1px solid var(--wpf-border);
}

/* Labels i ràdios dels mètodes de pagament */
body.woocommerce-order-pay .woocommerce-checkout-payment ul.payment_methods li label,
body.woocommerce-order-pay #payment ul.payment_methods li label {
	color: var(--wpf-white);
	font-weight: 500;
	cursor: pointer;
}

body.woocommerce-order-pay .woocommerce-checkout-payment ul.payment_methods li,
body.woocommerce-order-pay #payment ul.payment_methods li {
	color: #cccccc;
	padding: 0.5rem 0;
}

body.woocommerce-order-pay .woocommerce-checkout-payment .payment_box,
body.woocommerce-order-pay #payment .payment_box {
	background: #111111;
	border: 1px solid #222222;
	border-radius: 3px;
	padding: 0.75rem 1rem;
	color: var(--wpf-gray);
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

/* Text de política de privadesa */
body.woocommerce-order-pay .woocommerce-privacy-policy-text,
body.woocommerce-order-pay #payment .woocommerce-privacy-policy-text {
	color: var(--wpf-gray);
	font-size: 0.8rem;
	margin-bottom: 1rem;
}

body.woocommerce-order-pay .woocommerce-privacy-policy-text a {
	color: var(--wpf-gray);
	text-decoration: underline;
}

/* Botó "Paga la comanda" */
body.woocommerce-order-pay #payment #place_order,
body.woocommerce-order-pay .button.alt {
	background: var(--wpf-red);
	color: var(--wpf-white);
	border: none;
	padding: 0.85rem 2rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-radius: 3px;
	cursor: pointer;
	width: 100%;
	transition: background 0.15s;
	display: block;
	text-align: center;
}

body.woocommerce-order-pay #payment #place_order:hover,
body.woocommerce-order-pay .button.alt:hover {
	background: #c0050f;
	color: var(--wpf-white);
}

/* Missatges de notificació WooCommerce */
body.woocommerce-order-pay .woocommerce-message,
body.woocommerce-order-pay .woocommerce-info {
	background: #1a1a1a;
	border-top-color: var(--wpf-red);
	color: #cccccc;
}

body.woocommerce-order-pay .woocommerce-error {
	background: #1a1a1a;
	border-top-color: #cc0000;
	color: #f08080;
}

/* =============================================================================
   === RESPONSIVE === — Order-pay i pàgines WooCommerce mòbil — Sessió V
   ============================================================================= */

@media (max-width: 768px) {

	/* --- Mi Compte (Àrea personal) --- */

	/* Layout WooCommerce: nav i contingut a 100% */
	body.wpf-myaccount .woocommerce-account .woocommerce,
	body.wpf-myaccount .woocommerce {
		display: block;
	}

	body.wpf-myaccount .woocommerce-MyAccount-navigation {
		width: 100%;
		float: none;
		margin-bottom: 1rem;
		padding: 0.5rem;
	}

	body.wpf-myaccount .woocommerce-MyAccount-navigation ul {
		display: flex;
		flex-wrap: wrap;
		gap: 0.25rem;
	}

	body.wpf-myaccount .woocommerce-MyAccount-navigation li {
		flex: 1 1 auto;
	}

	body.wpf-myaccount .woocommerce-MyAccount-navigation li a {
		text-align: center;
		padding: 0.6rem 0.5rem;
		font-size: 0.8rem;
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	body.wpf-myaccount .woocommerce-MyAccount-content {
		width: 100%;
		float: none;
	}

	/* Cards de reserva — header amb wrap correcte */
	body.wpf-myaccount .wpf-booking-card__header {
		padding: 0.85rem 1rem;
		gap: 0.5rem;
		font-size: 0.9rem;
	}

	/* Taula de detalls (centre / nivell / facturació) — apilar columnes */
	body.wpf-myaccount .wpf-booking-card__details {
		padding: 0.75rem 1rem;
	}

	body.wpf-myaccount .wpf-booking-card__details,
	body.wpf-myaccount .wpf-booking-card__details tbody,
	body.wpf-myaccount .wpf-booking-card__details tr {
		display: block;
		width: 100%;
	}

	body.wpf-myaccount .wpf-booking-card__details th,
	body.wpf-myaccount .wpf-booking-card__details td {
		display: block;
		width: 100%;
		padding: 0.15rem 0;
	}

	body.wpf-myaccount .wpf-booking-card__details th {
		padding-top: 0.5rem;
		font-size: 0.72rem;
		text-transform: uppercase;
		letter-spacing: 0.06em;
		color: #888888;
	}

	/* Taula de franges — scroll horitzontal */
	body.wpf-myaccount .wpf-booking-card__slots {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}

	body.wpf-myaccount .wpf-booking-card__slots th,
	body.wpf-myaccount .wpf-booking-card__slots td {
		padding: 0.55rem 0.7rem;
		font-size: 0.85rem;
	}

	/* Botons d'acció — full-width apilats */
	body.wpf-myaccount .wpf-booking-actions {
		padding: 0.85rem 1rem;
		flex-direction: column;
		align-items: stretch;
	}

	body.wpf-myaccount .wpf-booking-actions > * {
		width: 100%;
	}

	body.wpf-myaccount .wpf-booking-actions .button,
	body.wpf-myaccount .wpf-btn-cancel,
	body.wpf-myaccount .wpf-slot-btn-update {
		min-height: 44px;
		width: 100%;
		padding: 0.6rem 1rem;
	}

	/* Slot students input + botó d'actualitzar — bé visibles */
	body.wpf-myaccount .wpf-slot-students-input {
		width: 5rem;
		padding: 0.45rem 0.6rem;
	}

	/* Header de Mi Compte — ja es passa a 1col al @media 768 anterior */

	/* --- Confirmació (Sol·licitud rebuda) --- */
	.wpf-conf__header {
		padding: 1.75rem 0.5rem 1.25rem;
	}

	.wpf-conf__title {
		font-size: 1.6rem;
	}

	/* Taula de franges del resum — scroll horitzontal */
	.wpf-conf__slots-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}

	/* Taula de dades bancàries — apilar fila/valor */
	.wpf-conf__bank-table,
	.wpf-conf__bank-table tbody,
	.wpf-conf__bank-table tr {
		display: block;
		width: 100%;
	}

	.wpf-conf__bank-table th {
		display: block;
		width: 100%;
		padding: 0.5rem 0 0.1rem;
		font-size: 0.78rem;
		text-transform: uppercase;
		letter-spacing: 0.06em;
	}

	.wpf-conf__bank-table td {
		display: block;
		width: 100%;
		padding: 0.1rem 0 0.5rem;
		word-break: break-all;
	}

	/* Upload form: input + botó en columna */
	.wpf-upload-form {
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
	}

	.wpf-upload-form input[type="file"] {
		max-width: 100%;
	}

	.wpf-upload-form button {
		width: 100%;
		min-height: 44px;
	}

	/* --- Order-pay --- */

	/* Permetem scroll horitzontal a la taula de la comanda */
	body.woocommerce-order-pay .woocommerce-order-pay-wrapper,
	body.woocommerce-order-pay form#order_review,
	body.woocommerce-order-pay form.woocommerce-checkout {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.woocommerce-order-pay table.shop_table {
		min-width: 100%;
		font-size: 0.85rem;
	}

	body.woocommerce-order-pay table.shop_table th,
	body.woocommerce-order-pay table.shop_table td {
		padding: 0.5rem 0.6rem;
	}

	/* Caixa de pagaments — padding reduït */
	body.woocommerce-order-pay .woocommerce-checkout-payment,
	body.woocommerce-order-pay #payment {
		padding: 0.9rem;
	}

	/* Botó "Paga la comanda" — assegurem alçada táctil */
	body.woocommerce-order-pay #payment #place_order,
	body.woocommerce-order-pay .button.alt {
		padding: 1rem 1.5rem;
		min-height: 48px;
	}
}

@media (max-width: 480px) {

	/* --- Mi Compte: menú en grid 2×2 per evitar "Surt" sol a la fila --- */
	body.wpf-myaccount .woocommerce-MyAccount-navigation ul {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.25rem;
	}

	body.wpf-myaccount .woocommerce-MyAccount-navigation li {
		flex: unset;
	}

	body.wpf-myaccount .woocommerce-MyAccount-navigation li a {
		font-size: 0.78rem;
		padding: 0.5rem 0.35rem;
		min-height: 36px;
	}
}
