.wcg-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 4), 1fr);
    gap: 20px;
    margin: 0;
}

.wcg-item {box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wcg-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.wcg-content {border: 1px solid #4CAF50;border-radius: 8px;
    box-shadow: 2px 4px 0px #00968826;
    background: #4caf5012;
    display: flex;
    padding: 8px;
    gap: 15px;
    align-items: center;
}
.wcg-item .wcg-code:before{content: "Nhập mã:";
    text-transform: none;
    margin-right: 5px;}

.wcg-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcg-icon img {
    max-width: 100%;
    height: auto;
}

.wcg-info {
    flex: 1;
    min-width: 0;
}

.wcg-code {
  font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.wcg-desc {
   font-size: 13px;
    color: #333;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wcg-actions {
    display: flex;
    gap: 4px;
}

.wcg-copy,
.wcg-conditions {
   background: #50913a;
    color: white;
    border-radius: 20px;
    padding: 5px 10px;
    width: 100%;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;margin-bottom:7px;
    line-height: 10px;margin-right:0
}

.wcg-copy {
    background:#2e942b !important;
    color: white;
}

.wcg-copy:hover {
    background: #8bc34a;
}

.wcg-copy.copied {
    background: #2563eb;
}

.wcg-conditions {
  background: #f3f4f6;
    color: #2196F3;
    letter-spacing: 0;
    font-weight: 500;
}

.wcg-conditions:hover {
    background: #e5e7eb;
}

/* Popup styles */
.wcg-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
}

.wcg-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 15px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.wcg-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 1px solid #8BC34A;
}

.wcg-popup-header h3 {
       margin: 0;
    font-size: 20px;
    color: #2e942b;
}

.wcg-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    margin: -4px;
    line-height: 20px;
}

.wcg-popup-body {
    color: #4b5563;
}

.wcg-popup-body p {
    margin: 8px 0;
    font-size: 15px;
    color: #333;
}

.wcg-popup-body strong {
    color: #374151;
}

/* Responsive */
@media (max-width: 1024px) {
    .wcg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .wcg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wcg-grid {
        grid-template-columns: 1fr;
    }
    
    .wcg-actions {
        flex-direction: column;
    }
    
    .wcg-copy,
    .wcg-conditions {
        width: 100%;
    }
} 