/*
 * BarStock — caisse / bar
 * Découpage du CSS existant, sans changement visuel volontaire.
 * À charger après common.css.
 */

.bar-page{overflow:hidden}
.bar-app{height:100vh;display:flex;flex-direction:column}



.bar-header {
    height: var(--bar-header-height);
    background: var(--navy);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 15px 18px 0 14px;
    border-bottom: 4px solid var(--navy2);
}

.bar-left,
.bar-right {
    display: flex;
    align-items: center;
}

.bar-left {
    gap: 8px;
}

.bar-right {
    gap: 30px;
}
.bar-right button, .bar-right a {
    border: 0;
    margin-bottom: 5px;
}


.bar-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-right: 20px;
    margin-bottom: 10px;
}

/* À placer idéalement sur un fond sombre ou coloré */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.btn-glass:hover {
  background: rgba(255, 75, 75, 0.2);
  border-color: rgba(255, 75, 75, 0.4);
  color: #ff6b6b;
}

/* Navigation principale */

.bar-nav {
    height: 45px;
    padding: 0 22px;

    border: 0;
    border-radius: 18px 18px 0 0;

    background: var(--navy3);
    color: rgba(255,255,255,.92);

    font-size: 14px;

    cursor: pointer;
    position: relative;
}

.bar-nav.active {
    background: var(--navy2);
    color: #fff;
}
.bar-nav SPAN {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    width: 20px;
    height: 20px;
    display: grid;
    align-content: center;
    text-align: center;
    color: #fff;
    border-radius: 18px;
    font-size: 10px;
}

/* Boutons droite */

.header-btn {
    display: grid;
   grid-template-rows: auto auto;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;    
    background-color: var(--navy);
     place-items: center;
}

.header-btn svg {
    width: 18px;
    height: 18px;
}



.bar-main{
  flex:1;min-height:0;display:grid;
  grid-template-columns:minmax(0,1fr) 300px
}

.ticket-clear-button {
    border: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    align-content: center;
    text-align: center;
    background: #f2f5fa;
}
.ticket-clear-button svg {
    color: #515151;
    width: 20px;
    height: 20px;
    margin-left: 4px;
}

.ticket-zone{
    width:300px;
    min-width:300px;
    min-height:0;
    border-left:1px solid var(--line);
    background:#fff;    
    display: grid;
    grid-template-rows: 70px 1fr 65px;
}
.ticket-header{padding:14px; border-bottom: 1px solid var(--line); }
.ticket-header strong,.ticket-header small{display:block}
.ticket-header small{margin-top:2px;color:var(--muted)}

.ticket-lines{flex:1;min-height:0;overflow:auto;padding:10px 14px; }
.ticket-empty{    
    text-align:center;
    color: #000;
    font-size:14px;
    padding: 40px;
    margin-top: 100px;
}
.ticket-empty SVG {
    width: 130px;
    height: 130px;
    display: block;
    color: var(--navy);
    background: #f2f5fa;
    border-radius: 50%;
    padding: 25px;
    margin-left: calc(50% - 65px);
    margin-bottom: 20px;
}

.ticket-subtitle {
    font-size: 16px;
    color: #000;
}
.ticket-meta {
    font-size: 14px;
    color: var(--muted);
    font-variant: small-caps;
}

.ticket-line {
    display:grid;
    grid-template-columns: 35px 1fr 32px;
    gap:8px;
    align-items:center;
    padding: 10px;    
    background: #f2f5fa;
    border-radius: 10px;
    margin-bottom: 10px;    
}

.ticket-qty{
    width:35px;
    height:35px;
    border-radius: 50%;
    display:grid;
    place-items:center;
    background: #fff;
    color: #000;
    font-weight:600;
    font-size:14px;
}
.ticket-center {
    text-align: left;
}
.ticket-nom {
    font-size: 15px;
    font-weight: 600;
}
.ticket-source {
   
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 10px;    
}
.ticket-crate {
     display: block;
}
.ticket-price {
    font-size: 11px;
}


.ticket-remove{
    width:32px;
    height:32px;

    border:0;
    border-radius:9px;

    display:grid;
    place-items:center;

    background:#fff0f0;
    color:#a52f2f;

    font-size:22px;
    font-weight:900;
    line-height:1;

    cursor:pointer;
}

.ticket-remove:active{
    transform:scale(.92);
}


.ticket-footer {
    background: var(--navy); 
    color: #fff; 
    height: 65px;
    line-height: 65px;
}
.ticket-total {
    text-align: center;
    width: 100%;
    background: var(--navy);
    border: 0;    
    padding: 0;
    margin: 0;
}
.ticket-total span {
    color: #fff; 
    margin-top: -100px; 
    display: block;
}
.ticket-total strong {
    font-size:28px; 
    color: #fff;
}
.ticket-total strong:not(:empty):before {
    content: "Payer";
    font-size: 18px;
    margin-right: 20px;
}




