/**
 * Knotted Coupons Styles
 */

.knotted-coupons-list {
	display: inline-block;
    width: 100%;
}

.knotted-coupons-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 0;
    color: inherit;
    text-transform: capitalize;
}

.knotted-coupons-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.knotted-coupon-item {
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e0e0e0;
}

.knotted-coupon-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.knotted-coupon-code {
	display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: 2px dashed #999;
    border-radius: 4px;
    margin-bottom: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
	-webkit-tap-highlight-color: transparent;
}

.knotted-coupon-code:hover {
	border-color: #666;
	background-color: #f0f0f0;
	transform: translateY(-1px);
}

.knotted-coupon-code:active,
.knotted-coupon-code.copied {
	transform: translateY(0);
	background-color: #e8f5e9;
	border-color: #4caf50;
}

.knotted-coupon-code:focus {
	outline: 2px solid #4caf50;
	outline-offset: 2px;
}

.knotted-coupon-scissor {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: #666;
}

.knotted-coupon-title {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #333;
    font-size: 14px;
}

.knotted-coupon-description {
	color: #494949;
	font-size: 0.9em;
	line-height: 1.5;
	margin-top: 5px;
	font-family: sans-serif;
}

.knotted-coupon-description p {
	margin: 0 0 5px 0;
}

.knotted-coupon-description p:last-child {
	margin-bottom: 0;
}

/* Styles for popup cart */
.lakit-minicart--footer .knotted-coupons-list {
	margin-top: 15px;
	margin-bottom: 15px;
}

.lakit-minicart--footer .knotted-coupons-heading {
	font-size: 1em;
	margin-bottom: 12px;
}

.lakit-minicart--footer .knotted-coupon-item {
	margin-bottom: 10px;
	padding-bottom: 10px;
}

.lakit-minicart--footer .knotted-coupon-code {
	padding: 5px 7px;
    margin-bottom: 0;
}
.lakit-minicart--footer {
    padding-top: 10px;
}
.lakit-minicart--footer + p.woocommerce-mini-cart__buttons.buttons {
    padding-bottom: 15px;
}
/* Toast notification */
.knotted-coupon-toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background-color: #333;
	color: #fff;
	padding: 12px 24px;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 999999;
	opacity: 0;
	transition: all 0.3s ease;
	font-size: 14px;
	pointer-events: none;
	max-width: 90%;
	text-align: center;
}

.knotted-coupon-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.knotted-coupon-code {
		font-size: 0.9em;
		touch-action: manipulation;
	}
	
	.knotted-coupon-scissor {
		width: 14px;
		height: 14px;
	}
	
	.knotted-coupon-toast {
		bottom: 15px;
		padding: 10px 20px;
		font-size: 13px;
		max-width: calc(100% - 40px);
	}
}

