.wc-product-coupons-section {
background: #f9f9f9;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
}
.wc-coupons-title {
font-size: 18px;
font-weight: 600;
margin: 0 0 15px 0;
color: #333;
border-bottom: 2px solid #0073aa;
padding-bottom: 10px;
}
.wc-coupons-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.wc-coupon-item {
background: #fff;
border: 2px dashed #ccc;
border-radius: 6px;
padding: 15px;
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.3s ease;
}
.wc-coupon-item:hover {
border-color: #0073aa;
box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}
.wc-coupon-info {
flex: 1;
}
.wc-coupon-code {
margin-bottom: 8px;
}
.wc-coupon-code .coupon-label {
color: #666;
font-size: 12px;
text-transform: uppercase;
margin-right: 5px;
}
.wc-coupon-code strong {
font-size: 16px;
color: #0073aa;
font-weight: 700;
letter-spacing: 0.5px;
}
.wc-coupon-discount {
margin-bottom: 5px;
}
.wc-coupon-discount .discount-value {
background: #0073aa;
color: #fff;
padding: 4px 10px;
border-radius: 4px;
font-size: 14px;
font-weight: 600;
display: inline-block;
}
.wc-coupon-description {
color: #666;
font-size: 13px;
margin-top: 8px;
line-height: 1.4;
}
.wc-coupon-expiry {
color: #999;
font-size: 12px;
margin-top: 5px;
font-style: italic;
}
.wc-coupon-action {
margin-left: 15px;
}
.wc-apply-coupon-btn {
background-color: #0073aa;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
transition: all 0.3s ease;
text-transform: uppercase;
}
.wc-apply-coupon-btn:hover {
background-color: #005177;
color: #fff;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}
.wc-apply-coupon-btn:disabled {
background-color: #ccc;
cursor: not-allowed;
transform: none;
}
.wc-apply-coupon-btn.loading {
position: relative;
color: transparent;
}
.wc-apply-coupon-btn.loading::after {
content: "";
position: absolute;
width: 16px;
height: 16px;
top: 50%;
left: 50%;
margin-left: -8px;
margin-top: -8px;
border: 2px solid #fff;
border-radius: 50%;
border-top-color: transparent;
animation: spinner 0.6s linear infinite;
}
@keyframes spinner {
to {
transform: rotate(360deg);
}
}
.wc-coupon-message {
margin-top: 15px;
padding: 12px;
border-radius: 4px;
font-size: 14px;
display: none;
}
.wc-coupon-message.success {
background-color: #d4edda;
border: 1px solid #c3e6cb;
color: #155724;
display: block;
}
.wc-coupon-message.error {
background-color: #f8d7da;
border: 1px solid #f5c6cb;
color: #721c24;
display: block;
} .woocommerce-form-coupon .wc-checkout-coupons,
form.checkout_coupon .wc-checkout-coupons,
.checkout-coupon-form .wc-checkout-coupons,
.wc-checkout-coupons-inline {
background: transparent;
border: none;
padding: 0;
margin: 15px 0;
}
.woocommerce-form-coupon .wc-checkout-coupons .wc-coupons-title,
form.checkout_coupon .wc-checkout-coupons .wc-coupons-title,
.checkout-coupon-form .wc-checkout-coupons .wc-coupons-title,
.wc-checkout-coupons-inline .wc-coupons-title {
font-size: 16px;
margin-bottom: 12px;
border-bottom: 1px solid #ddd;
padding-bottom: 8px;
} .wc-checkout-coupons[data-move-to-coupon-box="true"] {
display: block !important;
} .coupon-form-wrap .wc-checkout-coupons,
.woocommerce-checkout .wc-checkout-coupons {
margin-top: 15px;
} @media (max-width: 768px) {
.wc-coupon-item {
flex-direction: column;
align-items: flex-start;
}
.wc-coupon-action {
margin-left: 0;
margin-top: 15px;
width: 100%;
}
.wc-apply-coupon-btn {
width: 100%;
}
}