.payment-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pay-button,.cancel-order{border:0;border-radius:12px;cursor:pointer;font-weight:900}
.pay-button{padding:13px 10px}.pay-cash{background:#edf1f5}
.pay-sumup{color:#fff;background:var(--accent)}
.cancel-order{
  width:100%;margin-top:8px;padding:9px;color:#a52f2f;background:#fff0f0;
  font-size:12px
}
.bar-lock{
  position:fixed;inset:64px 0 0 0;z-index:20;display:flex;
  align-items:center;justify-content:center;background:rgba(238,241,244,.97)
}
.lock-card{
  width:min(460px,80vw);padding:28px;border:1px solid var(--line);
  border-radius:20px;background:#fff;text-align:center
}
.lock-icon{
  width:68px;height:68px;margin:0 auto 14px;border-radius:20px;
  display:grid;place-items:center;background:#eef2f6;font-size:30px
}
.lock-card h1{margin:0 0 7px;font-size:22px}
.lock-card p{color:var(--muted);font-size:13px}
.open-session-button{
  margin-top:8px;padding:13px 18px;border:0;border-radius:12px;color:#fff;
  background:var(--navy);font-weight:900;cursor:pointer
}
/* =====================================================
   CHECKOUT
===================================================== */

.checkout-modal-card {
	width: min(
		720px,
		92vw
	);

	padding: 0 28px;

	text-align: left;
}


/* HEADER */

.checkout-header {
	display: flex;

	align-items: center;
	justify-content: space-between;
    height: 50px;
    border-bottom: 1px solid var(--bg);
}


.checkout-eyebrow {
	display: block;

	margin-bottom: 4px;

	color: var(--muted);

	font-size: 11px;
	font-weight: 900;

	text-transform: uppercase;
	letter-spacing: .08em;
}


.checkout-header h2 {
	margin: 0;

	font-size: 24px;
}


.checkout-total {
	margin: 0;

	color: var(--navy);

	font-size: 42px;
	font-weight: 900;

	line-height: 1;

	white-space: nowrap;
}

.checkout-label {
	margin-bottom: 9px;

	color: var(--muted);

	font-size: 11px;
	font-weight: 900;

	text-transform: uppercase;
	letter-spacing: .05em;
}


/* MODES DE PAIEMENT */

.checkout-methods {
	display: grid;

	grid-template-columns:
		repeat(
			3,
			1fr
		);

	gap: 12px;
}


.checkout-choice {
	min-height: 132px;

	padding: 18px 12px;

	border:
		2px solid
		var(--line);

	border-radius: 16px;

	display: flex;
	flex-direction: column;

	align-items: center;
	justify-content: center;

	background: #fff;

	text-align: center;

	cursor: pointer;

	transition:
		transform .12s ease,
		border-color .12s ease,
		background .12s ease;
}


.checkout-choice:active {
	transform: scale(.97);
}


.checkout-choice-icon {
	display: block;
	margin-bottom: 9px;
	font-size: 64px;
	line-height: 1;
}


.checkout-choice strong {
	display: block;
	font-size: 27px;
	font-weight: 900;
}


.checkout-choice small {
	display: block;

	margin-top: 5px;

	color: var(--muted);

	font-size: 11px;
	font-weight: 700;
}


/* ESPÈCES */

.checkout-choice-cash {
	background: #f7f9fb;
}


.checkout-choice-cash:hover {
	border-color: #aab4bf;

	background: #eef2f6;
}


/* SUMUP */

.checkout-choice-sumup {
	border-color:
		rgba(
			255,
			138,
			31,
			.45
		);

	background: #fff8f1;
}


.checkout-choice-sumup:hover {
	border-color: var(--accent);

	background: #fff1e4;
}


/* ATTENTE */

.checkout-choice-pending {
	background: #f5f8fc;
}


.checkout-choice-pending:hover {
	border-color: var(--navy);

	background: #edf4fb;
}


/* FORMULAIRE ATTENTE */

.pending-form {
	margin-top: 16px;

	padding: 16px;

	border:
		1px solid
		var(--line);

	border-radius: 14px;

	background: #f7f9fb;
}


.pending-form label {
	display: block;

	margin-bottom: 7px;

	font-size: 12px;
	font-weight: 900;
}


.pending-form-row {
	display: grid;

	grid-template-columns:
		minmax(0, 1fr)
		auto;

	gap: 8px;
}


.pending-form input {
	width: 100%;

	padding: 13px;

	border:
		1px solid
		var(--line);

	border-radius: 11px;

	outline: 0;

	background: #fff;

	font-size: 15px;
}


.pending-form input:focus {
	border-color: var(--navy);
}


.pending-confirm {
	margin: 0;

	padding:
		0 18px;

	border: 0;
	border-radius: 11px;

	color: #fff;

	background: var(--accent);

	font-weight: 900;

	cursor: pointer;
}


/* FOOTER */

.checkout-actions {
	display: grid;

	grid-template-columns:
		1fr
		1fr;

	gap: 10px;

	margin-top: 22px;

	padding-top: 18px;

	border-top:
		1px solid
		var(--line);
}


.modal-return,
.modal-cancel-order {
	width: 100%;

	margin: 0;

	padding: 13px 15px;

	border: 0;
	border-radius: 11px;

	display: flex;

	align-items: center;
	justify-content: center;

	gap: 8px;

	font-weight: 900;

	cursor: pointer;
}


.modal-return {
	color: var(--navy);

	background: #edf1f5;
}


.modal-return span {
	font-size: 20px;
	line-height: 1;
}


.modal-cancel-order {
	color: #a52f2f;

	background: #fff0f0;
}


.modal-cancel-order span {
	font-size: 24px;
	line-height: 1;
}
.session-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;

    margin-top: 18px;
}

.session-action {
    min-height: 92px;

    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;

    border: 0;
    border-radius: 16px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.session-action svg {
    width: 28px;
    height: 28px;
}


/* Fermer */

.session-action-danger {
    background: #fff0f0;
    color: #c83b3b;
}

.session-action-danger:active {
    background: #ffe4e4;
}


/* Annuler */

.session-action-cancel {
    background: #edf2f7;
    color: var(--navy2);
}

.session-action-cancel:active {
    background: #e3e9f0;
}

/* TABLETTE PORTRAIT */

@media (
	orientation: portrait
) and (
	min-width: 600px
) {

	.checkout-modal-card {
		width: min(
			680px,
			90vw
		);
	}


	.checkout-choice {
		min-height: 125px;
	}
}


.pending-header-button {
    position: relative;
}

/* =====================================================
   CONFIRMATION ANNULATION COMMANDE
===================================================== */

.cancel-order-confirm-card {
	width: min(
		720px,
		92vw
	);

	padding: 28px;

	display: flex;
	flex-direction: column;

	text-align: left;
}


.cancel-order-confirm-header {
	display: flex;

	align-items: center;

	gap: 18px;
}


.cancel-order-confirm-icon {
	width: 58px;
	height: 58px;

	flex: 0 0 58px;

	display: grid;
	place-items: center;

	border-radius: 16px;

	background: #fff3e7;

	font-size: 28px;
}


.cancel-order-confirm-header h2 {
	margin:
		0 0 5px;

	font-size: 24px;
}


.cancel-order-confirm-header p {
	margin: 0;

	color: var(--muted);

	font-size: 13px;
	line-height: 1.45;
}


.cancel-order-confirm-actions {
	display: grid;

	grid-template-columns:
		1fr 1fr;

	gap: 10px;

	margin-top: auto;

	padding-top: 18px;

	border-top:
		1px solid
		var(--line);
}


.cancel-order-keep,
.cancel-order-delete {
	width: 100%;

	padding: 14px 16px;

	border: 0;
	border-radius: 11px;

	font-weight: 900;

	cursor: pointer;
}


.cancel-order-keep {
	color: var(--navy);

	background: #edf1f5;
}


.cancel-order-delete {
	color: #fff;

	background: #a52f2f;
}


.cancel-order-keep:active,
.cancel-order-delete:active {
	transform: scale(.98);
}


/* TABLETTE PORTRAIT */

@media (
	orientation: portrait
) and (
	min-width: 600px
) {

	.cancel-order-confirm-card {
		width: min(
			680px,
			90vw
		);
	}
}
.pending-badge {
    min-width: 20px;
    height: 20px;

    margin-left: 5px;
    padding: 0 6px;

    display: inline-grid;
    place-items: center;

    border-radius: 999px;

    color: #fff;
    background: var(--accent);

    font-size: 11px;
    font-weight: 900;
}


.pending-modal-card {
    width: min(
        620px,
        90vw
    );

    max-height: 80vh;

    display: flex;
    flex-direction: column;

    text-align: left;
}


.pending-modal-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;
}


.pending-modal-header h2 {
    margin: 0;
}


.pending-modal-header small {
    color: var(--muted);
}




.pending-list {
    overflow: auto;

    display: grid;

    gap: 9px;
}


.pending-item {
    width: 100%;

    padding: 13px;

    border: 1px solid var(--line);
    border-radius: 14px;

    background: #f8fafb;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 12px;

    text-align: left;

    cursor: pointer;
}


.pending-item-title {
    display: block;

    font-size: 15px;
    font-weight: 900;
}


.pending-item-resume {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 11px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.pending-item-total {
    align-self: center;

    font-size: 18px;
    font-weight: 900;
}


.pending-empty {
    padding: 35px 15px;

    text-align: center;

    color: var(--muted);
}


.pending-pay-resume {
    margin-bottom: 15px;

    color: var(--muted);

    font-size: 12px;
}



/* =====================================================
   BAR - PRODUITS
===================================================== */

.products-zone {
    padding: 14px;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: none;
}

.products-zone::-webkit-scrollbar {
    display: none;
}


/*
 * Catégories :
 * Bières
 * Softs
 * Snacks
 */
#productsGrid {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 16px;
}


.product-category {
    width: 100%;
}


.product-category-title {
    margin: 0 0 7px 2px;

    color: var(--navy);

    font-size: 15px;
    font-weight: 900;
}


/*
 * Produits d'une catégorie :
 * horizontal
 */
.product-category .products-grid {
    width: 100%;

    display: grid;
    
    grid-template-columns: repeat(4, 1fr);

    gap: 10px;
}


/*
 * CARD
 */
.product-card {
    position: relative;

    height: 148px;

    padding: 0;

    border: 1px solid var(--line);
    border-radius: 14px;

    background: #fff;

    overflow: hidden;

    text-align: left;

    display: flex;
    flex-direction: column;

    cursor: pointer;
}


.product-card:active {
    transform: scale(.98);
}
.product-card.active {
    border: 2px solid var(--accent);
}

/*
 * Grande image comme sur la caisse foot.
 */
.product-image {
    width: 100%;
    height: 92px;

    flex: 0 0 92px;

    overflow: hidden;

    background: #f3f4f5;
}


.product-image img {
	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center;

	display: block;
}


/*
 * Nom
 */
.product-card > strong {
    display: block;

    padding: 7px 9px 0;

    font-size: 13px;
    font-weight: 900;

    line-height: 1.15;
}


/*
 * Prix + stock
 */
.product-bottom {
    margin-top: 2px;

    padding: 0 9px 7px;

    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 5px;
}


.product-bottom b {
    color: var(--navy);

    font-size: 17px;
    font-weight: 900;
}


.product-bottom small {
    color: var(--muted);

    font-size: 9px;

    white-space: nowrap;
}


/*
 * Quantité dans le panier
 */
.product-count {
    position: absolute;

    top: 6px;
    right: 6px;

    z-index: 5;

    min-width: 28px;
    height: 28px;

    padding: 0 7px;

    border-radius: 999px;

    display: none;
    place-items: center;

    color: #fff;
    background: var(--accent);

    font-size: 13px;
    font-weight: 900;

    box-shadow:
        0 2px 8px
        rgba(0, 0, 0, .25);
}


.product-count.show {
    display: grid;
}

/* =====================================================
   CHOIX BIERE
===================================================== */

.stock-choice-modal-card {
    width: min(560px, 90vw);

    text-align: left;
}


.stock-choice-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}


.stock-choice-button {
    min-height: 90px;

    padding: 10px;

    display: grid;

    grid-template-columns:
        70px minmax(0, 1fr);

    gap: 12px;

    align-items: center;

    border: 1px solid var(--line);
    border-radius: 14px;

    background: #fff;

    text-align: left;

    cursor: pointer;
}


.stock-choice-button:disabled {
    opacity: .4;

    cursor: default;
}


.stock-choice-image {
    width: 70px;
    height: 65px;

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

    overflow: hidden;

    border-radius: 10px;

    background: #f3f4f5;
}


.stock-choice-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.stock-choice-info strong,
.stock-choice-info small {
    display: block;
}


.stock-choice-info strong {
    font-size: 15px;
    font-weight: 900;
}


.stock-choice-info small {
    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
}




/* =====================================================
   BAR - CATEGORIES SWIPE
===================================================== */

.products-zone {
    min-width: 0;
    min-height: 0;

    padding: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}


/* BIÈRES / SOFTS / SNACKS */

.product-category-tabs {
    flex: 0 0 auto;

    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    padding:
        10px 14px 8px;

    gap: 6px;

    background: var(--bg);

    border-bottom:
        1px solid var(--line);
}


.product-category-tab {
    position: relative;

    padding:
        10px 8px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: var(--muted);

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;
}


.product-category-tab.active {
    color: var(--navy);

    background: #fff;

    box-shadow:
        0 1px 5px
        rgba(0, 0, 0, .08);
}


.product-category-tab.active::after {
    content: '';

    position: absolute;

    left: 25%;
    right: 25%;
    bottom: 3px;

    height: 3px;

    border-radius: 10px;

    background: var(--accent);
}


/* TRACK DES 3 PAGES */

#productsGrid {
    flex: 1;

    min-width: 0;
    min-height: 0;

    width: 100%;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: stretch !important;

    gap: 0 !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type:
        x mandatory;

    scroll-behavior:
        smooth;

    overscroll-behavior-x:
        contain;

    scrollbar-width:
        none;

    -webkit-overflow-scrolling:
        touch;
}


#productsGrid::-webkit-scrollbar {
    display: none;
}


/* UNE CATEGORIE = UNE PAGE */

#productsGrid >
.product-category {
    flex:
        0 0 100% !important;

    width:
        100% !important;

    min-width:
        100% !important;

    max-width:
        100% !important;

    min-height: 0;

    margin:
        0 !important;

    padding:
        14px;

    overflow-x:
        hidden;

    overflow-y:
        auto;

    scroll-snap-align:
        start;

    scroll-snap-stop:
        always;
}


/*
 * Le titre est maintenant
 * dans les onglets du dessus.
 */
#productsGrid
.product-category-title {
    display:
        none !important;
}


