/* TattooClub — « C’est un cadeau ? » (extends cart.css tokens) */
#tc-gift { margin-top: 24px !important; border: 1.5px solid var(--tcc-line, #E8E4DC); border-radius: 10px; background: #fff; padding: 20px 22px !important; gap: 18px !important; transition: border-color .2s ease; position: relative; }
#tc-gift.is-on { border-color: var(--tcc-lime, #B7E41C); }
#tc-gift.is-busy { cursor: progress; }
#tc-gift .tc-gift__head { display: flex; flex-direction: row !important; align-items: center; gap: 14px !important; }
#tc-gift .tc-gift__icon-w { flex: 0 0 auto !important; width: auto !important; }
.tc-gift__icon { display: inline-flex; width: 44px; height: 44px; border-radius: 10px; background: var(--tcc-ivory, #F9F5EF); align-items: center; justify-content: center; color: var(--tcc-ink, #111); }
#tc-gift.is-on .tc-gift__icon { background: var(--tcc-lime, #B7E41C); }
#tc-gift .tc-gift__intro { flex: 1 1 0% !important; min-width: 0; gap: 2px !important; width: auto !important; }
#tc-gift .tc-gift__title .elementor-heading-title { font-family: var(--tcc-head) !important; font-size: 19px !important; font-weight: 400 !important; text-transform: none !important; color: var(--tcc-ink) !important; letter-spacing: 0 !important; }
#tc-gift .tc-gift__sub p { font-size: 13px; color: var(--tcc-muted, #68645E); line-height: 1.4; }
#tc-gift .tc-gift__sub .m { display: none; }
#tc-gift .tc-gift__switch-w { flex: 0 0 auto !important; width: auto !important; }
.tc-gift__switch-row { display: flex; align-items: center; gap: 6px; }

/* Switch */
.tc-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--tcc-ink, #111); user-select: none; min-height: 44px; }
.tc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tc-switch__track { position: relative; width: 50px; height: 28px; border-radius: 999px; background: #D8D3CA; transition: background-color .2s ease; flex: 0 0 auto; }
.tc-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.tc-switch input:checked + .tc-switch__track { background: var(--tcc-lime, #B7E41C); }
.tc-switch input:checked + .tc-switch__track::after { transform: translateX(22px); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23111' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.tc-switch input:focus-visible + .tc-switch__track { outline: 2px solid var(--tcc-ink, #111); outline-offset: 2px; }
.tc-gift__open { display: none; appearance: none; border: 0; background: transparent; width: 36px; height: 44px; align-items: center; justify-content: center; color: var(--tcc-ink, #111); cursor: pointer; padding: 0; min-height: 0 !important; box-shadow: none !important; }

/* Body (desktop/tablet inline) */
#tc-gift .tc-gift__body { display: none !important; flex-direction: row !important; gap: 28px !important; padding-top: 18px !important; border-top: 1px solid var(--tcc-line, #E8E4DC); }
#tc-gift.is-on .tc-gift__body { display: flex !important; }
#tc-gift .tc-gift__col { gap: 12px !important; }
#tc-gift .tc-gift__col--pack { flex: 1.35 1 0% !important; min-width: 0; width: auto !important; }
#tc-gift .tc-gift__col--msg { flex: 1 1 0% !important; min-width: 0; width: auto !important; }
#tc-gift .tc-gift__h .elementor-heading-title { font-family: var(--tcc-font) !important; font-size: 14px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--tcc-ink) !important; }

.tc-gift-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tc-gift-opt {
	appearance: none; position: relative; display: flex; flex-direction: column; align-items: stretch; text-align: left; gap: 8px;
	padding: 8px 8px 10px !important; border: 1.5px solid var(--tcc-line, #E8E4DC) !important; border-radius: 8px !important; background: #fff !important; color: var(--tcc-ink, #111) !important;
	cursor: pointer; font-family: var(--tcc-font); min-height: 0 !important; box-shadow: none !important; transition: border-color .15s ease, background-color .15s ease; width: 100%;
}
.tc-gift-opt:hover { border-color: #BDB8AF !important; }
.tc-gift-opt.is-selected { border-color: var(--tcc-lime, #B7E41C) !important; background: #F7FDE6 !important; box-shadow: 0 0 0 1px var(--tcc-lime, #B7E41C) inset !important; }
.tc-gift-opt:focus-visible { outline: 2px solid var(--tcc-ink, #111); outline-offset: 2px; }
.tc-gift-opt[disabled] { cursor: progress; }
.tc-gift-opt.is-loading { opacity: .7; }
.tc-gift-opt.is-loading .tc-gift-opt__radio { border-color: var(--tcc-ink); border-right-color: transparent; animation: tcg-spin .7s linear infinite; }
@keyframes tcg-spin { to { transform: rotate(360deg); } }
.tc-gift-opt__media { display: block; border-radius: 6px; overflow: hidden; background: var(--tcc-ivory, #F9F5EF); aspect-ratio: 4 / 3; }
.tc-gift-opt__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-gift-opt__body { display: flex; flex-direction: column; gap: 2px; padding-right: 26px; min-width: 0; }
.tc-gift-opt__name { font-size: 13px; font-weight: 700; line-height: 1.25; }
.tc-gift-opt__price { font-size: 12.5px; color: var(--tcc-muted, #68645E); }
.tc-gift-opt.is-selected .tc-gift-opt__price { color: var(--tcc-lime-ink, #4F7A00); font-weight: 600; }
.tc-gift-opt__radio { position: absolute; right: 10px; bottom: 12px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #9A958D; background: #fff; }
.tc-gift-opt.is-selected .tc-gift-opt__radio { border-color: var(--tcc-ink, #111); background: var(--tcc-lime, #B7E41C); box-shadow: inset 0 0 0 3px #fff; }

/* Message + checkbox */
.tc-gift-msg__label { display: block; font-size: 14px; font-weight: 700; color: var(--tcc-ink, #111); margin: 0 0 8px; }
.tc-gift-msg__label span { font-weight: 400; color: var(--tcc-muted, #68645E); }
.tc-gift-msg__field { width: 100% !important; min-height: 116px; resize: vertical; border: 1px solid var(--tcc-line, #E8E4DC) !important; border-radius: 6px !important; padding: 10px 12px !important; font: 400 14px/1.45 var(--tcc-font) !important; color: var(--tcc-ink, #111) !important; background: #fff !important; box-shadow: none !important; }
.tc-gift-msg__field:focus { border-color: var(--tcc-ink, #111) !important; outline: none; }
.tc-gift-msg__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 12px; color: var(--tcc-muted, #68645E); }
.tc-gift-msg__count.is-over { color: var(--tcc-red, #C62828); font-weight: 700; }
.tc-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--tcc-ink, #111); min-height: 44px; position: relative; }
.tc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tc-check__box { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid #9A958D; background: #fff; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.tc-check input:checked + .tc-check__box { background: var(--tcc-ink, #111); border-color: var(--tcc-ink, #111); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; }
.tc-check input:focus-visible + .tc-check__box { outline: 2px solid var(--tcc-ink, #111); outline-offset: 2px; }

/* Confirmation (mobile) */
.tc-gift-done { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; appearance: none; border: 1.5px solid var(--tcc-lime, #B7E41C) !important; background: #F7FDE6 !important; color: var(--tcc-ink, #111) !important; border-radius: 8px !important; padding: 12px 14px !important; cursor: pointer; font-family: var(--tcc-font); min-height: 0 !important; box-shadow: none !important; }
.tc-gift-done[hidden] { display: none !important; }
.tc-gift-done__icon { display: inline-flex; color: var(--tcc-ink, #111); }
.tc-gift-done__txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.tc-gift-done__txt strong { font-size: 14px; }
.tc-gift-done__txt span { font-size: 12.5px; color: var(--tcc-muted, #68645E); }
.tc-gift-done__edit { display: inline-flex; color: var(--tcc-ink, #111); flex: 0 0 auto; }
#tc-gift .tc-gift__done-w { display: none !important; }

/* Mobile: compact block + sheets */
@media (max-width: 767px) {
	#tc-gift { padding: 14px 14px !important; gap: 12px !important; margin-top: 16px !important; }
	#tc-gift .tc-gift__sub .d { display: none; }
	#tc-gift .tc-gift__sub .m { display: inline; }
	#tc-gift .tc-gift__title .elementor-heading-title { font-size: 16px !important; }
	.tc-gift__icon { width: 40px; height: 40px; }
	.tc-switch__text { display: none; }
	.tc-gift__open { display: inline-flex; }
	#tc-gift .tc-gift__body { display: none !important; }
	#tc-gift.is-on .tc-gift__done-w { display: block !important; }
}
.tc-sheet { position: fixed; inset: 0; z-index: 2147481500; display: flex; align-items: flex-end; justify-content: center; }
.tc-sheet__backdrop { position: absolute; inset: 0; background: rgba(17,17,17,0); transition: background-color .25s ease; }
.tc-sheet.is-open .tc-sheet__backdrop { background: rgba(17,17,17,.5); }
.tc-sheet__panel { position: relative; width: 100%; max-width: 520px; max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column; background: #fff; border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.7,.2,1); outline: none; font-family: var(--tcc-font); color: var(--tcc-ink, #111); }
.tc-sheet.is-open .tc-sheet__panel { transform: translateY(0); }
.tc-sheet.is-busy .tc-sheet__panel { cursor: progress; }
.tc-sheet__grip { width: 40px; height: 4px; border-radius: 4px; background: #D8D3CA; margin: 8px auto 0; }
.tc-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px 8px; }
.tc-sheet__title { font-family: var(--tcc-head); font-size: 19px; margin: 0; font-weight: 400; color: var(--tcc-ink, #111); }
.tc-sheet__close { appearance: none; border: 0; background: transparent; width: 44px; height: 44px; margin-right: -10px; display: inline-flex; align-items: center; justify-content: center; color: var(--tcc-ink, #111); cursor: pointer; padding: 0; min-height: 0; box-shadow: none; }
.tc-sheet__body { padding: 6px 18px 12px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; }
.tc-sheet__foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--tcc-line, #E8E4DC); }
.tc-sheet__cta { appearance: none; width: 100%; min-height: 52px; border: 0; border-radius: 8px; background: var(--tcc-lime, #B7E41C); color: var(--tcc-ink, #111); font: 700 15px var(--tcc-font); cursor: pointer; box-shadow: none; }
.tc-sheet__cta[disabled] { opacity: .5; }
.tc-gift-options--list { grid-template-columns: 1fr; }
.tc-gift-opt--row { flex-direction: row; align-items: center; gap: 12px; padding: 10px !important; }
.tc-gift-opt--row .tc-gift-opt__media { width: 96px; flex: 0 0 96px; }
.tc-gift-opt--row .tc-gift-opt__name { font-size: 14.5px; }
.tc-gift-opt--row .tc-gift-opt__radio { top: 50%; bottom: auto; margin-top: -9px; right: 14px; }
.tc-gift-chosen { display: flex; align-items: center; gap: 12px; appearance: none; border: 1px solid var(--tcc-line, #E8E4DC); background: var(--tcc-ivory, #F9F5EF); border-radius: 8px; padding: 8px 10px; text-align: left; cursor: pointer; color: var(--tcc-ink, #111); font-family: var(--tcc-font); width: 100%; min-height: 0; box-shadow: none; }
.tc-gift-chosen__media { width: 64px; flex: 0 0 64px; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.tc-gift-chosen__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-gift-chosen .tc-gift-opt__body { flex: 1 1 auto; }
body.tc-sheet-locked { overflow: hidden; }
@media (min-width: 768px) { .tc-sheet { align-items: center; } .tc-sheet__panel { border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .tc-sheet__panel, .tc-sheet__backdrop, .tc-switch__track::after { transition: none; } }

/* Totals fee row + checkout review */
.tc-tot__row--fee .tc-tot__label p { color: var(--tcc-muted, #68645E); }
.tc-gift-review th, .tc-gift-review td { font-size: 13px; }
.tc-gift-review__edit { margin-left: 6px; font-weight: 600; text-decoration: underline; color: inherit; }

@media (max-width: 767px) {
	#tc-gift.is-on .tc-gift__body, #tc-gift .tc-gift__body { display: none !important; }
	#tc-gift .tc-gift__head { flex-wrap: nowrap !important; }
	#tc-gift .tc-gift__intro { min-width: 0; }
}

.tc-gift-order--in-summary { margin: 16px 0 0 !important; padding: 14px 16px !important; }
.tc-gift-order--in-summary .tc-gift-order__title { font-size: 15px !important; }
