::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.woocommerce-cart-form__cart-item .product-name a{
    font-weight: bold;
}
.woocommerce .cart-collaterals tr th{
    padding-left:0;
}
.woocommerce .cart-collaterals tr td{
    padding-right:0;
}
.devvn_checkout_content .woocommerce-error{
    list-style: none;
}
.devvn_checkout_content .woocommerce-error li{
    margin: 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #f12121;
    font-weight: bold;
    color: #f12121;
}

.coupon-container {
    display: flex;
    gap: 20px;
    margin: 20px 0 15px;
    overflow-x: auto;
    width: 580px;
    white-space: nowrap;
}

.product-coupons-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-coupons-title svg {
    stroke: red;
}
.coupon-wrapper{
    width: 100%;
    max-width: 580px;
    padding: 0;
}

.coupon-card {
    position: relative;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: #ffeded;
}

.coupon-card input[type="radio"] {
    display: none;
}

.coupon-row {
    display: flex;
    height: 100%;
    position: relative;
    transition: background 0.2s;
    width: fit-content;
}

.coupon-edge {
    width: 20px;
    position: relative;
    border-right: 1px dashed #ccc;
    margin-right: 12px;
}

.coupon-edge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #f8f8f8;
    border-radius: 50%;
    box-shadow: inset -1px 0 2px rgba(0,0,0,0.05);
}

.coupon-infor {
    flex: 1;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 14px;
}

.coupon-infor .footer {
    padding: 5px 0 0;
    font-weight: normal;
    font-size: 14px;
}
.coupon-header {
    margin-bottom: 4px;
    text-transform: uppercase;
}

.coupon-infor .code {
    font-weight: bold;
    font-size: 14px;
    color: #000;
}

.coupon-infor .count {
    font-size: 12px;
    color: #000000b3;
    font-weight: normal;
    margin-left: 4px;
}

.coupon-infor .desc {
    font-size: 12px;
    color: #000000b3;
    line-height: 1.4;
    margin-bottom: 0px;
    padding-right: 0;
    font-weight:normal;
}

.coupon-infor .expiry {
    font-size: 12px;
    color: #000000b3;
}

.coupon-action {
    width: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin-right: 12px;
    height: 100%;
    justify-content: center;
}

.coupon-action  .radio-custom {
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 50%;
    position: relative;
    margin-top: 0px;
    transition: all 0.2s;
    background:#fff;
}

.coupon-action .condition-link {
    font-size: 13px;
 color: var(--fs-color-primary);
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s;
    margin-top:0;
    font-weight: normal;
}
.coupon-action .condition-link a{
    margin-top:0;
}
.coupon-action .condition-link:hover {
    color: var(--fs-experimental-link-color);
    text-decoration: underline;
}

.coupon-card input:checked ~ .coupon-row .radio-custom {
    border-color: #ff5722;
}

.coupon-card input:checked ~ .coupon-row .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #ff5722;
    border-radius: 50%;
}

.coupon-card input:checked ~ .coupon-row {
    background-color: #ffeded;
}
.coupon-info-wrapper{
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    gap:15px;
}

.coupon-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.coupon-modal-content {
    position: relative;
    background: #fff;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.coupon-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.coupon-card.disabled input[type="radio"] {
    cursor: not-allowed;
    pointer-events: none;
}

.coupon-card.disabled .coupon-info-wrapper {
    pointer-events: none;
}

.coupon-card.disabled .condition-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    opacity: 1;
}

.coupon-card.disabled .code {
    color: #999;
}

.coupon-card.disabled .desc {
    color: #aaa;
}

.coupon-error {
font-size: 12px;
    color: #ef4444;
    margin: 4px 0 0px 0;
    padding: 4px 8px;
    background: #ffffff;
    border-radius: 4px;
    border-left: 2px solid #ef4444;
}

/* Coupon available - highlight */
.coupon-card:not(.disabled):hover {
    transform: translateY(-2px);
}

.coupon-card:not(.disabled) {
    transition: all 0.3s ease;
}

.coupon-card.disabled .radio-custom {
    border-color: #ddd;
    background: #f5f5f5;
}
.coupon-card:hover .coupon-infor .code{
    color:var(--primary-color);
}
.coupon-card:hover .radio-custom {
    border-color: var(--primary-color);
}
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.coupon-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    width: 38px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    margin:0;
    padding:0;
}

.coupon-modal-close:hover {
    background: #e5e7eb;
}

.coupon-modal-body {
    padding: 20px;
}

.modal-loading {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0044cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Detail Content */
.coupon-detail-content {
    padding: 0;
}

.coupon-detail-header {
    margin-bottom: 10px;
}

.coupon-detail-header h2 {
    font-size: 20px;
    margin: 0 0 15px 0;
    color: #111;
}

.coupon-code-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.coupon-code-display code {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.copy-code-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin: 0;
    height: 40px;
}

.copy-code-btn:hover {
    background: #fba51a;
    color:#232323;
}

.copy-code-btn.copied {
    background: #10b981;
}

.copy-code-btn svg {
    flex-shrink: 0;
}

.coupon-detail-body h3 {
    font-size: 16px;
    margin: 0 0 5px;
    color: #111;
}

.condition-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.condition-item {
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.condition-item .icon {
    font-size: 18px;
    flex-shrink: 0;
}

.condition-item.highlight {
    background: #ecfdf5;
    border: 1px solid #10b981;
}

.condition-item.warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
}

.condition-item .product-list,
.condition-item .category-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.condition-item .product-list li,
.condition-item .category-list li {
    padding: 4px 0;
}

.condition-item .product-list a {
    color: var(--primary-color);
    text-decoration: none;
}

.condition-item .product-list a:hover {
    text-decoration: underline;
}
.condition-item .product-list{
        margin-top: 0;
}
.condition-item .product-list li{
        margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    z-index: 100000;
    animation: toastSlideUp 0.3s ease;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.no-coupons {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .coupon-card {
        width: 100%;
        max-width: 100%;
    }
    .coupon-modal{
        padding:15px;
    }
    .coupon-code-display{
        flex-direction: column;
    }
    .copy-code-btn{
        justify-content: center;
        width: 100%;
        text-align: center;
    }
    .coupon-code-display code {
        width: 100%;
        text-align: center;
    }
}
.single-product .coupon-container{
    width:100%;
}
.single-product .coupon-container .coupon-card {
    width: fit-content;
}
.single-product .coupon-edge::before{
    background:#fff;
}
.single-product .coupon-container {
    margin: 0;
    padding: 15px 0;
}
.item-prod{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.product-coupons-wrapper{
    margin-top:20px;
    margin-bottom:0px;
}
.fix-checkout .coupon-card{
    width: fit-content;
}