/* nb-core front-end — logical properties so it works in RTL and LTR. */

/* Floating WhatsApp button */
.nb-wa-float {
	position: fixed;
	inset-block-end: 18px;
	inset-inline-end: 18px; /* = left in RTL */
	z-index: 9990;
	inline-size: 56px;
	block-size: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: grid;
	place-items: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	transition: transform .15s ease;
}
.nb-wa-float:hover { transform: scale(1.06); color: #fff; }
/* Leave room for a sticky add-to-cart bar on mobile product pages */
@media (max-width: 767px) { .single-product .nb-wa-float { inset-block-end: 84px; } }

/* Size guide */
.nb-size-guide-btn {
	background: none; border: 0; padding: 0; cursor: pointer;
	text-decoration: underline; font: inherit; color: inherit;
}
.nb-size-guide {
	border: 0; border-radius: 16px; padding: 20px;
	inline-size: min(560px, calc(100vw - 32px)); max-block-size: 85vh; overflow: auto;
}
.nb-size-guide::backdrop { background: rgba(0, 0, 0, .45); }
.nb-size-guide-close { float: inline-end; background: none; border: 0; font-size: 20px; cursor: pointer; }
.nb-size-guide table { inline-size: 100%; border-collapse: collapse; font-size: 14px; }
.nb-size-guide th, .nb-size-guide td { border: 1px solid #e7e5e4; padding: 8px; text-align: center; }

/* Tracking form */
.nb-track-form input { inline-size: 100%; max-inline-size: 360px; padding: 10px; }
.nb-track-result { margin-block-start: 16px; padding: 16px; background: #f5f5f4; border-radius: 12px; }

/* Phone input stays LTR inside RTL forms */
#billing_phone { direction: ltr; text-align: end; }

/* ==========================================================================
   Divra Club loyalty — uses nb-theme tokens, with fallbacks for other themes
   ========================================================================== */
.nb-club { display: grid; gap: 16px; }
.nb-club-box, .nb-loy-checkout, .nb-loy-thanks, .nb-loy-gate {
	background: var(--c-surface, #f7f4ee); border: 1px solid var(--c-line, #dad3c6);
	border-radius: var(--radius, 18px); padding: 18px;
}
.nb-club-box h3 { font-size: var(--fs-lg, 1.125rem); margin: 0 0 10px; }
.nb-club-box > :last-child { margin-bottom: 0; }
.nb-club-muted { color: var(--c-muted, #6b665d); font-size: var(--fs-sm, .875rem); }
.nb-club-done { color: var(--c-ok, #3f6b3a); font-weight: 600; font-size: var(--fs-sm, .875rem); margin: 0; }

/* Member card */
.nb-club-card {
	position: relative; overflow: hidden; border-radius: var(--radius, 18px); padding: 22px 20px;
	background: var(--c-ink, #0b0b0b); color: var(--c-bg, #ede7dc);
}
.nb-club-card::after {
	content: ""; position: absolute; inset-inline-end: -40px; inset-block-start: -40px; inline-size: 140px; block-size: 140px;
	border: 1.5px solid currentColor; border-radius: 50%; opacity: .12;
}
.nb-club-card--club { background: var(--c-olive, #556b4f); color: #fff; }
.nb-club-card--inner { background: linear-gradient(135deg, #0b0b0b 0%, #2e2e2e 100%); color: #fff; box-shadow: inset 0 0 0 1.5px var(--c-signal, #ff5a1f); }
.nb-club-card p { margin: 0 0 6px; }
.nb-club-card a.button { background: var(--c-bg, #ede7dc); color: var(--c-ink, #0b0b0b); border-color: var(--c-bg, #ede7dc); text-decoration: none; }
.nb-club-card__eyebrow { font-size: var(--fs-xs, .75rem); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.nb-club-card__tier { font-family: var(--font-display, inherit); font-size: var(--fs-2xl, 2rem); margin: 2px 0 12px; color: inherit; }
.nb-club-card__points strong { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.nb-club-card__points span, .nb-club-card__pending, .nb-club-card__until { opacity: .8; font-size: var(--fs-sm, .875rem); }
.nb-club-card__next { margin-top: 6px !important; font-size: var(--fs-sm, .875rem); }
.nb-club-progress { block-size: 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin-top: 14px; overflow: hidden; }
.nb-club-progress span { display: block; block-size: 100%; inline-size: var(--p, 0%); background: var(--c-signal, #ff5a1f); border-radius: inherit; }

/* Referral */
.nb-club-ref__code { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.nb-club-ref__code span { color: var(--c-muted, #6b665d); font-size: var(--fs-sm, .875rem); }
.nb-club-ref__code strong { font-size: 1.4rem; letter-spacing: .14em; font-family: var(--font-display, monospace); }
.nb-club-ref__row { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-club-ref__row input { flex: 1 1 220px; min-inline-size: 0; min-block-size: 48px; padding: 10px 14px; border: 1px solid var(--c-line, #dad3c6); border-radius: var(--pill, 999px); background: #fff; }
.nb-club-wa { background: #25d366 !important; border-color: #25d366 !important; color: #0b0b0b !important; }

/* Ways to earn */
.nb-club-earn { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.nb-club-earn__item { background: #fff; border-radius: var(--radius-sm, 10px); padding: 14px; border: 1px solid var(--c-line, #dad3c6); }
.nb-club-earn__item p { margin: 0 0 8px; font-size: var(--fs-sm, .875rem); }
.nb-club-earn__title { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: var(--fs-md, 1rem) !important; }
.nb-club-earn__title span { color: var(--c-olive, #556b4f); white-space: nowrap; }
.nb-club-form { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.nb-club-form input[type=file] { max-inline-size: 100%; font-size: var(--fs-xs, .75rem); }
.nb-club-form--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-club-form input[type=text], .nb-club-form input[type=url], .nb-club-form select { min-block-size: 44px; padding: 8px 12px; border: 1px solid var(--c-line, #dad3c6); border-radius: var(--radius-sm, 10px); background: #fff; min-inline-size: 0; }
.nb-club-form .button { min-block-size: 44px; }
.nb-club-file { font-size: var(--fs-sm, .875rem); display: grid; gap: 4px; }

/* Tiers */
.nb-club-tiers { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 10px; }
.nb-club-tier { border-radius: var(--radius-sm, 10px); padding: 14px; background: #fff; border: 1px solid var(--c-line, #dad3c6); }
.nb-club-tier.is-current { border-color: var(--c-ink, #0b0b0b); box-shadow: inset 0 0 0 1px var(--c-ink, #0b0b0b); }
.nb-club-tier__name { font-family: var(--font-display, inherit); font-weight: 700; margin: 0 0 2px; display: flex; gap: 8px; align-items: center; }
.nb-club-tier__name span { font-family: var(--font, inherit); font-size: var(--fs-xs, .75rem); background: var(--c-ink, #0b0b0b); color: #fff; border-radius: 99px; padding: 2px 8px; }
.nb-club-tier__req { color: var(--c-muted, #6b665d); font-size: var(--fs-sm, .875rem); margin: 0 0 8px; }
.nb-club-tier ul, .nb-club-rules { margin: 0; padding-inline-start: 18px; font-size: var(--fs-sm, .875rem); }
.nb-club-tier li, .nb-club-rules li { margin-bottom: 4px; }

/* History */
.nb-club-history { inline-size: 100%; border-collapse: collapse; font-size: var(--fs-sm, .875rem); }
.nb-club-history th, .nb-club-history td { padding: 8px 6px; border-bottom: 1px solid var(--c-line, #dad3c6); text-align: start; vertical-align: top; }
.nb-club-history td:last-child, .nb-club-history th:last-child { text-align: end; white-space: nowrap; font-weight: 700; }
.nb-club-history small { display: block; color: var(--c-muted, #6b665d); font-weight: 400; }
.nb-club-history .is-plus { color: var(--c-ok, #3f6b3a); }
.nb-club-history .is-minus { color: var(--c-sale, #b3261e); }

/* My Account dashboard teaser */
.nb-club-teaser { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius, 18px); background: var(--c-ink, #0b0b0b); color: var(--c-bg, #ede7dc) !important; }

/* Checkout box */
.nb-loy-checkout { margin: 0 0 16px; padding: 14px 16px; transition: opacity .2s; }
.nb-loy-checkout.is-loading { opacity: .5; pointer-events: none; }
.nb-loy-checkout p { margin: 0 0 6px; font-size: var(--fs-sm, .875rem); }
.nb-loy-checkout__title { font-weight: 700; font-size: var(--fs-md, 1rem) !important; }
.nb-loy-redeem { margin-top: 10px; display: grid; gap: 6px; font-size: var(--fs-sm, .875rem); }
.nb-loy-redeem__row { display: flex; gap: 8px; }
.nb-loy-redeem__row select { flex: 1; min-inline-size: 0; min-block-size: 44px; padding: 8px 10px; border: 1px solid var(--c-line, #dad3c6); border-radius: var(--radius-sm, 10px); background: #fff; }
.nb-loy-redeem__row .button { min-block-size: 44px; padding-block: 8px; }
.nb-loy-redeem.is-applied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--c-ok, #3f6b3a); font-weight: 600; }
.nb-loy-remove { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--c-ink, #0b0b0b); font-weight: 400; }

/* Product page */
.nb-loy-hint { font-size: var(--fs-sm, .875rem); color: var(--c-ink-2, #2e2e2e); margin: 0 0 14px; }
.nb-loy-hint a { text-decoration: underline; }
.nb-loy-gate { margin: 0 0 16px; font-size: var(--fs-sm, .875rem); }
.nb-loy-gate.is-locked { background: var(--c-ink, #0b0b0b); color: var(--c-bg, #ede7dc); border-color: var(--c-ink, #0b0b0b); }
.nb-loy-gate.is-locked a { color: inherit; text-decoration: underline; }
.nb-loy-gate.is-open { border-color: var(--c-olive, #556b4f); }

/* Reviews with photos */
.comment-form-nb-photo input[type=file] { display: block; margin-top: 6px; max-inline-size: 100%; }
.nb-review-photo img { margin-top: 10px; border-radius: var(--radius-sm, 10px); max-inline-size: 220px; block-size: auto; }

/* Thank-you */
.nb-loy-thanks { margin: 0 0 20px; }
.nb-loy-thanks p:last-child { margin: 0; }
