/* TalabaStore Partner — encart TalabaCard. Couleurs TalabaStore, s'adapte à n'importe quel thème. */
.tsp-box {
	--tsp-pri: #0F7363; --tsp-ink: #0D1F1A; --tsp-amber: #FFC857; --tsp-mint: #E6F5EE;
	position: relative; margin: 14px 0 18px; padding: 16px; border-radius: 18px; color: #fff;
	background: linear-gradient(135deg, #0D1F1A 0%, #0F3B30 60%, #0D7C66 100%);
	box-shadow: 0 16px 36px -22px rgba(13,124,102,.8); font-size: 14.5px; line-height: 1.5; overflow: hidden;
}
.tsp-box *, .tsp-box *::before, .tsp-box *::after { box-sizing: border-box; }
.tsp-box p { margin: 0; color: inherit; }
.tsp-box__logo { flex: none; display: inline-grid; place-items: center; width: 30px; height: 20px; border-radius: 5px; background: linear-gradient(120deg, #2BB6A1, #5CBD80); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.tsp-box__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tsp-amber); }
.tsp-box__promo { display: flex; flex-direction: column; gap: 8px; }
.tsp-box__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tsp-box__price strong, .tsp-box__price strong .amount { font-size: 30px; line-height: 1.05; font-weight: 900; color: #fff; }
.tsp-box__price del, .tsp-box__price del .amount { color: rgba(255,255,255,.6); font-size: 15px; font-weight: 700; }
.tsp-box__badge { padding: 3px 10px; border-radius: 999px; background: var(--tsp-amber); color: var(--tsp-ink); font-size: 13px; font-weight: 900; }
.tsp-box__save { color: rgba(255,255,255,.88); font-weight: 600; }
.tsp-box__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tsp-box .tsp-btn, .tsp-box .button.tsp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); background: transparent; color: #fff; font-weight: 800; font-size: 14px; line-height: 1.2; text-decoration: none; cursor: pointer; }
.tsp-box .tsp-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.tsp-box .tsp-btn--amber { background: var(--tsp-amber); border-color: var(--tsp-amber); color: var(--tsp-ink); }
.tsp-box .tsp-btn--amber:hover { background: #ffd47a; color: var(--tsp-ink); }
.tsp-box .tsp-form .tsp-btn { background: var(--tsp-amber); border-color: var(--tsp-amber); color: var(--tsp-ink); }
.tsp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); }
.tsp-form[hidden] { display: none; }
.tsp-form__help, .tsp-form .tsp-btn, .tsp-msg { grid-column: 1 / -1; }
.tsp-form__help { color: rgba(255,255,255,.8); font-size: 13px; }
.tsp-form label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.85); }
/* Champs blancs, texte foncé, quel que soit le thème du site (Woodmart clair/sombre, mode sombre du système…). */
.tsp-box { --wd-form-color: #0D1F1A; --wd-form-bg: #fff; --wd-form-brd-color: transparent; --wd-form-brd-color-focus: transparent; --wd-form-placeholder-color: rgba(13,31,26,.45); }
.tsp-box .tsp-form input[type="text"], .tsp-box .tsp-form input[type="text"]:hover, .tsp-box .tsp-form input[type="text"]:focus {
	width: 100% !important; height: auto !important; min-height: 44px !important; margin: 0 !important; padding: 8px 12px !important;
	border: 0 !important; border-radius: 12px !important; box-shadow: none !important;
	background: #fff !important; color: #0D1F1A !important; -webkit-text-fill-color: #0D1F1A !important; caret-color: #0D1F1A; color-scheme: light;
	font: 700 16px/1.2 ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: .06em !important; text-transform: none !important; opacity: 1 !important;
}
.tsp-box .tsp-form input[type="text"]::placeholder { color: rgba(13,31,26,.45) !important; -webkit-text-fill-color: rgba(13,31,26,.45) !important; opacity: 1 !important; }
.tsp-box .tsp-form input[type="text"]:-webkit-autofill { -webkit-box-shadow: 0 0 0 60px #fff inset !important; -webkit-text-fill-color: #0D1F1A !important; }
.tsp-box .tsp-form input[type="text"]:focus { outline: 3px solid var(--tsp-amber) !important; outline-offset: 1px; }
.tsp-box .tsp-form label > span { color: rgba(255,255,255,.85); text-transform: none; letter-spacing: 0; }
/* Boutons : même casse sur tous les thèmes (certains passent les boutons en majuscules). */
.tsp-box .tsp-btn, .tsp-box .button.tsp-btn { text-transform: none !important; letter-spacing: 0 !important; }
.tsp-msg { min-height: 1.2em; font-size: 13.5px; font-weight: 700; }
.tsp-msg.is-error { color: #FFB4A8; }
.tsp-msg.is-ok { color: var(--tsp-amber); }
.tsp-box.is-on { display: flex; gap: 12px; align-items: flex-start; background: var(--tsp-mint); color: var(--tsp-ink); box-shadow: none; border: 1px solid #BFE3D2; }
.tsp-box.is-on .tsp-box__logo { margin-top: 2px; }
.tsp-box__body { display: flex; flex-direction: column; gap: 2px; }
.tsp-box.is-on strong { color: var(--tsp-pri); }
.tsp-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tsp-price { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: .92em; font-weight: 800; color: #0F7363; }
.tsp-price__tag { padding: 1px 7px; border-radius: 6px; background: #FFC857; color: #0D1F1A; font-size: 10.5px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
@media (max-width: 480px) { .tsp-form { grid-template-columns: 1fr; } .tsp-box__price strong, .tsp-box__price strong .amount { font-size: 26px; } }
/* Bannière sous le code promo (panier / validation). */
.tsp-box--cart { margin: 14px 0; padding: 14px 16px; }
.tsp-box--cart .tsp-box__price strong, .tsp-box--cart .tsp-box__price strong .amount { font-size: 24px; }
.tsp-box__price--cart span { color: rgba(255,255,255,.85); font-weight: 700; font-size: 14px; }
.tsp-box--cart.is-placed { margin: 12px 16px; }
.tsp-box--cart.is-placed .tsp-form { grid-template-columns: 1fr; }
.woocommerce-cart-form + .tsp-box--cart { clear: both; }
/* Les thèmes stylent souvent tous les <button> : on neutralise pour les liens-boutons de l'encart. */
.tsp-box .tsp-link, .tsp-box .tsp-link:hover, .tsp-box .tsp-link:focus { display: inline; min-height: 0; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0; background: none !important; box-shadow: none !important; color: inherit !important; font: inherit; font-weight: 700; text-transform: none; letter-spacing: normal; text-decoration: underline; }
.tsp-box--cart { margin-bottom: 24px; }

.tsp-box__pts { color: var(--tsp-amber) !important; font-weight: 800; font-size: 13.5px; }
.tsp-pts { color: #7A5200; background: #FFF4D6; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; }

/* Bandeau d'invitation [talabastore_invitation] (1.3.0) */
.tsp-invite { padding: 20px; }
.tsp-invite__title { display: block; font-size: 22px; line-height: 1.25; font-weight: 900; color: #fff; }
.tsp-invite__code { color: rgba(255,255,255,.85); font-size: 13.5px; }
.tsp-invite__code b { margin-inline-start: 4px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.14); color: var(--tsp-amber); font: 800 14px/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; }
/* Couleurs des boutons verrouillées : certains thèmes (WooCommerce, Woodmart…) imposent leur fond aux <button class="button">. */
.tsp-box .tsp-btn, .tsp-box .button.tsp-btn { background: transparent !important; border: 1.5px solid rgba(255,255,255,.55) !important; color: #fff !important; box-shadow: none !important; }
.tsp-box .tsp-btn:hover, .tsp-box .button.tsp-btn:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }
.tsp-box .tsp-btn--amber, .tsp-box .tsp-form .tsp-btn, .tsp-box .tsp-form .button.tsp-btn { background: var(--tsp-amber) !important; border-color: var(--tsp-amber) !important; color: var(--tsp-ink) !important; }
.tsp-box .tsp-btn--amber:hover, .tsp-box .tsp-form .tsp-btn:hover, .tsp-box .tsp-form .button.tsp-btn:hover { background: #ffd47a !important; border-color: #ffd47a !important; color: var(--tsp-ink) !important; }
/* Étudiant reconnu : récapitulatif à la place de la bannière d'offre (1.4.0). */
.tsp-box.is-student { box-shadow: 0 0 0 1.5px rgba(92,189,128,.6), 0 16px 36px -22px rgba(13,124,102,.8); }
.tsp-box.is-loading { opacity: .55; transition: opacity .2s; }
.tsp-stu { display: flex; flex-direction: column; gap: 10px; }
.tsp-stu__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tsp-stu__ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #5CBD80; color: #0D1F1A; font-size: 11px; font-weight: 900; letter-spacing: 0; }
.tsp-box .tsp-stu__forget { color: rgba(255,255,255,.75) !important; font-size: 12.5px; font-weight: 700; background: none !important; border: 0 !important; padding: 0 !important; min-height: 0; text-transform: none !important; }
.tsp-box .tsp-stu__forget:hover { color: #fff !important; }
.tsp-box .tsp-stu__hello { font-size: 16px; line-height: 1.4; color: #fff; }
.tsp-box .tsp-stu__hello b { color: var(--tsp-amber); }
.tsp-box .tsp-stu__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
.tsp-box .tsp-stu__facts > div { padding: 9px 11px; border-radius: 12px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.tsp-box .tsp-stu__facts dt { margin: 0; padding: 0; font-size: 11.5px; font-weight: 700; line-height: 1.3; color: rgba(255,255,255,.7); text-transform: none; letter-spacing: 0; }
.tsp-box .tsp-stu__facts dd { margin: 2px 0 0; padding: 0; font-size: 14.5px; font-weight: 800; line-height: 1.3; color: #fff; overflow-wrap: anywhere; }
.tsp-box .tsp-stu__facts dd small { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--tsp-amber); }
.tsp-box .tsp-stu__note { font-size: 13px; color: rgba(255,255,255,.8); }
.tsp-box .tsp-stu__note::before { content: "✓ "; color: #5CBD80; font-weight: 900; }
@media (max-width: 380px) { .tsp-box .tsp-stu__facts { grid-template-columns: 1fr; } }
