/* Panda Label Designer — front-end styles.
   Friendly, rounded, soft-shadow aesthetic to match a kids' label product. */

.pld-designer {
	--pld-radius: 14px;
	--pld-border: #e6e3da;
	--pld-bg: #fffdf6;
	--pld-accent: #ff3b7f;
	--pld-text: #3c3a34;
	--pld-muted: #8a877e;
	font-family: inherit;
	color: var(--pld-text);
	margin: 0 0 1.5rem;
	max-width: 720px;
}         

/* Consent notice (gates localStorage saving) */
.pld-consent {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.7rem 0.9rem;
	margin-bottom: 1.1rem;
	border: 1px solid var(--pld-border);
	background: #fff;
	border-radius: var(--pld-radius);
	font-size: 0.85rem;
}

.pld-consent[hidden] {
	display: none;
}

.pld-consent-text {
	flex: 1 1 220px;
	color: var(--pld-muted);
}

.pld-consent-actions {
	display: inline-flex;
	gap: 0.5rem;
	flex-shrink: 0;
}

.pld-consent button {
	appearance: none;
	border: none;
	cursor: pointer;
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	font-size: 0.85rem;
	transition: opacity 0.15s;
}

.pld-consent button:hover {
	opacity: 0.88;
}

.pld-consent-accept {
	background: var(--pld-accent);
	color: #fff;
}

.pld-consent-decline {
	background: transparent;
	color: var(--pld-muted);
	border: 1px solid var(--pld-border);
}

.pld-top {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

.pld-controls {
	flex: 1 1 280px;
	min-width: 260px;
}

.pld-line {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
}

.pld-input-wrap {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.pld-line-size {
	display: inline-flex;
	gap: 0.25rem;
	flex-shrink: 0;
}

.pld-text-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.95rem 3.4rem 0.95rem 1rem;
	border: 1px solid var(--pld-border);
	border-radius: var(--pld-radius);
	background: #fff;
	font-size: 1rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

/* body .canvas-container {
	width: 660px !important;
}
body canvas#pld-canvas {
	width: 663px !important;
}
 */
.pld-text-input:focus {
	outline: none;
	border-color: var(--pld-accent);
	box-shadow: 0 0 0 3px rgba(255, 59, 127, 0.12);
}

.pld-count {
	position: absolute;
	right: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.75rem;
	color: var(--pld-muted);
	pointer-events: none;
}

/* Preview / canvas. Fabric's pixel size is pinned with inline !important from
   designer.js (lockCanvasSize), which defeats theme `canvas{height:auto}` resets,
   so no CSS height hacks are needed here. */
.pld-preview-wrap {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 140px;
}

#pld-canvas {
	border-radius: var(--pld-radius);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	display: block;
}

.pld-layer-toggles {
	display: flex;
	gap: 1.5rem;
	margin-top: 0.75rem;
}

/* Designer products: the live preview replaces the product photo — hide the
   gallery and let the summary (and the designer) use the full content width. */
.pld-designable .woocommerce-product-gallery,
.pld-designable div.product .woocommerce-product-gallery,
.pld-designable .single-product-main-image {
	display: none !important;
	width: 0 !important;
}

/* Collapse the 2-column (image | summary) product layout to one full-width column.
   Covers float, flex and grid themes. */
.pld-designable div.product {
	display: block !important;
}

.pld-designable div.product .summary,
.pld-designable div.product .entry-summary {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 !important;
	/* No coloured card — sit on the page background. */
	background: transparent;
	padding: 0;
	box-sizing: border-box;
}

/* Cap + centre the whole designer so it doesn't sprawl on wide screens. */
.pld-designable .pld-card-header,
.pld-designable .pld-designer,
.pld-designable .pld-badges {
	max-width: 1380px;
	margin-left: auto;
	margin-right: auto;
}

.pld-designable form.cart {
	margin: 0 !important;
	padding: 0 !important;
}

/* Per-line text-size control (S / M / L) */
.pld-size {
	appearance: none;
	border: 1px solid #0000006b;
	background: #fff;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.78rem;
	color: var(--pld-text);
	transition: border-color 0.12s, box-shadow 0.12s;
}

.pld-size.is-active {
	border-color: var(--pld-accent);
	color: var(--pld-accent);
	font-weight: 600;
	box-shadow: 0 0 0 2px rgba(255, 59, 127, 0.15);
}

/* Toggle switches */
.pld-switch-row {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.9rem;
	cursor: pointer;
	user-select: none;
}

.pld-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

.pld-switch input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
	z-index: 2;
}

