/* Plein écran — page commande pêcheur */
body.colvert-peche-resto-fullpage {
	padding-top: 0 !important;
	background: #f9fafb;
}

body.colvert-peche-resto-fullpage .site-main.cpr-page-main,
body.colvert-peche-resto-fullpage .cpr-page-content {
	margin: 0;
	padding: 0;
	max-width: none;
}

body.colvert-peche-resto-fullpage .entry-content > .cpr-portal {
	margin: 0;
}

body.colvert-peche-resto-fullpage .cpr-menu-header__logo-link img,
body.colvert-peche-resto-fullpage .cpr-menu-header__logo-img {
	max-height: 48px !important;
	max-width: 180px !important;
	width: auto !important;
	height: auto !important;
}

.cpr-portal--fullscreen {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	font-family: inherit;
	color: #0f172a;
}

.cpr-portal__body {
	flex: 1;
}

.cpr-portal__body--center {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

/* En-tête menu — sobre, aligné thème Colvert */
.cpr-menu-header {
	background: #fff;
	border-bottom: 1px solid #f1f5f9;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cpr-menu-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	max-width: 72rem;
	margin: 0 auto;
	padding: 1rem 1.25rem;
}

.cpr-menu-header__brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
}

.cpr-menu-header__logo-wrap {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	max-height: 48px;
	overflow: hidden;
}

.cpr-menu-header__logo-link {
	display: flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
}

.cpr-menu-header__logo-link img,
.cpr-menu-header__logo-img {
	display: block;
	max-height: 48px !important;
	max-width: 180px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
}

.cpr-menu-header__site-name {
	font-family: Montserrat, sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: #1e3a8a;
	text-decoration: none;
	letter-spacing: -0.02em;
}

.cpr-menu-header__titles {
	min-width: 0;
	border-left: 1px solid #e2e8f0;
	padding-left: 1rem;
}

.cpr-menu-header__title {
	margin: 0;
	font-family: Montserrat, sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	color: #64748b;
	letter-spacing: 0.01em;
}

.cpr-menu-header__session {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	font-size: 0.85rem;
	color: #475569;
}

.cpr-menu-header__session .cpr-gate__logout {
	color: #2563eb;
	font-size: 0.82rem;
	text-decoration: none;
	opacity: 1;
}

.cpr-menu-header__session .cpr-gate__logout:hover {
	text-decoration: underline;
}

@media (max-width: 520px) {
	.cpr-menu-header__titles {
		border-left: 0;
		padding-left: 0;
	}

	.cpr-menu-header__brand {
		flex-wrap: wrap;
		gap: 0.35rem 0.75rem;
	}
}

/* Gate */
.cpr-gate {
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	padding: 1.5rem;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.cpr-gate__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	color: #0f172a;
}

.cpr-gate__intro {
	margin: 0 0 1.25rem;
	color: #475569;
	line-height: 1.5;
}

.cpr-gate__field {
	display: block;
	margin-bottom: 1rem;
}

.cpr-gate__field span {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	color: #334155;
}

.cpr-gate__field input {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 1rem;
	box-sizing: border-box;
}

.cpr-gate__submit {
	display: block;
	width: 100%;
	padding: 0.9rem 1rem;
	border: 0;
	border-radius: 12px;
	background: #2563eb;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.cpr-gate__submit:hover {
	background: #1d4ed8;
}

.cpr-gate__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.cpr-gate__logout {
	border: 0;
	background: transparent;
	text-decoration: underline;
	cursor: pointer;
}

.cpr-gate__feedback {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
}

.cpr-gate__feedback.is-success {
	background: #dcfce7;
	color: #166534;
}

.cpr-gate__feedback.is-error {
	background: #fee2e2;
	color: #991b1b;
}

/* Menu commande */
.cpr-order--menu {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 0 0 5.5rem;
}

.cpr-order__form {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.cpr-menu-tabs {
	display: flex;
	gap: 0.5rem;
	padding: 1rem 1rem 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.cpr-menu-tabs__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.65rem 1.1rem;
	border: 2px solid transparent;
	border-radius: 999px;
	background: #fff;
	color: #475569;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cpr-menu-tabs__btn.is-active {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

.cpr-menu-tabs__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.35rem;
	height: 1.35rem;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.08);
	font-size: 0.75rem;
}

.cpr-menu-tabs__btn.is-active .cpr-menu-tabs__count {
	background: rgba(255, 255, 255, 0.22);
}

.cpr-menu-panel {
	padding: 1rem;
}

