/**
 * Página pública da política de frete.
 */

.uf {
	--ink: #17181c;
	--mut: #6b7280;
	--line: #ececef;
	--line2: #e2e2e6;
	--gold: #caa24a;
	--gold2: #b7913f;
	--goldsoft: #f6efdd;
	--green: #0f9d58;
	max-width: 960px;
	margin: 0 auto;
	padding: 12px 4px 40px;
	font-family: inherit;
	color: var(--ink);
}

.uf-head { text-align: center; margin-bottom: 24px; }
.uf-ey { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold2); margin: 0; }
.uf-h1 { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 0; color: var(--ink); }
.uf-sub { font-size: 14px; color: var(--mut); margin: 8px auto 0; max-width: 620px; line-height: 1.55; }

.uf-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #14161b, #20242b);
	border-radius: 22px;
	padding: 26px 28px;
	display: flex;
	align-items: center;
	gap: 22px;
	box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .5);
	margin-bottom: 26px;
}

.uf-hero::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -40px;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(231, 192, 106, .18), transparent 62%);
	pointer-events: none;
}

.uf-hero-ic {
	flex: none;
	width: 66px;
	height: 66px;
	border-radius: 18px;
	background: radial-gradient(circle at 30% 25%, #2a2d33, #111316);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 4px rgba(231, 192, 106, .14);
	color: #e7c06a;
}

.uf-hero-ic svg { width: 34px; height: 34px; }
.uf-hero-tx { position: relative; z-index: 1; }
.uf-hero-tx .k { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #e7c06a; margin: 0; }
.uf-hero-tx .v { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.12; margin: 4px 0 0; }
.uf-hero-tx .s { font-size: 12.5px; color: #aeb3bd; margin: 8px 0 0; max-width: 460px; line-height: 1.5; }

.uf-lbl { font-size: 13px; font-weight: 700; color: var(--ink); text-align: center; margin: 0 0 12px; }
.uf-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }

.uf-pill {
	border: 1px solid var(--line2);
	background: #fff;
	color: var(--mut);
	font-family: inherit;
	font-weight: 700;
	font-size: 13px;
	padding: 10px 18px;
	border-radius: 30px;
	cursor: pointer;
	transition: .15s;
}

.uf-pill:hover { border-color: var(--gold2); color: var(--ink); }
.uf-pill:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
.uf-pill.is-on { background: linear-gradient(180deg, #1a1d22, #0e0f12); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); }

.uf-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 8px; box-shadow: 0 6px 22px rgba(0, 0, 0, .05); margin-bottom: 26px; }
.uf-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.uf-card-h .rg { font-size: 20px; font-weight: 700; }
.uf-card-h .fl { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; background: var(--goldsoft); color: var(--gold2); border: 1px solid #ecdcb4; }

.uf-tiers { display: grid; gap: 12px; }
.uf-tier { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fcfbf9; }
.uf-tier.is-free { background: linear-gradient(180deg, #f4fbf6, #eef8f1); border-color: #cdebd8; }
.uf-tier .amt { flex: none; min-width: 104px; font-size: 19px; font-weight: 700; color: var(--ink); }
.uf-tier .arr { flex: none; color: var(--gold2); display: flex; }
.uf-tier .desc { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.uf-tier .desc small { display: block; font-weight: 500; color: var(--mut); font-size: 12px; margin-top: 2px; }
.uf-tier .tag { flex: none; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 5px 11px; border-radius: 20px; }
.uf-tier.is-free .tag { background: var(--green); color: #fff; }
.uf-tier.is-half .tag { background: var(--goldsoft); color: var(--gold2); border: 1px solid #ecdcb4; }
.uf-card-note { font-size: 12px; color: var(--mut); padding: 12px 2px 14px; line-height: 1.5; }

.uf-tblwrap { margin-bottom: 26px; }
.uf-tbl-h { font-size: 18px; font-weight: 700; margin: 0 2px 12px; }
.uf-tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 13.5px; }
.uf-tbl th, .uf-tbl td { padding: 13px 16px; text-align: left; }
.uf-tbl thead th { background: #faf7f2; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--mut); border-bottom: 1px solid var(--line); }
.uf-tbl tbody tr + tr td { border-top: 1px solid var(--line); }
.uf-tbl td .rg { font-weight: 700; }
.uf-tbl .ok { color: var(--green); font-weight: 700; }
.uf-tbl .hf { color: var(--gold2); font-weight: 700; }
.uf-tbl .dash { color: #b9bdc4; }
.uf-tbl tbody tr:hover td { background: #fcfbf9; }

.uf-promo { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 14px; padding: 16px 18px; }
.uf-promo svg { flex: none; color: var(--gold2); width: 22px; height: 22px; margin-top: 1px; }
.uf-promo h4 { font-size: 13.5px; font-weight: 800; margin: 0 0 5px; }
.uf-promo p { font-size: 12.5px; color: var(--mut); line-height: 1.55; margin: 0; }

@media (max-width: 640px) {
	.uf-h1 { font-size: 26px; }
	.uf-hero { flex-direction: column; text-align: center; padding: 22px 18px; gap: 14px; }
	.uf-hero-tx .s { max-width: none; }
	.uf-tier { flex-wrap: wrap; gap: 8px 14px; }
	.uf-tier .amt { min-width: 0; }
	.uf-tier .desc { flex: 1 1 100%; order: 3; }
	.uf-tbl th:nth-child(2), .uf-tbl td:nth-child(2) { display: none; }
}

/* ---------- Barra de frete grátis ---------- */
.ufb {
	background: #fff;
	border: 1px solid #ececef;
	border-left: 4px solid #caa24a;
	border-radius: 12px;
	padding: 14px 16px;
	margin: 0 0 18px;
	font-family: inherit;
	color: #17181c;
}

.ufb--gratis { border-left-color: #0f9d58; background: linear-gradient(180deg, #f4fbf6, #fff); }
.ufb--metade { border-left-color: #b7913f; }
.ufb-msg { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.ufb-spark { margin-right: 6px; display: inline-block; animation: ufb-pop .45s ease-out; }
.ufb-track { height: 8px; background: #f0f0f1; border-radius: 20px; overflow: hidden; }
.ufb-fill { height: 100%; background: linear-gradient(90deg, #caa24a, #e7c06a); border-radius: 20px; transition: width .5s ease-out; }
.ufb--gratis .ufb-fill { background: linear-gradient(90deg, #0f9d58, #34d399); }
.ufb-cta { margin: 10px 0 0; font-size: 12px; color: #6b7280; }

@keyframes ufb-pop {
	0% { transform: scale(.4); opacity: 0; }
	70% { transform: scale(1.25); }
	100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.ufb-fill { transition: none; }
	.ufb-spark { animation: none; }
}

/* ---------- Meu CEP ---------- */
.ufg-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #e2e2e6;
	border-radius: 30px;
	padding: 7px 14px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	color: #17181c;
	cursor: pointer;
}

.ufg-pill:hover { border-color: #b7913f; }
.ufg-modal { position: fixed; inset: 0; background: rgba(12, 13, 16, .55); display: flex; align-items: center; justify-content: center; z-index: 99999; padding: 16px; }
.ufg-modal[hidden] { display: none; }
.ufg-box { background: #fff; border-radius: 18px; padding: 26px 24px; max-width: 380px; width: 100%; position: relative; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.ufg-box h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.ufg-box p { margin: 0 0 16px; font-size: 12.5px; color: #6b7280; line-height: 1.5; }
.ufg-close { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 22px; color: #9ca3af; cursor: pointer; line-height: 1; }
.ufg-form { display: flex; gap: 8px; }
.ufg-input { flex: 1; border: 1px solid #e2e2e6; border-radius: 10px; padding: 11px 13px; font-size: 15px; font-family: inherit; }
.ufg-input:focus { outline: none; border-color: #caa24a; box-shadow: 0 0 0 3px rgba(202, 162, 74, .2); }
.ufg-save { border: none; border-radius: 10px; padding: 0 18px; background: linear-gradient(180deg, #1a1d22, #0e0f12); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.ufg-msg { margin: 12px 0 0 !important; font-size: 12.5px; font-weight: 600; color: #a4231a; }
.ufg-msg.is-ok { color: #0f9d58; }
.ufg-dismiss { margin-top: 14px; border: none; background: none; color: #9ca3af; font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; }

.ufb-upsell { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.ufb-upsell a { display: flex; flex-direction: column; gap: 2px; border: 1px solid #ececef; border-radius: 10px; padding: 8px 12px; text-decoration: none; color: #17181c; transition: .15s; }
.ufb-upsell a:hover { border-color: #caa24a; }
.ufb-upsell .n { font-size: 12px; font-weight: 600; }
.ufb-upsell .p { font-size: 12px; font-weight: 800; color: #b7913f; }

/* ---------- Lista de métodos de envio ---------- */
.ufm {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	font-family: inherit;
}

.ufm-name { font-weight: 700; font-size: 13.5px; color: #17181c; }
.ufm-price { font-weight: 800; font-size: 13.5px; color: #17181c; font-variant-numeric: tabular-nums; }
.ufm-price.is-free { color: #0f9d58; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }
.ufm-badges { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 100%; margin-top: 2px; }

.ufm-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 20px;
	white-space: nowrap;
	background: #f4f4f5;
	color: #6b7280;
	border: 1px solid #ececef;
}

.ufm-badge--hoje { background: #fff4e0; color: #8a5700; border-color: #f0d5a8; }
.ufm-badge--retirada { background: #f0f6fc; color: #0a4b78; border-color: #bcd9f0; }
.ufm-badge--barato { background: #edfaef; color: #1a7f37; border-color: #b8e6c1; }
.ufm-badge--rapido { background: #f6efdd; color: #b7913f; border-color: #ecdcb4; }
.ufm-badge--eta { background: #fff; color: #6b7280; }

/* O método de hoje merece destaque na lista. */
li:has(.ufm-badge--hoje) { position: relative; }

@media (max-width: 480px) {
	.ufm { gap: 2px 8px; }
	.ufm-badge { font-size: 10.5px; }
}

/* ---------- Meu CEP: o tema é agressivo, então estas ganham dele ---------- */
.ufg .ufg-input,
.ufg input.ufg-input[type="text"] {
	border-radius: 10px !important;
	border: 1px solid #e2e2e6 !important;
	background: #fff !important;
	height: auto !important;
	box-shadow: none !important;
}

.ufg .ufg-input:focus,
.ufg input.ufg-input[type="text"]:focus {
	border-color: #caa24a !important;
	box-shadow: 0 0 0 3px rgba(202, 162, 74, .2) !important;
}

.ufg .ufg-save,
.ufg button.ufg-save {
	border-radius: 10px !important;
	background: linear-gradient(180deg, #1a1d22, #0e0f12) !important;
	color: #fff !important;
	border: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

/* O tema troca a cor do texto no hover e some com a palavra. */
.ufg .ufg-save:hover,
.ufg .ufg-save:focus,
.ufg .ufg-save:active,
.ufg button.ufg-save:hover,
.ufg button.ufg-save:focus,
.ufg button.ufg-save:active {
	background: linear-gradient(180deg, #2a2e35, #17181c) !important;
	color: #fff !important;
	border: none !important;
}

.ufg .ufg-save[disabled] { opacity: .6 !important; cursor: default !important; }
.ufg.is-busy .ufg-input { opacity: .7; }

.ufg .ufg-pill,
.ufg button.ufg-pill {
	border-radius: 30px !important;
	background: #fff !important;
	color: #17181c !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.ufg .ufg-pill:hover,
.ufg button.ufg-pill:hover {
	background: #fff !important;
	color: #17181c !important;
	border-color: #b7913f !important;
}

.ufg .ufg-dismiss,
.ufg button.ufg-dismiss {
	background: none !important;
	color: #9ca3af !important;
	border: none !important;
	text-transform: none !important;
}

.ufg .ufg-dismiss:hover { color: #6b7280 !important; }
.ufg .ufg-close, .ufg button.ufg-close { background: none !important; color: #9ca3af !important; border: none !important; }

/* ---------- Pílulas de região: o tema quadra a borda e escurece a letra ----------
 *
 * O Woodmart sobrescreve border-radius, color e background de qualquer
 * <button>, inclusive no estado de foco — a região selecionada ficava com
 * fundo escuro e letra escura, ilegível. Estas regras são escopadas e
 * marcadas porque disputam com o tema, não com o nosso próprio CSS.
 */
.uf .uf-pill,
.uf button.uf-pill {
	border-radius: 30px !important;
	background: #fff !important;
	color: #6b7280 !important;
	border: 1px solid #e2e2e6 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
	transition: background .15s, color .15s, border-color .15s !important;
}

.uf .uf-pill:hover,
.uf button.uf-pill:hover {
	background: #fff !important;
	color: #17181c !important;
	border-color: #b7913f !important;
}

/* A selecionada: fundo escuro E letra branca, nos quatro estados. Sem isto,
 * clicar deixava o texto preto sobre preto. */
.uf .uf-pill.is-on,
.uf .uf-pill.is-on:hover,
.uf .uf-pill.is-on:focus,
.uf .uf-pill.is-on:active,
.uf button.uf-pill.is-on,
.uf button.uf-pill.is-on:hover,
.uf button.uf-pill.is-on:focus,
.uf button.uf-pill.is-on:active {
	background: linear-gradient(180deg, #1a1d22, #0e0f12) !important;
	color: #fff !important;
	border-color: transparent !important;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4) !important;
}

/* O foco por teclado continua visível, mas sem apagar a letra. */
.uf .uf-pill:focus-visible,
.uf button.uf-pill:focus-visible {
	outline: 2px solid #b7913f !important;
	outline-offset: 2px !important;
}
