/* Joydareta Core — elementos do plugin (usa as variáveis do tema, com valores de reserva). */

.jd-modebar {
	background: var(--jd-accent, #FF8A5B); color: #fff; text-align: center;
	font-size: 13px; padding: 7px 16px; font-weight: 500;
}
.jd-modebar .woocommerce-Price-amount { font-weight: 700; }

/* Preço no Pix */
.jd-pix-price { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 4px; font-size: 13px; color: var(--jd-muted, #5D7471); }
.jd-pix-price img { width: 16px; height: 16px; display: inline-block; }
.jd-pix-price strong { color: #0E8F82; font-weight: 700; }
.jd-pix-price em { font-style: normal; color: #0E8F82; }
.jd-pix-price--single { font-size: 15px; padding: 10px 14px; margin: 4px 0 10px; border-radius: 10px; background: #E9F8F6; width: fit-content; }
.jd-pix-price--single strong { font-size: 18px; }

.jd-hint { font-size: 14px; margin: 6px 0 10px; color: var(--jd-muted, #5D7471); }
.jd-hint a { font-weight: 600; }
.jd-hint--points strong { color: var(--jd-primary-strong, #138E84); }
.jd-note { padding: 10px 14px; border-radius: 10px; background: var(--jd-soft, #E8F7F5); font-size: 14px; }

/* Lista de desejos */
.jd-wish-btn {
	position: absolute; top: 10px; right: 10px; z-index: 3;
	display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
	border: 0; border-radius: 50%; background: #fff; color: var(--jd-dark, #0B4A45);
	box-shadow: 0 4px 14px rgba(11, 74, 69, .12); cursor: pointer; transition: transform .15s, color .15s;
}
.jd-wish-btn:hover { transform: scale(1.08); color: #E0475B; }
.jd-wish-btn.is-active { color: #E0475B; }
.jd-wish-btn.is-active svg { fill: currentColor; }
.jd-wish-btn--single { position: static; width: auto; height: 52px; padding: 0 18px; gap: 8px; display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--jd-line, #DCEDEA); font-weight: 600; }
.jd-wish-empty { text-align: center; padding: 40px 0; }

/* Barra de frete grátis */
.jd-freebar { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: var(--jd-soft, #E8F7F5); font-size: 14px; }
.jd-freebar p { margin: 0 0 8px; }
.jd-freebar small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--jd-muted, #5D7471); }
.jd-freebar__track { display: block; height: 8px; border-radius: 999px; background: #fff; overflow: hidden; }
.jd-freebar__track span { display: block; height: 100%; border-radius: inherit; background: var(--jd-primary, #19B3A6); transition: width .4s; }
.jd-freebar.is-done .jd-freebar__track span { background: #0E8F82; }

/* WhatsApp flutuante */
.jd-wa-float {
	position: fixed; right: 18px; bottom: 18px; z-index: 150;
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px;
	border-radius: 999px; background: #25D366; color: #fff !important; font-weight: 700; font-size: 14px;
	box-shadow: 0 10px 30px rgba(37, 211, 102, .4); transition: transform .2s;
}
.jd-wa-float:hover { transform: translateY(-2px); color: #fff; }
@media (max-width: 640px) { .jd-wa-float span { display: none; } .jd-wa-float { padding: 13px; } }

/* Login: abas varejo / atacado */
.jd-login-tabs { margin: 0 0 24px; }
.jd-login-tabs__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
.jd-login-tabs__btns button {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; text-align: left;
	border: 2px solid var(--jd-line, #DCEDEA); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s;
}
.jd-login-tabs__btns button strong { font-family: var(--jd-font-head, inherit); font-size: 16px; color: var(--jd-dark, #0B4A45); }
.jd-login-tabs__btns button span { font-size: 13px; color: var(--jd-muted, #5D7471); }
.jd-login-tabs__btns button[aria-selected="true"] { border-color: var(--jd-primary, #19B3A6); background: var(--jd-soft, #E8F7F5); }
.jd-login-tabs__info { margin: 14px 0 0; color: var(--jd-muted, #5D7471); max-width: 720px; }
.jd-login-tabs[data-active="varejo"] [data-info="atacado"], .jd-login-tabs[data-active="atacado"] [data-info="varejo"] { display: none; }
.jd-atacado-fields { display: none; padding: 16px 16px 2px; margin: 4px 0 16px; border-radius: 12px; background: var(--jd-soft-2, #F4FBFA); border: 1px dashed var(--jd-primary, #19B3A6); }
.jd-atacado-fields::after { content: ""; display: table; clear: both; }
.jd-atacado-fields.is-visible { display: block; }
.jd-atacado-fields__title { font-weight: 700; margin: 0 0 10px; color: var(--jd-dark, #0B4A45); }
.woocommerce-form-register::after { content: ""; display: table; clear: both; }

.jd-account-box { display: block; padding: 14px 16px; margin: 0 0 20px; border-radius: 12px; background: var(--jd-soft-2, #F4FBFA); border: 1px solid var(--jd-line, #DCEDEA); }
.jd-account-box--ok { background: var(--jd-soft, #E8F7F5); border-color: var(--jd-primary, #19B3A6); }
.jd-upgrade summary { cursor: pointer; }
.jd-upgrade__form { margin-top: 14px; }
.jd-upgrade__form::after { content: ""; display: table; clear: both; }

/* Pontos */
.jd-points-box { padding: 14px; margin: 0 0 14px; border-radius: 12px; background: #fff; border: 1.5px dashed var(--jd-primary, #19B3A6); font-size: 14px; }
.jd-points-box label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.jd-points-box small { display: block; margin: 4px 0 0 24px; color: var(--jd-muted, #5D7471); }
.jd-points-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.jd-points-summary div { padding: 18px; border-radius: 14px; background: var(--jd-soft, #E8F7F5); }
.jd-points-summary span { display: block; font-size: 13px; color: var(--jd-muted, #5D7471); }
.jd-points-summary strong { font-size: 24px; color: var(--jd-dark, #0B4A45); }

/* Caixa de pagamento Pix */
.jd-pix-box { margin: 0 0 32px; padding: 24px; border: 2px solid #32BCAD; border-radius: 18px; background: #fff; }
.jd-pix-box--paid { border-color: var(--jd-primary, #19B3A6); background: var(--jd-soft, #E8F7F5); }
.jd-pix-box__head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.jd-pix-box__head h2 { margin: 0 0 2px; font-size: 22px; }
.jd-pix-box__head p { margin: 0; }
.jd-pix-box__grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.jd-pix-box__qr { width: 220px; height: 220px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--jd-line, #DCEDEA); }
.jd-pix-box__qr img, .jd-pix-box__qr svg { width: 100% !important; height: 100% !important; }
.jd-pix-box__steps { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 14px; }
.jd-pix-box__label { display: block; margin: 20px 0 6px; font-weight: 600; }
.jd-pix-box__copy { display: flex; gap: 10px; }
.jd-pix-box__copy input { flex: 1; font-family: ui-monospace, monospace; font-size: 12px; }
.jd-pix-box__wa { margin-top: 14px; background: #25D366 !important; }
@media (max-width: 640px) {
	.jd-pix-box { padding: 18px; }
	.jd-pix-box__grid { grid-template-columns: 1fr; justify-items: center; }
	.jd-pix-box__copy { flex-direction: column; }
}

/* Newsletter */
.jd-nl__fields { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; }
.jd-nl input[type="text"], .jd-nl input[type="email"] { border: 0; border-radius: 999px; min-height: 50px; padding: 0 18px; }
.jd-nl .jd-btn { min-height: 50px; }
.jd-nl__consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12.5px; font-weight: 400; color: rgba(255, 255, 255, .9); }
.jd-nl__consent a { color: #fff; text-decoration: underline; }
.jd-nl__msg { margin: 8px 0 0; font-weight: 600; min-height: 1.4em; }
.jd-nl__msg.is-error { color: #FFE1D6; }
@media (max-width: 640px) { .jd-nl__fields { grid-template-columns: 1fr; } }
