.custompresent-dialog-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custompresent-dialog-overlay.active {
    display: flex;
}

.custompresent-dialog-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.custompresent-dialog-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.custom-present-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

#custompresent-dialog .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

#custompresent-dialog .product {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#custompresent-dialog .product:hover {
    border-color: #999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#custompresent-dialog .product-image img {
    max-width: 100%;
    height: auto;
}

#custompresent-dialog .product-name {
    margin-top: 8px;
    font-size: 14px;
}

.custompresent-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #4caf50;
    border-radius: 10px;
    vertical-align: middle;
}
