/*
 * Rankovate client app — global button (v2.28.489)
 *
 * HOW TO USE (new markup):
 *   <a class="rk-btn rk-btn-primary">Create Order</a>          main action
 *   <button class="rk-btn rk-btn-secondary">Edit Profile</button> other actions
 *   <button class="rk-btn rk-btn-accent">Special Offers</button>  highlighted, not main
 *   <button class="rk-btn rk-btn-danger">Delete</button>          destructive
 *   <button class="rk-btn rk-btn-ghost">View all</button>         quiet, no fill
 *   Sizes:  rk-btn-sm (36px)  ·  default (42px)  ·  rk-btn-lg (48px)
 *   Extras: rk-btn-icon (square, icon only) · rk-btn-block (full width)
 *
 * Every existing call-to-action in the app is mapped onto these same styles below,
 * so older templates and JavaScript-built buttons look identical without markup changes.
 *
 * ":not(#rk-b):not(#rk-b)" gives these rules ID-level weight so they beat the
 * older page-specific button rules that use !important.
 */

:root {
	--rk-btn-radius: 10px;
	--rk-btn-h-sm: 40px;
	--rk-btn-h-md: 42px;
	--rk-btn-h-lg: 48px;
	--rk-btn-px-sm: 14px;
	--rk-btn-px-md: 18px;
	--rk-btn-px-lg: 24px;
	--rk-btn-font: var(--rk-font, "Rankovate Sans", Inter, "Segoe UI", system-ui, sans-serif);

	--rk-btn-primary-bg: #bff747;
	--rk-btn-primary-bg-hover: #d0ff6a;
	--rk-btn-primary-bg-active: #aee43a;
	--rk-btn-primary-fg: #0b0e07;

	--rk-btn-secondary-bg: #1d1e21;
	--rk-btn-secondary-bg-hover: #26282c;
	--rk-btn-secondary-border: rgba(255, 255, 255, 0.14);
	--rk-btn-secondary-border-hover: rgba(255, 255, 255, 0.26);
	--rk-btn-secondary-fg: #f4f5f1;

	--rk-btn-accent-bg: rgba(191, 247, 71, 0.08);
	--rk-btn-accent-bg-hover: rgba(191, 247, 71, 0.15);
	--rk-btn-accent-border: rgba(191, 247, 71, 0.45);
	--rk-btn-accent-fg: #bff747;

	--rk-btn-danger-bg: rgba(255, 112, 124, 0.08);
	--rk-btn-danger-bg-hover: rgba(255, 112, 124, 0.16);
	--rk-btn-danger-border: rgba(255, 112, 124, 0.36);
	--rk-btn-danger-fg: #ffb3ba;

	--rk-btn-ghost-fg: rgba(244, 245, 241, 0.86);
	--rk-btn-ghost-bg-hover: rgba(255, 255, 255, 0.06);

	--rk-btn-focus: rgba(191, 247, 71, 0.6);
}
body.rk-app-body.rk-theme-light {
	--rk-btn-primary-bg: #b3f638;
	--rk-btn-primary-bg-hover: #c4fb5c;
	--rk-btn-primary-bg-active: #a2e22c;
	--rk-btn-primary-fg: #101828;
	--rk-btn-secondary-bg: #ffffff;
	--rk-btn-secondary-bg-hover: #f3f5f7;
	--rk-btn-secondary-border: rgba(16, 24, 40, 0.14);
	--rk-btn-secondary-border-hover: rgba(16, 24, 40, 0.28);
	--rk-btn-secondary-fg: #101828;
	--rk-btn-accent-bg: rgba(179, 246, 56, 0.16);
	--rk-btn-accent-bg-hover: rgba(179, 246, 56, 0.28);
	--rk-btn-accent-border: rgba(91, 143, 0, 0.45);
	--rk-btn-accent-fg: #3d6600;
	--rk-btn-danger-bg: rgba(220, 38, 58, 0.06);
	--rk-btn-danger-bg-hover: rgba(220, 38, 58, 0.12);
	--rk-btn-danger-border: rgba(220, 38, 58, 0.32);
	--rk-btn-danger-fg: #b4232f;
	--rk-btn-ghost-fg: #344054;
	--rk-btn-ghost-bg-hover: rgba(16, 24, 40, 0.05);
	--rk-btn-focus: rgba(91, 143, 0, 0.55);
}

/* =====================================================================
 * 1. BASE — shape, font and behaviour shared by every button (42px)
 * ===================================================================== */