/*
 * Plus de scroll horizontal
 * des produits eux-mêmes.
 *
 * Ils remplissent la page.
 */
#productsGrid
.product-category
.products-grid {
    width:
        100% !important;

    display:
        grid !important;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap:
        10px !important;

    overflow:
        visible !important;

    padding:
        0 !important;
}


/* CARD */

#productsGrid
.product-category
.product-card {
    width:
        100% !important;

    min-width:
        0 !important;

    max-width:
        none !important;

    flex:
        none !important;
}
.product-category-tabs {
    display: none !important;
}

/* =====================================================
   CASIER
===================================================== */

.crate-modal-card {
    width: min(620px, 94vw);
    max-height: 90vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}


.crate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 14px;
}


.crate-header h2 {
    margin: 0 0 3px;
}


.crate-header small {
    color: var(--muted);

    font-weight: 700;
}


.crate-count {
    padding: 8px 11px;

    border-radius: 10px;

    background: #edf1f5;

    color: var(--navy);

    white-space: nowrap;
}


.crate-count.invalid {
    color: #a52f2f;

    background: #fff0f0;
}


.crate-products {
    min-height: 0;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;

    overflow-y: auto;
}
.crate-column {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;
        
    height: calc(100svh - 180px);
}


.crate-column h3 {
    flex: 0 0 auto;

    margin: 0 0 8px;
    padding-bottom: 7px;

    border-bottom: 2px solid var(--line);

    color: var(--navy);

    font-size: 14px;
    font-weight: 900;
}


.crate-column-products {
    flex: 1;
    min-height: 0;

    display: grid;
    grid-auto-rows: max-content;
    align-content: start;

    gap: 7px;

    overflow-y: auto;
    overflow-x: hidden;
    

}

.crate-product-row {
    min-height: 52px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    align-items: center;

    gap: 12px;

    padding: 8px 10px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: #fff;    
}


.crate-product-row.insufficient {
    border-color: #e2a0a0;

    background: #fff6f6;
}


.crate-product-info {
    min-width: 0;
}


.crate-product-info strong,
.crate-product-info small {
    display: block;
}


.crate-product-info small {
    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
}


.crate-product-controls {
    display: grid;

    grid-template-columns:
        36px 30px 36px;

    align-items: center;

    gap: 5px;

    text-align: center;
}


.crate-product-controls button {
    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 10px;

    background: #edf1f5;

    color: var(--navy);

    font-size: 20px;
    font-weight: 900;

    cursor: pointer;
}


.crate-product-controls button:disabled {
    opacity: .3;

    cursor: default;
}


.crate-product-base-qty {
    min-width: 35px;

    text-align: center;

    font-size: 18px;
}


.crate-stock-message {
	display: flex;
	align-items: center;
	gap: 10px;

	margin-top: 14px;
	padding: 12px 14px;

	border: 1px solid rgba(214, 74, 74, .28);
	border-radius: 12px;

	background: rgba(214, 74, 74, .08);
	color: #b83232;

	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

.crate-stock-message::before {
	content: '⚠';

	flex: 0 0 auto;

	font-size: 18px;
	line-height: 1;
}


.crate-summary {
    display: grid;
    gap: 6px;

    margin-top: 14px;

    padding: 11px 0;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}


.crate-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}


.crate-summary span {
    color: var(--muted);

    font-size: 12px;
}


.crate-price-field {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 13px;

    font-weight: 900;
}

.crate-actions {
    display: grid;

    grid-template-columns:
        1fr 1.5fr;

    gap: 8px;

    margin-top: 14px;
}


.crate-actions .modal-button {
    margin-top: 0;
}


.ticket-line-crate {
    cursor: pointer;
}

.crate-products {
    min-height: 0;
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 14px;

    overflow: hidden;
}


.crate-product-row {
    background: #f4f6f8;

    border-width: 2px;
}


.crate-columns {
    flex: 1;
    min-height: 0;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 14px;

    overflow: hidden;
}


.network-status {
	display: flex;
	align-items: center;
	gap: 6px;

	padding: 7px 10px;

	border-radius: 10px;

	font-size: 11px;
	font-weight: 900;

	background: rgba(255, 255, 255, .12);
}


.network-status.offline {
	background: #a93838;
	color: #fff;
}


.network-status.syncing {
	background: #d98218;
	color: #fff;
}


.checkout-network-hint {
	grid-column: 1 / -1;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;

	margin-top: 4px;
	padding: 9px 12px;

	border: 1px solid #f0c5c5;
	border-radius: 10px;

	background: #fff3f3;
	color: #a93838;

	font-size: 12px;
	font-weight: 800;
	line-height: 1.25;
}


.pay-sumup:disabled {
	opacity: .4;
	filter: grayscale(.35);
	cursor: not-allowed;
}



.lock-pin-box {
	width: min(
		260px,
		100%
	);

	margin:
		18px auto 0;
}


.lock-pin-input {
	width: 100%;

	padding:
		13px 12px;

	border:
		2px solid
		var(--line);

	border-radius:
		12px;

	outline:
		none;

	background:
		#fff;

	text-align:
		center;

	font-size:
		30px;

	font-weight:
		900;

	letter-spacing:
		12px;

	color:
		var(--navy);
}


.lock-pin-input:focus {
	border-color:
		var(--accent);

	box-shadow:
		0 0 0 3px
		rgba(255, 138, 31, .12);
}


.lock-pin-error {
	margin-top:
		9px;

	padding:
		8px 10px;

	border-radius:
		9px;

	background:
		#fff1f1;

	color:
		#a93838;

	font-size:
		12px;

	font-weight:
		800;
}


.open-session-button {
	min-width:
		200px;
}


.open-session-button:disabled {
	opacity:
		.55;

	cursor:
		default;
}



.session-pin-close {
	position: absolute;

	top: 10px;
	right: 12px;

	width: 36px;
	height: 36px;

	border: 0;
	border-radius: 50%;

	background: #eef1f4;

	font-size: 23px;

	cursor: pointer;
}


.session-pin-icon {
	margin-bottom: 8px;

	font-size: 34px;
}


.session-pin-card h2 {
	margin:
		0 0 5px;

	color:
		var(--navy);
}


.session-pin-card p {
	margin:
		0 0 20px;

	color:
		var(--muted);

	font-size: 13px;
}


#sessionPinInput {
	width: 100%;

	padding: 13px 10px;

	border:
		2px solid
		var(--line);

	border-radius: 12px;

	outline: 0;

	text-align: center;

	font-size: 28px;
	font-weight: 900;

	letter-spacing: 12px;
}


#sessionPinInput:focus {
	border-color:
		var(--accent);
}


.session-pin-error {
	margin-top: 10px;

	padding: 8px 10px;

	border-radius: 9px;

	background: #fff1f1;
	color: #a93838;

	font-size: 12px;
	font-weight: 800;
}


.session-pin-submit {
	width: 100%;

	margin-top: 16px;
	padding: 13px;

	border: 0;
	border-radius: 11px;

	background:
		var(--accent);

	color: #fff;

	font-weight: 900;

	cursor: pointer;
}
/* TABLETTE PORTRAIT */

@media (
	orientation: portrait
) and (
	min-width: 600px
) {

	.sales-calendar {
		width: 100%;
		max-width: 520px;

		margin:
			0 auto;

		padding: 12px;
	}


	.sales-calendar-header {
		margin-bottom: 10px;
	}


	.sales-calendar-weekdays,
	.sales-calendar-days {
		gap: 3px;
	}


	.sales-calendar-day {
		aspect-ratio: auto;

		height: 48px;

		border-radius: 8px;

		font-size: 14px;
	}


	.sales-calendar-day i {
		bottom: 4px;
	}


	.sales-calendar-weekdays span {
		font-size: 9px;
	}
}

/* SUMUP DÉSACTIVÉ */

.checkout-choice-sumup:disabled {
	position: relative;

	opacity: .42;

	border-color: #cfd5dc;

	background: #e9edf1;

	color: #7b858f;

	filter: grayscale(1);

	cursor: not-allowed;

	box-shadow: none;
}


.checkout-choice-sumup:disabled::after {
	content: 'INDISPONIBLE';

	position: absolute;

	top: 8px;
	right: 8px;

	padding: 4px 7px;

	border-radius: 7px;

	background: #737d87;
	color: #fff;

	font-size: 9px;
	font-weight: 900;

	letter-spacing: .05em;
}


.checkout-choice-sumup:disabled
.checkout-choice-icon {
	opacity: .45;
}


.checkout-choice-sumup:disabled strong,
.checkout-choice-sumup:disabled small {
	color: #8e979f;
}


/* SUMUP D'UNE ATTENTE */

#pendingPaySumUp:disabled {
	opacity: .4;

	filter: grayscale(1);

	background: #dfe4e8;

	color: #7b858f;

	cursor: not-allowed;
}

/* =====================================================
   HEADER - SUMUP
===================================================== */

.sumup-status {
	display: flex;
	align-items: center;
	gap: 6px;

	padding: 7px 10px;

	border-radius: 10px;

	background:
		rgba(
			255,
			255,
			255,
			.12
		);

	color: #fff;

	font-size: 11px;
	font-weight: 900;
}


.sumup-status-dot {
	width: 9px;
	height: 9px;

	flex: 0 0 9px;

	border-radius: 50%;

	background: #9ca4ad;
}


.sumup-status.connected
.sumup-status-dot {
	background: #62d38c;

	box-shadow:
		0 0 0 3px
		rgba(
			98,
			211,
			140,
			.18
		);
}


.sumup-status.disconnected
.sumup-status-dot {
	background: #ff6464;

	box-shadow:
		0 0 0 3px
		rgba(
			255,
			100,
			100,
			.15
		);
}


.sumup-status.connecting
.sumup-status-dot {
	background: #ffb347;
}

