/* ========= CASHBACK UI ========= */

.nina-cashback{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  margin:.45rem 0 .15rem;
  padding:0;
  background:none;
  border:0;
  box-shadow:none;
  font-size:.84rem;
  line-height:1.35;
  color:#111827;
  font-weight:400;
  text-align:center;
}

.nina-cashback::before{
  content:"";
  width:20px;
  height:20px;
  flex:0 0 20px;
  background:url("https://ninamakeupshop.com/wp-content/uploads/2026/03/money-refund-dollar-svgrepo-com.svg") center/20px 20px no-repeat;
  opacity:.95;
}

.nina-cashback .cb-label{
  color:#6b7280;
  font-weight:500;
}

.nina-cashback .cb-amount{
  color:#111827;
  font-weight:700;
  white-space:nowrap;
}

/* archive cards: keep simple single line only */
.woocommerce ul.products li.product .nina-cashback,
.woocommerce-page ul.products li.product .nina-cashback{
  justify-content:center;
  text-align:center;
  font-size:.84rem;
  margin:.35rem 0 .15rem;
}

/* single product */
.single-product .nina-cashback{
  justify-content:flex-start;
  text-align:left;
  font-size:.95rem;
  margin:18px 0 0;
  gap:.5rem;
}

.single-product form.cart + .nina-cashback{
  margin-top:18px;
}

.single-product .nina-cashback .cb-main{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  flex-wrap:wrap;
}

.single-product .nina-cashback .cb-label,
.single-product .nina-cashback .cb-amount{
  font-size:14px;
  line-height:1.4;
}

.nina-cashback-learnmore{
  appearance:none;
  border:0;
  background:none;
  padding:0;
  margin:0 0 0 .2rem;
  font-size:13px;
  line-height:1.3;
  font-weight:600;
  color:#8b0020;
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
}

.nina-cashback-learnmore:hover{
  opacity:.85;
}

/* drawer */
body.nina-cashback-drawer-open{
  overflow:hidden;
}

.nina-cashback-drawer-overlay{
  position:fixed;
  inset:0;
  background:rgba(0, 0, 0, 0.32);
  z-index:9998;
}

.nina-cashback-drawer{
  position:fixed;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  z-index:9999;
  pointer-events:none;
}

.nina-cashback-drawer__sheet{
  width:min(680px, 100%);
  max-height:88vh;
  background:#fff;
  border-radius:22px 22px 0 0;
  transform:translateY(100%);
  transition:transform .28s ease;
  box-shadow:0 -18px 50px rgba(0, 0, 0, 0.14);
  overflow:hidden;
  pointer-events:auto;
}

.nina-cashback-drawer.is-open .nina-cashback-drawer__sheet{
  transform:translateY(0);
}

.nina-cashback-drawer__handle{
  width:52px;
  height:5px;
  border-radius:999px;
  background:rgba(17, 24, 39, 0.16);
  margin:10px auto 0;
}

.nina-cashback-drawer__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px 10px;
}

.nina-cashback-drawer__eyebrow{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#6b7280;
  margin-bottom:4px;
}

.nina-cashback-drawer__title{
  margin:0;
  font-size:20px;
  line-height:1.25;
  font-weight:700;
  color:#111827;
}

.nina-cashback-drawer__close{
  appearance:none;
  border:0;
  background:rgba(17, 24, 39, 0.06);
  width:38px;
  height:38px;
  border-radius:999px;
  cursor:pointer;
  font-size:24px;
  line-height:1;
  color:#111827;
  flex:0 0 auto;
}

.nina-cashback-drawer__content{
  padding:0 18px 22px;
  overflow:auto;
  max-height:calc(88vh - 72px);
}

.nina-cashback-drawer__lead{
  margin:0 0 14px;
  font-size:14px;
  line-height:1.7;
  color:#374151;
}

.nina-cashback-drawer__link{
  color:#8b0020;
  font-weight:700;
  text-decoration:none;
}

.nina-cashback-drawer__link:hover{
  text-decoration:underline;
}

.nina-cashback-drawer__card{
  border:1px solid rgba(17, 24, 39, 0.08);
  border-radius:16px;
  background:#fafafa;
  padding:14px 14px 14px 16px;
}

.nina-cashback-drawer__list{
  margin:0;
  padding-left:18px;
  display:grid;
  gap:10px;
  color:#111827;
  font-size:13px;
  line-height:1.6;
}

.nina-cashback-drawer__note{
  margin-top:14px;
  font-size:12px;
  line-height:1.6;
  color:#6b7280;
}

/* mobile */
@media (max-width: 768px){
  .woocommerce ul.products li.product .nina-cashback,
  .woocommerce-page ul.products li.product .nina-cashback{
    font-size:.8rem;
  }

  .single-product .nina-cashback{
    font-size:.9rem;
    margin-top:16px;
  }

  .single-product .nina-cashback::before{
    width:18px;
    height:18px;
    flex-basis:18px;
    background-size:18px 18px;
  }

  .single-product .nina-cashback .cb-label,
  .single-product .nina-cashback .cb-amount{
    font-size:13px;
  }

  .nina-cashback-learnmore{
    font-size:12px;
  }

  .nina-cashback-drawer__header{
    padding:14px 16px 10px;
  }

  .nina-cashback-drawer__title{
    font-size:18px;
  }

  .nina-cashback-drawer__content{
    padding:0 16px 18px;
  }

  .nina-cashback-drawer__lead{
    font-size:13px;
  }

  .nina-cashback-drawer__list{
    font-size:12px;
    gap:8px;
  }

  .nina-cashback-drawer__note{
    font-size:11px;
  }
}
/* Fix hidden cashback drawer ghost strip on mobile/tablet */
.nina-cashback-drawer {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.nina-cashback-drawer.is-open {
	opacity: 1;
	visibility: visible;
}

.nina-cashback-drawer__sheet {
	transform: translateY(calc(100% + 24px));
	will-change: transform;
}

.nina-cashback-drawer.is-open .nina-cashback-drawer__sheet {
	transform: translateY(0);
}
/* ========= CHECKOUT CASHBACK ========= */

.woocommerce-checkout .nina-cashback--checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: nowrap;
	text-align: left;
	font-size: 0.95rem;
	margin: 18px 0 18px;
	padding: 14px 18px;
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 16px;
	background: #fafafa;
}