body.rk-app-body :is(
	.rk-btn,
	.rk-create-top,
	.rk-special-offers-top,
	.rk-page-refresh-v417,
	.rd-chart-apply,
	.rd-date form button[type="submit"],
	.rk-custom-package-cta-v238,
	.rk-package-addons-continue-v244,
	.rk-profile-edit-v260,
	.rk-outlet-cart-button,
	.rk-campaign-pagination button,
	.rk-upload-card-v79 u,
	.rk-help-standalone-actions a,
	.rk-help-support-actions a
):not(#rk-b):not(#rk-b):not([hidden]) {
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	height: var(--rk-btn-h-md) !important;
	min-height: var(--rk-btn-h-md) !important;
	max-height: none !important;
	padding: 0 var(--rk-btn-px-md) !important;
	border-width: 1px !important;
	border-style: solid !important;
	border-radius: var(--rk-btn-radius) !important;
	font-family: var(--rk-btn-font) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	font-style: normal !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	text-shadow: none !important;
	cursor: pointer !important;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .08s ease !important;
	-webkit-tap-highlight-color: transparent;
}
body.rk-app-body :is(
	.rk-btn, .rk-create-top, .rk-special-offers-top, .rk-page-refresh-v417, .rd-chart-apply,
	.rk-custom-package-cta-v238, .rk-package-addons-continue-v244, .rk-profile-edit-v260,
	.rk-outlet-cart-button, .rk-help-standalone-actions a, .rk-help-support-actions a
):not(#rk-b):not(#rk-b) :is(span, b, strong, em) {
	color: inherit !important;
	font: inherit !important;
	letter-spacing: inherit !important;
}
body.rk-app-body :is(
	.rk-btn, .rk-create-top, .rk-special-offers-top, .rk-page-refresh-v417, .rd-chart-apply,
	.rk-custom-package-cta-v238, .rk-package-addons-continue-v244, .rk-profile-edit-v260,
	.rk-outlet-cart-button, .rk-help-standalone-actions a, .rk-help-support-actions a
):not(#rk-b):not(#rk-b) svg {
	width: 16px !important;
	height: 16px !important;
	flex: 0 0 16px !important;
	color: currentColor !important;
	stroke: currentColor;
}
body.rk-app-body :is(
	.rk-btn, .rk-create-top, .rk-special-offers-top, .rk-page-refresh-v417, .rd-chart-apply,
	.rd-date form button[type="submit"], .rk-custom-package-cta-v238, .rk-package-addons-continue-v244,
	.rk-profile-edit-v260, .rk-outlet-cart-button, .rk-campaign-pagination button,
	.rk-help-standalone-actions a, .rk-help-support-actions a
):not(#rk-b):not(#rk-b):focus-visible {
	outline: 2px solid var(--rk-btn-focus) !important;
	outline-offset: 2px !important;
}
body.rk-app-body :is(
	.rk-btn, .rk-create-top, .rk-package-addons-continue-v244, .rk-outlet-cart-button, .rk-custom-package-cta-v238
):not(#rk-b):not(#rk-b):active {
	transform: translateY(1px) !important;
}
body.rk-app-body :is(
	.rk-btn, .rk-package-addons-continue-v244, .rk-outlet-cart-button, .rk-campaign-pagination button,
	.rk-custom-package-cta-v238, .rk-page-refresh-v417
):not(#rk-b):not(#rk-b):is([disabled], [aria-disabled="true"], .is-disabled) {
	opacity: .45 !important;
	cursor: not-allowed !important;
	transform: none !important;
}

/* =====================================================================
 * 2. SIZES
 * ===================================================================== */