/* =====================================================
   BAR - HISTORIQUE
===================================================== */

.history-modal-card,
.history-detail-card {
	width: min(
		92vw
	);

	max-height: 82vh;

	display: flex;
	flex-direction: column;

	text-align: left;
}


.history-list {
	min-height: 0;

	display: flex;
	flex-direction: column;

	gap: 8px;

	overflow-y: auto;
    padding: 20px;
        
    height: calc(100svh - var(--bar-header-height));
}


.history-item {
	width: 100%;

	padding: 13px 14px;

	border:
		1px solid
		var(--line);

	border-radius: 13px;

	display: grid;

	grid-template-columns:
		72px
		minmax(0, 1fr)
		auto;

	gap: 13px;

	align-items: center;

	background: #fff;

	text-align: left;

	cursor: pointer;
}


.history-item:active {
	transform: scale(.995);
}


.history-item-time {
	color: var(--navy);

	font-size: 16px;
	font-weight: 900;
}


.history-item-main {
	min-width: 0;
}


.history-item-main strong {
	display: block;

	font-size: 14px;
}


.history-item-main small {
	display: block;

	margin-top: 4px;

	overflow: hidden;

	color: var(--muted);

	font-size: 11px;

	text-overflow: ellipsis;
	white-space: nowrap;
}


.history-item-right {
	text-align: right;
}


.history-item-total {
	display: block;

	font-size: 18px;
	font-weight: 900;
}


.history-payment {
	display: inline-block;

	margin-top: 4px;

	padding: 4px 7px;

	border-radius: 7px;

	font-size: 9px;
	font-weight: 900;

	text-transform: uppercase;
}


.history-payment.cash {
	background: #edf1f5;

	color: #46515d;
}


.history-payment.sumup {
	background: #fff1e4;

	color: #a95600;
}


.history-empty {
	padding: 35px 15px;

	color: var(--muted);

	text-align: center;
}





.history-detail-qty {
	color: var(--navy);

	font-size: 16px;
	font-weight: 900;
}


.history-detail-product strong,
.history-detail-product small {
	display: block;
}


.history-detail-product strong {
	font-size: 14px;
}


.history-detail-product small {
	margin-top: 3px;

	color: var(--muted);

	font-size: 10px;
}


.history-detail-price {
	font-weight: 900;
}


.history-detail-actions {
    display: grid;
    grid-template-columns:
        1fr 1fr 50px;

    gap: 8px;

    margin-top: auto;
    padding-top: 18px;
}

.history-detail-actions.hidden {
    display: none;
}

.history-detail-actions button {
    min-height: 50px;

    border: 0;
    border-radius: 12px;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;
}

.history-detail-edit {
    background: #1768bb;
    color: #fff;
}

.history-detail-edit-secondary {
    background: #eaf3ff;
    color: #1768bb;
}
.history-detail-edit SPAN,
.history-detail-edit-secondary SPAN {
    display: block;
}
.history-detail-edit SPAN:last-child,
.history-detail-edit-secondary SPAN:last-child {
    font-variant: small-caps;
    font-size: 11px;
}

.history-detail-delete {
    background: #fff0f0;
    color: #b73535;
}

.ticket-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}


.ticket-header-text {
	display: flex;
	flex-direction: column;
}


.ticket-edit-cancel {
    width: 34px;
    height: 34px;

    padding: 0;
    border: 0;
    border-radius: 10px;

    display: grid;
    place-items: center;

    background: #fff0f0;
    color: #b63838;

    cursor: pointer;
}

.ticket-edit-cancel svg {
    width: 18px;
    height: 18px;
}

.ticket-edit-cancel:active {
    transform: scale(.94);
}


.ticket-correction {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 12px;

    background: #eef2f6;
    color: #5d6875;

    font-size: 12px;
    font-weight: 800;
}

.ticket-correction strong {
    font-size: 17px;
    font-weight: 900;
    color: inherit;
}


/* Rien à payer / rendre */
.ticket-correction.neutral {
    background: #eef2f6;
    color: #65717d;
}


/* Le client doit encore payer */
.ticket-correction.positive {
    background: #fff2df;
    color: #a85600;
}


/* Montant à rendre au client */
.ticket-correction.negative {
    background: #e7f5ec;
    color: #126b3d;
}





.bar-sheet {
    position: fixed;
    top: var(--bar-header-height);
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 500;

    display: none;

    background: #f2f5f8;

    padding: 0;
    margin: 0;
}

.bar-sheet.open {
    display: block;
}


/*
 * IMPORTANT :
 * écrase complètement l'ancien style modal
 */
.bar-sheet > .bar-sheet-content {
    width: 100% !important;
    max-width: none !important;

    height: 100% !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0;

    border-radius: 0 !important;
    box-shadow: none !important;

    background: #FFF;

    overflow: auto;

    transform: none !important;
    
}


.history-view {
    display: grid;
    grid-template-columns:
        240px
        minmax(0, 1fr)
        330px;

    height: 100%;
    min-height: 0;
    padding: 0 !important;
}


/* =============================
   RESUME SESSION
============================= */

.history-summary {
    background: #fff;
    padding: 24px;
    align-self: start;    
    border-right: 1px solid var(--bg);
    height: 100%;
    min-height: 0;
}

.history-summary-label {
    display: block;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.history-summary-opened {
    color: #272727;
    font-size: 13px;
    background: #e5f6f0;
    padding: 5px;
    border-radius: 20px;
    position: relative;
    letter-spacing: 1.3px;
    display: inline-flex;
    padding-left: 30px;
    padding-right: 10px;
}
.history-summary-opened:before {
    position: absolute;
    top: calc(50% - 6px);
    left: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    content: "";
    background: #0abc82;
}
.history-summary-total {
    display: block;

    margin-top: 30px;
    margin-bottom: 40px;

    font-size: 32px;
    font-weight: 700;

    color: #000;
    text-align: center;
}
.history-summary-stats {
    display: grid;
}

.history-summary-stats > div {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 14px 0;

    border-bottom: 1px solid #e8ebef;
}

.history-summary-stats > div:last-child {
    border-bottom: 0;
}

.history-summary-stats span {
    color: #7b8490;
}

.history-summary-stats strong {
    color: var(--navy);
}
.history-content {
    min-width: 0;
    min-height: 0;

}

.history-detail-pane {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    padding: 22px;

    border-left: 1px solid var(--line);

    background: #fff;
}


.history-detail-inner {
    height: 100%;

    display: flex;
    flex-direction: column;
}


/* HEADER */

.history-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    padding-bottom: 20px;

    border-bottom: 1px solid #e6ebf0;
}

.history-detail-heading h3 {
    margin: 0 0 8px;

    color: var(--navy);

    font-size: 22px;
    font-weight: 900;
}

.history-detail-meta {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #89939e;

    font-size: 13px;
    font-weight: 700;
}


/* BADGE PAIEMENT */

.history-detail-payment {
    display: inline-flex;
    align-items: center;

    padding: 4px 9px;

    border-radius: 20px;

    background: #edf3fb;
    color: #1768bb;

    font-size: 11px;
    font-weight: 800;
}


/* TOTAL */

.history-detail-amount {
    text-align: right;
}

.history-detail-amount small {
    display: block;

    margin-bottom: 3px;

    color: #8a949e;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
}

.history-detail-amount strong {
    color: #1768bb;

    font-size: 23px;
    font-weight: 900;

    white-space: nowrap;
}


/* TITRE SECTION */

.history-detail-section-title {
    margin: 20px 0 10px;

    color: #7d8793;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .04em;
}


/* LIGNES */

.history-detail-lines {
    display: grid;
    gap: 8px;

    overflow-y: auto;
}


.history-detail-line {
    min-height: 52px;

    display: grid;
    grid-template-columns:
        38px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 10px;

    padding: 9px 11px;

    border: 1px solid #e3e8ed;
    border-radius: 12px;

    background: #f8fafc;
}


.history-detail-qty {
    width: 34px;
    height: 34px;

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

    border-radius: 9px;

    background: #eaf3ff;
    color: #1768bb;

    font-weight: 900;
}


.history-detail-product {
    min-width: 0;
}

.history-detail-product strong {
    display: block;

    color: var(--navy);

    font-size: 14px;
    font-weight: 800;
}

.history-detail-product small {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 11px;
}


.history-detail-line-price {
    color: var(--navy);

    font-size: 14px;
    font-weight: 900;

    white-space: nowrap;
}


/* BOUTONS EN BAS */



.history-detail-edit {
    background: #1768bb;
    color: #fff;
}

.history-detail-delete {
    background: #fff0f0;
    color: #b73535;
}

/* =============================
   LISTE DES VENTES
============================= */

.history-content {
    min-width: 0;

    background: #fff;

    border-radius: 18px;

    overflow: hidden;
}

.history-view-header {
    padding: 20px 22px;

    border-bottom: 1px solid #e8ebef;
}

.history-view-header h2 {
    margin: 0;

    font-size: 24px;
}

.history-view-header small {
    display: block;

    margin-top: 4px;

    color: #7b8490;
}


/*.ticket-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}*/

.ticket-old-total {
    font-size: 13px;
    font-weight: 600;
    opacity: .65;

    text-decoration-line: line-through;
    text-decoration-thickness: 2px;
}

.ticket-old-total.hidden {
    display: none;
}
button,
a,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}
button:focus,
button:active {
    outline: none;
}


#closeSessionConfirmModal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}


.crate-sheet {
    background: #f2f5f8;
    padding: 0;
}

.crate-sheet-shell {
    height: 100%;
    display: grid;
    grid-template-rows: 72px minmax(0, 1fr);
}


/* HEADER */

.crate-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    background: #fff;
    border-bottom: 1px solid #e3e7eb;
}

.crate-sheet-header h2 {
    margin: 0;

    color: var(--navy);
    font-size: 23px;
    font-weight: 800;
}

