/* DM Product Verification: structure only (layout, states, RTL, box model). Decoration lives in the skin file,
   which a dedicated theme may replace through the dmh-plugin-skin switch. */

.dmpv {
	box-sizing: border-box;
	direction: rtl;
	text-align: start;
	display: flex;
	flex-direction: column;
	gap: var(--dmpv-gap, var(--dmh-gap, 20px));
	width: 100%;
	max-width: min(var(--dmpv-max-width, 1300px), 100%);
	margin-block: var(--dmpv-space-y, 20px);
	margin-inline: auto;
}

.dmpv *,
.dmpv *::before,
.dmpv *::after {
	box-sizing: inherit;
}

.dmpv [hidden] {
	display: none !important;
}

.dmpv-card {
	min-width: 0;
}

.dmpv-title,
.dmpv-hint,
.dmpv-privacy,
.dmpv-result-title,
.dmpv-result-message,
.dmpv-product-name,
.dmpv-product-variation,
.dmpv-usage-title {
	margin: 0;
}

.dmpv-label {
	display: block;
}

/* Form card: text starts at the reading edge; the card itself sits in the middle of the page. */
.dmpv-form-card,
.dmpv-login-card,
.dmpv-codes {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
}

.dmpv-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.dmpv-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

.dmpv-input {
	flex: 1 1 260px;
	min-width: 0;
	width: 100%;
	text-align: center;
	direction: ltr;
}

.dmpv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
}

.dmpv-btn--small {
	min-height: 32px;
}

.dmpv-btn[disabled] {
	cursor: wait;
}

.dmpv-code {
	unicode-bidi: isolate;
	direction: ltr;
	white-space: nowrap;
}

/* Result: up to three columns — picture · verdict and code · dates and the owner's guide. One column on a phone. */
.dmpv-result {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

@media (min-width: 900px) {
	.dmpv-result--c2 {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.dmpv-result--c3 {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
	}
}

.dmpv-col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.dmpv-product-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.dmpv-result-head {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.dmpv-result-icon {
	flex: 0 0 auto;
}

.dmpv-result-words {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.dmpv-code-box {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.dmpv-facts {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
}

.dmpv-fact {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: baseline;
	margin: 0;
}

.dmpv-fact dt,
.dmpv-fact dd {
	margin: 0;
}

.dmpv-usage {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dmpv-usage-body > :first-child {
	margin-block-start: 0;
}

.dmpv-usage-body > :last-child {
	margin-block-end: 0;
}

.dmpv-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dmpv-code-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dmpv-code-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.dmpv-code-name {
	flex: 1 1 160px;
	min-width: 0;
}

.dmpv-code-tools {
	display: inline-flex;
	gap: 6px;
}

/* The celebration canvas: above the page, never in the way of a click. */
.dmpv-confetti {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 99999;
}

@media (max-width: 480px) {
	.dmpv-form-row .dmpv-btn {
		flex: 1 1 100%;
	}
}