/* Small 40px — repeated actions inside cards, tables and toolbars */
body.rk-app-body :is(
	.rk-btn-sm,
	.rk-campaign-actions-inner .rk-btn,
	.rk-outlet-cart-button,
	.rk-page-refresh-v417,
	.rk-campaign-pagination button,
	.rk-upload-card-v79 u,
	.rk-help-standalone-actions a
):not(#rk-b):not(#rk-b):not(#rk-b) {
	height: var(--rk-btn-h-sm) !important;
	min-height: var(--rk-btn-h-sm) !important;
	padding: 0 var(--rk-btn-px-sm) !important;
	font-size: 13px !important;
}
/* Large 48px — the one main action of a card, step or page */
body.rk-app-body :is(
	.rk-btn-lg,
	.rk-product-action-v480:not(.rk-outlet-cart-button),
	.rk-custom-package-cta-v238,
	.rk-package-addons-continue-v244,
	.rk-wallet-order-v306,
	.rk-wallet-order-v307,
	.rk-wallet-pay-v307,
	.rk-wallet-submit-v203,
	.rk-rank-pay-submit-v165,
	.rk-next-summary-v79,
	.rk-prev-step-v92,
	.rk-save-draft-v79,
	.rk-website-back-bottom-v465,
	.rk-side-panel .rk-btn
):not(#rk-b):not(#rk-b):not(#rk-b) {
	height: var(--rk-btn-h-lg) !important;
	min-height: var(--rk-btn-h-lg) !important;
	padding: 0 var(--rk-btn-px-lg) !important;
	font-size: 14px !important;
}
/* Icon-only, square */
body.rk-app-body :is(
	.rk-btn-icon,
	.rk-campaign-actions-inner .rk-btn-ghost.is-delete,
	.rk-campaign-pagination button
):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b) {
	width: var(--rk-btn-h-sm) !important;
	min-width: var(--rk-btn-h-sm) !important;
	padding: 0 !important;
}
body.rk-app-body .rk-btn-block:not(#rk-b):not(#rk-b) {
	width: 100% !important;
}

/* =====================================================================
 * 3. VARIANTS
 * ===================================================================== */
/* Primary — lime, the main action */
body.rk-app-body :is(
	.rk-btn-primary,
	.rk-create-top,
	.rk-package-addons-continue-v244,
	.rk-wallet-order-v306,
	.rd-date form button[type="submit"],
	.rk-outlet-cart-button.is-added,
	.rk-outlet-cart-button[aria-pressed="true"]
):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b) {
	background: var(--rk-btn-primary-bg) !important;
	border-color: var(--rk-btn-primary-bg) !important;
	color: var(--rk-btn-primary-fg) !important;
}
body.rk-app-body :is(
	.rk-btn-primary,
	.rk-create-top,
	.rk-package-addons-continue-v244,
	.rk-wallet-order-v306,
	.rd-date form button[type="submit"],
	.rk-outlet-cart-button.is-added,
	.rk-outlet-cart-button[aria-pressed="true"]
):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):hover {
	background: var(--rk-btn-primary-bg-hover) !important;
	border-color: var(--rk-btn-primary-bg-hover) !important;
	color: var(--rk-btn-primary-fg) !important;
}

/* Secondary — dark surface with a border, every other action */
body.rk-app-body :is(
	.rk-btn-secondary,
	.rk-btn-ghost:not(.rk-wallet-order-v306):not(.is-delete),
	.rk-page-refresh-v417,
	.rd-chart-apply,
	.rk-custom-package-cta-v238.is-secondary,
	.rk-profile-edit-v260,
	.rk-outlet-cart-button:not(.is-added):not([aria-pressed="true"]),
	.rk-campaign-pagination button,
	.rk-upload-card-v79 u,
	.rk-help-standalone-actions a,
	.rk-help-support-actions a
):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b) {
	background: var(--rk-btn-secondary-bg) !important;
	border-color: var(--rk-btn-secondary-border) !important;
	color: var(--rk-btn-secondary-fg) !important;
}
body.rk-app-body :is(
	.rk-btn-secondary,
	.rk-btn-ghost:not(.rk-wallet-order-v306):not(.is-delete),
	.rk-page-refresh-v417,
	.rd-chart-apply,
	.rk-custom-package-cta-v238.is-secondary,
	.rk-profile-edit-v260,
	.rk-outlet-cart-button:not(.is-added):not([aria-pressed="true"]),
	.rk-campaign-pagination button,
	.rk-upload-card-v79 u,
	.rk-help-standalone-actions a,
	.rk-help-support-actions a
):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):hover {
	background: var(--rk-btn-secondary-bg-hover) !important;
	border-color: var(--rk-btn-secondary-border-hover) !important;
	color: var(--rk-btn-secondary-fg) !important;
}
/* "Add to cart" turns lime once the item is in the cart (wins over secondary) */
body.rk-app-body .rk-outlet-cart-button:is(.is-added, [aria-pressed="true"]):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b),
body.rk-app-body .rk-outlet-cart-button:is(.is-added, [aria-pressed="true"]):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):hover {
	background: var(--rk-btn-primary-bg) !important;
	border-color: var(--rk-btn-primary-bg) !important;
	color: var(--rk-btn-primary-fg) !important;
}
/* The current page in pagination reads as selected */
body.rk-app-body .rk-campaign-pagination button:is(.is-active, [aria-current="page"]):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b) {
	background: var(--rk-btn-primary-bg) !important;
	border-color: var(--rk-btn-primary-bg) !important;
	color: var(--rk-btn-primary-fg) !important;
}