/* if cashback box is first thing under header, give it breathing room */
.woocommerce-checkout .entry-content > .nina-cashback--checkout,
.woocommerce-checkout .woocommerce-notices-wrapper + .nina-cashback--checkout,
.woocommerce-checkout .site-main .nina-cashback--checkout:first-child {
	margin-top: 22px;
}

.woocommerce-checkout .nina-cashback--checkout::before {
	flex: 0 0 auto;
	margin-right: 2px;
}

.woocommerce-checkout .nina-cashback--checkout .cb-main {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex: 0 1 auto;
	flex-wrap: nowrap;
	white-space: nowrap;
	min-width: 0;
}

.woocommerce-checkout .nina-cashback--checkout .cb-label,
.woocommerce-checkout .nina-cashback--checkout .cb-amount {
	font-size: 14px;
	line-height: 1.45;
}

.woocommerce-checkout .nina-cashback--checkout .cb-amount {
	font-weight: 700;
}

.woocommerce-checkout .nina-cashback--checkout .nina-cashback-learnmore {
	flex: 0 0 auto;
	margin-left: 4px;
	white-space: nowrap;
	font-size: 13px;
	line-height: 1.3;
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
	.woocommerce-checkout .nina-cashback--checkout {
		margin-top: 20px;
		margin-bottom: 16px;
		padding: 13px 16px;
		gap: 10px;
	}

	.woocommerce-checkout .nina-cashback--checkout .cb-main {
		gap: 4px;
	}

	.woocommerce-checkout .nina-cashback--checkout .cb-label,
	.woocommerce-checkout .nina-cashback--checkout .cb-amount {
		font-size: 13px;
	}

	.woocommerce-checkout .nina-cashback--checkout .nina-cashback-learnmore {
		font-size: 12px;
		margin-left: 3px;
	}
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
	.woocommerce-checkout .nina-cashback--checkout {
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 8px;
		margin-top: 18px;
		margin-bottom: 14px;
		padding: 12px 14px;
	}

	.woocommerce-checkout .nina-cashback--checkout::before {
		width: 18px;
		height: 18px;
		flex: 0 0 18px;
		background-size: 18px 18px;
		margin-right: 0;
	}

	.woocommerce-checkout .nina-cashback--checkout .cb-main {
		flex: 1 1 auto;
		min-width: 0;
		white-space: normal;
		align-items: center;
		gap: 3px;
	}

	.woocommerce-checkout .nina-cashback--checkout .cb-label,
	.woocommerce-checkout .nina-cashback--checkout .cb-amount {
		font-size: 13px;
		line-height: 1.5;
	}

	.woocommerce-checkout .nina-cashback--checkout .nina-cashback-learnmore {
		margin-left: 22px;
		font-size: 12px;
		line-height: 1.4;
	}
}

/* ===== Small Mobile ===== */
@media (max-width: 480px) {
	.woocommerce-checkout .nina-cashback--checkout {
		padding: 12px 13px;
		border-radius: 14px;
		gap: 7px;
	}

	.woocommerce-checkout .nina-cashback--checkout .cb-main {
		white-space: normal;
	}

	.woocommerce-checkout .nina-cashback--checkout .cb-label,
	.woocommerce-checkout .nina-cashback--checkout .cb-amount {
		font-size: 12.5px;
	}

	.woocommerce-checkout .nina-cashback--checkout .nina-cashback-learnmore {
		margin-left: 22px;
		font-size: 11.5px;
	}
}
/* ===== CHECKOUT DRAWER VISIBILITY FIX ===== */
.woocommerce-checkout .nina-cashback-drawer-overlay[hidden],
.woocommerce-checkout .nina-cashback-drawer[hidden] {
	display: none !important;
}

.woocommerce-checkout .nina-cashback-drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(0, 0, 0, 0.32);
}

.woocommerce-checkout .nina-cashback-drawer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
}

.woocommerce-checkout .nina-cashback-drawer.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.woocommerce-checkout .nina-cashback-drawer__sheet {
	width: min(680px, 100%);
	max-height: 88vh;
	transform: translateY(calc(100% + 24px));
	transition: transform .28s ease;
	will-change: transform;
}

.woocommerce-checkout .nina-cashback-drawer.is-open .nina-cashback-drawer__sheet {
	transform: translateY(0);
}

/* mobile + tablet */
@media (max-width: 768px) {
	.woocommerce-checkout .nina-cashback-drawer {
		align-items: flex-end;
	}

	.woocommerce-checkout .nina-cashback-drawer__sheet {
		width: 100%;
		max-width: 100%;
		max-height: 90vh;
		border-radius: 20px 20px 0 0;
	}
}