/* KS Diamonds, Ribbon map. Scoped under .ksdm so the theme and this don't fight. */
.ksdm, .ksdm-modal, .ksdm-thanks, .ksdm-banner {
	--ksdm-paper: #FBDDE6; --ksdm-rose: #B5124F; --ksdm-ribbon: #F5B700; --ksdm-ink: #4A1030;
	--ksdm-card: #FFF8F5; --ksdm-line: #F1BBCB; --ksdm-mut: #80405C; --ksdm-todo: #F8C9D8;
	font-family: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--ksdm-ink);
	box-sizing: border-box;
}
.ksdm *, .ksdm-modal * { box-sizing: border-box; }
.ksdm h2, .ksdm h3, .ksdm p, .ksdm-modal h2, .ksdm-modal p { margin: 0; color: inherit; }
.ksdm-head { font-family: "Yeseva One", Georgia, serif; font-weight: 400; line-height: 1.15; letter-spacing: 0; text-transform: none; }
.ksdm-gem { width: 1em; height: 1em; display: inline-block; vertical-align: -.13em; flex: none; }

.ksdm { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }

/* Ecomus styles every button; these keep ours as designed. */
.ksdm button, .ksdm-modal button { overflow: visible; min-height: 0; width: auto; text-transform: none; letter-spacing: 0; line-height: 1.3; font-family: inherit; box-shadow: none; }