/* Accent — highlighted but not the main action (Special Offers) */
body.rk-app-body .rk-btn-accent:not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b) {
	background: var(--rk-btn-accent-bg) !important;
	border-color: var(--rk-btn-accent-border) !important;
	color: var(--rk-btn-accent-fg) !important;
}
body.rk-app-body .rk-btn-accent:not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):hover {
	background: var(--rk-btn-accent-bg-hover) !important;
	color: var(--rk-btn-accent-fg) !important;
}

/* Special Offers (top bar) — same size as every top-bar button, keeps its animated
 * "tracing" glow border: a bright segment travels around the edge of the button. */
@property --rk-special-top-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rkSpecialTopTrace407 { to { --rk-special-top-angle: 360deg; } }
body.rk-app-body .rk-special-offers-top:not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b),
body.rk-app-body .rk-special-offers-top:not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):hover,
body.rk-app-body .rk-special-offers-top.is-active:not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b) {
	--rk-special-top-angle: 0deg;
	border: 1px solid transparent !important;
	background:
		linear-gradient(#151517, #151517) padding-box,
		conic-gradient(from var(--rk-special-top-angle), rgba(133,201,25,.34) 0deg, rgba(133,201,25,.34) 208deg, #c8ff4e 239deg, #f2ffac 270deg, #b6fa37 301deg, rgba(133,201,25,.34) 332deg, rgba(133,201,25,.34) 360deg) border-box !important;
	box-shadow: 0 0 9px rgba(205,255,91,.30), 0 0 22px rgba(144,229,28,.16), inset 0 0 10px rgba(222,255,112,.035) !important;
	color: #bff747 !important;
	animation: rkSpecialTopTrace407 2.8s linear infinite !important;
	transition: color .15s ease, box-shadow .15s ease !important;
}
body.rk-app-body .rk-special-offers-top:not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):is(:hover, :focus-visible) {
	box-shadow: 0 0 12px rgba(205,255,91,.42), 0 0 28px rgba(144,229,28,.23), inset 0 0 12px rgba(222,255,112,.06) !important;
}
body.rk-app-body.rk-theme-light .rk-special-offers-top:not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b) {
	background:
		linear-gradient(#fff, #fff) padding-box,
		conic-gradient(from var(--rk-special-top-angle), rgba(94,143,0,.28) 0deg, rgba(94,143,0,.28) 208deg, #78b900 245deg, #bff747 270deg, #78b900 300deg, rgba(94,143,0,.28) 332deg, rgba(94,143,0,.28) 360deg) border-box !important;
	box-shadow: 0 0 10px rgba(94,143,0,.14), 0 0 22px rgba(94,143,0,.08) !important;
	color: #5e8f00 !important;
}
body.rk-app-body .rk-special-offers-top:not(#rk-b):not(#rk-b):not(#rk-b) .rk-special-gift-icon {
	width: 20px !important;
	height: 20px !important;
	flex: 0 0 20px !important;
}
@media (prefers-reduced-motion: reduce) {
	body.rk-app-body .rk-special-offers-top:not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b) { animation: none !important; }
}

/* Danger — destructive actions */
body.rk-app-body :is(
	.rk-btn-danger,
	.rk-btn-ghost.is-delete,
	.rk-campaign-actions-inner .rk-btn-ghost.is-delete
):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b) {
	background: var(--rk-btn-danger-bg) !important;
	border-color: var(--rk-btn-danger-border) !important;
	color: var(--rk-btn-danger-fg) !important;
}
body.rk-app-body :is(
	.rk-btn-danger,
	.rk-btn-ghost.is-delete,
	.rk-campaign-actions-inner .rk-btn-ghost.is-delete
):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):hover {
	background: var(--rk-btn-danger-bg-hover) !important;
	color: var(--rk-btn-danger-fg) !important;
}