.pld-slider {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 2px 2px 2px;
    border-radius: 999px;
    background: #cfccc3;
    transition: background 0.2s;
    cursor: pointer;
    width: 48px !important;
}

.pld-slider::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	flex-shrink: 0;
	order: 1;
}

.pld-switch input:checked ~ .pld-slider {
	background: var(--pld-accent);
}

.pld-switch input:checked ~ .pld-slider::before {
	order: 2;
}

/* Tabs */
.pld-tabs {
	display: flex;
	gap: 0.25rem;
	border-bottom: 1px solid var(--pld-border);
}

.pld-tab {
    appearance: none;
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
    padding: 3px;
    font-size: 16px;
    cursor: pointer;
    border-radius: var(--pld-radius) var(--pld-radius) 0 0;
    color: var(--pld-muted);
    margin-bottom: -1px;
    text-align: center !important;
}

.pld-tab.is-active {
	background: var(--pld-bg);
	border-color: var(--pld-border);
	color: var(--pld-text);
	font-weight: 500;
}

/* Panels + sub-tabs */
.pld-panels {
	border: 1px solid var(--pld-border);
	border-top: none;
	border-radius: 0 0 var(--pld-radius) var(--pld-radius);
	background: var(--pld-bg);
	padding: 1rem;
}

.pld-panel {
	display: none;
}

.pld-panel.is-active {
	display: block;
}

.pld-subtabs {
	display: flex;
	gap: 1rem;
	margin-bottom: 0.9rem;
	flex-wrap: wrap;
}

.pld-subtab {
	background: none;
	border: none;
	padding: 0.2rem 0;
	cursor: pointer;
	color: var(--pld-muted);
	font-size: 0.9rem;
	border-bottom: 2px solid transparent;
}

.pld-subtab.is-active {
	color: var(--pld-text);
	border-bottom-color: var(--pld-accent);
}

/* Thumbnail grid — fixed 3 columns (3×3 page with the carousel) */
.pld-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 0rem;
}

.pld-thumb {
	aspect-ratio: 2 / 1;
	border-radius: 10px;
	border: 2px solid transparent;
	background-size: cover;
	background-position: center;
	cursor: pointer;
	transition: transform 0.12s, border-color 0.12s;
}

/* Motifs are clipart — show them square and whole (not cropped) */
#pld-motif-grid.pld-grid .pld-thumb {
	aspect-ratio: 1 / 1;
	background-size: contain;
	background-repeat: no-repeat;
}

.pld-thumb:hover {
	transform: translateY(-2px);
}

.pld-thumb.is-selected {
	border-color: var(--pld-accent);
}

.pld-thumb-none {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	color: var(--pld-muted);
	background: repeating-linear-gradient(45deg, #f3f1ea, #f3f1ea 6px, #eceae2 6px, #eceae2 12px);
}

/* Field label inside a panel (e.g. "Choose text colour", "Font") */
.pld-field-label {
	font-size: 0.85rem;
	color: var(--pld-muted);
	margin: 0 0 0.5rem;
}

/* Text colour swatches */
.pld-colors {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.1rem;
}

.pld-color {
	appearance: none;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--pld-border);
	cursor: pointer;
	transition: box-shadow 0.12s;
}

.pld-color.is-selected {
    box-shadow: 0 0 0 2px #ecaeab;
}

/* Font list */
.pld-fonts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 0.6rem;
}

.pld-font {
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--pld-border);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	font-size: 1.15rem;
	text-align: center;
	transition: border-color 0.12s;
}

.pld-font.is-selected {
	border-color: #ecaeab;
	box-shadow: 0 0 0 2px rgba(255, 59, 127, 0.15);
}

.pld-empty {
	color: var(--pld-muted);
	font-size: 0.9rem;
	padding: 0.5rem 0;
}

/* Pagination (arrows + dots) */
.pld-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	margin-top: 0.9rem;
}

.pld-pager-arrow {
	appearance: none;
	border: 1px solid var(--pld-border);
	background: #fff;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.2rem;
	line-height: 1;
	color: var(--pld-text);
}