.cpr-menu-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 640px) {
	.cpr-menu-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (min-width: 960px) {
	.cpr-menu-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		max-width: 1100px;
		margin: 0 auto;
	}
}

/* Carte produit */
.cpr-card {
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
	transition: transform 0.15s, box-shadow 0.15s;
}

.cpr-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.cpr-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e2e8f0;
}

.cpr-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cpr-card__img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #f8fafc 0%, #eff6ff 100%);
}

.cpr-card__placeholder-icon {
	font-size: 2.5rem;
	opacity: 0.65;
}

.cpr-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.35rem;
	padding: 0.75rem 0.85rem 0.85rem;
}

.cpr-card__title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
}

.cpr-card__price {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1d4ed8;
}

.cpr-card__qty {
	margin-top: auto;
	justify-content: center;
}

.cpr-order__qty {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.cpr-qty-btn {
	width: 2.1rem;
	height: 2.1rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #f8fafc;
	cursor: pointer;
	font-size: 1.15rem;
	line-height: 1;
	color: #2563eb;
	font-weight: 700;
}

.cpr-qty-btn:active {
	background: #eff6ff;
}

.cpr-qty-input {
	width: 2.5rem;
	text-align: center;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 0.35rem;
	font-weight: 600;
	font-size: 0.95rem;
	-moz-appearance: textfield;
}

.cpr-qty-input::-webkit-outer-spin-button,
.cpr-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cpr-order__field--inline {
	margin: 0.5rem 1rem 0;
	max-width: 1100px;
	width: calc(100% - 2rem);
	align-self: center;
	box-sizing: border-box;
}

.cpr-order__field--inline span {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #64748b;
}

.cpr-order__field--inline input {
	width: 100%;
	padding: 0.6rem 0.85rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	box-sizing: border-box;
}

/* Lignes panier */
.cpr-cart-lines {
	list-style: none;
	margin: 0 1rem 5.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.cpr-cart-line {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.65rem 0.75rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.cpr-cart-line__label {
	flex: 1;
	font-size: 0.9rem;
	color: #0f172a;
}

.cpr-cart-line__meta {
	font-size: 0.82rem;
	color: #64748b;
	white-space: nowrap;
}

.cpr-cart-line__remove {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.cpr-btn--add-with-options {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
	color: #0f172a;
	font-weight: 600;
	cursor: pointer;
}

.cpr-btn--add-with-options:hover {
	border-color: #2563eb;
	color: #2563eb;
}

/* Modal options */
body.cpr-modal-open {
	overflow: hidden;
}

.cpr-options-modal {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.cpr-options-modal[hidden] {
	display: none !important;
}

.cpr-options-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
}

.cpr-options-modal__panel {
	position: relative;
	width: min(100%, 480px);
	max-height: 85dvh;
	overflow: auto;
	background: #fff;
	border-radius: 16px 16px 0 0;
	padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
}

.cpr-options-modal__title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
}

.cpr-options-group {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.cpr-options-group__required {
	color: #dc2626;
}

.cpr-options-group__choices {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.cpr-options-choice {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.55rem 0.65rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	cursor: pointer;
}

.cpr-options-choice input {
	margin-top: 0.2rem;
}

.cpr-options-choice__label em {
	font-style: normal;
	color: #2563eb;
	font-weight: 600;
}

.cpr-options-modal__actions {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
	margin-top: 0.5rem;
}

.cpr-btn {
	padding: 0.65rem 1rem;
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
}

.cpr-btn--ghost {
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #334155;
}

.cpr-btn--primary {
	border: 0;
	background: #2563eb;
	color: #fff;
}

/* Barre panier fixe */
#colvert-peche-resto-order[hidden],
#colvert-peche-resto-tracking[hidden] {
	display: none !important;
}

.cpr-portal--tracking-active .cpr-cart-bar {
	display: none !important;
}

.cpr-portal--tracking-active .cpr-order--menu {
	padding-bottom: 0;
}

.cpr-cart-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-top: 1px solid #e2e8f0;
	box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08);
}

.cpr-cart-bar__summary {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.cpr-cart-bar__count {
	font-size: 0.82rem;
	color: #64748b;
}

.cpr-cart-bar__total {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0f172a;
}

.cpr-cart-bar__submit {
	flex-shrink: 0;
	padding: 0.85rem 1.5rem;
	border: 0;
	border-radius: 12px;
	background: #2563eb;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.cpr-cart-bar__submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}

.cpr-cart-bar__submit:not(:disabled):hover {
	background: #1d4ed8;
}

.cpr-cart-bar__submit:not(:disabled):active {
	background: #1e40af;
}

.cpr-order__feedback {
	margin: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 10px;
}

.cpr-order__feedback.is-success {
	background: #dcfce7;
	color: #166534;
}

.cpr-order__feedback.is-error {
	background: #fee2e2;
	color: #991b1b;
}

.cpr-order__notice {
	margin: 1rem;
	padding: 0.85rem 1rem;
	border-radius: 10px;
}

.cpr-order__notice--warning {
	background: #fef3c7;
	color: #92400e;
}

/* Suivi commande plein écran */
.cpr-tracking--fullscreen {
	flex: 1;
	max-width: 560px;
	margin: 0 auto;
	padding: 1.25rem;
	width: 100%;
	box-sizing: border-box;
}

.cpr-tracking__title {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
	color: #0f172a;
}

.cpr-tracking__ref {
	margin: 0 0 1rem;
	color: #64748b;
	font-size: 0.92rem;
}

.cpr-tracking__hero {
	margin-bottom: 1.25rem;
}

.cpr-tracking__status {
	padding: 1rem 1.1rem;
	border-radius: 12px;
	text-align: center;
}

.cpr-tracking__status--wait {
	background: #f1f5f9;
	color: #334155;
}

.cpr-tracking__status--pickup {
	background: #ecfdf5;
	color: #065f46;
}

.cpr-tracking__pickup-label {
	margin: 0;
	font-size: 0.9rem;
}

.cpr-tracking__pickup-time {
	margin: 0.15rem 0 0;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.1;
}

.cpr-tracking__status--ready {
	background: #dcfce7;
	color: #166534;
}

.cpr-tracking__status--done {
	background: #e0e7ff;
	color: #3730a3;
}

.cpr-tracking__status-icon {
	display: block;
	font-size: 1.75rem;
	margin-bottom: 0.35rem;
}

.cpr-tracking__status p {
	margin: 0;
	font-weight: 600;
}

.cpr-tracking__loading {
	margin: 0;
	text-align: center;
	color: #64748b;
}

.cpr-tracking__steps {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.cpr-tracking__step {
	position: relative;
	padding: 0 0 1rem 2rem;
	color: #94a3b8;
}

.cpr-tracking__step:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 0.55rem;
	top: 1.1rem;
	bottom: 0;
	width: 2px;
	background: #e2e8f0;
}

.cpr-tracking__step.is-done:not(:last-child)::before {
	background: #34d399;
}

.cpr-tracking__step.is-current {
	color: #2563eb;
}

.cpr-tracking__step.is-done {
	color: #1e40af;
}

.cpr-tracking__step-marker {
	position: absolute;
	left: 0;
	top: 0.15rem;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	background: #fff;
}

.cpr-tracking__step.is-done .cpr-tracking__step-marker,
.cpr-tracking__step.is-current .cpr-tracking__step-marker {
	border-color: #2563eb;
	background: #2563eb;
}

.cpr-tracking__step-label {
	display: block;
	font-size: 0.98rem;
}

.cpr-tracking__step-detail {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.85rem;
	font-weight: 400;
}

.cpr-tracking__items {
	margin: 0 0 1rem;
	padding: 0.75rem;
	border-radius: 8px;
	background: #f8fafc;
	color: #475569;
	font-size: 0.92rem;
}

.cpr-tracking__new-order {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 0;
	border-radius: 10px;
	background: #2563eb;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.cpr-push-banner {
	margin: 0 0 1rem;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	border: 1px solid #bfdbfe;
	background: #eff6ff;
	color: #1e3a8a;
}

.cpr-push-banner__text {
	margin: 0 0 0.75rem;
	font-size: 0.92rem;
	line-height: 1.45;
}

.cpr-push-banner__actions {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.cpr-push-banner__later,
.cpr-push-banner__enable {
	padding: 0.55rem 0.85rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.cpr-push-banner__later {
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #475569;
}

.cpr-push-banner__enable {
	border: 0;
	background: #2563eb;
	color: #fff;
}

.cpr-push-toast {
	position: fixed;
	left: 50%;
	bottom: 1.25rem;
	transform: translateX(-50%);
	z-index: 10050;
	max-width: min(92vw, 420px);
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: #0f172a;
	color: #f8fafc;
	font-size: 0.9rem;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.cpr-push-toast[hidden] {
	display: none !important;
}