/* Ghost — quiet text button, no fill or border (only when explicitly asked for) */
body.rk-app-body .rk-btn.rk-btn-quiet:not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b) {
	background: transparent !important;
	border-color: transparent !important;
	color: var(--rk-btn-ghost-fg) !important;
}
body.rk-app-body .rk-btn.rk-btn-quiet:not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):not(#rk-b):hover {
	background: var(--rk-btn-ghost-bg-hover) !important;
}

/* =====================================================================
 * 4. TOP BAR — every control the same 42px height and corner
 * ===================================================================== */
body.rk-app-body :is(.rk-topbar-bell, .rk-theme-switcher, .rk-sidebar-toggle):not(#rk-b):not(#rk-b) {
	box-sizing: border-box !important;
	width: var(--rk-btn-h-md) !important;
	min-width: var(--rk-btn-h-md) !important;
	height: var(--rk-btn-h-md) !important;
	min-height: var(--rk-btn-h-md) !important;
	padding: 0 !important;
	border-radius: var(--rk-btn-radius) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: var(--rk-btn-secondary-bg) !important;
	border: 1px solid var(--rk-btn-secondary-border) !important;
	color: var(--rk-btn-secondary-fg) !important;
	box-shadow: none !important;
}
body.rk-app-body .rk-sidebar-toggle:not(#rk-b):not(#rk-b) {
	width: 36px !important;
	min-width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
}
body.rk-app-body :is(.rk-topbar-bell, .rk-theme-switcher, .rk-sidebar-toggle):not(#rk-b):not(#rk-b):hover {
	background: var(--rk-btn-secondary-bg-hover) !important;
	border-color: var(--rk-btn-secondary-border-hover) !important;
}
body.rk-app-body :is(.rk-topbar-bell, .rk-theme-switcher):not(#rk-b):not(#rk-b) svg {
	width: 18px !important;
	height: 18px !important;
}
body.rk-app-body .rk-avatar-pill:not(#rk-b):not(#rk-b) {
	width: var(--rk-btn-h-md) !important;
	min-width: var(--rk-btn-h-md) !important;
	height: var(--rk-btn-h-md) !important;
	min-height: var(--rk-btn-h-md) !important;
	box-shadow: none !important;
}
body.rk-app-body .rk-search:not(#rk-b):not(#rk-b) {
	height: var(--rk-btn-h-md) !important;
	min-height: var(--rk-btn-h-md) !important;
	border-radius: var(--rk-btn-radius) !important;
}

/* =====================================================================
 * 5. SMALL LAYOUT FIXES THAT COME WITH THE NEW BUTTONS
 * ===================================================================== */
/* "Add to cart" sits at the right edge of every card, on both Websites and Add-ons */
body.rk-app-body .rk-outlet-card-foot:not(#rk-b) {
	width: 100% !important;
	display: flex !important;
	align-items: flex-end !important;
	justify-content: space-between !important;
	gap: 12px !important;
}
body.rk-app-body .rk-outlet-card-foot > .rk-outlet-cart-button:not(#rk-b):not(#rk-b) {
	margin-left: auto !important;
	flex: 0 0 auto !important;
}
/* Book A Call matches Build Your Package */
body.rk-app-body .rk-custom-package-ctas-v238:not(#rk-b) {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 10px !important;
}
body.rk-app-body .rk-custom-package-ctas-v238 > *:not(#rk-b):not(#rk-b) {
	width: 100% !important;
}
/* "Choose File" reads as a button, not underlined text */
body.rk-app-body .rk-upload-card-v79 u:not(#rk-b):not(#rk-b) {
	width: auto !important;
	margin-top: 4px !important;
}

/* v2.28.826 — Cart-specific tokens for the high-specificity shared button rules.
   Set values on the actual button so the existing var(--rk-btn-secondary-*)
   declarations compute to the same graphite palette as the Favorite button. */
body.rk-app-body:not(.rk-theme-light):not(.rk-theme-light-dashboard) .rk-outlets-page button.rk-outlet-cart-button.rk-cart-icon-only {
  --rk-btn-secondary-bg:#56565C;
  --rk-btn-secondary-bg-hover:#68686F;
  --rk-btn-secondary-border:#77777E;
  --rk-btn-secondary-border-hover:#8D8D95;
  --rk-btn-secondary-fg:#FFFFFF;
}

/* v2.28.834 — Marketplace cart: shared 40px small-button token with no horizontal padding. */
body.rk-app-body .rk-outlets-page button.rk-outlet-cart-button.rk-cart-icon-only {
  --rk-btn-px-sm: 0px;
}