.crate-sheet-header span {
    display: block;

    margin-top: 3px;

    color: #7d8793;
    font-size: 13px;
}


/* COMPTEUR 24 / 24 */

.crate-count {
    min-width: 92px;

    padding: 10px 16px;

    border-radius: 14px;

    background: #eaf3ff;
    color: #1768bb;

    text-align: center;
    font-size: 18px;
    font-weight: 800;
}

.crate-count.invalid {
    background: #fff0f0;
    color: #d33b3b;
}


/* CORPS */

.crate-sheet-body {
    min-height: 0;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 18px;
    background: #fff;
}


/* PRODUITS */

.crate-sheet-products {
    min-width: 0;
    min-height: 0;

    overflow-y: auto;

    background: #fff;
    border-radius: 18px;

    padding: 20px;
}


/* PANNEAU DROIT */

.crate-sheet-summary {
    align-self: stretch;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--bg);

    padding: 22px;
}

.crate-summary-title {
    margin-bottom: 20px;

    color: var(--navy);

    font-size: 19px;
    font-weight: 800;
}


/* RÉCAP */

.crate-summary {
    display: grid;

    margin-bottom: 24px;
}

.crate-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 0;

    border-bottom: 1px solid #e8ebef;
}

.crate-summary span {
    color: #7d8793;
    font-size: 14px;
}

.crate-summary strong {
    color: var(--navy);
    font-size: 16px;
}


/* PRIX APPLIQUÉ */

.crate-price-field {
    display: block;
}

.crate-price-field > span {
    display: block;

    margin-bottom: 8px;

    color: #7d8793;

    font-size: 13px;
    font-weight: 700;
}




/* ACTIONS EN BAS */

.crate-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;

    margin-top: auto;
    padding-top: 24px;
}

.crate-actions button {
    min-height: 54px;

    border: 0;
    border-radius: 14px;

    font-size: 15px;
    font-weight: 750;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

.crate-action-primary {
    background: var(--navy);
    color: #fff;
}

.crate-action-primary:disabled {
    opacity: .4;
}

.crate-action-secondary {
    background: #edf1f5;
    color: var(--navy);
}

.crate-recap {
    height: 190px;
}

.crate-recap-title {
    margin-bottom: 10px;

    color: #7d8793;
    font-size: 13px;
    font-weight: 700;
}

.crate-recap-list {
    display: grid;
    gap: 7px;
}

.crate-recap-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 14px;
}

.crate-recap-item span {
    color: #56616d;
}

.crate-recap-item strong {
    color: var(--navy);
    font-size: 15px;
}
.crate-price-control {
    width: 100%;
    height: 54px;

    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;

    padding: 0;

    border: 1px solid #dfe5eb;
    border-radius: 14px;

    background: #f8fafc;

    overflow: hidden;
}

.crate-price-control > button {
    width: auto;
    height: 100%;

    padding: 0;

    border: 0;
    border-radius: 0;

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

    background: #edf3fb;
    color: #1768bb;
}


.crate-price-input {
    min-width: 0;

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

    gap: 7px;

    padding: 0 8px;

    border-left: 1px solid #dfe5eb;
    border-right: 1px solid #dfe5eb;
}


.crate-price-input input {
    width: 82px;
    min-width: 0;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--navy);

    font-size: 25px;
    font-weight: 800;

    text-align: right;
}


.crate-price-input > span {
    flex: 0 0 auto;

    color: var(--navy);

    font-size: 18px;
    font-weight: 800;

    white-space: nowrap;
}

.crate-price-step {
    border: 0;
    /*border-radius: 12px;*/

    background: #edf3fb;
    color: #1768bb;

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

    cursor: pointer;
}

.crate-price-step svg {
    width: 18px;
    height: 18px;
    border: 0;
}

.crate-step-btn {
    width: 36px;
    height: 36px;

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

    border: 0;

    background: #edf3fb;
    color: #1768bb;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

.crate-step-btn svg {
    width: 16px;
    height: 16px;
}

.crate-step-btn:disabled {
    opacity: .35;
    cursor: default;
}
.crate-pricing {
    height: 90px;
}

.crate-pricing-title {
    margin-bottom: 12px;

    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
}

.crate-pricing-rows {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.crate-pricing-row:last-child {
    margin-top: auto;
}

.crate-pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid #e8ebef;
}

.crate-pricing-row span {
    color: #7d8793;
    font-size: 14px;
}

.crate-pricing-row strong {
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}

.crate-pricing-row.hidden {
    display: none;
}

.close-session-sheet {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}


.close-session-content {
    width: min(520px, 100%);

    padding: 36px;

    border: 1px solid #e1e7ed;
    border-radius: 20px;

    background: #fff;

    text-align: center;
}


.close-session-icon {
    width: 66px;
    height: 66px;

    margin: 0 auto 20px;

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

    border-radius: 18px;

    background: #fff0f0;
    color: #c43b3b;
}


.close-session-icon svg {
    width: 32px;
    height: 32px;
}


.close-session-eyebrow {
    color: #c43b3b;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .06em;
}


.close-session-text h2 {
    margin: 5px 0 10px;

    color: var(--navy);

    font-size: 25px;
}


.close-session-text p {
    max-width: 410px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.55;
}


.close-session-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 28px;
}


.close-session-actions .session-action {
    min-height: 54px;
}
#sessionPendingWarning {
    position: fixed;
    inset: 0;
    z-index: 20000;
}
.bar-header {
    position: relative;
    z-index: 100;
}

#closeSessionConfirmModal {
    z-index: 1000;
}

/* ==========================================
   OUVERTURE SESSION
========================================== */

#barLock {
    z-index: 90;
}

.session-open-sheet {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.session-open-sheet .lock-card {
    width: min(460px, 100%);

    padding: 36px;

    border: 1px solid #e1e7ed;
    border-radius: 20px;

    background: #fff;

    text-align: center;
}

.session-open-sheet .lock-icon {
    width: 66px;
    height: 66px;

    margin: 0 auto 18px;

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

    border-radius: 18px;

    background: #eaf3ff;

    font-size: 28px;
}

.session-open-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #1768bb;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .06em;
}

.session-open-sheet h1 {
    margin: 0 0 10px;

    color: var(--navy);

    font-size: 25px;
}

.session-open-sheet p {
    max-width: 350px;

    margin: 0 auto 22px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.5;
}

.session-open-sheet .lock-pin-box {
    max-width: 280px;

    margin: 0 auto 12px;
}

.session-open-sheet .lock-pin-input {
    width: 100%;
}

.session-open-sheet .open-session-button {
    width: min(280px, 100%);
    min-height: 54px;
}

.session-pin-display {
    display: grid;
    grid-template-columns: repeat(4, 58px);
    justify-content: center;

    gap: 12px;

    margin: 24px 0 12px;
}


.session-pin-cell {
    height: 62px;

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

    border: 2px solid #dce4ec;
    border-radius: 14px;

    background: #f8fafc;

    color: #1768bb;

    font-size: 34px;
    font-weight: 800;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease;
}


.session-pin-cell.filled {
    border-color: #1768bb;
    background: #eaf3ff;

    transform: scale(1.03);
}


.session-pin-keypad {
    width: 280px;

    margin: 22px auto 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}


.session-pin-keypad button {
    height: 62px;

    border: 1px solid #dfe5eb;
    border-radius: 14px;

    background: #fff;

    color: var(--navy);

    font-size: 24px;
    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}


.session-pin-keypad button:active {
    transform: scale(.96);
    background: #eef5fc;
}


.session-pin-keypad button:disabled {
    opacity: .55;
    cursor: default;
}


.session-pin-backspace {
    color: #66727d !important;

    font-size: 23px !important;
}


.lock-pin-error {
    min-height: 20px;

    margin-top: 8px;

    color: #c43b3b;

    font-size: 13px;
    font-weight: 700;

    text-align: center;
}


#barLock.pin-loading .session-pin-cell {
    opacity: .6;
}


.history-detail-payment-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-payment-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.history-payment-detail-row b {
    white-space: nowrap;
}


#historyDetailPayment {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 6px;
}

.history-payment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;

    padding: 7px 10px;

    background: #f3f7fc;
    border-radius: 10px;
}

.history-payment-row-label {
    min-width: 0;

    font-size: 12px;
    font-weight: 700;

    white-space: normal;
    line-height: 1.2;
}

.history-payment-row strong {
    white-space: nowrap;

    font-size: 13px;
    font-weight: 800;
}


#historyDetailTotal {
    display: block;
    margin-top: 4px;

    font-size: 22px;
    font-weight: 800;
}
.history-detail-summary {
	width: 100%;
	margin: 0 0 18px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.history-detail-head,
.history-detail-payments {
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

/* =====================================
   LIGNES
===================================== */

.history-detail-row,
.history-detail-pay-row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 20px;

	width: 100%;
	min-height: 26px;
	padding: 3px 0;

	background: transparent;
	border: 0;
	border-radius: 0;
}
/* =====================================
   VENTE + HEURE
===================================== */

.history-detail-row-main {
	padding-bottom: 9px;
	margin-bottom: 6px;

	border-bottom: 1px solid #e5eaf0;
}

.history-detail-row-main strong {
	justify-self: start;

	font-size: 17px;
	font-weight: 850;
	color: var(--primary);
	text-align: left;
}

#historyDetailTime {
	justify-self: end;

	font-size: 13px;
	font-weight: 700;
	color: #7d8998;
}
/* =====================================
   LIBELLÉS / VALEURS
===================================== */

.history-detail-row > span,
.history-detail-pay-row > span {
	justify-self: start;

	font-size: 12px;
	font-weight: 700;
	color: #6f7b8a;

	text-align: left;
	text-transform: none;
	letter-spacing: 0;
}

