/**
 * Devsite Hub E-commerce - Dialog de seleção de produto (atributos + campos extras).
 * Classe raiz `.dshe-pd`; usa os tokens `--wbrsc-*` definidos em `.dshe-frontend` (checkout.css).
 * Independe de `.dshe-cmodal` (que só carrega no checkout).
 */

html.dshe-pd-lock { overflow: hidden; }

.dshe-pd { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dshe-pd[hidden] { display: none; }
.dshe-pd__backdrop { position: absolute; inset: 0; background: rgba(6, 14, 32, 0.6); animation: dshe-pd-fade 0.25s var(--wbrsc-ease-out, ease-out); }

.dshe-pd__card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	background: var(--wbrsc-bg-card, #fff);
	color: var(--wbrsc-ink-900, #131a26);
	font-family: var(--wbrsc-font-body, sans-serif);
	border-radius: var(--wbrsc-radius-lg, 24px);
	box-shadow: var(--wbrsc-shadow-lift, 0 18px 44px -12px rgba(16, 42, 92, 0.22));
	overflow: hidden;
	outline: none;
	animation: dshe-pd-up 0.3s var(--wbrsc-ease-out, ease-out);
}

.dshe-pd__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--wbrsc-line, #e5eaf2); flex: 0 0 auto; }
.dshe-pd__title { font-family: var(--wbrsc-font-display, sans-serif); color: var(--wbrsc-blue-900, #102a5c); font-size: 1.05rem; }
.dshe-frontend .dshe-pd__close {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	border-radius: 50% !important;
	color: var(--wbrsc-ink-500, #647082) !important;
	font-size: 1.4rem !important;
	line-height: 1 !important;
	transition: background 0.2s ease, color 0.2s ease !important;
}
.dshe-frontend .dshe-pd__close:hover,
.dshe-frontend .dshe-pd__close:focus-visible { background: var(--wbrsc-blue-50, #f2f6fc) !important; color: var(--wbrsc-blue-900, #102a5c) !important; }

.dshe-pd__body { padding: 20px 22px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; min-height: 120px; }

/* Carregando / vazio */
.dshe-pd__loading,
.dshe-pd__empty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 12px; text-align: center; font-weight: 600; color: var(--wbrsc-ink-500, #647082); }
.dshe-pd__loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--wbrsc-line, #e5eaf2); border-top-color: var(--wbrsc-orange-500, #e5830d); animation: dshe-pd-spin 0.7s linear infinite; }
.dshe-pd__empty { color: #d6455b; }

/* Produto */
.dshe-pd__product { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--wbrsc-line, #e5eaf2); }
.dshe-pd__thumb { flex: 0 0 auto; width: 68px; height: 68px; border-radius: var(--wbrsc-radius-sm, 10px); overflow: hidden; background: var(--wbrsc-blue-50, #f2f6fc); }
.dshe-pd__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dshe-pd__info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dshe-pd__name { font-family: var(--wbrsc-font-display, sans-serif); color: var(--wbrsc-blue-900, #102a5c); font-size: 1rem; line-height: 1.3; }
.dshe-pd__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-weight: 700; color: var(--wbrsc-ink-900, #131a26); }
.dshe-pd__price s { font-weight: 500; font-size: 0.85rem; color: var(--wbrsc-ink-500, #647082); }
.dshe-pd__price s[hidden] { display: none; }

/* Campos do formulário (atributos e campos extras): tokens locais para o mesmo visual em todos. */
.dshe-pd__form {
	--dshe-pd-field-h: 44px;
	--dshe-pd-field-line: #cfd6e2;
	--dshe-pd-field-radius: var(--wbrsc-radius-sm, 10px);
	--dshe-pd-accent: var(--wbrsc-blue-800, #1b3a80);
	--dshe-pd-muted: #8a93a3;
	--dshe-pd-danger: #d6455b;
}

/* Atributos: select nativo com o mesmo visual do select2 dos campos extras */
.dshe-pd__attrs { display: grid; gap: 16px; margin-bottom: 16px; }
.dshe-pd__label { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--wbrsc-ink-900, #131a26); }
.dshe-pd__req { color: #dc2626; font-weight: 700; }
.dshe-pd__select-wrap { position: relative; display: block; margin: 0; }
.dshe-pd__select-wrap::after {
	content: "\f107";
	position: absolute;
	top: 50%;
	right: 16px;
	font: var(--dshi-font-regular, normal 400 1em/1 "dsh-icon");
	font-size: 16px;
	line-height: 1;
	color: var(--wbrsc-ink-900, #131a26);
	transform: translateY(-50%);
	pointer-events: none;
	-webkit-font-smoothing: antialiased;
}
.dshe-pd .dshe-pd__select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	min-width: 0;
	height: auto;
	min-height: var(--dshe-pd-field-h);
	margin: 0;
	padding: 8px 40px 8px 14px;
	border: 1px solid var(--dshe-pd-field-line);
	border-radius: var(--dshe-pd-field-radius);
	background: #fff none;
	color: var(--wbrsc-ink-900, #131a26);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dshe-pd .dshe-pd__select::-ms-expand { display: none; }
.dshe-pd .dshe-pd__select:has(option[value=""]:checked) { color: var(--dshe-pd-muted); }
.dshe-pd .dshe-pd__select option { color: var(--wbrsc-ink-900, #131a26); }
.dshe-pd .dshe-pd__select option[value=""] { color: var(--dshe-pd-muted); }
.dshe-pd .dshe-pd__select option:disabled { color: #b7bfcc; }
.dshe-pd .dshe-pd__select:hover { border-color: var(--dshe-pd-accent); }
.dshe-pd .dshe-pd__select:focus,
.dshe-pd .dshe-pd__select:focus-visible { border-color: var(--dshe-pd-accent); outline: 2px solid color-mix(in srgb, var(--dshe-pd-accent) 25%, transparent); outline-offset: 1px; }
.dshe-pd .dshe-pd__select:disabled { opacity: 0.55; cursor: not-allowed; background: var(--wbrsc-bg-page, #f6f8fc); }

/* Campos extras dentro do dialog (adaptado de dshe-extra-fields.css e do Cart Form, escopado em .dshe-pd) */
.dshe-pd .dshe_extra_fields {
	--dshe-ef-accent: var(--dshe-pd-accent);
	--dshe-ef-line: var(--dshe-pd-field-line);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 0 16px;
}
.dshe-pd .dshe_extra_fields_row { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.dshe-pd .dshe_extra_fields_row[hidden] { display: none !important; }

/* Rótulo: título + asterisco + tooltip na mesma linha; selo de quantidade à direita */
.dshe-pd .dshe_extra_fields_row > :is(label, .dshe-ef-legend) {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--wbrsc-ink-900, #131a26);
}
.dshe-pd .ef-field-required { color: #dc2626; font-weight: 700; }
.dshe-pd .dshe-ef-tip { display: inline-flex; align-items: center; color: var(--wbrsc-ink-500, #647082); cursor: help; line-height: 1; }
.dshe-pd .dshe-ef-tip svg,
.dshe-pd .dshe-ef-tip .dsh-i { width: 14px; height: 14px; font-size: 14px; }
.dshe-pd .dshe-ef-qtybadge {
	margin-left: auto;
	flex: 0 0 auto;
	padding: 2px 10px;
	border-radius: var(--wbrsc-radius-pill, 999px);
	background: var(--wbrsc-blue-50, #f2f6fc);
	color: var(--wbrsc-ink-700, #3a4557);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}
.dshe-pd .dshe-ef-qtybadge[hidden] { display: none !important; }

/* Select2 (simples e múltiplo): mesmo visual do select dos atributos */
.dshe-pd .dshe_extra_fields_row select.dshe-ef-select { width: 100%; min-height: var(--dshe-pd-field-h); }
.dshe-pd .select2-container { width: 100% !important; max-width: 100%; }
.dshe-pd .select2-container .select2-selection {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	height: auto;
	min-height: var(--dshe-pd-field-h);
	margin: 0;
	padding: 0 40px 0 14px;
	border: 1px solid var(--dshe-pd-field-line);
	border-radius: var(--dshe-pd-field-radius);
	background: #fff;
	outline: 0;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dshe-pd .select2-container:hover .select2-selection { border-color: var(--dshe-pd-accent); }
.dshe-pd .select2-container--focus .select2-selection,
.dshe-pd .select2-container--open .select2-selection { border-color: var(--dshe-pd-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--dshe-pd-accent) 20%, transparent); }
.dshe-pd .select2-container--disabled .select2-selection { opacity: 0.55; cursor: not-allowed; background: var(--wbrsc-bg-page, #f6f8fc); }
.dshe-pd .select2-container .select2-selection .select2-selection__rendered {
	display: block;
	flex: 1 1 auto;
	height: auto;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--wbrsc-ink-900, #131a26);
	font-size: 14px;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.dshe-pd .select2-container .select2-selection .select2-selection__placeholder { color: var(--dshe-pd-muted) !important; }
.dshe-pd .select2-container .select2-selection__arrow { display: none !important; }
.dshe-pd .select2-container .select2-selection__clear { position: absolute; top: 50%; right: 36px; margin: 0; transform: translateY(-50%); color: var(--wbrsc-ink-500, #647082); font-size: 18px; line-height: 1; }
.dshe-pd .select2-container .select2-selection::after {
	content: "\f107";
	position: absolute;
	top: 50%;
	right: 16px;
	font: var(--dshi-font-regular, normal 400 1em/1 "dsh-icon");
	font-size: 16px;
	line-height: 1;
	color: var(--wbrsc-ink-900, #131a26);
	transform: translateY(-50%);
	transition: transform 0.2s ease;
	pointer-events: none;
	-webkit-font-smoothing: antialiased;
}
.dshe-pd .select2-container--open .select2-selection::after { transform: translateY(-50%) rotate(180deg); }

/* Múltiplo: chips e busca no mesmo fluxo flex */
.dshe-pd .select2-container .select2-selection--multiple { flex-wrap: wrap; justify-content: flex-start; gap: 6px; padding-top: 6px; padding-bottom: 6px; text-align: left; }
.dshe-pd .select2-container .select2-selection--multiple .select2-selection__rendered { display: contents; }
.dshe-pd .select2-container .select2-selection--multiple .select2-selection__choice {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	margin: 0;
	padding: 3px 10px;
	border: 0;
	border-radius: var(--wbrsc-radius-pill, 999px);
	background: var(--wbrsc-blue-50, #f2f6fc);
	color: var(--wbrsc-ink-900, #131a26);
	font-size: 13px;
	line-height: 1.4;
}
.dshe-pd .select2-container .select2-selection--multiple .select2-selection__choice__remove { position: static; margin: 0; padding: 0; border: 0; background: none; color: var(--wbrsc-ink-500, #647082); font-weight: 700; }
.dshe-pd .select2-container .select2-selection--multiple .select2-selection__choice__remove:hover { color: var(--dshe-pd-danger); }
.dshe-pd .select2-container .select2-selection--multiple .select2-search--inline { display: flex; align-items: center; align-self: center; flex: 1 1 8em; min-width: 8em; height: auto; margin: 0; }
.dshe-pd .select2-container .select2-selection--multiple textarea.select2-search__field,
.dshe-pd .select2-container .select2-selection--multiple .select2-search__field {
	display: block;
	box-sizing: content-box;
	width: 100% !important;
	height: 1.5em !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: transparent;
	color: var(--wbrsc-ink-900, #131a26);
	font: inherit;
	font-size: 14px;
	line-height: 1.5em !important;
	text-align: left;
	overflow: hidden;
	resize: none;
}
.dshe-pd .select2-container .select2-search__field::placeholder { color: var(--dshe-pd-muted) !important; }

/* Dropdown do select2 (anexado ao .dshe_extra_fields, dentro do dialog): acima do conteúdo e com o visual do site */
.dshe-pd .select2-container--open { z-index: 100002; }
.dshe-pd .select2-dropdown {
	z-index: 100002;
	margin-top: 4px;
	border: 1px solid var(--dshe-pd-field-line);
	border-radius: var(--dshe-pd-field-radius);
	background: #fff;
	box-shadow: var(--wbrsc-shadow-lift, 0 18px 44px -12px rgba(16, 42, 92, 0.22));
	overflow: hidden;
}
.dshe-pd .select2-dropdown.select2-dropdown--above { margin-top: 0; margin-bottom: 4px; }
.dshe-pd .select2-results__options { max-height: 220px; margin: 0; padding: 4px; }
.dshe-pd .select2-results__option { margin: 0; padding: 10px 12px; border-radius: 8px; color: var(--wbrsc-ink-900, #131a26); font-size: 14px; line-height: 1.4; }
.dshe-pd .select2-container--default .select2-results__option--highlighted,
.dshe-pd .select2-container--default .select2-results__option--highlighted[aria-selected],
.dshe-pd .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--wbrsc-blue-50, #f2f6fc) !important; color: var(--wbrsc-blue-900, #102a5c) !important; }
.dshe-pd .select2-container--default .select2-results__option[aria-selected="true"],
.dshe-pd .select2-container--default .select2-results__option--selected { background: var(--wbrsc-orange-50, #fef6ea); color: var(--wbrsc-orange-600, #c96f06); font-weight: 600; }
.dshe-pd .select2-container--default .select2-results__option[aria-disabled="true"],
.dshe-pd .select2-container--default .select2-results__option--disabled { color: #b7bfcc; }
.dshe-pd .select2-results__option--selected.select2-results__option--highlighted { background: var(--wbrsc-orange-50, #fef6ea) !important; color: var(--wbrsc-orange-600, #c96f06) !important; }

/* Grupos de checkbox / rádio / cores */
.dshe-pd .dshe-ef-checks { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; }
.dshe-pd .dshe-ef-check {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--dshe-ef-line);
	border-radius: var(--dshe-pd-field-radius);
	background: #fff;
	font-weight: 400;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.dshe-pd .dshe-ef-check:hover { border-color: var(--dshe-ef-accent); }
.dshe-pd .dshe-ef-check:has(.dshe-ef-check-input:checked) { border-color: var(--dshe-ef-accent); background: var(--wbrsc-blue-50, #f2f6fc); box-shadow: inset 0 0 0 1px var(--dshe-ef-accent); }
.dshe-pd .dshe-ef-check:has(.dshe-ef-check-input:disabled) { cursor: not-allowed; opacity: 0.55; }
.dshe-pd .dshe-ef-check-input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.dshe-pd .dshe-ef-check-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border: 2px solid #9aa1ab;
	border-radius: 6px;
	background: #fff;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.dshe-pd .dshe-ef-check-box::after {
	content: "";
	width: 10px;
	height: 5px;
	margin-top: -3px;
	border-bottom: 2px solid #fff;
	border-left: 2px solid #fff;
	transform: rotate(-45deg) scale(0);
	transition: transform 0.15s ease;
}
.dshe-pd .dshe-ef-check-input:checked + .dshe-ef-check-box { border-color: var(--dshe-ef-accent); background: var(--dshe-ef-accent); }
.dshe-pd .dshe-ef-check-input:checked + .dshe-ef-check-box::after { transform: rotate(-45deg) scale(1); }
.dshe-pd .dshe-ef-check-input:focus-visible + .dshe-ef-check-box { outline: 2px solid var(--wbrsc-blue-700, #1e4494); outline-offset: 2px; }
.dshe-pd .dshe-ef-check-label { display: flex; flex-direction: column; flex: 1; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.35; color: var(--wbrsc-ink-900, #131a26); }
.dshe-pd .dshe-ef-check-title { font-weight: 600; }
.dshe-pd .dshe-ef-check-price { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--wbrsc-green, #199a6a); white-space: nowrap; }
.dshe-pd .dshe-ef-check-cost { color: var(--dshe-ef-accent); font-size: 13px; font-weight: 400; line-height: 1.4; }
.dshe-pd .dshe-ef-check-cost.is-free { color: var(--wbrsc-ink-500, #647082); }
.dshe-pd .dshe-ef-checks.is-single .dshe-ef-check-box { border-radius: 50%; }
.dshe-pd .dshe-ef-checks.is-single .dshe-ef-check-box::after { width: 8px; height: 8px; margin: 0; border: 0; border-radius: 50%; background: #fff; transform: scale(0); }
.dshe-pd .dshe-ef-checks.is-single .dshe-ef-check-input:checked + .dshe-ef-check-box::after { transform: scale(1); }
.dshe-pd .dshe-ef-checks--colors { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.dshe-pd .dshe-ef-chip { gap: 8px; padding: 8px 14px; border-radius: var(--wbrsc-radius-pill, 999px); }
.dshe-pd .dshe-ef-chip:has(.dshe-ef-check-input:focus-visible) { outline: 2px solid var(--wbrsc-blue-700, #1e4494); outline-offset: 2px; }
.dshe-pd .dshe-ef-swatch { flex: 0 0 auto; width: 20px; height: 20px; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 50%; background: var(--dshe-ef-swatch, #000); }
.dshe-pd .dshe-ef-chip-name { font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--wbrsc-ink-900, #131a26); }
.dshe-pd .dshe-ef-chip-cost { font-size: 12px; color: var(--dshe-ef-accent); white-space: nowrap; }

/* Quantidade por opção (Controle Individual) */
.dshe-pd .dshe-ef-optqty[hidden] { display: none !important; }
.dshe-pd .dshe-ef-optqtys { display: flex; flex-direction: column; }
.dshe-pd .dshe-ef-optqty--line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--wbrsc-line, #e5eaf2); }
.dshe-pd .dshe-ef-optqty--line:not(:has(~ .dshe-ef-optqty--line:not([hidden]))) { border-bottom: 0; }
.dshe-pd .dshe-ef-optqty-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dshe-pd .dshe-ef-optqty-info strong { font-size: 14px; font-weight: 600; color: var(--wbrsc-ink-900, #131a26); }
.dshe-pd .dshe-ef-optqty-info small { font-size: 12px; line-height: 1.4; color: var(--wbrsc-ink-500, #647082); }
.dshe-pd .dshe-ef-optqty--inline { flex: 0 0 auto; margin-left: auto; cursor: default; }
.dshe-pd .dshe-ef-qtygroup { display: inline-flex; align-items: center; flex: 0 0 auto; width: max-content; border: 1px solid #d5d8dd; border-radius: 8px; overflow: hidden; background: #f6f7f9; }
.dshe-pd .dshe-ef-qtygroup[hidden] { display: none !important; }
.dshe-pd .dshe-ef-qtygroup button { width: 28px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #f6f7f9; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: none; }
.dshe-pd .dshe-ef-qtygroup button:is(:hover, :focus) { background: #eceef1; color: inherit; }
.dshe-pd .dshe-ef-qtygroup button:disabled { opacity: 0.35; cursor: not-allowed; }
.dshe-pd .dshe-ef-qtygroup .dshe-ef-qty { width: 40px; height: 38px; margin: 0; padding: 0; border: 0; border-left: 1px solid #d5d8dd; border-right: 1px solid #d5d8dd; border-radius: 0; background: #fff; color: var(--wbrsc-ink-900, #131a26); font-size: 14px; text-align: center; box-shadow: none; -moz-appearance: textfield; }
.dshe-pd .dshe-ef-qty::-webkit-outer-spin-button,
.dshe-pd .dshe-ef-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Avisos e erros dos campos */
.dshe-pd .dshe-ef-fieldhint { margin: 6px 0 0; padding: 0; color: #c62828; font-size: 13px; line-height: 1.45; }
.dshe-pd .dshe-ef-fieldhint[hidden] { display: none !important; }
.dshe-pd .dshe_extra_fields_notice { margin: 0; padding: 10px 12px; border: 1px solid #f1c6c8; border-radius: 8px; background: #fcf0f1; color: #b32d2e; font-size: 14px; line-height: 1.4; }
.dshe-pd .dshe_extra_fields_notice[hidden] { display: none !important; }
.dshe-pd .dshe_extra_fields_row.has-error .select2-container .select2-selection,
.dshe-pd .dshe_extra_fields_row.has-error .dshe-ef-select,
.dshe-pd .dshe_extra_fields_row.has-error .dshe-ef-check,
.dshe-pd .dshe_extra_fields_row.has-error .dshe-ef-optqty:not([hidden]) .dshe-ef-qtygroup { border-color: #c62828 !important; box-shadow: 0 0 0 1px #c62828; }
.dshe-pd .dshe_extra_fields_row.has-error > :is(label, .dshe-ef-legend) { color: #9b1c1c; }
.dshe-pd__fielderr { margin: 6px 0 0; font-size: 0.8rem; font-weight: 600; color: var(--dshe-pd-danger, #d6455b); }

@media (prefers-reduced-motion: reduce) {
	.dshe-pd .dshe-ef-check,
	.dshe-pd .dshe-ef-check-box,
	.dshe-pd .dshe-ef-check-box::after,
	.dshe-pd .select2-container .select2-selection::after,
	.dshe-pd .select2-container .select2-selection,
	.dshe-pd .dshe-pd__select { transition: none; }
}

/* Erro geral */
.dshe-pd__error { margin: 0 0 14px; padding: 11px 14px; border-radius: var(--wbrsc-radius-sm, 10px); background: #fdecef; color: #b3263c; font-size: 0.85rem; font-weight: 600; }
.dshe-pd__error[hidden] { display: none; }
.dshe-pd__error p { margin: 0; }
.dshe-pd__error p + p { margin-top: 4px; }

/* Ações */
.dshe-pd__actions { display: flex; justify-content: flex-end; gap: 10px; }
.dshe-frontend .dshe-pd__submit:disabled,
.dshe-frontend .dshe-pd__submit.is-disabled { opacity: 0.5 !important; cursor: not-allowed !important; transform: none !important; box-shadow: none !important; }

/* Botão de envio verde (mesmo padrão do .dshe-btn--green dos avançar do checkout) */
.dshe-frontend .dshe-pd__actions .dshe-pd__submit {
	background: var(--wbrsc-green, #199a6a) !important;
	color: #fff !important;
	box-shadow: 0 10px 24px -8px rgba(25, 154, 106, 0.5) !important;
}
.dshe-frontend .dshe-pd__actions .dshe-pd__submit:hover:not(:disabled):not(.is-disabled) {
	background: #14875c !important;
	color: #fff !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 16px 32px -10px rgba(25, 154, 106, 0.55) !important;
}
.dshe-frontend .dshe-pd__actions .dshe-pd__submit:focus-visible { outline: 2px solid var(--wbrsc-green, #199a6a) !important; outline-offset: 2px !important; }
.dshe-frontend .dshe-pd__actions .dshe-pd__submit:disabled,
.dshe-frontend .dshe-pd__actions .dshe-pd__submit.is-disabled { background: var(--wbrsc-green, #199a6a) !important; opacity: 0.5 !important; cursor: not-allowed !important; transform: none !important; box-shadow: none !important; }

@keyframes dshe-pd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dshe-pd-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes dshe-pd-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
	.dshe-pd__backdrop,
	.dshe-pd__card,
	.dshe-pd__loading::before { animation: none; }
}

/* Telas pequenas: quase a tela toda, corpo com rolagem */
@media (max-width: 600px) {
	.dshe-pd { padding: 8px; align-items: flex-end; }
	.dshe-pd__card { max-width: none; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: var(--wbrsc-radius-md, 16px); }
	.dshe-pd__head { padding: 14px 16px; }
	.dshe-pd__body { padding: 16px; }
	.dshe-pd__actions { flex-direction: column-reverse; }
	.dshe-frontend .dshe-pd__actions .dshe-btn { width: 100% !important; }
}

/* Botão do dialog parado: sem subir no hover nem encolher no clique (o deslocamento mexia no tamanho do dialog). */
.dshe-frontend .dshe-pd__actions .dshe-pd__submit,
.dshe-frontend .dshe-pd__actions .dshe-pd__submit:hover,
.dshe-frontend .dshe-pd__actions .dshe-pd__submit:hover:not(:disabled):not(.is-disabled),
.dshe-frontend .dshe-pd__actions .dshe-pd__submit:focus,
.dshe-frontend .dshe-pd__actions .dshe-pd__submit:active {
	transform: none !important;
}