.ksdm-hero { background: var(--ksdm-rose); color: #fff; border-radius: 22px; padding: 16px; }
.ksdm-hello { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ksdm-hello .ksdm-head { font-size: 25px; color: #fff; }
.ksdm-chipbal { display: inline-flex; gap: 5px; align-items: center; background: var(--ksdm-card); color: var(--ksdm-ink) !important; border-radius: 99px; padding: 6px 12px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.ksdm-chipbal .ksdm-gem { color: var(--ksdm-rose); }
.ksdm-card { background: var(--ksdm-card); color: var(--ksdm-ink); border: 1px solid var(--ksdm-line); border-radius: 16px; padding: 14px; }
.ksdm-hero .ksdm-card { margin-top: 12px; }
.ksdm-codeline { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ksdm-codeline small { display: block; font-size: 13px; color: var(--ksdm-mut); }
.ksdm-codeline b { font-size: 22px; letter-spacing: .03em; font-weight: 800; }
.ksdm .ksdm-mini { background: transparent; color: var(--ksdm-ink); border: 1px solid var(--ksdm-line); border-radius: 9px; padding: 8px 11px; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; }
.ksdm a.ksdm-wa { display: block; margin-top: 10px; background: #128C4A; color: #fff !important; border-radius: 10px; padding: 11px; text-align: center; font-weight: 700; text-decoration: none !important; }
.ksdm .ksdm-ig { display: block; width: 100%; margin-top: 8px; background: transparent; color: var(--ksdm-ink); border: 1px solid var(--ksdm-line); border-radius: 10px; padding: 10px; font-weight: 600; cursor: pointer; }
.ksdm-next { margin-top: 12px !important; font-size: 14.5px; }
.ksdm-bar { height: 9px; background: var(--ksdm-line); border-radius: 9px; margin-top: 6px; overflow: hidden; }
.ksdm-bar i { display: block; width: 0; height: 100%; background: var(--ksdm-rose); border-radius: 9px; transition: width 1.4s cubic-bezier(.22,1,.36,1) .2s; }
.ksdm-join p + p { margin-top: 4px; font-size: 14px; color: var(--ksdm-mut); }
.ksdm .ksdm-btn, .ksdm-modal .ksdm-btn, .ksdm-banner .ksdm-btn { display: block; width: 100%; border: 0; border-radius: 12px; padding: 12px; background: var(--ksdm-rose); color: #fff !important; font-weight: 700; text-align: center; cursor: pointer; text-decoration: none !important; margin-top: 12px; font-size: 15px; }
.ksdm-btn:disabled { opacity: .65; cursor: default; }

/* The map: unrolled wrapping paper. */
.ksdm-mapwrap { background: var(--ksdm-paper); border-radius: 22px; overflow: hidden; }
.ksdm-mapintro { padding: 18px 18px 0; }
.ksdm-mapintro .ksdm-head { font-size: 24px; }
.ksdm-mapintro p { margin-top: 4px; font-size: 14px; color: var(--ksdm-mut); }
.ksdm-map {
	position: relative; margin: 10px; border: 2px dashed #E79CB5; border-radius: 14px; overflow: hidden;
	background-color: var(--ksdm-paper);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='%23F8CBD9'%3E%3Ccircle cx='10' cy='12' r='3.500'/%3E%3Ccircle cx='42' cy='44' r='3.500'/%3E%3Cpath d='M46 6l2.200 5.300L54 12l-4.300 3.800L51 21.500 46 18.500l-5 3 1.300-5.700L38 12l5.800-.7z'/%3E%3Cpath d='M14 38l2.200 5.300L22 44l-4.300 3.800L19 53.500 14 50.500l-5 3 1.300-5.700L6 44l5.800-.7z'/%3E%3C/g%3E%3C/svg%3E");
}
.ksdm-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ksdm-route path { fill: none; stroke-linecap: round; }
.ksdm-r-base { stroke: var(--ksdm-todo); stroke-width: 13; }
.ksdm-r-mid { stroke: #fff; stroke-width: 2; stroke-dasharray: 7 7; opacity: .8; }
.ksdm-r-done { stroke: var(--ksdm-ribbon); stroke-width: 13; transition: stroke-dashoffset 1.7s cubic-bezier(.45,0,.2,1) .25s; }

.ksdm .ksdm-node { position: absolute; width: 132px; margin: 0 0 0 -66px; padding: 0; border: 0; background: none !important; color: var(--ksdm-ink); cursor: pointer; text-align: center; z-index: 3; }
.ksdm-node.is-left { left: 27%; }
.ksdm-node.is-right { left: 73%; }
.ksdm-node.is-grand { left: 50%; }
.ksdm-node.is-grand .ksdm-lab { max-width: 180px; margin-left: auto; margin-right: auto; }
.ksdm .ksdm-node.is-grand { width: 190px; margin-left: -95px; }
.ksdm-art { display: block; position: relative; width: 80px; height: 80px; margin: 0 auto; transition: transform .2s; }
.ksdm-node:hover .ksdm-art { transform: translateY(-3px); }
.ksdm-node.is-grand .ksdm-art { width: 140px; height: 122px; }
.ksdm-bx, .ksdm-bow { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 6px 7px rgba(74,16,48,.28)); display: block; }
.ksdm-rib { fill: var(--ksdm-ribbon); }
.ksdm-knot { fill: var(--ksdm-rose); }
.ksdm-lab { display: block; position: relative; background: var(--ksdm-card); border: 1px solid var(--ksdm-line); border-radius: 10px; padding: 4px 7px; margin-top: 2px; line-height: 1.2; }
.ksdm-lab b { display: block; font-size: 13px; font-weight: 700; }
.ksdm-lab small { display: block; font-size: 12px; color: var(--ksdm-mut); }
.ksdm-node.is-locked .ksdm-bx, .ksdm-node.is-locked .ksdm-bow, .ksdm-node.is-expired .ksdm-bx { filter: saturate(.5) brightness(1.08); opacity: .88; }
.ksdm-node.is-ready .ksdm-art { animation: ksdm-bob 2.6s ease-in-out infinite; }
.ksdm-node.is-ready .ksdm-art:before { content: ""; position: absolute; inset: -12px; border-radius: 50%; background: radial-gradient(circle, var(--ksdm-ribbon) 0, transparent 68%); opacity: .6; z-index: -1; animation: ksdm-pulse 2.2s ease-in-out infinite; }
.ksdm-node.is-ready .ksdm-lab small { color: var(--ksdm-rose); font-weight: 700; }
.ksdm-node.is-claimed .ksdm-lid { transform: translate(-3px,-13px) rotate(-14deg); transform-origin: 50% 40%; }
.ksdm-node:focus-visible { outline: 3px solid var(--ksdm-rose); outline-offset: 2px; border-radius: 10px; }
@keyframes ksdm-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ksdm-pulse { 0%,100% { opacity: .3; transform: scale(.9); } 50% { opacity: .7; transform: scale(1.1); } }

.ksdm-you { position: absolute; z-index: 4; margin: -46px 0 0 -21px; width: 42px; text-align: center; opacity: 0; transition: opacity .4s 1.8s; pointer-events: none; }
.ksdm-you.is-on { opacity: 1; }
.ksdm-you span { display: block; background: var(--ksdm-rose); color: #fff; border-radius: 99px; font-size: 12px; font-weight: 700; padding: 2px 0; }
.ksdm-you i { display: block; width: 0; height: 0; margin: 0 auto; border: 6px solid transparent; border-top-color: var(--ksdm-rose); border-bottom: 0; }
.ksdm-hint { text-align: center; font-size: 13px; color: var(--ksdm-mut); padding: 0 12px 14px; }

/* Diamonds. */
.ksdm-wallet { display: grid; gap: 12px; align-content: start; scroll-margin-top: 90px; }
.ksdm-wallet__top { text-align: center; }
.ksdm-biggem { display: block; font-size: 68px; line-height: 1; color: var(--ksdm-rose); }
.ksdm-biggem .ksdm-gem { animation: ksdm-bob 3s ease-in-out infinite; }
.ksdm-num { font-family: "Yeseva One", Georgia, serif; font-size: 46px; line-height: 1.05; }
.ksdm-way { margin-top: 8px !important; font-size: 13.5px; font-weight: 600; }
.ksdm-exp { margin-top: 4px !important; font-size: 13px; color: var(--ksdm-mut); }
.ksdm-wallet .ksdm-card .ksdm-head { font-size: 18px; margin-bottom: 6px; }
.ksdm-ln { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--ksdm-line); font-size: 14px; }
.ksdm-ln:first-of-type { border-top: 0; }
.ksdm-ln small { display: block; color: var(--ksdm-mut); font-size: 12.5px; }
.ksdm-up { color: #17803D; white-space: nowrap; }
.ksdm-dn { color: #B5124F; white-space: nowrap; }
.ksdm-empty { font-size: 14px; color: var(--ksdm-mut); }

/* Popup. */
.ksdm-modal { position: fixed; inset: 0; z-index: 999999; background: rgba(32,8,22,.72); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .22s; }
.ksdm-modal.is-open { opacity: 1; }
.ksdm-mbox { position: relative; width: min(370px, 100%); overflow: hidden; background: var(--ksdm-card); color: var(--ksdm-ink); border: 1px solid var(--ksdm-line); border-radius: 22px; padding: 18px 18px 20px; text-align: center; transform: translateY(16px) scale(.95); transition: transform .32s cubic-bezier(.22,1,.36,1); }
.ksdm-modal.is-open .ksdm-mbox { transform: none; }
.ksdm-modal .ksdm-x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--ksdm-line); background: var(--ksdm-card); color: var(--ksdm-ink); cursor: pointer; font-size: 20px; line-height: 1; z-index: 5; }
.ksdm-stage { position: relative; height: 232px; margin-top: 4px; }
.ksdm-stage .ksdm-bx { position: absolute; left: 50%; bottom: 0; width: 160px; height: 160px; margin-left: -80px; z-index: 2; }
.ksdm-modal.is-open .ksdm-stage .ksdm-lid { animation: ksdm-lid .75s cubic-bezier(.3,1.2,.5,1) .15s both; transform-origin: 50% 40%; }
@keyframes ksdm-lid { 0% { transform: none; } 30% { transform: translateY(5px) rotate(3deg); } 100% { transform: translate(32px,-38px) rotate(30deg); opacity: .95; } }
.ksdm-prize { position: absolute; left: 50%; bottom: 96px; z-index: 1; font-size: 78px; line-height: 1; opacity: 0; width: 130px; }
.ksdm-prize img { width: 100%; height: auto; max-height: 130px; object-fit: cover; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 10px 20px rgba(74,16,48,.3); display: block; }
.ksdm-modal.is-open .ksdm-prize { animation: ksdm-pop .75s cubic-bezier(.34,1.56,.64,1) .4s both; }
@keyframes ksdm-pop { 0% { transform: translateX(-50%) translateY(56px) scale(.3) rotate(-10deg); opacity: 0; } 60% { transform: translateX(-50%) translateY(-22px) scale(1.12) rotate(4deg); opacity: 1; } 100% { transform: translateX(-50%) translateY(-12px) scale(1); opacity: 1; } }
.ksdm-spk { position: absolute; left: 50%; top: 48%; width: 11px; height: 11px; background: var(--ksdm-ribbon); clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); opacity: 0; z-index: 3; }
.ksdm-modal.is-open .ksdm-spk { animation: ksdm-spk .95s ease-out both; animation-delay: calc(.45s + var(--i) * .04s); }
@keyframes ksdm-spk { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(1.2); } }
.ksdm-bit { position: absolute; top: -14px; width: 7px; height: 15px; border-radius: 2px; z-index: 4; animation: ksdm-fall linear both; pointer-events: none; }
@keyframes ksdm-fall { to { transform: translateY(560px) rotate(620deg); opacity: .7; } }
.ksdm-mbox .ksdm-head { font-size: 24px; margin-top: 4px; }
.ksdm-need { font-size: 14px; color: var(--ksdm-mut); }
.ksdm-desc { font-size: 14px; margin-top: 6px !important; }
.ksdm-st { display: inline-block; margin-top: 9px; padding: 6px 15px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.ksdm-st--ready { background: var(--ksdm-rose); color: #fff; }
.ksdm-st--claimed { background: #17803D; color: #fff; }
.ksdm-st--locked { background: var(--ksdm-line); color: var(--ksdm-ink); }
.ksdm-claim-msg { font-size: 14px; margin-top: 8px !important; color: #B02A5B; }
.ksdm-claim-msg:empty { display: none; }

/* Cart and checkout. */
.ksdm-box { background: #FFF8F5; border: 1px solid #F1BBCB; border-radius: 14px; padding: 13px 14px; margin: 0 0 16px; color: #4A1030; font-family: inherit; font-size: 14.5px; }
.ksdm-box--empty { display: none; }
.ksdm-box .ksdm-gem { color: #B5124F; margin-right: 6px; }
.ksdm-box__use { display: flex !important; gap: 10px; align-items: flex-start; cursor: pointer; margin: 0; font-weight: 400; }
.ksdm-box__use input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: #B5124F; flex: none; }
.ksdm-box__use small { display: block; color: #80405C; font-size: 13px; }
.ksdm-box__earn { margin: 8px 0 0; font-weight: 600; }
.ksdm-box__use + .ksdm-box__earn { border-top: 1px dashed #F1BBCB; padding-top: 8px; }
.ksdm-box > .ksdm-box__earn:first-child { margin-top: 0; }
.ksdm-box--guest a { font-weight: 600; color: #B5124F; }
.ksdm-code { margin: 0 0 16px; }
.ksdm-code label { display: block; font-weight: 600; margin-bottom: 6px; }
.ksdm-code__row { display: flex; gap: 8px; }
.ksdm-code__row input { flex: 1; min-width: 0; }
.ksdm-code__msg { margin: 6px 0 0; font-size: 13.5px; color: #17803D; }
.ksdm-code__msg:empty { display: none; }
.ksdm-code__msg.is-error { color: #B02A5B; }

/* Product page. */
.ksdm-chip { display: inline-flex; gap: 7px; align-items: center; background: #FFF8F5; border: 1px dashed #B5124F; color: #4A1030; border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: 14px; margin: 6px 0 12px; }
.ksdm-chip .ksdm-gem { color: #B5124F; font-size: 16px; }
.ksdm-chip__in { display: none; }
body.logged-in .ksdm-chip__in { display: inline; }
body.logged-in .ksdm-chip__out { display: none; }

/* Thank-you and banner. */
.ksdm-thanks { background: var(--ksdm-card); border: 1px solid var(--ksdm-line); border-radius: 14px; padding: 13px 16px; margin: 0 0 20px; }
.ksdm-thanks p { margin: 0; }
.ksdm-thanks p + p { margin-top: 6px; }
.ksdm-thanks .ksdm-gem { color: var(--ksdm-rose); margin-right: 6px; }
.ksdm-thanks a { color: var(--ksdm-rose); font-weight: 600; }
.ksdm-banner { display: flex; align-items: center; gap: 12px; background: var(--ksdm-paper); border-radius: 20px; padding: 20px; max-width: 1100px; margin: 18px auto; }
.ksdm-banner__text { flex: 1; min-width: 0; }
.ksdm-banner h2 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 6px; color: var(--ksdm-ink); }
.ksdm-banner p { margin: 0; color: var(--ksdm-mut); max-width: 46ch; }
.ksdm-banner .ksdm-btn { display: inline-block; width: auto; padding: 12px 22px; }
.ksdm-banner__art { flex: 0 0 34%; max-width: 180px; }
.ksdm-guest { text-align: center; padding: 20px; }

/* Computers: map on one side, code and diamonds on the other. */
@media (min-width: 900px) {
	.ksdm-rewards { grid-template-columns: 330px minmax(0, 1fr); align-items: start; }
	.ksdm-rewards .ksdm-hero { grid-column: 1; grid-row: 1; }
	.ksdm-rewards .ksdm-wallet { grid-column: 1; grid-row: 2; }
	.ksdm-rewards .ksdm-mapwrap { grid-column: 2; grid-row: 1 / span 3; }
}
@media (prefers-reduced-motion: reduce) {
	.ksdm *, .ksdm-modal * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* The rewards page uses the full width: the account card's frame would squeeze the map on phones. */
body.woocommerce-ks-rewards .ks-account-content__inner { padding: 0; border: 0; background: transparent; box-shadow: none; }
body.woocommerce-account.woocommerce-ks-rewards .woocommerce-MyAccount-content { padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.ksdm .ksdm-node { display: block; }
.ksdm h2.ksdm-head, .ksdm h3.ksdm-head, .ksdm-modal h2.ksdm-head, .ksdm-banner h2.ksdm-head { font-family: "Yeseva One", Georgia, serif; font-weight: 400; }
.ksdm-codeline b { white-space: nowrap; display: block; }
.ksdm-chipbal:hover { opacity: .9; }
@media (max-height: 560px) {
	.ksdm-mbox { max-height: calc(100vh - 32px); overflow-y: auto; }
	.ksdm-bit { display: none; }
	.ksdm-stage { height: 170px; }
	.ksdm-stage .ksdm-bx { width: 110px; height: 110px; margin-left: -55px; }
	.ksdm-prize { bottom: 62px; font-size: 56px; width: 90px; }
}
/* Ecomus restyles checkbox labels on the cart page. */
.ksdm-box .ksdm-box__use { padding: 0 !important; }
.ksdm-box .ksdm-box__use input { position: static !important; margin: 2px 0 0 !important; }
.ksdm-box .ksdm-box__use span { padding: 0 !important; margin: 0 !important; }
.ksdm-box .ksdm-box__use span::before, .ksdm-box .ksdm-box__use span::after { content: none !important; }
/* Stops scale with the map, so labels stay inside on small phones. */
.ksdm .ksdm-node { width: 46%; max-width: 132px; margin: 0; transform: translateX(-50%); }
.ksdm .ksdm-node.is-grand { width: 84%; max-width: 190px; margin: 0; }
.ksdm-node.is-left { left: 26%; }
.ksdm-node.is-right { left: 74%; }

/* Offers page */
.ksdm.ksdm-offers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 760px; margin: 0 auto; }
.ksdm-of-hero { background: var(--ksdm-rose); color: #fff; border-radius: 22px; padding: 22px 18px 24px; text-align: center; }
.ksdm-of-hero .ksdm-bow { width: 96px; height: 84px; margin: 0 auto 8px; }
.ksdm-of-hero .ksdm-knot { fill: #fff; }
.ksdm .ksdm-of-hero h1.ksdm-head { font-family: "Yeseva One", Georgia, serif; font-weight: 400; font-size: clamp(27px, 6vw, 40px); line-height: 1.12; margin: 0 0 8px; color: #fff; }
.ksdm-of-hero p { max-width: 46ch; margin: 0 auto !important; }
.ksdm-of-sec { background: var(--ksdm-card); border: 1px solid var(--ksdm-line); border-radius: 20px; padding: 18px; }
.ksdm-of-sec > .ksdm-head, .ksdm-of-wheel .ksdm-head { font-size: 24px; margin-bottom: 10px; }
.ksdm-deals { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ksdm-deal { background: #fff; border: 1px solid var(--ksdm-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.ksdm-deal img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ksdm-deal__body { padding: 13px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; flex: 1; }
.ksdm-deal__body h3 { font-size: 17px; font-weight: 700; margin: 0; }
.ksdm-deal__body p { font-size: 14px; color: var(--ksdm-mut); }
.ksdm-deal__body small { font-size: 13px; color: var(--ksdm-mut); }
.ksdm .ksdm-deal__code { border-style: dashed; border-color: var(--ksdm-rose); color: var(--ksdm-rose); font-weight: 700; letter-spacing: .03em; }
.ksdm-deal__body .ksdm-btn { margin-top: auto !important; }
.ksdm-of-wheel { display: flex; align-items: center; gap: 18px; }
.ksdm-of-wheel p { font-size: 14.5px; }
.ksdm-of-wheel__art { position: relative; flex: 0 0 104px; width: 104px; height: 104px; border-radius: 50%; border: 6px solid var(--ksdm-ribbon); box-shadow: 0 6px 14px rgba(74,16,48,.25); animation: ksdm-turn 14s linear infinite; }
.ksdm-of-wheel__art i { position: absolute; inset: 34%; border-radius: 50%; background: #fff; border: 3px solid var(--ksdm-ribbon); }
@keyframes ksdm-turn { to { transform: rotate(360deg); } }
.ksdm-steps { list-style: none; counter-reset: ksdm; margin: 0; padding: 0; display: grid; gap: 10px; }
.ksdm-steps li { counter-increment: ksdm; position: relative; padding-left: 44px; min-height: 34px; font-size: 14.5px; margin: 0; }
.ksdm-steps li:before { content: counter(ksdm); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ksdm-ribbon); color: var(--ksdm-ink); font-weight: 800; display: grid; place-items: center; }
.ksdm-steps b, .ksdm-steps span { display: block; }
.ksdm-steps span { color: var(--ksdm-mut); }
.ksdm-of-map .ksdm-hint { padding-bottom: 14px; }
.ksdm-of-cta { display: grid; gap: 8px; }
.ksdm .ksdm-of-cta .ksdm-btn, .ksdm .ksdm-of-cta .ksdm-wa { margin-top: 0; }
.ksdm .ksdm-btn--ghost { background: transparent; color: var(--ksdm-rose) !important; border: 1px solid var(--ksdm-rose); }
.ksdm-of-in { display: none; }
body.logged-in .ksdm-of-in { display: inline; }
body.logged-in .ksdm-of-out { display: none; }
@media (max-width: 480px) {
	.ksdm-of-wheel { flex-direction: column; text-align: center; }
}
/* Ecomus gives every button a very wide shine and clips it; ours show their edges, so the shine would widen the page. */
.ksdm button::after, .ksdm-modal button::after { content: none !important; }

/* KS Diamonds and KS Referral pages */
.ksdm.ksdm-page { max-width: 820px; }
.ksdm-dia-hero .ksdm-biggem { color: var(--ksdm-ribbon); font-size: 76px; }
.ksdm .ksdm-more { display: block; text-align: center; padding: 10px; margin-top: 4px; font-weight: 700; color: var(--ksdm-rose) !important; text-decoration: underline !important; font-size: 14.5px; }
.ksdm-chip a { margin-left: 4px; font-weight: 500; font-size: 13px; color: #B5124F !important; text-decoration: underline !important; }
.ksdm-of-login { text-align: center; }
.ksdm-of-login p { font-size: 14.5px; color: var(--ksdm-mut); }
.ksdm-of-mycode .ksdm-hello .ksdm-head { font-size: 24px; }
.ksdm-mine__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ksdm-mine__nums > div { background: var(--ksdm-paper); border-radius: 14px; padding: 12px 14px; }
.ksdm-mine__nums b { display: block; font-family: "Yeseva One", Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--ksdm-rose); }
.ksdm-mine__nums span { font-size: 13.5px; color: var(--ksdm-mut); }
.ksdm .ksdm-mine h3.ksdm-head { font-size: 19px; margin: 16px 0 8px; }
.ksdm-orders { display: grid; gap: 8px; }
.ksdm a.ksdm-order { display: block; background: #fff; border: 1px solid var(--ksdm-line); border-radius: 12px; padding: 10px 12px; color: var(--ksdm-ink) !important; text-decoration: none !important; }
.ksdm a.ksdm-order:hover { border-color: var(--ksdm-rose); }
.ksdm-order__top { display: block; }
.ksdm-order__top small { color: var(--ksdm-mut); font-size: 13px; }
.ksdm-order__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ksdm-order__tags em { font-style: normal; font-size: 13px; font-weight: 700; border-radius: 99px; padding: 3px 10px; }
.ksdm-order__tags .is-up { background: #E3F4E8; color: #17803D; }
.ksdm-order__tags .is-way { background: #FFF3CC; color: #7A5A00; }
.ksdm-order__tags .is-dn { background: #FBDDE6; color: #B5124F; }
.ksdm-order__tags .is-off { background: #F2EEF0; color: #6B5B63; font-weight: 500; }
.ksdm-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ksdm a.ksdm-pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ksdm-line); border-radius: 12px; overflow: hidden; color: var(--ksdm-ink) !important; text-decoration: none !important; font-size: 13.5px; }
.ksdm a.ksdm-pcard:hover { border-color: var(--ksdm-rose); }
.ksdm-pcard img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.ksdm-pcard b { padding: 8px 10px 0; font-weight: 600; line-height: 1.3; }
.ksdm-pcard > span { padding: 2px 10px 10px; color: var(--ksdm-mut); }
.ksdm-pcard em { position: absolute; top: 8px; left: 8px; display: inline-flex; gap: 4px; align-items: center; font-style: normal; font-weight: 700; font-size: 12.5px; background: var(--ksdm-card); color: var(--ksdm-rose); border-radius: 99px; padding: 3px 9px; box-shadow: 0 2px 6px rgba(74,16,48,.2); }
.ksdm-faq details { border-top: 1px solid var(--ksdm-line); padding: 11px 2px; }
.ksdm-faq details:first-child { border-top: 0; }
.ksdm-faq summary { cursor: pointer; font-weight: 600; }
.ksdm-faq p { margin-top: 6px !important; font-size: 14.5px; color: var(--ksdm-mut); }
@media (min-width: 700px) {
	.ksdm-page .ksdm-of-cta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The page already opens with its own heading. #page-header is the Ecomus title area. */
body.ksdm-no-title #page-header, body.ksdm-no-title .entry-header, body.ksdm-no-title h1.wp-block-post-title { display: none !important; }