.history-detail-row > strong,
.history-detail-pay-row > strong {
	justify-self: end;

	font-size: 14px;
	font-weight: 800;
	color: #1f2b3a;

	text-align: right;
	white-space: nowrap;

	font-variant-numeric: tabular-nums;
}
/* =====================================
   TOTAL
===================================== */

.history-detail-total-row {
	margin-top: 5px;
	padding-top: 8px;
	padding-bottom: 10px;

	border-top: 1px solid #e5eaf0;
	border-bottom: 1px solid #d9e0e8;
}

.history-detail-total-row > span {
	font-size: 12px;
	font-weight: 850;
	color: #566273;
	text-transform: uppercase;
}

.history-detail-total-row > strong {
	font-size: 22px;
	font-weight: 900;
	color: var(--primary);
}


/* =====================================
   PAIEMENTS
===================================== */

.history-detail-payments {
	padding-top: 9px;
	padding-bottom: 9px;

	border-bottom: 1px solid #d9e0e8;
}

.history-detail-pay-row {
	min-height: 25px;
	padding: 2px 0;
}

.history-detail-pay-row > strong {
	color: var(--primary);
}


/* =====================================
   TITRE DÉTAIL
===================================== */

.history-detail-section-title {
	margin-top: 18px;
	margin-bottom: 10px;

	font-size: 11px;
	font-weight: 850;
	color: #7a8594;

	text-transform: uppercase;
	letter-spacing: .04em;
}


/* =========================================================
   DETAIL VENTE - RECAP PROPRE
   ========================================================= */

#historyDetailPane .history-detail-summary {
	display: block !important;
	width: 100% !important;
	margin: 0 0 18px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
}

#historyDetailPane .history-detail-head,
#historyDetailPane .history-detail-payments {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
}


/* Chaque info sur SA ligne */

#historyDetailPane .history-detail-row,
#historyDetailPane .history-detail-pay-row {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	align-items: center !important;

	width: 100% !important;
	min-width: 0 !important;

	gap: 16px !important;
	padding: 5px 0 !important;
	margin: 0 !important;

	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
}


/* Vente + heure */

#historyDetailPane .history-detail-row-main {
	padding-bottom: 10px !important;
	margin-bottom: 5px !important;
	border-bottom: 1px solid #e3e8ee !important;
}

#historyDetailPane .history-detail-row-main strong {
	font-size: 16px !important;
	font-weight: 850 !important;
	color: #162231 !important;
}

#historyDetailPane #historyDetailTime {
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #7a8796 !important;
}


/* Articles */

#historyDetailPane .history-detail-row > span,
#historyDetailPane .history-detail-pay-row > span {
	font-size: 12px !important;
	font-weight: 700 !important;
	color: #748090 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

#historyDetailPane .history-detail-row > strong,
#historyDetailPane .history-detail-pay-row > strong {
	font-size: 14px !important;
	font-weight: 850 !important;
	color: #172331 !important;

	text-align: right !important;
	white-space: nowrap !important;
}


/* TOTAL */

#historyDetailPane .history-detail-total-row {
	margin-top: 5px !important;
	padding: 10px 0 !important;

	border-top: 1px solid #e3e8ee !important;
	border-bottom: 1px solid #e3e8ee !important;
}

#historyDetailPane .history-detail-total-row > span {
	font-size: 12px !important;
	font-weight: 850 !important;
	text-transform: uppercase !important;
	color: #667383 !important;
}

#historyDetailPane #historyDetailTotal {
	font-size: 21px !important;
	font-weight: 900 !important;
	color: #1767b8 !important;
}


/* PAIEMENTS */

#historyDetailPane .history-detail-payments {
	padding: 9px 0 10px !important;
	border-bottom: 1px solid #e3e8ee !important;
}

#historyDetailPane .history-detail-pay-row {
	min-height: 26px !important;
	padding: 3px 0 !important;
}

#historyDetailPane #historyDetailCash,
#historyDetailPane #historyDetailSumup {
	color: #1767b8 !important;
}


/* TITRE DETAIL */

#historyDetailPane .history-detail-section-title {
	margin: 18px 0 10px !important;

	font-size: 11px !important;
	font-weight: 850 !important;
	color: #748090 !important;

	text-transform: uppercase !important;
	letter-spacing: .035em !important;
}
#historyDetailPane .history-detail-row-main > strong {
	justify-self: start !important;
	text-align: left !important;
}

#historyDetailPane .history-detail-row-main > #historyDetailTime {
	justify-self: end !important;
	text-align: right !important;
}


/* ==========================================
   SHEET : VALIDATION VENTE
========================================== */

#checkoutModal .checkout-sheet {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 32px 40px;
	border-radius: 0;

	display: flex;
	flex-direction: column;
	gap: 24px;

	overflow-y: auto;
}


#checkoutModal .checkout-header {
	flex: 0 0 auto;
    padding-bottom: 10px;
}


#checkoutModal .checkout-methods {
	flex: 0.7;

	display: grid;
	grid-template-columns:
		repeat(
			3,
			minmax(0, 1fr)
		);

	gap: 20px;
	align-items: stretch;
    margin-top: 10px;
}


#checkoutModal .checkout-choice {
	width: 100%;
	min-height: 170px;
}


#checkoutModal .checkout-actions {
	margin-top: auto;
	flex: 0 0 auto;
    min-height: 70px;
}


/* ==========================================
   SHEET : SUMUP
========================================== */

#sumupModal .sumup-sheet {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 40px;

	border-radius: 0;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	gap: 20px;
	text-align: center;
}


#sumupModal .payment-amount {
	margin: 8px 0;
}

/* ==========================================
   CHECKOUT : MODE EN ATTENTE
========================================== */

#checkoutModal.pending-mode .checkout-label,
#checkoutModal.pending-mode .checkout-divider,
#checkoutModal.pending-mode .checkout-methods {
	display: none;
}


#checkoutModal.pending-mode .pending-form {
	display: flex;
	flex-direction: column;
	gap: 14px;

	width: min(720px, 100%);
	margin: 20px auto 0;
}


#checkoutModal.pending-mode .pending-form-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px;
	align-items: stretch;
}


#checkoutModal.pending-mode #pendingTitle {
	min-height: 60px;
	font-size: 20px;
}


#checkoutModal.pending-mode .pending-confirm {
	min-height: 60px;
	padding-inline: 28px;
}


/* ==========================================
   SHEET : ANNULATION COMMANDE
========================================== */

#cancelOrderConfirmModal .cancel-order-sheet {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 40px;

	border-radius: 0;

	display: flex;
	flex-direction: column;
	justify-content: center;

	overflow: auto;
}


#cancelOrderConfirmModal .cancel-order-confirm-header {
	width: min(760px, 100%);
	margin: 0 auto 32px;
}


#cancelOrderConfirmModal .cancel-order-confirm-actions {
	width: min(760px, 100%);
	margin: 0 auto;

	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}


/* ==========================================
   PAIEMENT LIBRE
========================================== */

.free-payment-sheet {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	border-radius: 0;

	display: flex;
	flex-direction: column;
}


.free-payment-heading {
	flex: 0 0 auto;

	border-bottom: 1px solid var(--bg);
	padding: 10px 20px;
}


.free-payment-heading h2 {
	margin: 0;
	padding: 0;
	font-size: 28px;
}


.free-payment-heading small {
	font-size: 14px;
	opacity: 0.6;
}


/*
 * Prend UNIQUEMENT tout l'espace
 * restant sous le heading.
 */
.free-payment-sheet-all {
	flex: 1;
	min-height: 0;

	padding: 0 40px;

	display: grid;
	grid-template-columns:
		minmax(320px, 0.9fr)
		minmax(360px, 1.1fr);

	gap: 42px;
}


.free-payment-left {
	min-height: 0;

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


/*
 * Taille réelle du pavé :
 * 3 colonnes de 100px
 * 4 lignes de 100px
 */
.free-payment-keypad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(4, 1fr);

	gap: 10px;

	width: min(34vw, 340px);
	aspect-ratio: 3 / 4;
}


.free-payment-keypad button {
	border: 1px solid #d9dee7;
	border-radius: 12px;
	background: #fff;

	font: inherit;
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700;

	cursor: pointer;

	width: 100%;
	height: 100%;
}


.free-payment-keypad button:active {
	transform: scale(0.98);
}


.free-payment-backspace {
	font-size: 25px !important;
}


.free-payment-right {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	padding: 30px;
}
.free-payment-right input {
	border: 0;
	border-bottom: 1px solid #000;
	margin: 40px 0 20px 0;
	width: 100%;
	font-size: 16px;
	text-align: center;
	background: transparent;
	outline: none;
}
.free-payment-right input:focus {
	border-bottom: 2px solid #000;
	outline: none;
}


.free-payment-label {
	margin-bottom: 8px;

	font-size: 15px;
	font-weight: 600;
	opacity: 0.6;
}


.free-payment-amount {
	font-size: clamp(52px, 7vw, 88px);
	line-height: 1;
	letter-spacing: -3px;
}


.free-payment-pay {
	width: min(420px, 100%);
	min-height: 74px;

	margin-top: 54px;

	border: 0;
	border-radius: 16px;

	font: inherit;
	font-size: 20px;
	font-weight: 800;

	cursor: pointer;
}


.free-payment-pay:disabled {
	opacity: 0.35;
	cursor: default;
}


/* ==========================================
   HISTORIQUE - PRODUITS SESSION OUVERTE
========================================== */

#historyDetailEmpty {
	display: block;
	width: 100%;
	height: auto;

	text-align: left;
}


.history-session-products-title {
	margin-bottom: 18px;

	font-size: 16px;
	font-weight: 900;

	color: #172331;
}


.history-session-products-head,
.history-session-product-row {
	display: grid;

	grid-template-columns:
		minmax(0, 1fr)
		44px
		78px;

	align-items: center;

	gap: 10px;
}


