/* Pladeværk – Din egen metalplakat */

/* Upload-knap i stedet for "Tilføj til kurv", indtil et billede er uploadet */
.pv-needs-upload .single_add_to_cart_button, .pv-needs-upload .quantity { display: none !important; }
.pv-up-open { display: none; width: 100%; min-height: 52px; font-size: 17px !important; font-weight: 700 !important; text-transform: uppercase;
	letter-spacing: .9px; background: #0B5CFF !important; color: #fff !important; border-radius: 4px !important; }
.pv-up-open:hover { background: #0847C7 !important; }
.pv-needs-upload .pv-up-open { display: block; flex: 1 1 100%; width: 100% !important; }
.pv-up-chosen { display: flex; flex-basis: 100%; align-items: center; gap: 12px; padding: 10px; background: #fff; border: 1px solid #D6D3CC; border-radius: 6px; }
.pv-up-chosen[hidden] { display: none; }
.pv-up-chosen img { width: 44px; aspect-ratio: 32 / 45; object-fit: cover; border-radius: 2px; margin: 0 !important; }
.pv-up-chosen span { display: flex; flex-direction: column; align-items: flex-start; font-size: 14px; }
.pv-up-change { padding: 0; border: 0; background: none; color: #0B5CFF; text-decoration: underline; cursor: pointer; font-size: 14px; }

/* Dialog */
body.pv-up-lock { overflow: hidden; }
.pv-up[hidden] { display: none; }
.pv-up { position: fixed; inset: 0; z-index: 99995; display: flex; align-items: center; justify-content: center; padding: 16px;
	background: rgba(20, 20, 20, .6); }
.pv-up-box { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.pv-up-stage { padding: 32px; }
.pv-up h2 { margin: 0 0 12px; font-size: 26px; }
.pv-up-h { margin: 16px 0 4px; font-weight: 700; }
.pv-up ul { margin: 0 0 0 1.2em; padding: 0; font-size: 15px; }
.pv-up li { margin: 4px 0; }
.pv-up-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
	background: #F3F1EC !important; color: #141414 !important; font-size: 22px; line-height: 1; cursor: pointer; }
.pv-up-accept { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 15px; cursor: pointer; }
.pv-up-accept input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.pv-up-drop { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 96px; padding: 16px; border: 2px dashed #B9B5AC;
	border-radius: 8px; color: #141414; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.pv-up-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pv-up-drop[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.pv-up-drop.is-over, .pv-up-drop:focus-within { border-color: #0B5CFF; background: #F2F6FF; }
.pv-up-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #F3F1EC; font-size: 20px; }

/* Trin 2: forhåndsvisning og tjek */
.pv-up-preview { width: min(240px, 60%); margin: 0 auto 16px; aspect-ratio: 32 / 45; background: #E8E6DF; border-radius: 2px;
	box-shadow: -3px 3px 10px rgba(44, 55, 61, .35); overflow: hidden; }
.pv-up-preview img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; }
.pv-up-checks { list-style: none; margin: 0 !important; }
.pv-up-checks li { position: relative; padding-left: 28px; }
.pv-up-checks li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.pv-up-checks .is-ok::before { content: "✓"; color: #1E8E3E; }
.pv-up-checks .is-warn::before { content: "!"; color: #B26A00; left: 6px; }
.pv-up-checks .is-bad::before { content: "✕"; color: #C62828; }
.pv-up-progress { height: 6px; margin: 14px 0 0; background: #E8E6DF; border-radius: 3px; overflow: hidden; }
.pv-up-progress span { display: block; height: 100%; width: 0; background: #0B5CFF; transition: width .2s; }
.pv-up-error { margin: 12px 0 0; color: #C62828; font-weight: 600; }
.pv-up-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }
.pv-up-back { padding: 12px 18px; border: 2px solid #0B5CFF; border-radius: 4px; background: #fff; color: #0B5CFF; font-weight: 700; cursor: pointer; }
.pv-up-use { min-height: 48px; padding: 12px 24px !important; background: #0B5CFF !important; color: #fff !important; font-weight: 700 !important; border-radius: 4px !important; }
.pv-up-use:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 640px) {
	.pv-up-stage { padding: 24px 18px; }
	.pv-up h2 { font-size: 22px; }
	.pv-up-actions button { flex: 1; }
}