.pld-pager-arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.pld-pager-dots {
	display: inline-flex;
	gap: 0.4rem;
}

.pld-pager-dot {
	appearance: none;
	border: none;
	width: 9px;
	height: 9px;
	padding: 0;
	border-radius: 50%;
	background: #cfccc3;
	cursor: pointer;
}

.pld-pager-dot.is-active {
	background: #ECAEAB;
}

/* "Own image" upload panel */
.pld-upload {
	padding: 1.4rem 1rem;
	text-align: center;
    width: 643px !important;
}

.pld-upload-cta {
	display: inline-block;
	padding: 0.7rem 1.3rem;
	border-radius: 999px;
	background: var(--pld-accent);
	color: #fff;
	cursor: pointer;
	font-size: 0.9rem;
}

.pld-upload-input {
	display: none;
}

.pld-upload-hint {
	color: var(--pld-muted);
	font-size: 0.8rem;
	margin: 0.75rem 0 0;
}

.pld-upload-msg {
	color: #c0392b;
	font-size: 0.82rem;
	margin: 0.5rem 0 0;
	min-height: 1em;
}



/* =========================================================================
   Full-card layout (the teal "name tag designer" product card)
   ========================================================================= */

/* Card header: eyebrow, title, intro copy, pricing lines */
.pld-card-header {
	margin-bottom: 1.5rem;
}

.pld-card-eyebrow {
	display: inline-block;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	background: #ece9e1;
	color: #56544e !important;
	padding: 0.2rem 0.75rem 0.1rem;
	border-radius: 999px;
	margin-bottom: 0.7rem;
}

.pld-card-title {
	color: var(--pld-text);
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	line-height: 1.1;
	margin: 0 0 0.6rem;
}

.pld-card-intro {
	color: #5f5b52;
	font-size: 16px;
	max-width: 100%;
}

.pld-card-intro p {
	margin: 0 0 0.5rem;
}

.pld-card-pricing {
	margin-top: 0.7rem;
}

.pld-card-pricing p {
	margin: 0.15rem 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--pld-text);
}

/* Two-column body */
.pld-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.75rem;
	align-items: start;
}
@media (max-width: 860px) {
	.pld-layout {
        display: block !important;
/* 		grid-template-columns: 1fr; */
	}
	body .pld-designable .pld-tabwrap {
    width: 100% !important;
}
	
body .pld-toggles-row {
  margin-top: 35px !important;
}
body .pld-variation-radios {
  display: flex;
  flex-direction: column !important;
}
body .woocommerce .cart .reset_variations {  
  top: -41px !important;
  left: 89% !important;
}
body .page-id-228 .pld-card-title, body .page-id-228 .pld-card-intro {
  text-align: center !important;
}
body button.single_add_to_cart_button.button.alt {
  width: 60% !important;
}
}
@media (max-width: 1200px) {
body .pld-layout {
  grid-template-columns: 1fr !important;
}
}

@media (max-width: 575px) {
body .pld-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0rem;
}
}
@media screen and (min-width: 994px) and (max-width: 1200px) {
	.woocommerce .cart .reset_variations {
    top: -1px !important;
    left: 57% !important;
}
}
@media screen and (min-width: 1201px) and (max-width: 1344px) {

.woocommerce .cart .reset_variations {
    top: -38px !important;
    left: 92% !important;
}
	.pld-variation-radios {
    display: flex;
    flex-direction: column;
}
}
@media screen and (min-width: 881px) and (max-width: 1200px) {
body .pld-layout {
  grid-template-columns: 1fr !important;
}
body .pld-designable .pld-tabwrap {
  width: 100% !important;
}
}
@media screen and (min-width: 576px) and (max-width: 767px) {
.pld-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0rem;
}
}
/* Left: text lines as white pills */
.pld-designable .pld-text-input {
	border-radius: 999px;
	border: 1px solid var(--pld-border);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Left: the white panel card holding the tabs + grids */
.pld-designable .pld-tabwrap {
	background: #FFFEF7;
	border-radius: 16px;
	padding: 0.9rem;
	margin-top: 1rem;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
	width: 673px !important;
}

.pld-designable .pld-tabs {
    border-bottom: none;
    gap: 0.3rem;
    background: transparent;
    padding: 0.3rem;
    border-radius: 999px;
    border: 1px solid #0000006b !important;
}
.pld-designable .pld-tab.is-active:hover {
    color: white !important;
}

.pld-designable .pld-tab {
	flex: 1;
	text-align: center;
	margin-bottom: 0;
	border: none;
	border-radius: 999px;
	color: var(--pld-muted);
}

.pld-designable .pld-tab.is-active {
    background: #74969A;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.pld-designable .pld-panels {
	border: none;
	background: transparent;
	border-radius: 0;
	padding: 0.85rem 0.15rem 0.15rem;
}

/* Right: layer toggle row */
.pld-toggles-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-bottom: 1rem;
}