.history-session-products-head {
	padding: 0 4px 8px;

	border-bottom: 1px solid #dfe4ea;

	color: #7a8594;

	font-size: 11px;
	font-weight: 800;

	text-transform: uppercase;
}


.history-session-products-head span:nth-child(2),
.history-session-products-head span:nth-child(3) {
	text-align: right;
}


.history-session-products-list {
	min-height: 0;
}


.history-session-product-row {
	padding: 10px 4px;

	border-bottom: 1px solid #edf0f3;

	font-size: 13px;
}


.history-session-product-row strong {
	min-width: 0;

	overflow: hidden;

	text-overflow: ellipsis;
	white-space: nowrap;

	color: #172331;
}


.history-session-product-row span,
.history-session-product-row b {
	text-align: right;

	font-variant-numeric:
		tabular-nums;
}


.history-session-product-row span {
	color: #667383;
	font-weight: 800;
}


.history-session-product-row b {
	color: var(--navy);
	font-weight: 900;
}


.history-session-crates {
	margin-top: 18px;
	padding-top: 12px;

	border-top: 1px dashed #d7dde4;
}


.history-session-crates-title {
	margin-bottom: 8px;

	color: #7a8594;

	font-size: 11px;
	font-weight: 850;

	text-transform: uppercase;
	letter-spacing: .04em;
}


.history-session-crate {
	display: grid;

	grid-template-columns:
		minmax(0, 1fr)
		auto;

	gap: 12px;

	padding: 6px 0;

	font-size: 12px;
	line-height: 1.4;

	color: #596574;
}


.history-session-crate strong {
	white-space: nowrap;

	color: #172331;
}


.history-session-products-loading,
.history-session-products-empty {
	padding: 30px 10px;

	text-align: center;

	color: #8a949f;

	font-size: 13px;
}

/* ==========================================
   BOTTOM SHEET - MONNAIE
========================================== */

.cash-calculator-layer {
	position: fixed;
	inset: 0;

	z-index: 10020;

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

	background: rgba(15, 23, 42, .28);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transition:
		opacity .2s ease,
		visibility .2s ease;
}

.cash-calculator-layer.open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.cash-calculator-sheet {
	width: min(
		520px,
		calc(100% - 24px)
	);

	margin:
		0 auto
		calc(env(safe-area-inset-bottom) - 20px);

	padding: 10px 18px 40px;

	border-radius: 26px;

	background: #fff;

	box-shadow:
		0 14px 45px rgba(0,0,0,.24);

	transform: translateY(
		calc(100% + 30px)
	);

	transition:
		transform .28s
		cubic-bezier(.22,.8,.25,1);
}

.cash-calculator-layer.open
.cash-calculator-sheet {
	transform: translateY(0);
}

.cash-calculator-drag {
	position: relative;

	height: 28px;

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

	touch-action: none;

	/*
	 * La vraie zone tactile déborde
	 * largement autour de la petite barre.
	 */
}

.cash-calculator-drag::before {
	content: "";

	position: absolute;

	left: 50%;
	top: -12px;

	width: min(
		320px,
		85vw
	);

	height: 72px;

	transform:
		translateX(-50%);
}


.cash-calculator-drag span {
	position: relative;
	z-index: 1;

	width: 48px;
	height: 5px;

	border-radius: 999px;
	background: #cbd1d9;
}

.cash-calculator-head {
	margin-bottom: 14px;
}

.cash-calculator-head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
	color: var(--navy);
}

.cash-calculator-summary {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 10px;

	margin-bottom: 14px;
}

.cash-calculator-box {
	border: 1px solid #e3e7ec;
	border-radius: 16px;
	padding: 11px;
	background: #fafbfc;

	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.cash-calculator-box span {
	display: block;
	margin-bottom: 4px;

	font-size: 11px;
	font-weight: 700;
	color: #6b7280;
}

.cash-calculator-box strong {
	font-size: 18px;
	font-weight: 900;
	line-height: 1.1;
}

.cash-calculator-box.is-active {
	border-color: var(--orange);
	box-shadow: 0 0 0 2px rgba(242,140,24,.12);
	background: #fffaf4;
}

.cash-calculator-change {
    background: #dc5732;
}


.cash-calculator-change strong,
.cash-calculator-change span {
	color: #fff;
}

.cash-calculator-keypad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 9px;
}

.cash-calculator-keypad button {
	height: 54px;
	border: 0;
	border-radius: 14px;
	background: #f1f3f6;

	font-size: 20px;
	font-weight: 800;
	color: #273142;
}

.cash-calculator-keypad button:active {
	transform: scale(.97);
}

@media (max-width: 600px) {
	.cash-calculator-summary {
		grid-template-columns: 1fr 1fr;
	}

	.cash-calculator-change {
		grid-column: 1 / -1;
	}
}


/* ==========================================
   ANIMATION AJOUT PRODUIT
========================================== */

.product-fly {
	position: fixed;

	z-index: 20000;

	margin: 0;

	overflow: hidden;

	border-radius: 14px;

	background: #fff;

	pointer-events: none;

	box-shadow:
		0 8px 24px
		rgba(0, 0, 0, .22);

	transition:
		transform .36s
			cubic-bezier(.2, .8, .2, 1),
		opacity .32s ease;
}


.product-fly img {
	width: 100%;
	height: 100%;

	object-fit: contain;
}


.ticket-line.ticket-line-pop {
	animation:
		ticket-line-pop .28s ease;
}


@keyframes ticket-line-pop {

	0% {
		transform: scale(1);
	}

	45% {
		transform: scale(1.035);
	}

	100% {
		transform: scale(1);
	}
}


.product-count-fly {
	position: fixed;

	z-index: 30000;

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

	border-radius: 999px;

	pointer-events: none;

	transform-origin: center;

	transition:
		transform .34s
		cubic-bezier(.22, .8, .25, 1),
		opacity .30s ease;

	will-change:
		transform,
		opacity;
}


.ticket-qty-pop {
	animation:
		ticketQtyPop .22s ease;
}


@keyframes ticketQtyPop {

	0% {
		transform: scale(1);
	}

	45% {
		transform: scale(1.28);
	}

	100% {
		transform: scale(1);
	}
}

.product-count.product-count-fly {
	position: fixed;

	z-index: 30000;

	margin: 0;

	pointer-events: none;

	transform-origin: center;

	transition:
		transform .40s cubic-bezier(.22, .8, .25, 1),
		opacity .38s ease;

	will-change:
		transform,
		opacity;
}



#barLock::before {
	content: "";

	position: absolute;
	inset: 0;

	background-image: url("../../img/admin.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: auto 150%;

	opacity: .28;

	pointer-events: none;
	z-index: 100;
}




.session-pin-cell,
.session-pin-keypad button {
	position: relative;
	z-index: 200;
    background: #fff;
}

.cash-swipe-zone {
	position: fixed;
	left: calc(50% - 150px);
	bottom: calc(env(safe-area-inset-bottom) - 20px);
	transform: translateX(-50%) translateY(20px);

	width: min(220px, 58vw);
	height: 116px;

	z-index: 10020;

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

	opacity: 0;
	pointer-events: none;

	touch-action: none;
	user-select: none;
	-webkit-user-select: none;

	transition:
		opacity .2s ease,
		transform .25s ease;
}


.cash-swipe-zone.show {
	opacity: 1;
	pointer-events: auto;

	transform:
		translateX(-50%)
		translateY(0);
}


.cash-swipe-hint {
	position: relative;

	width: 138px;
	height: 74px;

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

	filter:
		drop-shadow(
			0 10px 16px rgba(0,0,0,.18)
		);
}


/*.cash-swipe-handle {
	position: absolute;

	top: -12px;
	left: 50%;

	width: 48px;
	height: 5px;

	border-radius: 999px;

	background: #c9ced6;

	transform:
		translateX(-50%);
}*/


.cash-money-stack {
	position: relative;

	width: 118px;
	height: 74px;

	transform-origin:
		center bottom;

	animation:
		cashStackFloat
		3.6s ease-in-out
		infinite;
}


.cash-note {
	position: absolute;

	left: 50%;
	bottom: 4px;

	width: 42px;
	height: 72px;

	margin-left: -21px;

	border-radius: 8px;
	border: 2px solid #268b52;

	background:
		radial-gradient(
			circle at 50% 28%,
			#effbea 0 18%,
			transparent 19%
		),
		linear-gradient(
			180deg,
			#d8f2d4,
			#b9e3b7
		);

	transform-origin:
		center bottom;

	box-shadow:
		0 4px 10px rgba(0,0,0,.08);

	animation:
		cashNoteFan
		3.6s cubic-bezier(.22,.8,.25,1)
		infinite;
}


.cash-note::before {
	content: "";

	position: absolute;

	left: 7px;
	right: 7px;
	top: 8px;
	bottom: 8px;

	border:
		1px solid rgba(38,139,82,.20);

	border-radius: 5px;
}


.cash-note::after {
	content: "€";

	position: absolute;

	left: 50%;
	top: 50%;

	transform:
		translate(-50%, -50%);

	color: #207843;

	font-size: 18px;
	font-weight: 900;
}


.cash-note:nth-child(1) {
	--tx: -34px;
	--rot: -34deg;
	z-index: 1;
}

.cash-note:nth-child(2) {
	--tx: -18px;
	--rot: -18deg;
	z-index: 2;
}

.cash-note:nth-child(3) {
	--tx: 0px;
	--rot: 0deg;
	z-index: 3;
}

.cash-note:nth-child(4) {
	--tx: 18px;
	--rot: 18deg;
	z-index: 2;
}

.cash-note:nth-child(5) {
	--tx: 34px;
	--rot: 34deg;
	z-index: 1;
}


