.upc-carousel-container {
    max-width: 300px;
    width:100%;
    margin: 0 auto;
}

.upc-carousel .slick-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px; /* adjust as needed */
    overflow: hidden;
}

.upc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.upc-slide.upc-add-slide img {
    object-fit: contain;
    background: #f9f9f9; /* optional to avoid empty gaps */
}
.upc-slide-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

.upc-slide-actions button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upc-slide-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.upc-slide-actions .dashicons-star-filled.featured {
    color: #ffd700;
}

.upc-add-slide {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    min-height: 200px;
}

.upc-add-slide img {
    width: 50px;
    height: 50px;
	opacity: 0.8;
}

/* Position arrows in middle */
.upc-carousel .upc-prev,
.upc-carousel .upc-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 30px;
    height: 30px;
    padding: 0;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
	z-index:88;
}
.upc-next:before, .upc-prev:before {
    font-size: 34px;
    color: black !important;
}

/* Left arrow inside image */
.upc-carousel .upc-prev {
    left: 15px;
}

/* Right arrow inside image */
.upc-carousel .upc-next {
    right: 15px;
}

/* Make add slide image fill like others */
.upc-add-slide img.upc-add-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    margin: 0 auto;
}

/* modal CSS starts*/
#upc-modal { display:none; }
body.upc-modal-open #upc-modal {overflow: hidden; display: flex;justify-content: center;align-items: center;}
.cropper-container { z-index: 1; /* stays behind buttons */}
/* ===== Modal Base ===== */
.upc-modal {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	overflow: auto;
	/* padding: 20px; */
}

/* ===== Modal Content ===== */
.upc-modal-content {
	background: #FFD600;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
	width: 100%;
	max-width: 700px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px;
	position: relative;
}

/* Close Button */
.upc-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 3;
}

/* ===== Image Editor Area ===== */
.upc-modal-body {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.upc-image-editor img {
	max-width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	max-height: 75vh;
}

/* ===== Controls ===== */
.upc-modal-controls {
	display: flex;
	gap: 10px;
	margin-top: 15px;
	flex-wrap: wrap;
	justify-content: center;
}

/* ===== Footer ===== */
.upc-modal-footer {
	display: flex;
	gap: 10px;
	margin-top: 15px;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}

/* ===== Buttons ===== */
.upc-btn {
	display: inline-flex;         /* inline so they sit side-by-side */
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	background: #f0f0f0;
	transition: background 0.2s ease;
	white-space: nowrap;          /* prevents text wrapping */
}

.upc-btn:hover {
	background: #e0e0e0;
}

.upc-btn.primary {
	background: #000;
	color: white;
}
/* .upc-btn.primary:hover {
	background: #1976d2;
} */

.upc-btn.success {
	background: #000;
	color: white;
}
.upc-btn.success:disabled {
	background: #9e9e9e;
	cursor: not-allowed;
}

/* ===== Button containers ===== */
.upc-modal-controls,
.upc-modal-footer {
	display: flex;
	flex-wrap: wrap;              /* allow wrapping only if space is very tight */
	justify-content: center;
	gap: 10px;                    /* spacing between buttons */
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
	.upc-modal-content {
		padding: 15px;
	}
	.upc-btn {
		font-size: 13px;
		padding: 6px 12px;
	}
	/* Keep row layout, no column stacking */
	.upc-modal-controls, 
	.upc-modal-footer {
		flex-direction: row;
		width: auto;
	}
}
/* All SVGs in modal inherit text color */
/* Make all modal icons inherit button text color */
#upc-modal .crop-icon svg,
#upc-modal .upc-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

/* Only close button has semi-transparent black stroke */
#upc-modal .upc-modal-close svg path {
  stroke: rgba(0,0,0,0.7);
  fill: none;
}

/* Icon sizing */
#upc-modal .crop-icon svg {
  width: 20px;
  height: 20px;
}

#upc-modal .upc-modal-close svg {
  width: 28px;
  height: 28px;
}


/*Modal Css End*/

.upc-message {
    display: none;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}
.upc-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.upc-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.upc-message.info {
    background-color: #e0e0e0; /* Grey background */
    color: #333; /* Dark text */
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
}
/* Lightbox/Fancybox slider css */
.fancybox__nav .carousel__button{
    color: #FFD600;
    font-weight: 800;	
}
.fancybox__thumbs .carousel__slide .fancybox__thumb::after{
	border-color: #FFD600;	
}