.pld-designable .pld-switch-row {
    color: #56544E;
    font-size: 16px !important;
    gap: 0.5rem;
}

.pld-state {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    color: #56544E;
    order: 2;
    text-align: center !important;
    align-items: center !important;
    line-height: 0px;
}

.pld-switch input:checked ~ .pld-slider .pld-state {
	color: #fff;
	order: 1;
}

/* Right: purchase block (price + native quantity + Add to cart) */
.pld-purchase {
	margin-top: 1.5rem;
	background: #fff;
	border: 1px solid var(--pld-border);
	border-radius: 16px;
	padding: 1.1rem 1.3rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	flex-wrap: wrap;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/* Package details (left side, informational) */
.pld-package {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.pld-package-check {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--pld-accent);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	margin-top: 2px;
}

.pld-package-title {
	font-weight: 700;
	color: var(--pld-text);
}

.pld-package-sub {
	color: var(--pld-muted);
	font-size: 0.85rem;
}

/* Price + quantity + Add to cart group (right side) */
.pld-purchase-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.pld-price {
	color: var(--pld-text);
	font-size: 1.5rem;
	font-weight: 700;
}

.pld-price del {
	color: var(--pld-muted);
	font-weight: 400;
	font-size: 1rem;
	margin-right: 0.4rem;
}

.pld-designable .pld-purchase .quantity {
	margin: 0;
}

.pld-designable .pld-purchase .quantity .qty {
	width: 4rem;
	padding: 0.55rem 0.5rem;
	border: 1px solid var(--pld-border);
	border-radius: 10px;
	text-align: center;
}

/* High specificity + !important to beat theme width/overflow rules that were
   clipping the label to "Add to" and forcing an odd shape. */
.pld-designable .pld-purchase .single_add_to_cart_button {
	flex: 0 0 auto;
	display: inline-block;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	height: auto !important;
	overflow: visible !important;
	white-space: nowrap;
	background: var(--pld-accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.9rem 2.4rem;
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.1s;
}

.pld-designable .pld-purchase .single_add_to_cart_button:hover {
	opacity: 0.92;
}

.pld-designable .pld-purchase .single_add_to_cart_button:active {
	transform: translateY(1px);
}

/* Trust badges */
.pld-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1.6rem;
}
.pld-badge {
    background: #fff;
    color: #56544E !important;
    border: 1px solid #0000006b !important;
    padding: 0.4rem 1rem 0.3rem 1rem;
    border-radius: 8px;
    font-size: 14px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Typography & interaction polish */
.pld-card-title {
	font-weight: 800;
	letter-spacing: -0.01em;
}

.pld-size:hover {
	border-color: #ecaeab !important;
}

.pld-text-input::placeholder {
	color: #b3afa5;
}

.pld-designable .pld-tab:hover {
	color: var(--pld-text);
}

/* Variable products: WooCommerce renders the variation selector + price +
   Add to cart below the designer (inside the card). Light styling so it fits. */
.pld-designable .variations_form .variations {
	margin: 0.20rem 0 0.5rem;
}

.pld-designable .single_variation_wrap {
	margin-top: 1rem;
}

.pld-designable .woocommerce-variation-price .price {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--pld-text);
}

/* Pill Add-to-cart for variable products too (the purchase-block rule only
   covers simple products, where the button lives in .pld-purchase). */
.pld-designable .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	background: var(--pld-accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.9rem 2.2rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

/* Variation chooser: checkbox-styled radio options (replaces the dropdown) */
.pld-variation-select {
	display: none; /* keep the native <select> for WC's JS, but hide it */
}

.pld-variation-radios {
    display: flex;
    gap: 0.7rem;
    max-width: 100% !important;
}

.pld-variation-radio {
    display: flex !important;
    align-items: center !important;
    gap: 0.7rem;
    padding: 8px 17px 8px 8px;
    border: 1px solid #0000006b;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.pld-variation-radio input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.pld-variation-box {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #b9b5ab;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, border-color 0.12s;
}

.pld-variation-radio:hover {
	border-color: #c9c5bb;
}

.pld-variation-radio.is-selected {
    border-color: #ecaeab;
    box-shadow: 0 0 0 2px #cc95a81f;
}

.pld-variation-radio.is-selected .pld-variation-box {
    background: #ecaeab;
    border-color: #ecaeab;
    margin-right: -1px !important;
}

.pld-variation-radio.is-selected .pld-variation-box::after {
	content: "\2713"; /* ✓ */
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
}

.pld-variation-label {
    font-weight: 600;
    color: #56544E;
    text-align: center !important;
}

/* The variation block (moved into the right column, under the preview) */
.pld-variation-slot {
    margin-top: 1.25rem;
    background: #FFFEF7;
    border-radius: 14px !important;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* Stack the variations table (label above the options) so it fits the column */
.pld-variation-slot .variations,
.pld-variation-slot .variations tbody,
.pld-variation-slot .variations tr,
.pld-variation-slot .variations th,
.pld-variation-slot .variations td {
	display: block;
	width: auto;
	padding: 0;
	text-align: left;
}
.pld-variation-slot .variations th {
    font-weight: 700;
    color: #56544E;
    margin-bottom: 0.5rem;
    align-items: flex-start !important;
    text-align: start !important;
}
.pld-variation-slot .variations td {
	margin-bottom: 0.75rem;
}

.pld-variation-slot .single_variation_wrap {
	margin-top: 0.25rem;
}

.pld-variation-slot .woocommerce-variation-price {
	margin-bottom: 0.75rem;
}

.pld-variation-slot .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
    margin-bottom: 20px !important;
}
.pld-upload-editor {
	margin-top: 1rem;
	text-align: center;
}

.pld-upload-tools {
	display: flex;
	justify-content: center;
	gap: 1.25rem;
	margin-bottom: 0.75rem;
}

.pld-upload-rotate,
.pld-upload-reset {
	appearance: none;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 0.85rem;
	color: var(--pld-text);
}

.pld-upload-rotate:hover,
.pld-upload-reset:hover {
	color: #ecaeab !important;
}

.pld-upload-preview {
	display: inline-block;
	position: relative;
	max-width: 110px;
	border: 1px solid var(--pld-border);
	border-radius: 10px;
	padding: 0;
	background: #fff;
	line-height: 0;
}

.pld-upload-preview img {
	max-width: 100%;
	display: block;
	margin: 0;
	user-select: none;
	pointer-events: none;
}

.pld-upload-shapes {
	margin-top: 1rem;
}

.pld-upload-shapes-label {
	font-size: 0.85rem;
	color: var(--pld-muted);
	margin: 0 0 0.5rem;
}

.pld-upload-shapes-row {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
}

.pld-upload-shape {
	appearance: none;
	border: 2px solid var(--pld-border);
	background: #fff;
	border-radius: 8px;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.pld-upload-shape.is-active {
	border-color: #ecaeab;
}

.pld-upload-shape-icon {
	display: block;
	width: 29px;
	height: 29px;
	background: var(--pld-muted);
}

.pld-shape-square {
	border-radius: 3px;
}

.pld-shape-circle {
	border-radius: 50%;
}
.pld-upload-preview {
	position: relative;
}

.pld-crop-box {
	position: absolute;
	top: 0;
	left: 0;
	border: 2px solid #ecaeab;
	box-sizing: border-box;
	cursor: move;
	background: rgba(255, 59, 127, 0.08);
	z-index: 2;
	touch-action: none;
}

.pld-crop-handle {
	position: absolute;
	width: 10px;
	height: 10px;
	background: #fff;
	border: 2px solid #ecaeab;
	border-radius: 2px;
}

.pld-crop-handle.nw { top: -6px; left: -6px; cursor: nwse-resize; }
.pld-crop-handle.ne { top: -6px; right: -6px; cursor: nesw-resize; }
.pld-crop-handle.sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.pld-crop-handle.se { bottom: -6px; right: -6px; cursor: nwse-resize; }