@keyframes cashNoteFan {

	/*
	 * Repos :
	 * liasse légèrement ouverte
	 */
	0%,
	18%,
	100% {
		transform:
			translateX(
				calc(var(--tx) * .28)
			)
			rotate(
				calc(var(--rot) * .28)
			);
	}


	/*
	 * Petit dépassement à l'ouverture
	 */
	28% {
		transform:
			translateX(
				calc(var(--tx) * 1.08)
			)
			rotate(
				calc(var(--rot) * 1.08)
			);
	}


	/*
	 * Éventail complètement ouvert
	 */
	38%,
	78% {
		transform:
			translateX(var(--tx))
			rotate(var(--rot));
	}


	/*
	 * Retour progressif
	 */
	88% {
		transform:
			translateX(
				calc(var(--tx) * .45)
			)
			rotate(
				calc(var(--rot) * .45)
			);
	}
}


@keyframes cashStackFloat {

	0%,
	18%,
	100% {
		transform:
			translateX(0)
			translateY(0)
			rotate(0deg);
	}

	38%,
	78% {
		transform:
			translateY(-2px);
	}

	82% {
		transform:
			translateX(-4px)
			translateY(-2px)
			rotate(-4deg);
	}

	86% {
		transform:
			translateX(4px)
			translateY(-2px)
			rotate(4deg);
	}

	90% {
		transform:
			translateX(-2px)
			translateY(-2px)
			rotate(-2deg);
	}

	94% {
		transform:
			translateX(2px)
			translateY(-2px)
			rotate(2deg);
	}
}


.sumup-sheet {
	width: 360px;
	max-width: calc(100vw - 32px);

	box-sizing: border-box;

	padding: 24px;
}


.sumup-payment-card {
	overflow: hidden;

	border:
		1px solid #dde2e6;

	border-radius:
		24px;

	background:
		#fff;

	box-shadow:
		0 14px 40px
		rgba(0, 0, 0, .08);
    
    width:
		100%;

	box-sizing:
		border-box;
}


/*
 * HAUT
 */
.sumup-payment-heading {
	padding:
		22px 24px 18px;

	text-align:
		center;

	border-bottom:
		1px solid #edf0f2;
}


.sumup-payment-heading > span {
	display: block;

	margin-bottom:
		4px;

	font-size:
		13px;

	font-weight:
		700;

	letter-spacing:
		.7px;

	text-transform:
		uppercase;

	color:
		#858d94;
}


.payment-amount {
	display: block;

	font-size:
		38px;

	font-weight:
		800;

	line-height:
		1.1;

	letter-spacing:
		-1.4px;

	color:
		#1b1f22;
}


/*
 * DESSIN
 */
.sumup-payment-visual {
	position: relative;

	height:
		205px;

	background:
		linear-gradient(
			180deg,
			#fafbfc,
			#f3f5f6
		);
}


/*
 * TERMINAL
 */
.sumup-terminal {
	position: absolute;

	left:
	60%;

    transform:
        translateX(-50%);

	top:
		19px;

	width:
		112px;

	height:
		168px;

	border-radius:
		18px 18px 23px 23px;

	background:
		linear-gradient(
			155deg,
			#30353a,
			#111416
		);

	border:
		1px solid
		rgba(255, 255, 255, .1);

	box-shadow:
		0 15px 28px
		rgba(0, 0, 0, .22);

	z-index:
		2;
}


.sumup-terminal-screen {
	position: relative;

	width:
		88px;

	height:
		70px;

	margin:
		12px auto 0;

	border-radius:
		10px;

	background:
		linear-gradient(
			145deg,
			#fff,
			#e5eaed
		);
}


.sumup-terminal-brand {
	position: absolute;

	left: 0;
	right: 0;

	top:
		23px;

	text-align:
		center;

	font-size:
		15px;

	font-weight:
		800;

	color:
		#24292d;
}


.sumup-terminal-keypad {
	width:
		64px;

	margin:
		17px auto 0;

	display:
		grid;

	grid-template-columns:
		repeat(3, 1fr);

	gap:
		9px 12px;
}


.sumup-terminal-keypad span {
	width:
		6px;

	height:
		6px;

	margin:
		auto;

	border-radius:
		50%;

	background:
		#62686d;
}


/*
 * CARTE
 */
.sumup-bank-card {
	position: absolute;

	left:
		38px;

	top:
		73px;

	width:
		125px;

	height:
		78px;

	border-radius:
		12px;

	background:
		linear-gradient(
			135deg,
			#315e84,
			#19364f
		);

	box-shadow:
		0 14px 25px
		rgba(0, 0, 0, .18);

	transform:
		rotate(-7deg);

	z-index:
		3;
}


.sumup-card-chip {
	position: absolute;

	left:
		17px;

	top:
		18px;

	width:
		29px;

	height:
		21px;

	border-radius:
		5px;

	background:
		linear-gradient(
			135deg,
			#efd982,
			#bca159
		);
}


.sumup-card-line {
	position: absolute;

	left:
		17px;

	bottom:
		14px;

	width:
		46px;

	height:
		4px;

	border-radius:
		10px;

	background:
		rgba(255, 255, 255, .42);
}


/*
 * NFC
 */
.sumup-card-contactless,
.sumup-terminal-contactless {
	position: absolute;

	width:
		20px;

	height:
		28px;
}


.sumup-card-contactless {
	right:
		18px;

	top:
		23px;

	color:
		rgba(255, 255, 255, .85);
}


.sumup-terminal-contactless {
	right:
		8px;

	top:
		7px;

	color:
		#677078;
}


.sumup-card-contactless span,
.sumup-terminal-contactless span {
	position: absolute;

	border:
		2px solid
		currentColor;

	border-left:
		0;

	border-top-color:
		transparent;

	border-bottom-color:
		transparent;

	border-radius:
		50%;
}


.sumup-card-contactless span:nth-child(1),
.sumup-terminal-contactless span:nth-child(1) {
	width:
		5px;

	height:
		10px;

	left:
		0;

	top:
		8px;
}


.sumup-card-contactless span:nth-child(2),
.sumup-terminal-contactless span:nth-child(2) {
	width:
		10px;

	height:
		18px;

	left:
		1px;

	top:
		4px;
}


.sumup-card-contactless span:nth-child(3),
.sumup-terminal-contactless span:nth-child(3) {
	width:
		16px;

	height:
		26px;

	left:
		2px;

	top:
		0;
}


/*
 * PENDING :
 * la carte s'approche du Solo.
 */
.sumup-sheet.is-pending
.sumup-bank-card {
	animation:
		sumup-card-payment
		1.45s
		ease-in-out
		infinite;
}


@keyframes sumup-card-payment {

	0%,
	100% {
		transform:
			translateX(0)
			rotate(-7deg);
	}

	60% {
		transform:
			translateX(53px)
			translateY(-3px)
			rotate(-2deg);
	}
}


/*
 * Le vieux spinner reste seulement
 * pour ne pas casser le JS.
 */
.payment-loader {
	display:
		none !important;
}


/*
 * RESULTAT
 */
.payment-result-icon {
	position: absolute;

	left:
		50%;

	top:
		65px;

	transform:
		translateX(-50%)
		scale(.85);

	width:
		74px;

	height:
		74px;

	display:
		none;

	align-items:
		center;

	justify-content:
		center;

	border-radius:
		50%;

	background:
		#fff;

	box-shadow:
		0 10px 30px
		rgba(0, 0, 0, .16);

	font-size:
		42px;

	font-weight:
		800;

	z-index:
		10;
}


.sumup-sheet.is-success
.payment-result-icon,
.sumup-sheet.is-error
.payment-result-icon {
	display:
		flex !important;

	animation:
		sumup-result-in
		.3s ease forwards;
}


@keyframes sumup-result-in {

	to {
		transform:
			translateX(-50%)
			scale(1);
	}
}


.sumup-sheet.is-success
.sumup-bank-card,

.sumup-sheet.is-error
.sumup-bank-card {
	opacity:
		.18;
}


/*
 * BANDEAU ÉTAT
 */
.sumup-payment-status {
	display:
		flex;

	align-items:
		center;

	gap:
		13px;

	padding:
		17px 20px;

	border-top:
		1px solid #edf0f2;

	text-align:
		left;
    
    min-height:
		76px;

	box-sizing:
		border-box;
}


.sumup-payment-status-dot {
	flex:
		0 0 auto;

	width:
		11px;

	height:
		11px;

	border-radius:
		50%;

	background:
		#e2a829;

	box-shadow:
		0 0 0 5px
		rgba(226, 168, 41, .13);
}


.sumup-payment-status-text {
	min-width:
		0;
    
    width:
		100%;
}


.sumup-payment-status h2 {
	margin:
		0 0 2px;

	font-size:
		17px;

	font-weight:
		750;
}


.sumup-payment-status p {
	margin:
		0;

	font-size:
		14px;

	color:
		#747c82;
}


.sumup-sheet.is-success
.sumup-payment-status-dot {
	background:
		#29a36a;

	box-shadow:
		0 0 0 5px
		rgba(41, 163, 106, .13);
}


.sumup-sheet.is-error
.sumup-payment-status-dot {
	background:
		#d84d4d;

	box-shadow:
		0 0 0 5px
		rgba(216, 77, 77, .12);
}


/*
 * BOUTONS
 */
.sumup-payment-actions {
	display:
		flex;

	justify-content:
		center;

	margin-top:
		16px;
}


.sumup-payment-actions
.modal-button {
	min-width:
		150px;
}


.sumup-cancel-button {
	background:
		transparent;

	color:
		#555;

	border:
		1px solid #d7dbde;
}


.sumup-payment-card {
	width: 360px;
	max-width: calc(100vw - 48px);

	margin:
		32px auto 0;

	box-sizing:
		border-box;

	overflow: hidden;

	border:
		1px solid #dde2e6;

	border-radius:
		24px;

	background:
		#fff;

	box-shadow:
		0 14px 40px
		rgba(0, 0, 0, .08);
}